mirror of https://github.com/OpenIPC/firmware.git
Zigwork 20220829 (#420)
parent
1f8647aa84
commit
efe71db48a
12
building.sh
12
building.sh
|
@ -122,7 +122,7 @@ rename() {
|
||||||
mv -v ./output/images/rootfs.cpio ./output/images/rootfs.${SOC}.cpio
|
mv -v ./output/images/rootfs.cpio ./output/images/rootfs.${SOC}.cpio
|
||||||
mv -v ./output/images/rootfs.tar ./output/images/rootfs.${SOC}.tar
|
mv -v ./output/images/rootfs.tar ./output/images/rootfs.${SOC}.tar
|
||||||
date >>/tmp/openipc_buildtime.txt
|
date >>/tmp/openipc_buildtime.txt
|
||||||
echo -e "\n\n$(cat /tmp/openipc_buildtime.txt)"
|
echo_c 31 "\n\n$(cat /tmp/openipc_buildtime.txt)\n\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
rename_initramfs() {
|
rename_initramfs() {
|
||||||
|
@ -131,25 +131,25 @@ rename_initramfs() {
|
||||||
mv -v ./output/images/rootfs.cpio ./output/images/rootfs.${SOC}.cpio
|
mv -v ./output/images/rootfs.cpio ./output/images/rootfs.${SOC}.cpio
|
||||||
mv -v ./output/images/rootfs.tar ./output/images/rootfs.${SOC}.tar
|
mv -v ./output/images/rootfs.tar ./output/images/rootfs.${SOC}.tar
|
||||||
date >>/tmp/openipc_buildtime.txt
|
date >>/tmp/openipc_buildtime.txt
|
||||||
echo -e "\n\n$(cat /tmp/openipc_buildtime.txt)"
|
echo_c 31 "\n\n$(cat /tmp/openipc_buildtime.txt)\n\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
autoup_rootfs() {
|
autoup_rootfs() {
|
||||||
echo_c 34 "Downloading u-boot-hi3518ev200-universal.bin"
|
echo_c 34 "\nDownloading u-boot-hi3518ev200-universal.bin"
|
||||||
curl --location --output ./output/images/u-boot-hi3518ev200-universal.bin \
|
curl --location --output ./output/images/u-boot-hi3518ev200-universal.bin \
|
||||||
https://github.com/OpenIPC/firmware/releases/download/latest/u-boot-hi3518ev200-universal.bin
|
https://github.com/OpenIPC/firmware/releases/download/latest/u-boot-hi3518ev200-universal.bin
|
||||||
|
|
||||||
echo_c 34 "Making autoupdate firmware image"
|
echo_c 34 "\nMaking autoupdate u-boot image"
|
||||||
./output/host/bin/mkimage -A arm -O linux -T firmware -n "$OPENIPC_VER" \
|
./output/host/bin/mkimage -A arm -O linux -T firmware -n "$OPENIPC_VER" \
|
||||||
-a 0x0 -e 0x50000 -d ./output/images/u-boot-hi3518ev200-universal.bin \
|
-a 0x0 -e 0x50000 -d ./output/images/u-boot-hi3518ev200-universal.bin \
|
||||||
./output/images/autoupdate-uboot.img
|
./output/images/autoupdate-uboot.img
|
||||||
|
|
||||||
echo_c 34 "Making autoupdate kernel image"
|
echo_c 34 "\nMaking autoupdate kernel image"
|
||||||
./output/host/bin/mkimage -A arm -O linux -T kernel -C none -n "$OPENIPC_VER" \
|
./output/host/bin/mkimage -A arm -O linux -T kernel -C none -n "$OPENIPC_VER" \
|
||||||
-a 0x50000 -e 0x250000 -d ./output/images/uImage.${SOC} \
|
-a 0x50000 -e 0x250000 -d ./output/images/uImage.${SOC} \
|
||||||
./output/images/autoupdate-kernel.img
|
./output/images/autoupdate-kernel.img
|
||||||
|
|
||||||
echo_c 34 "Making autoupdate rootfs image"
|
echo_c 34 "\nMaking autoupdate rootfs image"
|
||||||
./output/host/bin/mkimage -A arm -O linux -T filesystem -n "$OPENIPC_VER" \
|
./output/host/bin/mkimage -A arm -O linux -T filesystem -n "$OPENIPC_VER" \
|
||||||
-a 0x250000 -e 0x750000 -d ./output/images/rootfs.squashfs.${SOC} \
|
-a 0x250000 -e 0x750000 -d ./output/images/rootfs.squashfs.${SOC} \
|
||||||
./output/images/autoupdate-rootfs.img
|
./output/images/autoupdate-rootfs.img
|
||||||
|
|
|
@ -46,6 +46,16 @@ iface usb0 inet dhcp
|
||||||
post-down echo 1 > /sys/class/gpio/gpio9/value
|
post-down echo 1 > /sys/class/gpio/gpio9/value
|
||||||
post-down echo 9 > /sys/class/gpio/unexport
|
post-down echo 9 > /sys/class/gpio/unexport
|
||||||
|
|
||||||
|
manual ppp0
|
||||||
|
iface ppp0 inet manual
|
||||||
|
pre-up echo 61 > /sys/class/gpio/export
|
||||||
|
pre-up echo out > /sys/class/gpio/gpio61/direction
|
||||||
|
pre-up echo 0 > /sys/class/gpio/gpio61/value
|
||||||
|
pre-up (sleep 7; pon)
|
||||||
|
post-down poff
|
||||||
|
post-down echo 1 > /sys/class/gpio/gpio61/value
|
||||||
|
post-down echo 61 > /sys/class/gpio/unexport
|
||||||
|
|
||||||
manual wg0
|
manual wg0
|
||||||
iface wg0 inet static
|
iface wg0 inet static
|
||||||
address 192.168.99.1
|
address 192.168.99.1
|
||||||
|
|
Loading…
Reference in New Issue