working very simple uboot scripts

This commit is contained in:
Jeff Carr 2019-01-01 07:50:40 -08:00
parent f8451dacd7
commit 169a308831
4 changed files with 7 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -3,11 +3,16 @@
ext4load mmc 1:1 ${ramdisk_addr_r} /boot/uInitrd-4.19.2-sunxi64 ext4load mmc 1:1 ${ramdisk_addr_r} /boot/uInitrd-4.19.2-sunxi64
ext4load mmc 1:1 ${kernel_addr_r} /boot/vmlinuz-4.19.2-sunxi64 ext4load mmc 1:1 ${kernel_addr_r} /boot/vmlinuz-4.19.2-sunxi64
setenv bootargs 'root=/dev/mmcblk2p1 console=ttyS0,115200 console=tty1'
# from the armbian group:
# setenv bootargs 'root=/dev/mmcblk2p1 rootwait rootfstype=ext4 console=ttyS0,115200 console=tty1 panic=10 consoleblank=0 loglevel=1 ubootpart=6526ddf3-01 usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u cgroup_enable=memory swapaccount=1 3'
booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r} booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
# Recompile with: # Recompile with:
# mkimage -C none -A arm -T script -d simple.cmd simple.scr # mkimage -C none -A arm -T script -d simple.cmd simple.scr
# then, at the u-boot prompt run: # then, at the u-boot prompt run:
ext4load mmc 1:1 ${scriptaddr} /root/pinebook/boot-script/simple.scr # ext4load mmc 1:1 ${scriptaddr} /root/pinebook/boot-script/simple.scr
source ${scriptaddr} # source ${scriptaddr}

Binary file not shown.