BBB
This wiki is retired
Our website is https://www.flashrom.org, instructions on how to add or update documentation are here
All wiki content available in read-only mode at wiki.flashrom.org
flashrom on the BeagleBone Black
This page is WIP.
Required packages: the usual suspects.
- build-essential
- libpci-dev
Enabling SPI0
Create a file BB-SPI0-01-00A0.dts
with the following contents:
/dts-v1/; /plugin/; / { compatible = "ti,beaglebone", "ti,beaglebone-black"; /* identification */ part-number = "spi0pinmux"; fragment@0 { target = <&am33xx_pinmux>; __overlay__ { spi0_pins_s0: spi0_pins_s0 { pinctrl-single,pins = < 0x150 0x30 /* spi0_sclk, INPUT_PULLUP | MODE0 */ 0x154 0x30 /* spi0_d0, INPUT_PULLUP | MODE0 */ 0x158 0x10 /* spi0_d1, OUTPUT_PULLUP | MODE0 */ 0x15c 0x10 /* spi0_cs0, OUTPUT_PULLUP | MODE0 */ >; }; }; }; fragment@1 { target = <&spi0>; __overlay__ { #address-cells = <1>; #size-cells = <0>; status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&spi0_pins_s0>; spidev@0 { spi-max-frequency = <24000000>; reg = <0>; compatible = "linux,spidev"; }; }; }; };
Compile it with
dtc -O dtb -o BB-SPI0-01-00A0.dtbo -b 0 -@ BB-SPI0-01-00A0.dts
and copy the result to /lib/firmware
:
cp BB-SPI0-01-00A0.dtbo /lib/firmware/
Then enable this overlay:
echo BB-SPI0-01 > /sys/devices/bone_capemgr.*/slots
and check that it has worked:
ls -al /dev/spidev1.*
To make this persistent you have to edit /boot/uboot/uEnv.txt
by appending
optargs=quiet drm.debug=7 capemgr.enable_partno=BB-SPI0-01