Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # set defaults
- run findfdt ; setenv dtb $fdtfile
- # load settings from /boot/uEnv.txt.b for backup
- load mmc 0:1 $loadaddr /boot/uEnv.txt.b
- env import -t $loadaddr $filesize
- # this is the right time to customize if needed, e.g. to
- # reset the dtb to its default:
- #setenv dtb $fdtfile
- # load kernel
- load mmc 0:1 $loadaddr /boot/vmlinuz-$uname_r
- # load DT (try two locations):
- load mmc 0:1 $fdtaddr /boot/dtbs/$uname_r/$dtb || load mmc 1:1 $fdtaddr /boot/dtbs/$dtb
- # NOTE: not bothering with initramfs
- setenv bootargs console=$console root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait $cmdline
- # go!
- bootz $loadaddr - $fdtaddr
- #all together now:
- run findfdt ; setenv dtb $fdtfile
- load mmc 0:1 $loadaddr /boot/uEnv.txt.b
- env import -t $loadaddr $filesize
- load mmc 0:1 $loadaddr /boot/vmlinuz-$uname_r
- load mmc 0:1 $fdtaddr /boot/dtbs/$uname_r/$dtb || load mmc 1:1 $fdtaddr /boot/dtbs/$dtb
- setenv bootargs console=$console root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait $cmdline
- bootz $loadaddr - $fdtaddr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement