From e8482349bffcbfa6b658de9048e21cc6253b9322 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 18 Jan 2019 20:56:43 -0800 Subject: [PATCH] add sdcard settings Signed-off-by: Jeff Carr --- boot-script/Makefile | 1 + boot-script/sdcard.cmd | 29 +++++++++++++++++++++++++++++ wifi/Makefile | 3 ++- 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 boot-script/sdcard.cmd diff --git a/boot-script/Makefile b/boot-script/Makefile index b11347d..8becb80 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 sdcard.cmd sdcard.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 diff --git a/boot-script/sdcard.cmd b/boot-script/sdcard.cmd new file mode 100644 index 0000000..70d1261 --- /dev/null +++ b/boot-script/sdcard.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=tty1 console=ttyS0,115200 3' + +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/wifi/Makefile b/wifi/Makefile index d980e79..8087073 100755 --- a/wifi/Makefile +++ b/wifi/Makefile @@ -30,8 +30,9 @@ background: wpa_supplicant -B -d -i wlan0 -c wpa-supplicant.conf dhclient: + -killall -9 dhclient dhclient wlan0 # ifconfig wlan0 192.168.151.100/24 # route add default gw 192.168.151.1 ifconfig - ping -c 10 1.1.1.1 + ping -c 4 1.1.1.1