Hi,
I am using Robert Nelsons kernel and the setup of the
sdcard/uEnv.txt/MLO/U-Boot/dtbs described here:
http://eewiki.net/display/linuxonarm/BeagleBone+Blackhttp://eewiki.net/display/linuxonarm/BeagleBone+Black
for the sdcard of my BBB.
The sdcards first partition contains MLO, u-boot and the kernel image
and is VFAT formatted.
The second partition contains the rootfs and is ext4 formatted.
Since I update the kernel image relatively often, vfat on a small
sized partition is not optimal due to the write cycles to the flash
chip.
I would like to modify the setup that way, that kernel image and dtbs
folder are placed in a folder in the rootfs ("big" and ext4 instead of vfat) and
loaded/booted from there.
The uEnv.txt currently in use is:
kernel_file=zImage
initrd_file=uInitrd
loadzimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${kernel_file}
loadinitrd=load mmc ${mmcdev}:${mmcpart} 0x81000000 ${initrd_file}; setenv initrd_size ${filesize}
loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdtaddr} /dtbs/${fdtfile}
console=ttyO0,115200n8
mmcroot=/dev/mmcblk0p2 ro
mmcrootfstype=ext4 rootwait fixrtc
##To disable HDMI/eMMC...
optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G
mmcargs=setenv bootargs console=${console} root=${mmcroot} rootfstype=${mmcrootfstype} ${optargs}
#zImage:
uenvcmd=run loadzimage; run loadfdt; run mmcargs; bootz ${loadaddr} - ${fdtaddr}
I tried to figure out how to set the second partition as source for
the kernel...and failed.
Or more specifically...the variables ${mmcdev} and ${mmcpart}
seem to specify what I am searching for...but despite others
variables they seem not to be set inside uEnv.txt.
How can I setup uEnv.txt to accomplish what I am trying to do?
Thank you very much in advance for any idea/help !
Best regards,
mcc