作者: big_nature 時間: 2019-12-27 13:13 標題: Routerr想制openWRT請教
本帖最後由 big_nature 於 2019-12-27 23:33 編輯
家人入左隻Netgear R6220,
想同佢制入openWRT,
見到openWRT網站有幾個檔,
(見下圖)
如果由netgear介面直升openWRT,
是否用第2個檔 factory.img便可?
另:
第3及第4檔是否用作全新制入用?
本人新手,請指教。
[attach]2167550[/attach]
作者: platinum 時間: 2019-12-27 16:42
本帖最後由 platinum 於 2019-12-27 16:43 編輯
據呢頁介紹, 要用telnet/tftp!
https://openwrt.org/toh/netgear/netgear_r6220
有d router 就係咁, 原裝firmware 會check signature
作者: big_nature 時間: 2019-12-27 17:08
本帖最後由 big_nature 於 2019-12-27 19:59 編輯
回覆 2# platinum
用telnet我都大致識搞,
要裝rootfs.bin and kernel.bin尼兩個檔,
如果用factory.img尼個檔直上,
就最方便。
作者: platinum 時間: 2019-12-27 17:16
本帖最後由 platinum 於 2019-12-27 17:17 編輯
回覆 platinum
用telnet我都大致識搞,
要裝rootfs.bin andkernel.bin尼兩個檔,
如果用factory.img可由 ...
big_nature 發表於 2019-12-27 17:08
你可以先試下 可能wiki未update 磚左就用以上方法救
之前我部 tplink c6 無得factory 直上, 用tftp 方法裝openwrt
後來已有OEM直上
作者: big_nature 時間: 2019-12-27 17:20
回覆 4# platinum
唔該晒師兄,
救磚就大件事,真係唔識點搞!
作者: big_nature 時間: 2019-12-27 17:25
請教下師兄,
照睇圖1,
第2個檔是否可直接up去openwrt?
(當然會有變磚風險)
作者: tol4kzk 時間: 2019-12-27 17:41
本帖最後由 tol4kzk 於 2019-12-27 17:42 編輯
Openwrt官網咪有教點刷囉
https://openwrt.org/toh/netgear/netgear_r6220#installation

