Browse Source

make image 520gu

master
parent
commit
93a3b5c5af
  1. 30
      OpenWrt/make_image_wl520gu.bash
  2. 8
      OpenWrt/upload_asus_wl-500gp-v2.bash

30
OpenWrt/make_image_wl520gu.bash

@ -0,0 +1,30 @@
#!/bin/bash
#sudo apt-get install subversion build-essential libncurses5-dev zlib1g-dev gawk git ccache gettext libssl-dev xsltproc
image_builder_url="https://downloads.openwrt.org/releases/22.03.7/targets/bcm47xx/legacy/openwrt-imagebuilder-22.03.7-bcm47xx-legacy.Linux-x86_64.tar.xz"
file_name="${image_builder_url##*/}"
base="${file_name%.[^.]*.[^.]*}"
ext="${file_name:${#base} + 1}"
image_builder_file=${file_name}
image_builder_dir=${base}
echo ${file_name} ${base} ${ext}
[ -f ./${image_builder_file} ] || wget ${image_builder_url}
[ -d ./${image_builder_dir} ] || tar -xf ${image_builder_file}
cd ${image_builder_dir}
#make image PROFILE= PACKAGES="-lcui" FILES=files/
make image
make info
find . -name "*.trx"
find . -name "root.squashfs"
find . -name "*kernel.bin"

8
OpenWrt/upload_asus_wl-500gp-v2.bash

@ -6,3 +6,11 @@ atftp --trace --option "timeout 1000" --option "mode octet" --put --local-file o
# On router by: ssh root@192.168.1.1
# opkg install block-mount kmod-usb-storage kmod-usb-ohci kmod-fs-ext4 kmod-usb2
# opkg install mc
# opkg install hd-idle
# /etc/config/hd-idle:
# config 'hd-idle'
# option 'disk' 'sda'
# option 'enabled' '1'
# option 'idle_time_unit' 'minutes'
# option 'idle_time_interval' '10'

Loading…
Cancel
Save