diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2ba21c0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +boot-script/*.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 deleted file mode 100644 index 9d0f758..0000000 Binary files a/boot-script/debug.scr and /dev/null differ diff --git a/boot-script/jcarr.scr b/boot-script/jcarr.scr deleted file mode 100644 index c78d6bb..0000000 Binary files a/boot-script/jcarr.scr and /dev/null differ diff --git a/boot-script/sid.scr b/boot-script/sid.scr deleted file mode 100644 index a5d704e..0000000 Binary files a/boot-script/sid.scr and /dev/null differ diff --git a/boot-script/simple.scr b/boot-script/simplesdcard.cmd similarity index 60% rename from boot-script/simple.scr rename to boot-script/simplesdcard.cmd index 5437a0d..fc4d575 100644 Binary files a/boot-script/simple.scr and b/boot-script/simplesdcard.cmd differ diff --git a/reflash-uboot.sh b/reflash-uboot.sh index 095223e..72cc762 100755 --- a/reflash-uboot.sh +++ b/reflash-uboot.sh @@ -1,3 +1,4 @@ #!/bin/bash -x -dd if=u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1K seek=8 +dd if=/boot/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1K seek=8 +sync diff --git a/u-boot/Makefile b/u-boot/Makefile index 8f1830d..a4544ce 100644 --- a/u-boot/Makefile +++ b/u-boot/Makefile @@ -49,7 +49,7 @@ toms-recent-commits: git log --pretty=format:"%ad:%an:%d:%B" --date=short --reverse --all --since=2.months.ago --author=trini # builds and runs on Jan 1 2019 -build-pinebook +build-pinebook: export CROSS_COMPILE=/home/pinebook/cross-compilers/gcc-linaro/bin/aarch64-linux-gnu- git checkout anarsoul/pinebook-wip-20181109 make pinebook_defconfig @@ -191,3 +191,11 @@ brom64: mmc part fatwrite mmc 0 0 brom_a64.bin 0x10000 aarch64-linux-gnu-objdump -D -b binary -marm brom_a64.bin + +install-internal-emmc: + parted /dev/mmcblk2 mklabel msdos + parted /dev/mmcblk2 mkpart primary ext4 1MiB 15.5GB + mkfs.ext4 /dev/mmcblk2p1 + mount /dev/mmcblk2p1 /mnt/test/ + cd /mnt/test ; tar xfj /root/mmcblk2p1.tar.bz2 + dd if=/boot/u-boot-sunxi-with-spl.bin of=/dev/mmcblk2 bs=1K seek=8