https://wiki.flashrom.org/index.php?title=BBB&feed=atom&action=history
BBB - Revision history
2024-03-29T13:10:44Z
Revision history for this page on the wiki
MediaWiki 1.40.0
https://wiki.flashrom.org/index.php?title=BBB&diff=2131&oldid=prev
Stefanct at 06:17, 3 January 2016
2016-01-03T06:17:09Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 06:17, 3 January 2016</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l112">Line 112:</td>
<td colspan="2" class="diff-lineno">Line 112:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>1. edit <code>/boot/uboot/uEnv.txt</code> by appending <code>capemgr.enable_partno=BB-SPI0</code> to the <code>optargs</code> directive (if it is not there already just add a line with <code>optargs=capemgr.enable_partno=BB-SPI0</code>).</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>1. edit <code>/boot/uboot/uEnv.txt</code> by appending <code>capemgr.enable_partno=BB-SPI0</code> to the <code>optargs</code> directive (if it is not there already just add a line with <code>optargs=capemgr.enable_partno=BB-SPI0</code>).</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>2. update the initrd (e.g. with <code>/opt/scripts/tools/update_initrd.sh)</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>2. update the initrd (e.g. with <code>/opt/scripts/tools/update_initrd.sh<ins style="font-weight: bold; text-decoration: none;"></code></ins>)</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>3. reboot</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>3. reboot</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">== Using flashrom ==</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">The respective Linux SPI device will be <code>/dev/spidev1.0</code> thus...</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> flashrom -p linux_spi:dev=/dev/spidev1.0 ...</ins></div></td></tr>
</table>
Stefanct
https://wiki.flashrom.org/index.php?title=BBB&diff=1988&oldid=prev
Stefanct at 15:12, 17 October 2014
2014-10-17T15:12:20Z
<p></p>
<a href="https://wiki.flashrom.org/index.php?title=BBB&diff=1988&oldid=1987">Show changes</a>
Stefanct
https://wiki.flashrom.org/index.php?title=BBB&diff=1987&oldid=prev
Stefanct: Created page with "= flashrom on the BeagleBone Black = '''This page is WIP.''' Required packages: the usual suspects. * build-essential * libpci-dev == Enabling SPI0 == Create a file <code>B..."
2014-10-12T00:59:44Z
<p>Created page with "= flashrom on the BeagleBone Black = '''This page is WIP.''' Required packages: the usual suspects. * build-essential * libpci-dev == Enabling SPI0 == Create a file <code>B..."</p>
<p><b>New page</b></p><div>= flashrom on the BeagleBone Black =<br />
'''This page is WIP.'''<br />
<br />
Required packages: the usual suspects.<br />
* build-essential<br />
* libpci-dev<br />
<br />
== Enabling SPI0 ==<br />
<br />
Create a file <code>BB-SPI0-01-00A0.dts</code> with the following contents:<br />
<nowiki><br />
/dts-v1/;<br />
/plugin/;<br />
<br />
/ {<br />
compatible = "ti,beaglebone", "ti,beaglebone-black";<br />
<br />
/* identification */<br />
part-number = "spi0pinmux";<br />
<br />
fragment@0 {<br />
target = <&am33xx_pinmux>;<br />
__overlay__ {<br />
spi0_pins_s0: spi0_pins_s0 {<br />
pinctrl-single,pins = <<br />
0x150 0x30 /* spi0_sclk, INPUT_PULLUP | MODE0 */<br />
0x154 0x30 /* spi0_d0, INPUT_PULLUP | MODE0 */<br />
0x158 0x10 /* spi0_d1, OUTPUT_PULLUP | MODE0 */<br />
0x15c 0x10 /* spi0_cs0, OUTPUT_PULLUP | MODE0 */<br />
>;<br />
};<br />
};<br />
};<br />
<br />
fragment@1 {<br />
target = <&spi0>;<br />
__overlay__ {<br />
#address-cells = <1>;<br />
#size-cells = <0>;<br />
<br />
status = "okay";<br />
pinctrl-names = "default";<br />
pinctrl-0 = <&spi0_pins_s0>;<br />
<br />
spidev@0 {<br />
spi-max-frequency = <24000000>;<br />
reg = <0>;<br />
compatible = "linux,spidev";<br />
};<br />
};<br />
};<br />
};<br />
</nowiki><br />
<br />
Compile it with<br />
dtc -O dtb -o BB-SPI0-01-00A0.dtbo -b 0 -@ BB-SPI0-01-00A0.dts<br />
and copy the result to <code>/lib/firmware</code>:<br />
cp BB-SPI0-01-00A0.dtbo /lib/firmware/<br />
<br />
Then enable this overlay:<br />
echo BB-SPI0-01 > /sys/devices/bone_capemgr.*/slots<br />
and check that it has worked:<br />
ls -al /dev/spidev1.*<br />
<br />
To make this persistent you have to edit <code>/boot/uboot/uEnv.txt</code> by appending<br />
optargs=quiet drm.debug=7 capemgr.enable_partno=BB-SPI0-01</div>
Stefanct