Advertisement
Guest User

Untitled

a guest
Dec 9th, 2021
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.62 KB | None | 0 0
  1. # set defaults
  2. run findfdt ; setenv dtb $fdtfile
  3.  
  4. # load settings from /boot/uEnv.txt
  5. load mmc 1:1 $loadaddr /boot/uEnv.txt
  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 1:1 $loadaddr /boot/vmlinuz-$uname_r
  14.  
  15. # load DT (try two locations):
  16. load mmc 1: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/mmcblk1p1 ro rootfstype=ext4 rootwait $cmdline
  20.  
  21. # go!
  22. bootz $loadaddr - $fdtaddr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement