[U-Boot] "fdt" commands in extlinux.conf ?

Ken Harris kjh at hokulea.org
Sun Jan 7 04:04:09 UTC 2018


I'd like to enable the CANbus on a Beagle Bone Black (on Fedora ...
which doesn't do "cape manager").

The crux is a fdt command in u-boot :

fdt set d_can1 status okay

Is there a way to do this in extlinux.conf ?

I didn't see a way (in uboot 2017.09), so I wrote a uEnv.txt script
(see attached).

That's a bit verbose and duplicates a bunch of stuff already in uboot
(also : uEnv.txt doesn't exist on my "Orange Pi One").

It there a simpler way to state "fdt" commands ?

Thanks
-------------- next part --------------

##run findfdt; run init_console
##mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};fi
###run distro_bootcmd

##run loadbootenv; run importbootenv

devtype=mmc
bootpart=0:1

## scan_dev_for_boot_part ??
## finduuid ??

uuid=b2c019d9-2401-4a22-9a40-36a92a00cdfe

#u0=-4.13.11-200.fc26.armv7hl
#u0=-4.13.12-300.fc27.armv7hl
u0=-4.13.13-300.fc27.armv7hl

loadfdt=load ${devtype} ${bootpart} ${fdtaddr} dtb${u0}/${fdtfile}

loadramdisk=load ${devtype} ${bootpart} ${rdaddr} uInitrd${u0}

loadimage=load ${devtype} ${bootpart} ${loadaddr} vmlinuz${u0}

##fdt addr ${fdtaddr}

### CBB-Serial :
#fdt set d_can1 status okay
#fdt set d_can0 status okay
#fdt set serial1 status disable
#fdt set serial2 status okay
#fdt set i2c2 status disable
#fdt set serial4 status okay

uenvcmd=run loadimage; run loadramdisk; run loadfdt; fdt addr ${fdtaddr} ; fdt set d_can1 status okay ; fdt set d_can0 status okay ; fdt set serial1 status disable ; fdt set serial2 status okay ; fdt set i2c2 status disable ; fdt set serial4 status okay ; setenv bootargs ro root=UUID=${uuid}; bootz ${loadaddr} ${rdaddr} ${fdtaddr}



More information about the U-Boot mailing list