作者: big_nature 時間: 2019-12-27 19:05
本帖最後由 big_nature 於 2019-12-27 19:13 編輯
請問紅色2行,
作用係點?
新手唔明白。
[attach]2167619[/attach]
作者: platinum 時間: 2019-12-27 21:43
本帖最後由 platinum 於 2019-12-27 21:48 編輯
呢d我通常照跟就算
應該係看看系統資訊, 然後寫入一個file
可能用來記錄, 或者除錯. 有錯請指正
作者: big_nature 時間: 2019-12-27 22:59
本帖最後由 big_nature 於 2019-12-27 23:36 編輯
回覆 9# platinum
我參考過網上資料:
在表上第3項之後,應要做開啟telnet動作。
turn windows feature on or off
然後剔選Telnet client
再跟住:
Win key+R 輸入CMD
然後輸入telnet>>microsoft telnet>>go 192.168.1.1>>要求輸入login and password(即第4項)
正確完成後會出現 #
然後接續流程第5項
新手學習制機一知半解,
請各位師兄幫忙。講解下正確流程。
作者: platinum 時間: 2019-12-27 23:59
回覆 platinum
我參考過網上資料:
在表上第3項之後,應要做開啟telnet動作。
turn windows feature on ...
big_nature 發表於 2019-12-27 22:59
"turn windows feature on or off, 然後剔選Telnet client"
呢個玩法係用windows 既Telnet client, 有好有唔好
我會用 Putty (https://www.putty.org/) 介面同功能都高幾班
以後你用緊 openwrt 會成日用

(另一隻你有機會會常用嘅係 Winscp, 不過你可setup 好先試 SCP 去router)
作者: big_nature 時間: 2019-12-28 09:09
本帖最後由 big_nature 於 2019-12-28 10:13 編輯
回覆 11# platinum
請問用windows內建的telnet好/壞處?
Putty容易使用嗎?
都係基於研究而有試用下心態,
最後想知道下,
openWRT 相對netgear 原生功能,
弓是否有頗大提升?
作者: volospin 時間: 2019-12-28 09:10
回覆 1# big_nature
1) follow the rules of https://openwrt.org/toh/netgear/netgear_r6220
2) if you are installing from stock firmware, you need
2a) openwrt-18.06.4-ramips-mt7621-r6220-squashfs-kernel.bin
2b) openwrt-18.06.4-ramips-mt7621-r6220-squashfs-rootfs.bin
3) if you are upgrading from existing OpenWRT firmware, you use
3a) openwrt-18.06.5-ramips-mt7621-r6220-squashfs-sysupgrade.tar
4) follow https://openwrt.org/docs/guide-quick-start/start
5) install your choice of packages...
6) enjoy
作者: big_nature 時間: 2019-12-28 10:20
回覆 13# volospin
唔該晒師兄,
即係NetgearR6220原生冇得直上openWRT.
咁為有依openwrt個instruction 裝尼2個檔。
作者: volospin 時間: 2019-12-28 10:53
直上 = Web then there are no easy way.
But instruction is provided, should be okay.
作者: big_nature 時間: 2019-12-28 11:15
本帖最後由 big_nature 於 2019-12-28 12:02 編輯
回覆 15# volospin
新手想研究下而已(未制過router),
真係問題多多,要再細心理解下先。
唔該晒各位師兄賜教。
作者: platinum 時間: 2019-12-29 21:50
本帖最後由 platinum 於 2019-12-29 22:18 編輯
windows內建的telnet - 少用一樣內建野, 爽d
Putty 的ui 都唔錯的, 亦可兼顧SSH (openwrt 常用的connection)
openwrt 的賣點係功能同安全性, 因常有update, security update 跟得貼,
想科學上網/wifi schedule/guest wifi/權限/複雜的firewall/擋廣告/定時reboot/ddns/vlan/多個subnet做分區 等, 總之你想都做得到
不過要預左做好多command line 的動作, 要爬好多文, 學好多新野 (尤其唔熟 linux)
注意既係
1. USB print/scan 我覺得openwrt 好弱, 唔一定support 你嘅printer 型號, 無graphical interface 亦好煩 (所以我有2nd router 用原裝firmware 當switch+專負責print)
2. 不 support hardware NAT 亦係一個問題 (如果router CPU 唔夠力, 即使support 1000M 亦行唔足1000M)
雖然openwrt 穩定性高, 但如果對功能同安全性要求唔高, 用原裝firmware 都可以
作者: raywan 時間: 2019-12-30 00:21
本帖最後由 raywan 於 2019-12-30 00:25 編輯
家人入左隻Netgear R6220,
想同佢制入openWRT,
見到openWRT網站有幾個檔,
(見下圖)
如果由netgear介面直 ...
big_nature 發表於 2019-12-27 13:13
唔知樓主你識唔識linux command/對linux有無認識,如果零認識 linux就唔好玩,等人出web image好過,因為磚左一定唔可能經network入唔返去,一定要用TTL線+lan 線flash返image入router,比現在難度高10倍,因為我之前磚左,整左幾日先明白點可以救返磚頭機,所以好明白唔識linux係好難救機
cat 意思係list file,睇下有無寫串寫左響file入面
7/8意思係 list out /proc/mtd file入面有無r6220.mtd.layout字串
唔識可以用putty SSH入去router ,跟返4~8 step做返,4~8行打錯唔會死機,9~10就係寫入image到router內
大約意思係你首先download2個openwrt files,改好叫rootfs.bin,kernel.bin,之後把呢2個file copy入USB手指(FAT32),把USB手指插入router內,SSH入去router ,再入去/mnt/share/"USB" folder內(USB可能係你usb hardware name唔一定係叫USB),把USB rootfs/kernel 寫入到Rootfs/Kernel
最後:當然係reboot,成功就入到openwrt網頁,唔成功一定就係磚頭
溫馨提示:一定要backup firmware到USB先好flash rom
https://aisoa.cn/post-2391.html
作者: big_nature 時間: 2019-12-30 10:46
回覆 18# raywan
感謝師兄溫馨指導。
DOS就識少少,
Linux就未接觸過。
整個流程大約都明白。
只其中2行唔明白而發問。
(師兄上文已解釋)
作者: big_nature 時間: 2019-12-30 10:52
本帖最後由 big_nature 於 2019-12-30 13:25 編輯
我做左個簡單流程,
唔知得唔得?
基於學習心態,有錯請指正。
1 查DHCP是否=192.168.1.1 (每個router有變數)
2 http://192.168.1.1/setup.cgi?todo=debug
2.1 如正確會顯示Debug Enabled
3 打開telnet功能
3.1 turn windows feature on or off
3.2然後剔選Telnet client
4 Win+R>>CMD
4.1 輪入telnet
4.2 Microsoft telnet>>
4.3 Open 192.168.1.1 (依router變數)
4.4 Login and password (依前或root)
4.5 正確會出現 #
5 D.L open WRT 2個檔
5.1 放在fat32的手指內
5.2 USB 改名為U
6 插入router的USB位
7 查看U手指路徑
7.1 Is /mnt/shares/
7.2 cd /mnt/shares/U
8 寫入openWRT files
8.1 mtd_write write rootfs.bin Rootfs
8.2 顯示ok
8.3 mtd_write write kernet.bin Kernet
8.4 顯示ok
9 輸入reboot
10 Login (root)
11 Password (admin)
作者: big_nature 時間: 2019-12-30 11:27
本帖最後由 big_nature 於 2019-12-30 13:38 編輯
回覆 17# platinum
明白晒原生及openWRT的優劣。
要清楚了解流程先敢動手,
免變磚令家人冇router用就有大近視。
作者: semson 時間: 2019-12-30 11:37
錯了, cat呢度並不是list,而係等同dd 。作用係backup原廠 rom 同partition layout去手指度,估計係用黎修磚用。
作者: big_nature 時間: 2019-12-30 11:44
回覆 22# semson
請問:
第7及8行是做番個保險,
方便日後番轉頭?
作者: semson 時間: 2019-12-30 11:50
簡單了解左下,r6220有兩個刷機方法:
1. 就係你而家了解嘅方法,keep 原廠boot loader直接寫上新rom。往后升級f/w可在luci界面刷sysupgrade.bin。
2. 直刷第三方bootloader,然後在此bootloader裡刷sysupgraade.bin,往后升級都要用breed刷,否則breed可能會被openwrt嘅pbboot over write。
作者: semson 時間: 2019-12-30 11:54
本帖最後由 semson 於 2019-12-30 11:55 編輯
https://www.right.com.cn/forum/thread-208580-1-1.html
參考下呢個post。佢講得多,重點只有呢兩個:
5)没有网络的话,也可以使用U盘来刷uboot, 把文件复制到U盘,插到路由U口。
telnet 里 cd /mnt/shares
然后 ls一下看看U盘的路径,cd 进u盘,然后
mtd_write write breed.bin Bootloader
6)不愿意刷pb-boot/breed 也可以直接刷固件。
下载网盘的 kernel.bin 和 rootfs.bin 放入u盘,和上面方法一样,进入u盘路径
然后
mtd_write write rootfs.bin Rootfs
mtd_write write kernel.bin Kernel
***5)係刷breed bootloader,對應我上面講嘅第2個方呿。
作者: semson 時間: 2019-12-30 11:58
你可以睇下佢有冇recovery教程,或者有mention點用呢兩個file。個cmd本身就係將mtd同mtd10ro嘅內容寫入手指。
作者: big_nature 時間: 2019-12-30 12:02
1. 就係你而家了解嘅方法,keep 原廠boot loader直接寫上新rom。往后升級f/w可在luci界面刷sysupgrade.bin。
~~我個流程可行否?
2. 直刷第三方bootloader,然後在此bootloader裡刷sysupgraade.bin,往后升級都要用breed刷,否則breed可能會被openwrt嘅pbboot over write。
~~好似有個不死bootloader可制
~~如第一個可行,就用簡易合我
作者: big_nature 時間: 2019-12-30 12:37
回覆 25# semson
多謝師兄資料。
流程槪清楚明白。
會小心去跟所需制法。
作者: semson 時間: 2019-12-30 13:14
1. 就係你而家了解嘅方法,keep 原廠boot loader直接寫上新rom。往后升級f/w可在luci界面刷sysupgrade.b ...
big_nature 發表於 2019-12-30 12:02
刷機有風險,建議跟教程backup埋原廠rom。
作者: big_nature 時間: 2019-12-30 13:19
本帖最後由 big_nature 於 2019-12-30 13:32 編輯
回覆 29# semson
backup 原廠rom是否=輸入第7及8指令?
到依家都明白左8成。
多謝各位師兄不吝分享指導。
作者: barryw 時間: 2019-12-30 14:46
其實,刷機如果有問題, 會令到部機變半磚或全磚. 所以, 一係你是很有信心+經驗, 或是你有後備router應急(for 萬一死了 Router).
作者: big_nature 時間: 2019-12-30 16:10
最後一個疑問:
rootfs同kernet 2個bin檔,
應該下載圖1
或圖2的先啱。
(見圖1的日期最新)
[attach]2168162[/attach]
[attach]2168163[/attach]
作者: platinum 時間: 2019-12-30 16:22
你應該下載呢頁的:
https://downloads.openwrt.org/re ... gets/ramips/mt7621/
18.06.5 係最新正式版
你看圖1的係邊到黎? 19.07 rc? 定係development snap shot?
點都好, 新手避免, 因為snapshot build 係無GUI...
作者: raywan 時間: 2019-12-30 16:27
download squashfs
initramfs係ramdisk試檮專用,唔係比你用
人地叫你用installation,你就要用呢2個file,好多人變磚就係亂來,唔跟instruction去做
作者: big_nature 時間: 2019-12-30 16:50
本帖最後由 big_nature 於 2019-12-30 17:08 編輯
回覆 33# platinum
明白晒,
唔該晒師兄。
圖1是在尼個網見到,
https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/
第一次實驗性去制,
真係麻煩晒各位師兄。

