-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update build script, add wifi firmware, add scripts for target
- Loading branch information
1 parent
baecaae
commit b2f944a
Showing
7 changed files
with
190 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
function mnt() { | ||
echo "MOUNTING" | ||
sudo mount -t proc /proc ${2}/proc | ||
sudo mount -t sysfs /sys ${2}/sys | ||
sudo mount -o bind /dev ${2}/dev | ||
sudo chroot ${2} | ||
|
||
} | ||
function umnt() { | ||
echo "UNMOUNTING" | ||
sudo umount ${2}/proc | ||
sudo umount ${2}/sys | ||
sudo umount ${2}/dev | ||
} | ||
if [ "$1" == "-m" ] && [ -n "$2" ]; | ||
then | ||
mnt $1 $2 | ||
elif [ "$1" == "-u" ] && [ -n "$2" ]; | ||
then | ||
umnt $1 $2 | ||
else | ||
echo "" | ||
echo "Either 1'st, 2'nd or both parameters were missing" | ||
echo "" | ||
echo "1'st parameter can be one of these: -m(mount) OR -u(umount)" | ||
echo "2'nd parameter is the full path of rootfs directory(with trailing '/')" | ||
echo "" | ||
echo "For example: ch-mount -m /media/sdcard/" | ||
echo "" | ||
echo 1st parameter : ${1} | ||
echo 2nd parameter : ${2} | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#! /bin/bash | ||
|
||
sudo apt update | ||
sudo apt install rfkill -y | ||
sudo rfkill list all | ||
sudo rfkill unblock all | ||
sudo ifconfig wlan0 up | ||
ifconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#! /bin/bash | ||
|
||
sudo growpart /dev/mmcblk0 4 | ||
sudo resize2fs /dev/mmcblk0p4 | ||
df -h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# NVRAM file for BCM943430WLSELG | ||
# 2.4 GHz, 20 MHz BW mode | ||
|
||
# The following parameter values are just placeholders, need to be updated. | ||
manfid=0x2d0 | ||
prodid=0x0726 | ||
vendid=0x14e4 | ||
devid=0x43e2 | ||
boardtype=0x0726 | ||
boardrev=0x1202 | ||
boardnum=22 | ||
macaddr=00:90:4c:c5:12:38 | ||
sromrev=11 | ||
boardflags=0x00404201 | ||
boardflags3=0x08000000 | ||
xtalfreq=37400 | ||
#xtalfreq=19200 | ||
nocrc=1 | ||
ag0=255 | ||
aa2g=1 | ||
ccode=ALL | ||
|
||
pa0itssit=0x20 | ||
extpagain2g=0 | ||
|
||
#PA parameters for 2.4GHz, measured at CHIP OUTPUT | ||
pa2ga0=-168,7161,-820 | ||
AvVmid_c0=0x0,0xc8 | ||
cckpwroffset0=5 | ||
|
||
# PPR params | ||
maxp2ga0=84 | ||
txpwrbckof=6 | ||
cckbw202gpo=0 | ||
legofdmbw202gpo=0x66111111 | ||
mcsbw202gpo=0x77711111 | ||
propbw202gpo=0xdd | ||
|
||
# OFDM IIR : | ||
ofdmdigfilttype=18 | ||
ofdmdigfilttypebe=18 | ||
# PAPD mode: | ||
papdmode=1 | ||
papdvalidtest=1 | ||
pacalidx2g=32 | ||
papdepsoffset=-36 | ||
papdendidx=61 | ||
|
||
il0macaddr=00:90:4c:c5:12:38 | ||
wl0id=0x431b | ||
|
||
deadman_to=0xffffffff | ||
# muxenab: 0x1 for UART enable, 0x2 for GPIOs, 0x8 for JTAG | ||
muxenab=0x1 | ||
# CLDO PWM voltage settings - 0x4 - 1.1 volt | ||
#cldo_pwm=0x4 | ||
|
||
#VCO freq 326.4MHz | ||
spurconfig=0x3 |
Binary file not shown.
Binary file not shown.