From 5c8d52ccb94e35d104f619754fab4ed136c176e0 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 13 Jan 2019 21:04:05 -0800 Subject: [PATCH] sdcard script --- boot-script/Makefile | 1 + boot-script/debug.scr | Bin 144 -> 144 bytes boot-script/jcarr.scr | Bin 3058 -> 3058 bytes boot-script/sid.scr | Bin 3093 -> 3093 bytes boot-script/simple.scr | Bin 1073 -> 1073 bytes boot-script/simplesdcard.cmd | 29 +++++++++++++++++++++++++++++ boot-script/simplesdcard.scr | Bin 0 -> 1073 bytes 7 files changed, 30 insertions(+) create mode 100644 boot-script/simplesdcard.cmd create mode 100644 boot-script/simplesdcard.scr 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 9d0f75879de416c1176f440576c076271cdbc80d..daa4667ef191ed4a9fb77f6510c1c302782ad9c7 100644 GIT binary patch delta 20 bcmbQhIDwHzomDc-!KC+pjE(T!i99U;Irj#0 delta 20 bcmbQhIDwHzomDbyt?Xj%82#>Z6M0$yIJ5>w diff --git a/boot-script/jcarr.scr b/boot-script/jcarr.scr index c78d6bbc408dfee1f5641d473d77d5b1356d6086..66589ae8800b3a92a63ebb6c3ae7951f4ca299ae 100644 GIT binary patch delta 21 ccmew){z;riomDc-dPhZnjE(T!jXck|0aW`3>Hq)$ delta 21 dcmew){z;riomDdI+QhKx82#>Z8+o2_0{~jI2!sFt diff --git a/boot-script/sid.scr b/boot-script/sid.scr index a5d704e16143776a459f60520850faa49e81ce8e..c8ce042b81aa7bfbafce7a6ff07d9393a0a07ab3 100644 GIT binary patch delta 21 ccmbO#F;#*`omDcd?7@107#rcc8+kZ+07nZ3aR2}S delta 21 dcmbO#F;#*`omDby_Q}R4G5X!-Hu7-t002*%2Y~

Z8+lY&084uZ5&!@I 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 0000000000000000000000000000000000000000..fc2b174c7ca57d2f14e45688d7d07bf2a6b902d8 GIT binary patch literal 1073 zcmbVL&1%~~5H=0zLD!sm8?Zr_NU~ffkkAy|#D{>J1jm#f3Sljct;PEzc31wX>ASQK z)(7aZZ_ru)q;6_Ts4hF&neUr#W_H5ES0CQ$v#+1t9DT3V4t~})-^ZhG^TQV}x4-{5 z4}N%O9c)#i0n2465K69asPzPFW_am>pbmY^v@AI}XWSL%bR#ERvN1w*2}&zEJHU*D zXs|&+lyCUrOg@^#=;>U6>KK^w22>Fxb5I(};J{SM)8pK=g=RTOnL&DjkG8w}Jk z-=rjW!-NSj<4U1PDEN9?p6ZF?D0L=aeXsHWf{%#1CBzTX!~j?;uDG8B_$nL?(O z)dDY^TiiE~)AXd(Z0=sBVGwu*PW^vUO=J1AJ&om#;J-)Iy}63_Pv|+G)mVGfxH)i3 z4|e9?nc`|3!;N+Y8Nf!4R)B2leHOHV5a--F8v;`csSU_hMLj50~4Xn!Os=Oq;sEHH-+W5LITUr5XyBmKv73A literal 0 HcmV?d00001