From 11783693ce9f1d12ed3d8f6a33bc4a67f0387535 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 20 Jan 2019 03:20:29 -0800 Subject: [PATCH] fix the flash scripts for real this time Signed-off-by: Jeff Carr --- reflash-uboot-to-emmc.sh | 2 +- reflash-uboot-to-sdcard.sh | 4 ++++ reflash-uboot.sh | 4 ---- wifi/Makefile | 10 +++++----- 4 files changed, 10 insertions(+), 10 deletions(-) create mode 100755 reflash-uboot-to-sdcard.sh delete mode 100755 reflash-uboot.sh diff --git a/reflash-uboot-to-emmc.sh b/reflash-uboot-to-emmc.sh index 72cc762..2dfa2ec 100755 --- a/reflash-uboot-to-emmc.sh +++ b/reflash-uboot-to-emmc.sh @@ -1,4 +1,4 @@ #!/bin/bash -x -dd if=/boot/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1K seek=8 +dd if=/boot/u-boot-sunxi-with-spl.bin of=/dev/mmcblk2 bs=1K seek=8 sync diff --git a/reflash-uboot-to-sdcard.sh b/reflash-uboot-to-sdcard.sh new file mode 100755 index 0000000..72cc762 --- /dev/null +++ b/reflash-uboot-to-sdcard.sh @@ -0,0 +1,4 @@ +#!/bin/bash -x + +dd if=/boot/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1K seek=8 +sync diff --git a/reflash-uboot.sh b/reflash-uboot.sh deleted file mode 100755 index 2dfa2ec..0000000 --- a/reflash-uboot.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -x - -dd if=/boot/u-boot-sunxi-with-spl.bin of=/dev/mmcblk2 bs=1K seek=8 -sync diff --git a/wifi/Makefile b/wifi/Makefile index 8087073..fc31b0f 100755 --- a/wifi/Makefile +++ b/wifi/Makefile @@ -1,4 +1,9 @@ all: + make killall ; make mac ; make debugging & + sleep 10 + make dhclient + +help: @echo on boot run: @echo make killall # to kill wpa_supplicant @echo make mac # to set the hw addr @@ -6,11 +11,6 @@ all: @echo then background that and run @echo make dhclient -doall: - make killall ; make mac ; make debugging & - sleep 10 - make dhclient - # wpa_supplicant -B -i wlan0 -c wpa-supplicant.conf -D wext killall: