add NST wifi

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-01-24 22:38:00 -08:00
parent 47af1e4ac3
commit 90efdd3c99
6 changed files with 37 additions and 2 deletions

View File

@ -13,10 +13,13 @@ install-onto-sdcard:
mount /dev/sdb1 /mnt/sdcard/
dd if=/home/pinebook/u-boot-jcarr/u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1K seek=8
cd /mnt/sdcard/ && rsync -av --progress /home/pinebook/factory/jcarr-factory-sdcard/ .
cp -a rc.local /mnt/sdcard/etc/rc.local
cp -a rc.root.local /mnt/sdcard/root/rc.local
umount /mnt/sdcard
sync
mount /dev/sdb2 /mnt/sdcard-image/
rsync -av --progress /home/pinebook/factory/community-builds/Armbian_5.69_Pinebook-a64_Ubuntu_bionic_next_4.19.13_desktop.img /mnt/sdcard-image/emmc.img
# rsync -av --progress /home/pinebook/factory/community-builds/Armbian_5.69_Pinebook-a64_Ubuntu_bionic_next_4.19.13_desktop.img /mnt/sdcard-image/emmc.img
rsync -av --progress /home/pinebook/factory/mmcblk2-factory-jcarr-test1 /mnt/sdcard-image/emmc.img
umount /mnt/sdcard-image/
sync

View File

@ -59,6 +59,16 @@ case "$1" in
echo uboot did not successfully compile
fi
;;
fetch)
git fetch --all
;;
flatten)
git fetch --all
git checkout work
git merge trini/master
git push
git diff trini/master...work >/tmp/flatten.diff
;;
remotes)
git remote -v
;;
@ -79,7 +89,13 @@ case "$1" in
*)
echo
echo 'general git stuff:'
echo 'uboot remotes -- shows the different git remotes'
echo 'uboot branches -- shows the git repos and branches'
echo 'uboot fetch -- update all the remote brances'
echo 'uboot flatten -- flattens jcarr/work against trini/master into jcarr/flatten'
echo ''
echo 'uboot stuff:'
echo 'uboot deps -- install all the build dependancies'
echo 'uboot cross -- set up the x86 cross compiler needed env. lame.'
echo 'uboot clean -- purges more or less absolutely everything except .*'

View File

@ -5,7 +5,7 @@ _uboot()
local cur prev words cword
_init_completion || return
COMPREPLY=( $( compgen -W "remotes branches deps cross clean build flash" -- "$cur" ) )
COMPREPLY=( $( compgen -W "remotes branches deps cross clean build flash flatten" -- "$cur" ) )
} &&
complete -F _uboot uboot

View File

@ -3,6 +3,11 @@ all:
sleep 10
make dhclient
NST:
make killall ; make mac ; wpa_supplicant -d -i wlan0 -c NST.conf &
sleep 10
make dhclient
help:
@echo on boot run:
@echo make killall # to kill wpa_supplicant
@ -26,6 +31,9 @@ mac:
debugging:
wpa_supplicant -d -i wlan0 -c wpa-supplicant.conf
wit-phone:
wpa_supplicant -d -i wlan0 -c wit-phone.conf
background:
wpa_supplicant -B -d -i wlan0 -c wpa-supplicant.conf

4
wifi/NST.conf Normal file
View File

@ -0,0 +1,4 @@
network={
ssid="FYX_421C13"
psk="qq123456"
}

4
wifi/wit-phone.conf Normal file
View File

@ -0,0 +1,4 @@
network={
ssid="WIT Phone"
psk="basilarchia"
}