-
Notifications
You must be signed in to change notification settings - Fork 0
/
imagebuilder-make.txt
65 lines (40 loc) · 2.83 KB
/
imagebuilder-make.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
cd /hdd-storage/temp-downloads/openwrt-imagebuilder/
mkdir 2020-06-11
cd 2020-06-11
wget https://downloads.openwrt.org/snapshots/targets/bcm27xx/bcm2711/openwrt-imagebuilder-bcm27xx-bcm2711.Linux-x86_64.tar.xz
tar -xf openwrt-imagebuilder-bcm27xx-bcm2711.Linux-x86_64.tar.xz
cd openwrt-imagebuilder-bcm27xx-bcm2711.Linux-x86_64/
mkdir -p files/etc/config
scp [email protected]:/etc/config/system files/etc/config/
scp [email protected]:/etc/config/network files/etc/config/
scp [email protected]:/etc/config/dhcp files/etc/config/
scp [email protected]:/etc/config/wireless files/etc/config/
scp [email protected]:/etc/config/firewall files/etc/config/
scp [email protected]:/etc/config/nlbwmon files/etc/config/
scp [email protected]:/etc/config/openvpn_recipes files/etc/config
scp [email protected]:/etc/config/openvpn files/etc/config/
scp [email protected]:/etc/config/vpnbypass files/etc/config/
mkdir -p files/etc/openvpn
scp -r [email protected]:/etc/openvpn files/etc/openvpn/
mkdir -p files/etc/wireguard
scp [email protected]:/etc/wireguard files/etc/wireguard/
mkdir -p files/usr/share/nlbwmon
echo > files/usr/share/nlbwmon/protocols
mkdir -p files/root/nlbw
mkdir -p files/etc/dropbear
cat ~/.ssh/id_rsa.pub > files/etc/dropbear/authorized_keys
chmod go-w files/etc/dropbear/authorized_keys
ssh [email protected] 'nlbw -c commit'
scp -rp [email protected]:/root/nlbw/ files/root/
make image PROFILE=rpi-4 PACKAGES="kmod-usb-net-rtl8152 kmod-mt76 kmod-mt76x2u kmod-mt76x02-usb kmod-mt76x2 kmod-mt76-usb kmod-mt76x2-common kmod-mt76x2u luci usbutils wireless-tools pciutils luci-app-nlbwmon sqlite3-cli bcm27xx-userland openssl-util luci-app-openvpn openvpn-openssl luci-app-vpnbypass htop nut-server -cypress-firmware-43455-sdio -cypress-firmware-43455-sdio-rpi-4b -brcmfmac-firmware-usb -kmod-brcmfmac -kmod-brcmutil" FILES=files/
ssh [email protected] 'nlbw -c commit'
scp -rp [email protected]:/root/nlbw/ files/root/
make image PROFILE=rpi-4 PACKAGES="kmod-usb-net-rtl8152 kmod-mt76 kmod-mt76x2u kmod-mt76x02-usb kmod-mt76x2 kmod-mt76-usb kmod-mt76x2-common kmod-mt76x2u luci usbutils wireless-tools pciutils luci-app-nlbwmon sqlite3-cli bcm27xx-userland openssl-util luci-app-openvpn openvpn-openssl luci-app-vpnbypass htop nut-server -cypress-firmware-43455-sdio -cypress-firmware-43455-sdio-rpi-4b -brcmfmac-firmware-usb -kmod-brcmfmac -kmod-brcmutil" FILES=files/
ssh [email protected] 'halt'
$ ls -lh ./bin/targets/bcm27xx/bcm2711
$ gunzip ./bin/targets/bcm27xx/bcm2711/openwrt-bcm27xx-bcm2711-rpi-4-ext4-factory.img.gz
$ sudo dd status=progress if=./bin/targets/bcm27xx/bcm2711/openwrt-bcm27xx-bcm2711-rpi-4-ext4-factory.img of=/dev/sdX
ssh-keygen -f "/home/rjl/.ssh/known_hosts" -R "192.168.1.2"
-cypress-firmware-43455-sdio -cypress-firmware-43455-sdio-rpi-4b -brcmfmac-firmware-usb -kmod-brcmfmac -kmod-brcmutil
# ip link set dev wlan1 up
# iwlist wlan1 scan