kenwi

U-Boot

Aug 1st, 2014
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. U-Boot 1.2.0 (Apr 15 2008 - 17:24:31)
  2. PSPU-Boot 1.0.0.4
  3.  
  4. DRAM: 32 MB
  5. Found SPANSION Flash
  6. Flash: 8 MB
  7. In: serial
  8. Out: serial
  9. Err: serial
  10. Press SPACE to abort autoboot in 3 second(s)
  11. => printenv
  12. bootargs=root=/dev/mtdblock5 mtdparts=physmap-flash.0:512k(U-Boot)ro,256K(env1),256K(env2),0x40000(script),0x140000(Kernel),0x140000(RootFileSystem),5M@1M(UBFI1),5M(UBFI2) console=ttyS0,115200n8 ethaddr0=${ethaddr}
  13. bootcmd=while itest.b 1 == 1;do;if itest.b ${ACTIMAGE} == 1;then echo *** ACTIMAGE = 1, will try to boot UBFI1 stored @${UBFIADDR1};aimgname=UBFI1; aubfiaddr=${UBFIADDR1};bimgname=UBFI2; bubfiaddr=${UBFIADDR2}; bimgnum=2;else if itest.b ${ACTIMAGE} == 2;then echo *** ACTIMAGE = 2, will try to boot UBFI2 stored @${UBFIADDR2};aimgname=UBFI2; aubfiaddr=${UBFIADDR2};bimgname=UBFI1; bubfiaddr=${UBFIADDR1}; bimgnum=1;else echo *** ACTIMAGE invalid; exit;fi;fi;if autoscr $aubfiaddr;then echo *** $aimgname bootscript executed successfully.;echo Start booting...;bootm ${LOADADDR};fi;echo *** $aimgname is corrupted, try $bimgname...;setenv ACTIMAGE $bimgnum;if autoscr $bubfiaddr;then echo *** $bimgname bootscript executed successfully.;echo Check image...;if imi ${LOADADDR};then echo Save updated ACTIMAGE...;saveenv;echo Image OK, start booting...;bootm ${LOADADDR};fi;fi;echo Backup image also corrupted...exit.;exit;done;
  14. bootdelay=3
  15. baudrate=115200
  16. ethaddr=00:40:7b:00:00:03
  17. UBFIADDR1=0x48040000
  18. LOADADDR=0
  19. sdelay=3
  20. update1=tftpboot 0x80000100 ${UBFINAME1} && protect off ${UBFIADDR1} +${filesize} && erase ${UBFIADDR1} +${filesize} && sleep ${sdelay} && cp.b ${fileaddr} ${UBFIADDR1} ${filesize} && protect on ${UBFIADDR1} +${filesize} && sleep ${sdelay} && setenv ACTIMAGE 1 && saveenv
  21. update2=tftpboot 0x80000100 ${UBFINAME2} && protect off ${UBFIADDR2} +${filesize} && erase ${UBFIADDR2} +${filesize} && sleep ${sdelay} && cp.b ${fileaddr} ${UBFIADDR2} ${filesize} && protect on ${UBFIADDR2} +${filesize} && sleep ${sdelay} && setenv ACTIMAGE 2 && saveenv
  22. update_uboot=tftpboot 0x80000100 u-boot.bin && protect off 0x48000000 +${filesize} && erase 0x48000000 +${filesize} && sleep ${sdelay} && cp.b ${fileaddr} 0x48000000 ${filesize} && protect on 0x48000000 +${filesize}
  23. update_uimage=tftpboot 0x80000100 uImage && protect off ${UBFIADDR1} +${filesize} && erase ${UBFIADDR1} +${filesize} && sleep ${sdelay} && cp.b ${fileaddr} ${UBFIADDR1} ${filesize} && protect on ${UBFIADDR1} +${filesize}
  24. update_sqfs=tftpboot 0x80000100 sqfs.img && protect off ${UBFIADDR2} +${filesize} && erase ${UBFIADDR2} +${filesize} && sleep ${sdelay} && cp.b ${fileaddr} ${UBFIADDR2} ${filesize} && protect on ${UBFIADDR2} +${filesize}
  25. erase_env=protect off 1:2-3 && erase 1:2-3 && protect on 1:2-3
  26. netretry=no
  27. ubootpartsize=0x20000
  28. envpartsize=0x10000
  29. UBFINAME1=puma5_ubfi.bin
  30. UBFINAME2=puma5_ubfi.bin
  31. UBFIADDR2=0x483F0000
  32. filesize=380000
  33. fileaddr=80000100
  34. gatewayip=192.168.100.2
  35. netmask=255.255.255.0
  36. ipaddr=192.168.100.1
  37. serverip=192.168.100.2
  38. ACTIMAGE=2
  39. stdin=serial
  40. stdout=serial
  41. stderr=serial
  42. ver=U-Boot 1.2.0 (Apr 15 2008 - 17:24:31)
  43. PSPU-Boot 1.0.0.4
  44.  
  45. Environment size: 2862/65531 bytes
  46. =>
Advertisement
Add Comment
Please, Sign In to add comment