diff --git a/OpenWrt/make_image_wl520gu_min_4mb.bash b/OpenWrt/make_image_wl520gu_min_4mb.bash index 119e097..f3286a5 100755 --- a/OpenWrt/make_image_wl520gu_min_4mb.bash +++ b/OpenWrt/make_image_wl520gu_min_4mb.bash @@ -1,8 +1,11 @@ #!/bin/bash -#sudo apt-get install subversion build-essential libncurses5-dev zlib1g-dev gawk git ccache gettext libssl-dev xsltproc +#sudo apt-get install subversion build-essential libncurses5-dev zlib1g-dev gawk git ccache gettext libssl-dev xsltproc +#17.01 +#sudo apt-get install zlib-devel-static -image_builder_url="https://downloads.openwrt.org/releases/19.07.7/targets/brcm47xx/legacy/openwrt-imagebuilder-19.07.7-brcm47xx-legacy.Linux-x86_64.tar.xz" +image_builder_url="https://downloads.openwrt.org/releases/17.01.7/targets/brcm47xx/legacy/lede-imagebuilder-17.01.7-brcm47xx-legacy.Linux-x86_64.tar.xz" +#"https://downloads.openwrt.org/releases/19.07.7/targets/brcm47xx/legacy/openwrt-imagebuilder-19.07.7-brcm47xx-legacy.Linux-x86_64.tar.xz" #"https://downloads.openwrt.org/releases/22.03.7/targets/bcm47xx/legacy/openwrt-imagebuilder-22.03.7-bcm47xx-legacy.Linux-x86_64.tar.xz" #"https://downloads.openwrt.org/releases/18.06.9/targets/brcm47xx/legacy/openwrt-imagebuilder-18.06.9-brcm47xx-legacy.Linux-x86_64.tar.xz" @@ -29,15 +32,19 @@ echo ${n2n_add} cp ${n2n_ipk} ${image_builder_dir}/packages/${n2n_ipk} +cp ${n2n_ipk} ${image_builder_dir}/package/${n2n_ipk} + cd ${image_builder_dir} #22.03.7 make image PROFILE=asus_wl-520gu PACKAGES="base-files busybox ca-bundle dnsmasq dropbear -firewall4 fstools kernel -kmod-b43 -kmod-gpio-button-hotplug -kmod-leds-gpio -kmod-nft-offload libc libgcc -libustream-wolfssl logd -mtd netifd -nftables nvram odhcp6c -odhcpd-ipv6only opkg otrx -ppp -ppp-mod-pppoe procd -procd-seccomp swconfig uci uclient-fetch urandom-seed -urngd -wpad-basic-wolfssl block-mount kmod-usb-storage kmod-fs-ext4 kmod-usb-ohci kmod-usb2 ${n2n_add}" -#18.06 19.07 -make image PROFILE=asus-wl-520gu PACKAGES="-lcui -ppp -ppp-mod-pppoe base-files busybox dnsmasq dropbear firewall fstools -ip6tables iptables kernel -kmod-b43 -kmod-gpio-button-hotplug -kmod-ipt-offload -kmod-leds-gpio -kmod-ledtrig-default-on -kmod-ledtrig-netdev -kmod-ledtrig-timer libc libgcc logd mtd netifd nvram odhcp6c -odhcpd-ipv6only opkg otrx swconfig uci uclient-fetch -wpad-mini block-mount kmod-usb-storage kmod-fs-ext4 kmod-usb-ohci kmod-usb2 ${n2n_add}" +#18.06 19.07 make image PROFILE=asus-wl-520gu PACKAGES="-lcui -ppp -ppp-mod-pppoe base-files busybox dnsmasq dropbear firewall fstools -ip6tables iptables kernel -kmod-b43 -kmod-gpio-button-hotplug -kmod-ipt-offload -kmod-leds-gpio -kmod-ledtrig-default-on -kmod-ledtrig-netdev -kmod-ledtrig-timer libc libgcc logd mtd netifd nvram odhcp6c -odhcpd-ipv6only opkg otrx swconfig uci uclient-fetch -wpad-mini block-mount kmod-usb-storage kmod-fs-ext4 kmod-usb-ohci kmod-usb2 ${n2n_add}" + +#17.01 +make image V=s PROFILE=asus-wl-520gu PACKAGES="base-files libc libgcc busybox dropbear mtd uci opkg netifd fstools uclient-fetch logd swconfig -wpad-mini nvram otrx -kmod-leds-gpio -kmod-gpio-button-hotplug -kmod-ledtrig-default-on -kmod-ledtrig-timer -kmod-ledtrig-netdev dnsmasq iptables ip6tables ppp ppp-mod-pppoe firewall odhcpd -odhcp6c block-mount kmod-usb-storage kmod-fs-ext4 kmod-usb-ohci kmod-usb2 ${n2n_add}" # FILES=files/ -make info +make V=s info find . -name "*.trx" find . -name "root.squashfs" diff --git a/OpenWrt/n2n_for_openwrt_routers.bash b/OpenWrt/n2n_for_openwrt_routers.bash index 1709795..02cbeb7 100755 --- a/OpenWrt/n2n_for_openwrt_routers.bash +++ b/OpenWrt/n2n_for_openwrt_routers.bash @@ -10,8 +10,10 @@ # wl520gu url="https://downloads.openwrt.org/releases/19.07.6/targets/brcm47xx/legacy/openwrt-sdk-19.07.6-brcm47xx-legacy_gcc-7.5.0_musl.Linux-x86_64.tar.xz" # Fix gcc version include/prereq-build.mk: grep -E '^(4\.[8-9]|[5-9]\.?|13\.?)' -# dir 620 c1 (asus_rt-n15u) -url="https://downloads.openwrt.org/releases/23.05.5/targets/bcm47xx/mips74k/openwrt-sdk-23.05.5-bcm47xx-mips74k_gcc-12.3.0_musl.Linux-x86_64.tar.xz" +# dir 620 c1 (asus_rt-n15u) url="https://downloads.openwrt.org/releases/23.05.5/targets/bcm47xx/mips74k/openwrt-sdk-23.05.5-bcm47xx-mips74k_gcc-12.3.0_musl.Linux-x86_64.tar.xz" + +# wl520gu 17.01.7 +url="https://archive.openwrt.org/releases/17.01.7/targets/brcm47xx/legacy/lede-sdk-17.01.7-brcm47xx-legacy_gcc-5.4.0_musl-1.1.16.Linux-x86_64.tar.xz" file_name="${url##*/}" base="${file_name%.[^.]*.[^.]*}" diff --git a/OpenWrt/upload_asus_wl-500gp-v2.bash b/OpenWrt/upload_asus_wl-500gp-v2.bash index f51fd9c..f2aab53 100755 --- a/OpenWrt/upload_asus_wl-500gp-v2.bash +++ b/OpenWrt/upload_asus_wl-500gp-v2.bash @@ -1,8 +1,12 @@ #!/bin/bash -[ -f ./openwrt-22.03.7-bcm47xx-legacy-asus_wl-500gp-v2-squashfs.trx ] || wget https://downloads.openwrt.org/releases/22.03.7/targets/bcm47xx/legacy/openwrt-22.03.7-bcm47xx-legacy-asus_wl-500gp-v2-squashfs.trx +url="https://downloads.openwrt.org/releases/22.03.7/targets/bcm47xx/legacy/openwrt-22.03.7-bcm47xx-legacy-asus_wl-500gp-v2-squashfs.trx" -atftp --trace --option "timeout 1000" --option "mode octet" --put --local-file openwrt-22.03.7-bcm47xx-legacy-asus_wl-500gp-v2-squashfs.trx 192.168.1.1 +file_name="${url##*/}" + +[ -f ./${file_name} ] || wget "${url}" + +atftp --trace --option "timeout 10" --option "mode octet" --put --local-file "${file_name}" 192.168.1.1 # On router by: ssh root@192.168.1.1 # opkg install block-mount kmod-usb-storage kmod-usb-ohci kmod-fs-ext4 kmod-usb2 diff --git a/OpenWrt/upload_asus_wl520gu.bash b/OpenWrt/upload_asus_wl520gu.bash index abb12bf..4238dc1 100755 --- a/OpenWrt/upload_asus_wl520gu.bash +++ b/OpenWrt/upload_asus_wl520gu.bash @@ -1,8 +1,10 @@ #!/bin/bash -[ -f ./openwrt-brcm47xx-squashfs.trx ] || wget http://downloads.openwrt.org/backfire/10.03/brcm47xx/openwrt-brcm47xx-squashfs.trx +url="http://downloads.openwrt.org/backfire/10.03/brcm47xx/openwrt-brcm47xx-squashfs.trx" -atftp --trace --option "timeout 1" --option "mode octet" --put --local-file openwrt-brcm47xx-squashfs.trx 192.168.1.1 +file_name="${url##*/}" -# Не удалость запустить openwrt-brcm47xx-squashfs_asus_wl520gu.trx +[ -f ./${file_name} ] || wget "${url}" + +atftp --trace --option "timeout 10" --option "mode octet" --put --local-file "${file_name}" 192.168.1.1