Hi All,
I think I found a answer to the question I posted above. It may not be the most elegant solution but it works for now so I would move on, but I thought to share my findings here. Below is my new uEnv.txt file which I put on the first partition of the sd card
Quote:
bootpart=0:1
bootdir=
loadimage=fatload mmc ${bootpart} ${loadaddr} zImage
loadfdt=fatload mmc ${bootpart} ${fdtaddr} am335x-boneblack.dtb
bootargs_nfs=setenv ipaddr 192.168.1.6;setenv serverip 192.168.1.22;setenv bootargs console=ttyO0,115200 root=/dev/nfs rw nfsroot=${serverip}:/home/onio/rootfs ip=${ipaddr} rootfstype=ext4 rootwait
uenvcmd=run loadimage;run loadfdt;run bootargs_nfs; printenv bootargs; bootz ${loadaddr} - ${fdtaddr};
|
The solution was to assign a valid "u-boot instruction" to a variable and then use the u-boot
uenvcmd=run variable command to execute the assigned variable instruction
Code:
Example:
bootargs_nfs=setenv ipaddr 192.168.1.6;setenv serverip 192.168.1.22;setenv bootargs console=ttyO0,115200 root=/dev/nfs rw nfsroot=${serverip}:/home/onio/rootfs ip=${ipaddr} rootfstype=ext4 rootwait
uenvcmd=run bootargs_nfs;
Sets host ip address to 192.168.1.6
sets server ip address to 192.168.1.22
sets bootargs to use nfs etc