Advertisement
Guest User

beagle uboot bypass uenv

a guest
Dec 9th, 2021
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. # set defaults
  2. run findfdt ; setenv dtb $fdtfile
  3.  
  4. # load settings from /boot/uEnv.txt.b for backup
  5. load mmc 0:1 $loadaddr /boot/uEnv.txt.b
  6. env import -t $loadaddr $filesize
  7.  
  8. # this is the right time to customize if needed, e.g. to
  9. # reset the dtb to its default:
  10. #setenv dtb $fdtfile
  11.  
  12. # load kernel
  13. load mmc 0:1 $loadaddr /boot/vmlinuz-$uname_r
  14.  
  15. # load DT (try two locations):
  16. load mmc 0:1 $fdtaddr /boot/dtbs/$uname_r/$dtb || load mmc 1:1 $fdtaddr /boot/dtbs/$dtb
  17.  
  18. # NOTE: not bothering with initramfs
  19. setenv bootargs console=$console root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait $cmdline
  20.  
  21. # go!
  22. bootz $loadaddr - $fdtaddr
  23.  
  24. #all together now:
  25. run findfdt ; setenv dtb $fdtfile
  26. load mmc 0:1 $loadaddr /boot/uEnv.txt.b
  27. env import -t $loadaddr $filesize
  28. load mmc 0:1 $loadaddr /boot/vmlinuz-$uname_r
  29. load mmc 0:1 $fdtaddr /boot/dtbs/$uname_r/$dtb || load mmc 1:1 $fdtaddr /boot/dtbs/$dtb
  30. setenv bootargs console=$console root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait $cmdline
  31. bootz $loadaddr - $fdtaddr
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement