diff --git a/boot-script/Makefile b/boot-script/Makefile index a95baee..b11347d 100644 --- a/boot-script/Makefile +++ b/boot-script/Makefile @@ -1,6 +1,7 @@ # Recompile with: all: mkimage -C none -A arm -T script -d simple.cmd simple.scr + mkimage -C none -A arm -T script -d simplesdcard.cmd simplesdcard.scr mkimage -C none -A arm -T script -d debug.cmd debug.scr mkimage -C none -A arm -T script -d sid.cmd sid.scr diff --git a/boot-script/debug.scr b/boot-script/debug.scr index 9d0f758..daa4667 100644 Binary files a/boot-script/debug.scr and b/boot-script/debug.scr differ diff --git a/boot-script/jcarr.scr b/boot-script/jcarr.scr index c78d6bb..66589ae 100644 Binary files a/boot-script/jcarr.scr and b/boot-script/jcarr.scr differ diff --git a/boot-script/sid.scr b/boot-script/sid.scr index a5d704e..c8ce042 100644 Binary files a/boot-script/sid.scr and b/boot-script/sid.scr differ diff --git a/boot-script/simple.scr b/boot-script/simple.scr index 5437a0d..2a912fd 100644 Binary files a/boot-script/simple.scr and b/boot-script/simple.scr differ diff --git a/boot-script/simplesdcard.cmd b/boot-script/simplesdcard.cmd new file mode 100644 index 0000000..53ac844 --- /dev/null +++ b/boot-script/simplesdcard.cmd @@ -0,0 +1,29 @@ +# super simple pinebook script + +# Recompile with: +# mkimage -C none -A arm -T script -d simple.cmd simple.scr + +# then, at the u-boot prompt run: +# ext4load mmc 1:1 ${scriptaddr} /root/pinebook/boot-script/simple.scr +# source ${scriptaddr} + +### BOOT SCRIPT START #### +### BOOT SCRIPT START #### +### BOOT SCRIPT START #### + +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 ${fdt_addr_r} /boot/dtb/allwinner/sun50i-a64-pinebook.dtb + +setenv bootargs 'root=/dev/mmcblk0p1 console=ttyS0,115200 console=tty1' + +booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r} + +### BOOT SCRIPT END. #### +### BOOT SCRIPT END. #### +### BOOT SCRIPT END. #### + +### Linux is now running. Nothing after this runs or 'exists' anymore. +### Linux runs in the ARM architecture 'EL2' and 'EL1' level +### ARM Power management is handled in the higher security level EL3 +### The only things left behind by u-boot are running in EL3 diff --git a/boot-script/simplesdcard.scr b/boot-script/simplesdcard.scr new file mode 100644 index 0000000..fc2b174 Binary files /dev/null and b/boot-script/simplesdcard.scr differ