Last active
April 12, 2018 02:53
-
-
Save meriororen/7886901 to your computer and use it in GitHub Desktop.
Set Sun7i Cubieboard2 to boot via NFS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use jwrdegoede/linux-sunxi sunxi-test for kernel (3.13) | |
User jwrdegoede/u-boot-sunxi sunxi-test for u-boot | |
---- | |
setenv ethaddr 5a:fe:b0:07:b0:07 # this can be anything | |
dhcp | |
setenv serverip <server-ip> | |
setenv nfsroot ${serverip}:/var/nfsexport/arch | |
setenv nfs_load_self "nfs 0x43000000 ${nfsroot}/script.bin; nfs 0x46000000 ${nfsroot}/uImage; nfs 0x49000000 ${nfsroot}/sun7i-a20-cubieboard2.dtb;" | |
setenv fdt_add_eth0 'fdt addr 0x60000000; fdt resize; fdt set ethernet0 mac-address "[5a fe b0 07 b0 07]"' | |
setenv bootcmd "run nfs_load_self; run fdt_add_eth0; bootm 0x46000000 - 0x49000000" | |
setenv bootargs "console=ttyS0,115200 root=/dev/nfs nfsroot=${nfsroot},tcp ip=dhcp earlyprintk" | |
saveenv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment