맛집 여행 캠핑 일상 생활

[OpenWrt] ipTIME A1004ns OpenWrt 설치 및 복원 본문

OpenWrt

[OpenWrt] ipTIME A1004ns OpenWrt 설치 및 복원

영은파더♥ 2024. 8. 30. 10:52

예전에 사용하다가 굴러댕기는 공유기 ipTIME A1004ns 무선공유기가 있어서 OpenWrt 를 설치해보았습니다.

https://openwrt.org/toh/hwdata/iptime/iptime_a1004ns

링크된 사이트에서 해당 모델의 https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt7620/openwrt-23.05.4-ramips-mt7620-iptime_a1004ns-initramfs-kernel.bin
OpenWrt Firmware 를 다운로드합니다.

iptime 관리자 화면에서 펌웨어 업그레이드 메뉴로 가서 "수동 업그레이드 실행"을 클릭하고 위에서 다운로드 받은 파일로 수동 업그레이드를 합니다.

펌웨어 업그레이드가 끝나면 ssh 로 192.168.1.1 아이피로 접속을 합니다.

ipTIME A1004ns OpenWrt

putty 로 접속한 화면입니다. BusyBox v1.36.1 이 눈에 띄네요~

계정은 root 이고 default 비밀번호는 없습니다.
보안을 위해서 passwd 명령어로 비번을 설정합니다.

root@OpenWrt:~# opkg update

root@OpenWrt:~# cat /proc/cpuinfo
system type             : MediaTek MT7620A ver:2 eco:6
machine                 : ipTIME A1004ns
processor               : 0
cpu model               : MIPS 24KEc V5.0
BogoMIPS                : 385.84
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16 dsp
Options implemented     : tlb 4kex 4k_cache prefetch mcheck ejtag llsc pindexed_dcache userlocal vint perf_cntr_intr_bit perf mm_full
shadow register sets    : 1
kscratch registers      : 0
package                 : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

root@OpenWrt:~# opkg install squid
root@OpenWrt:~# opkg install psmisc
root@OpenWrt:~# pstree
procd-+-askfirst
      |-dnsmasq---dnsmasq
      |-dropbear---dropbear---ash---pstree
      |-hostapd---hostapd
      |-logd
      |-netifd-+-odhcp6c
      |        `-udhcpc
      |-ntpd---ntpd
      |-odhcpd
      |-rpcd
      |-squid
      |-ubusd
      |-uhttpd
      |-urngd
      `-wpa_supplicant---wpa_supplicant

iptime이 VPN 서버는 지원하는데 Proxy 기능이 없어서 Squid 를 설치해봤습니다.

이제 웹브라우져 GUI 화면을 살펴봅니다.

위에서 변경한 root 비밀번호로 접속합니다.

로그인하면 보이는 화면입니다.

Timezone을 Asia/Seoul 한국 시간으로 변경하고 저장합니다.

OpenWrt 를 설치하면 유선으로만 접속되는데 무선 Wireless AP 설정은 따로 해주어야 하는데 아쉽게도 2.4GHz 만 보이네요~
5G가 없어서 속도가 느리겠지만 아수운데로 사용하여야겠습니다.

자 이제 ipTIME 펌웨어로 복구를 해봅니다.

OpenWrt 메뉴 상단에 보이는 "Go to firmware upgrade" 를 실행합니다.
그리고 하단의 Flash new firmware Image 에서 iptime 펌웨어로 복원을 하시면 됩니다.
https://download.iptime.co.kr/online_upgrade/a1004ns_ml_12_162.bin

Force upgrade 를 체크하고 Continue 를 누르면 됩니다.

위 화면에서 한참을 기다렸다가 공유기의 LED 를 지켜봅니다.

아니면 컴퓨터가 네트워크가 연결되었는지 확인을 하고 연결이 완료된 다음에 공유기 관리자 화면으로 들어갑니다.

복구를 해보니 예전에 설정한 값 그대로 남아있네요~


root@OpenWrt:~# wget -O sysupgrade.bin https://downloads.openwrt.org/releases/23
.05.4/targets/ramips/mt7620/openwrt-23.05.4-ramips-mt7620-iptime_a1004ns-squashf
s-sysupgrade.bin
Downloading 'https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt7620/openwrt-23.05.4-ramips-mt7620-iptime_a1004ns-squashfs-sysupgrade.bin'
Connecting to 146.75.50.132:443
Writing to 'sysupgrade.bin'
sysupgrade.bin       100% |*******************************|  5952k  0:00:00 ETA
Download completed (6095151 bytes)
root@OpenWrt:~# ll
drwxr-xr-x    2 root     root            60 Aug 30 12:27 ./
drwxrwxrwt   16 root     root           360 Jan  1  1970 ../
-rw-r--r--    1 root     root       6095151 Aug 30 12:27 sysupgrade.bin
root@OpenWrt:~# sysupgrade -v ./sysupgrade.bin
Fri Aug 30 12:27:56 KST 2024 upgrade: Image not in /tmp, copying...
Cannot save config while running from ramdisk.
Fri Aug 30 12:27:57 KST 2024 upgrade: Commencing upgrade. Closing all shell sessions.
Command failed: Connection failed

sysupgrade 하다가 벽돌이 되서 iptime 펌웨어 복구 도우미로도 복구가 안되고 tftp 로도 복구가 안되서 식겁했네요~

공유기에 연결된 네트워크 아이피를 수동으로 192.168.1.2 로 잡고 ping 192.168.1.1 하니 핑이 되서 바로 웹브라우저 관리자 페이지로 들어가서 아이피타임 펌웨어로 다시 복구했네요~

/tmp 디렉토리에 받아서 해야했나보네요~ 트라우마가 생겨서 다시 못할듯~

 

Trackback : | Comments :