HI All,
I have built custom zImage and am335-boneblack.dtb file together with u-boot and its associated files.
The problem I am having is getting u-boot to automatically boot Linux kernel image from SD Card using the uEnv.txt file. I have partitioned my SD card into 2 part, first partition contains FAT partition while the second is an ext4 . The first partition contains the following files
- u-boot.img
- MLO
- zImage
- am335x-boneblack.dtb
- uEnv.txt
I am not currently using the second partition as I am using NFS for the root files system. I can halt the u-boot boot process which causes it to drop to the u-boot command prompt at which point I can then enter the following commands manually.
-
setenv serverip 192.168.1.100
-
setenv ipaddr 192.168.1.101
-
setenv npath /home/onio/rootfs
-
setenv bootargs console=ttyO0,115200 root=/dev/nfs rw nfsroot=${serverip}:${npath} ip=${ipaddr}
-
saveenv
-
fatload mmc 0:1 0x80200000 zImage
-
fatload mmc 0:1 0x80f00000 am335x-boneblack.dtb
-
bootz 0x80200000 - 0x80f00000
As previously mentioned I can enter the above commands at the u-boot prompt and the board would boot to Linux command prompt. I want to avoid the process of entering this data manually and get u-boot to do the loading and booting of the board using the uEnv.txt file. If my understanding is correct u-boot should be able to perform this process automatically.
Many thanks in advance.
Regards
onio
NB:
The “serverip” is the IP address of my development PC and ipaddr is the IP address of the beaglebone black. The root file system is located in the following path /home/onio/rootfs on the development PC.