u74_uEnv.txt 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # This is the sample uEnv.txt file for HiFive Unleashed U-boot
  2. # The current convention (SUBJECT TO CHANGE) is that this file
  3. # will be loaded from the first MSDOS(fat) GPT partition on the
  4. # MMC card.
  5. # for debugging boot
  6. #bootargs=video=640x480 console=ttySI0 root=/dev/mmcblk0p2 rootwait
  7. bootargs=earlyprintk console=ttyS0,115200 debug rootwait stmmaceth=chain_mode:1 root=/dev/mmcblk0p3
  8. # The FIT file to boot from
  9. fitfile=hifiveu.fit
  10. # The rest of this is mostly of interest to u-boot developers
  11. # below much match what's in FIT (ugha)
  12. bbladdr=80700000
  13. fdtaddr=86000000
  14. irdaddr=86100000
  15. irdsize=06400000
  16. # Use the FDT in the FIT image..
  17. #setupfdt1=fdt addr ${fdtaddr}; fdt resize; fdt chosen; fdt move ${fdtaddr} ${newfdt}
  18. #use FDT that came with uboot
  19. #setupfdt1=fdt addr ${newfdt}; fdt resize; fdt chosen; fdt move ${fdtaddr} ${newfdt}
  20. #Use fit image, but don't call fdt move (TODO: understand later)
  21. #setupfdt1=fdt addr ${newfdt}; fdt resize; fdt chosen
  22. setupfdt1=fdt addr ${fdtaddr}
  23. setupird=setexpr irdend ${irdaddr} + ${irdsize}; fdt set /chosen linux,initrd-start <0x0 0x${irdaddr}>; fdt set /chosen linux,initrd-end <0x0 0x${irdend}>
  24. #setupfdt2=fdt set /chosen bootargs ${bootargs}; fdt print /chosen
  25. #setupfdt2=fdt print /chosen; fdt set /chosen bootargs "${bootargs}"; fdt set /firmware uboot,ver ${ver}; fdt print /chosen
  26. setupfdt2=fdt print /chosen; fdt set /chosen bootargs "${bootargs}"; fdt print /chosen
  27. bootwait=setenv _delay ${bootdelay}; echo ${_delay}; while test ${_delay} > 0; do sleep 1; setexpr _delay ${_delay} - 1; echo ${_delay}; done
  28. # this assumes ${fileaddr} is already set!!
  29. #boot2=fatload mmc 0:1 ${fileaddr} ${fitfile}; bootm start ${fileaddr}; run setupfdt1; run setupchosen; run setupfdt2; bootm loados ${fileaddr}; echo "Booting kernel in"; run bootwait; go 80000000
  30. boot2=fatload mmc 0:1 ${fileaddr} ${fitfile}; bootm start ${fileaddr}; run setupfdt1;run setupird;run setupfdt2; bootm loados ${fileaddr}; echo "Booting kernel in"; go ${bbladdr} ${fdtaddr}
  31. # if you want to network boot, for testing, uncomment the following:
  32. #boot2=dhcp; env import -t ${fileaddr} ${filesize}; run boot2