diff --git a/boot-script/Makefile b/boot-script/Makefile index 41b5d6a..a95baee 100644 --- a/boot-script/Makefile +++ b/boot-script/Makefile @@ -1,5 +1,7 @@ # Recompile with: all: - mkimage -C none -A arm -T script -d sid.cmd sid.scr mkimage -C none -A arm -T script -d simple.cmd simple.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 mkimage -C none -A arm -T script -d jcarr.cmd jcarr.scr diff --git a/boot-script/debug.cmd b/boot-script/debug.cmd new file mode 100644 index 0000000..74672a5 --- /dev/null +++ b/boot-script/debug.cmd @@ -0,0 +1,6 @@ +# super simple pinebook script + +ext4ls mmc 1:1 /boot + +mmc info +usb tree diff --git a/boot-script/debug.scr b/boot-script/debug.scr new file mode 100644 index 0000000..9d0f758 Binary files /dev/null and b/boot-script/debug.scr differ diff --git a/boot-script/jcarr.scr b/boot-script/jcarr.scr index d21332e..c78d6bb 100644 Binary files a/boot-script/jcarr.scr and b/boot-script/jcarr.scr differ diff --git a/load-kernel-and-initrd.cmd b/boot-script/load-kernel-and-initrd.cmd similarity index 100% rename from load-kernel-and-initrd.cmd rename to boot-script/load-kernel-and-initrd.cmd diff --git a/boot-script/sid.scr b/boot-script/sid.scr index 034c4f0..a5d704e 100644 Binary files a/boot-script/sid.scr and b/boot-script/sid.scr differ diff --git a/boot-script/simple.cmd b/boot-script/simple.cmd index 8de6b98..6b3ea7a 100644 --- a/boot-script/simple.cmd +++ b/boot-script/simple.cmd @@ -1,18 +1,29 @@ # super simple pinebook script -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 - -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} - # 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/mmcblk2p1 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/simple.scr b/boot-script/simple.scr index a5a1750..5437a0d 100644 Binary files a/boot-script/simple.scr and b/boot-script/simple.scr differ diff --git a/u-boot-patches/U-Boot-v12-1-3-Consolidating-UDP-header-functions..patch b/u-boot/wget/U-Boot-v12-1-3-Consolidating-UDP-header-functions..patch similarity index 100% rename from u-boot-patches/U-Boot-v12-1-3-Consolidating-UDP-header-functions..patch rename to u-boot/wget/U-Boot-v12-1-3-Consolidating-UDP-header-functions..patch diff --git a/u-boot-patches/U-Boot-v12-2-3-Add-TCP.diff b/u-boot/wget/U-Boot-v12-2-3-Add-TCP.diff similarity index 100% rename from u-boot-patches/U-Boot-v12-2-3-Add-TCP.diff rename to u-boot/wget/U-Boot-v12-2-3-Add-TCP.diff diff --git a/u-boot-patches/U-Boot-v12-3-3-Add-wget-application.diff b/u-boot/wget/U-Boot-v12-3-3-Add-wget-application.diff similarity index 100% rename from u-boot-patches/U-Boot-v12-3-3-Add-wget-application.diff rename to u-boot/wget/U-Boot-v12-3-3-Add-wget-application.diff