Advertisement
codekipper

tftp boot.cmd

Mar 14th, 2016
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. #Settings for booting from the card. Flash script to tri Flash script to trimm
  2. #setenv loadkernel fatload mmc 0 \$kernel_addr_r uImage
  3. #setenv loaddtb fatload mmc 0 \$fdt_addr_r sun7i-a20-itead-ibox.dtb
  4. #setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
  5. #setenv uenvcmd run loadkernel \&\& run loaddtb \&\& bootm \$kernel_addr_r - \$fdt_addr_r
  6. #run uenvcmd
  7.  
  8. #Settings for net booting. Flash script to trim
  9. setenv autoload no
  10. dhcp
  11. setenv serverip 192.168.0.xx
  12. setenv nfsroot ${serverip}:/srv/nfs4/Hacking/rootfs/
  13. #setenv bootargs "console=ttyS0,115200 earlyprintk=serial,uart0,115200 root=/dev/nfs nfsroot=${nfsroot} rootdelay=15 ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:eth0"
  14. setenv bootargs "console=ttyS0,115200 earlyprintk=serial,uart0,115200 root=/dev/mmcblk0p2 ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:eth0"
  15. #the correct dtb value needs to be added here
  16. setenv ethaddr 12:34:56:78:99:07
  17. tftp 0x46000000 uImage
  18. tftp 0x49000000 sun7i-a20-itead-ibox.dtb
  19. bootm 0x46000000 - 0x49000000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement