Guest User

thread tump

a guest
May 11th, 2018
972
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Re: TP-Link Archer C2 AC750 support — null@example.com (kexecuser)Mar 29, 17:43 [0]
  2.  
  3. Hi,
  4.  
  5. If you really need to flash using the TFTP Bootloader recovery method,
  6. or you like to use a simple TFTP server tool for booting INITRAMFS firmwares...
  7.  
  8. and you don't like to do a much effort in setup a TFTP server.
  9. Then you can use this tool written in NodeJS:
  10.  
  11. h*t*t*p*://github.com/sudomesh/tp-flasher
  12.  
  13. Regards!
  14. Tags 태그 없음 (+) [글 노트 편집]
  15. Re: TP-Link Archer C2 AC750 support — null@example.com (stub11)Apr 04, 17:56 [0]
  16.  
  17. Hi ! help please ) how to enable 5ghz on latest lede-ramips-mt7620-ArcherC2-initramfs-kernel.bin ?
  18. Tags 태그 없음 (+) [글 노트 편집]
  19. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 04, 19:17 [0]
  20.  
  21. github.com/orangepizza/openwrt-archer-c2-lede17.01/releases/tag/archer-c2
  22. add more versions (form my /git/openwrt-c2/bin)
  23. i build it for personal use but It has initramfs version
  24. Tags 태그 없음 (+) [글 노트 편집]
  25. Re: TP-Link Archer C2 AC750 support — null@example.com (stub11)Apr 04, 20:24 [0]
  26.  
  27. once again help ! how to enable 5ghz on?
  28. in precompiled bin it have i see in -network-wireless 2.4ghz and 5ghz
  29. in last archer-c2-lede-snapshot-20180318.zip i can find it sad im noob smile)
  30. Tags 태그 없음 (+) [글 노트 편집]
  31. Re: TP-Link Archer C2 AC750 support — null@example.com (kexecuser)Apr 06, 21:11 [0]
  32. abnoeh wrote:
  33.  
  34. github.com/orangepizza/openwrt-archer-c2-lede17.01/releases/tag/archer-c2
  35. i build it for personal use but It has initramfs version
  36.  
  37. Hi,
  38.  
  39. Please compile the package "kmod-mtd-rw" changing this in the ".config" file:
  40.  
  41. # CONFIG_PACKAGE_kmod-mtd-rw is not set
  42.  
  43. Without this package it's impossible to write to the flash from the initramfs version of the firmware!
  44.  
  45. For example, when you "brick" your device, if your bootloader continues working, then you can boot with the serial console the initramfs firmware from a TFTP server. And as this firmware always boots, then you can write any other firmware with "mtd -r write <my-new-firmware.bin> firmware". But, to do this is required that the module "mtd-rw" is loaded in ram. And your current "initramfs" firmware doesn't has it.
  46.  
  47. Please, provide a version with both: initiramfs+mtd-rw. Without it isn't safe to work in flashing/testing new releases. The two only requisits to be safe are: not touch the bootloader and have console serial access.
  48.  
  49. Regards and thank you for your work!
  50. Tags 태그 없음 (+) [글 노트 편집]
  51. Re: TP-Link Archer C2 AC750 support — null@example.com (Kaito)Apr 07, 2:53 [0]
  52. kexecuser wrote:
  53.  
  54. abnoeh wrote:
  55.  
  56. github.com/orangepizza/openwrt-archer-c2-lede17.01/releases/tag/archer-c2
  57. i build it for personal use but It has initramfs version
  58.  
  59. Hi,
  60.  
  61. Please compile the package "kmod-mtd-rw" changing this in the ".config" file:
  62.  
  63. # CONFIG_PACKAGE_kmod-mtd-rw is not set
  64.  
  65. Without this package it's impossible to write to the flash from the initramfs version of the firmware!
  66.  
  67. For example, when you "brick" your device, if your bootloader continues working, then you can boot with the serial console the initramfs firmware from a TFTP server. And as this firmware always boots, then you can write any other firmware with "mtd -r write <my-new-firmware.bin> firmware". But, to do this is required that the module "mtd-rw" is loaded in ram. And your current "initramfs" firmware doesn't has it.
  68.  
  69. Please, provide a version with both: initiramfs+mtd-rw. Without it isn't safe to work in flashing/testing new releases. The two only requisits to be safe are: not touch the bootloader and have console serial access.
  70.  
  71. Regards and thank you for your work!
  72.  
  73. And you can find this option in make menuconfig by going to,
  74.  
  75. Kernel modules -> Other modules -> kmod-mtd-rw (Y)
  76.  
  77. K.
  78. Tags 태그 없음 (+) [글 노트 편집]
  79. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 10, 6:13 [0]
  80.  
  81. github.com/orangepizza/openwrt-archer-c2-lede17.01/releases/tag/archer-c2-second
  82.  
  83. did upstream merge an hour ago and built a new image with that kmod-mtd-rw
  84. Tags 태그 없음 (+) [글 노트 편집]
  85. Re: TP-Link Archer C2 AC750 support — null@example.com (stub11)Apr 10, 6:39 [0]
  86. abnoeh wrote:
  87.  
  88. github.com/orangepizza/openwrt-archer-c2-lede17.01/releases/tag/archer-c2-second
  89.  
  90. did upstream merge an hour ago and built a new image with that kmod-mtd-rw
  91.  
  92. in this firmware i see network named "test5g_1" but it need some password ? what is it pls help !
  93. Tags 태그 없음 (+) [글 노트 편집]
  94. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 10, 11:14 [0]
  95. stub11 wrote:
  96.  
  97. abnoeh wrote:
  98.  
  99. github.com/orangepizza/openwrt-archer-c2-lede17.01/releases/tag/archer-c2-second
  100.  
  101. did upstream merge an hour ago and built a new image with that kmod-mtd-rw
  102.  
  103. in this firmware i see network named "test5g_1" but it need some password ? what is it pls help !
  104.  
  105. sorry. was it? I just merged upstream so I didn't test on my router.
  106. edit: it doens't initialized rai0 (which is 5g wifi) add
  107.  
  108. config wifi-device rai0
  109. option type rai0
  110. option vendor ralink
  111. option band 5G
  112. option channel 0
  113. option autoch 2
  114. option disabled 1
  115.  
  116. config wifi-iface default_rai0
  117. option device rai0
  118. option ifname rai0
  119. option network lan
  120. option mode ap
  121. option ssid LEDE_5G
  122. option encryption none
  123.  
  124. to /etc/config/wireless and you can connect 5g wifi by LEDE_5G
  125. Tags 태그 없음 (+) [글 노트 편집]
  126. Re: TP-Link Archer C2 AC750 support — null@example.com (stub11)Apr 10, 17:57 [0]
  127. abnoeh wrote:
  128.  
  129. stub11 wrote:
  130.  
  131. abnoeh wrote:
  132.  
  133. github.com/orangepizza/openwrt-archer-c2-lede17.01/releases/tag/archer-c2-second
  134.  
  135. did upstream merge an hour ago and built a new image with that kmod-mtd-rw
  136.  
  137. in this firmware i see network named "test5g_1" but it need some password ? what is it pls help !
  138.  
  139. sorry. was it? I just merged upstream so I didn't test on my router.
  140. edit: it doens't initialized rai0 (which is 5g wifi) add
  141.  
  142. config wifi-device rai0
  143. option type rai0
  144. option vendor ralink
  145. option band 5G
  146. option channel 0
  147. option autoch 2
  148. option disabled 1
  149.  
  150. config wifi-iface default_rai0
  151. option device rai0
  152. option ifname rai0
  153. option network lan
  154. option mode ap
  155. option ssid LEDE_5G
  156. option encryption none
  157.  
  158. to /etc/config/wireless and you can connect 5g wifi by LEDE_5G
  159.  
  160. tnx it works !
  161. Tags 태그 없음 (+) [글 노트 편집]
  162. Re: TP-Link Archer C2 AC750 support — null@example.com (kexecuser)Apr 11, 1:38 [0]
  163.  
  164. Hi abnoeh,
  165.  
  166. Congratulations! The last firmware works as expected:
  167. github.com/orangepizza/openwrt-archer-c2-lede17.01/releases/download/archer-c2-second/lede-ramips-mt7620-ArcherC2.7z
  168.  
  169. I feel we're close to prepare a merge with the official repo.
  170. However, some tips regarding the current state:
  171.  
  172. - You can try the firmware without flashing it (so, it's completly safe) with:
  173.  
  174. (Run a TFTP server on 192.168.0.100)
  175. (Share "lede-ramips-mt7620-ArcherC2-initramfs-kernel.bin" as "uImage")
  176. (stop the Uboot with key <4>)
  177. tftpboot 0x82000000 uImage
  178. bootm 0x82000000
  179.  
  180. - When running the firmware, you can change the networking form the serial console with:
  181.  
  182. ifconfig br-lan 192.168.10.33 netmask 255.255.255.0
  183.  
  184. - You can then backup the stock firmware and all partition with:
  185.  
  186. mkdir /tmp/backup
  187. cat /proc/mtd > /tmp/backup/mtd.txt
  188. dd if=/dev/mtd0ro of=/tmp/backup/mtd0ro.u-boot
  189. dd if=/dev/mtd1ro of=/tmp/backup/mtd1ro.firmware
  190. dd if=/dev/mtd2ro of=/tmp/backup/mtd2ro.kernel
  191. dd if=/dev/mtd3ro of=/tmp/backup/mtd3ro.rootfs
  192. dd if=/dev/mtd4ro of=/tmp/backup/mtd4ro.rootfs_data
  193. dd if=/dev/mtd5ro of=/tmp/backup/mtd5ro.config
  194. dd if=/dev/mtd6ro of=/tmp/backup/mtd6ro.rom
  195. dd if=/dev/mtd7ro of=/tmp/backup/mtd7ro.romfile
  196. dd if=/dev/mtd8ro of=/tmp/backup/mtd8ro.radio
  197.  
  198. - You can flash then the firmware, or restore the stock, with:
  199.  
  200. insmod mtd-rw i_want_a_brick=1
  201. mtd -r write lede-ramips-mt7620-ArcherC2-squashfs-sysupgrade.bin firmware
  202.  
  203. (for restore stock from the backup use "mtd -r write mtd1ro.firmware firmware")
  204.  
  205. So, I do all checks: boot initramfs, flash squashfs, reboot, reflash stock, reboot, reflash squashfs...
  206. Then, I can confirm that you can use this release to safe boot from the bootloader and do any flash that you need.
  207.  
  208. Futhermore, the firmware with the last version works. I recomend to update the "/etc/config/wireless" to include the default data for the 5G radio. With this data this radio is useable.
  209.  
  210. However, I still found some minor bugs in the 5G radio:
  211.  
  212. It lists as "client mode", even when running as AP.
  213.  
  214. Only works as AP, no support for other modes.
  215.  
  216. Can't scan for other networks.
  217.  
  218. I hope you can improve the 5G radio. In any case, I'll run it for some days to check the reability.
  219.  
  220. Regards.
  221. Tags 태그 없음 (+) [글 노트 편집]
  222. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 11, 3:45 [0]
  223. kexecuser wrote:
  224.  
  225. Hi abnoeh,
  226.  
  227. Congratulations! The last firmware works as expected:
  228. github.com/orangepizza/openwrt-archer-c2-lede17.01/releases/download/archer-c2-second/lede-ramips-mt7620-ArcherC2.7z
  229.  
  230. I feel we're close to prepare a merge with the official repo.
  231.  
  232. that would need to do this at current trunk version and I think I had 50ish git conflict when I tried cherry picking.
  233. but I may try to do that in weekend if I have time for it. and IIRC trunk luci break zaccaria built luci-wifi-mtk we use for control wifi. anyone know lua?
  234. kexecuser wrote:
  235.  
  236. However, some tips regarding the current state:
  237.  
  238. - You can try the firmware without flashing it (so, it's completly safe) with:
  239.  
  240. (Run a TFTP server on 192.168.0.100)
  241. (Share "lede-ramips-mt7620-ArcherC2-initramfs-kernel.bin" as "uImage")
  242. (stop the Uboot with key <4>)
  243. tftpboot 0x82000000 uImage
  244. bootm 0x82000000
  245.  
  246. - When running the firmware, you can change the networking form the serial console with:
  247.  
  248. ifconfig br-lan 192.168.10.33 netmask 255.255.255.0
  249.  
  250. - You can then backup the stock firmware and all partition with:
  251.  
  252. mkdir /tmp/backup
  253. cat /proc/mtd > /tmp/backup/mtd.txt
  254. dd if=/dev/mtd0ro of=/tmp/backup/mtd0ro.u-boot
  255. dd if=/dev/mtd1ro of=/tmp/backup/mtd1ro.firmware
  256. dd if=/dev/mtd2ro of=/tmp/backup/mtd2ro.kernel
  257. dd if=/dev/mtd3ro of=/tmp/backup/mtd3ro.rootfs
  258. dd if=/dev/mtd4ro of=/tmp/backup/mtd4ro.rootfs_data
  259. dd if=/dev/mtd5ro of=/tmp/backup/mtd5ro.config
  260. dd if=/dev/mtd6ro of=/tmp/backup/mtd6ro.rom
  261. dd if=/dev/mtd7ro of=/tmp/backup/mtd7ro.romfile
  262. dd if=/dev/mtd8ro of=/tmp/backup/mtd8ro.radio
  263.  
  264. - You can flash then the firmware, or restore the stock, with:
  265.  
  266. insmod mtd-rw i_want_a_brick=1
  267. mtd -r write lede-ramips-mt7620-ArcherC2-squashfs-sysupgrade.bin firmware
  268.  
  269. (for restore stock from the backup use "mtd -r write mtd1ro.firmware firmware")
  270.  
  271. So, I do all checks: boot initramfs, flash squashfs, reboot, reflash stock, reboot, reflash squashfs...
  272. Then, I can confirm that you can use this release to safe boot from the bootloader and do any flash that you need.
  273.  
  274. do you have tip for physically open this router? I unscrewed two screws at the buttom but it didn't help much. 3rd one hidden behind sticker maybe? but that would be middle of PCB.
  275. kexecuser wrote:
  276.  
  277. Futhermore, the firmware with the last version works. I recomend to update the "/etc/config/wireless" to include the default data for the 5G radio. With this data this radio is useable.
  278.  
  279. Well... I think it should've initalized (as /package/mediatek/drivers/mt7610e/files/rai0.sh) has that. but I assume it didn't excuted. openwrt itself changed around it, maybe (while first zaccaria's patch 2017-09-11 but it was done at (semi abandoned because all the cool kids were at LEDE) openwrt trunk at that time, and lede's source marged after thet as kernel version 4.4.14 is out at 2016 Jun)
  280.  
  281. append DRIVERS "rai0"
  282. ---other funtions like prepare,scan, disable, enable
  283. detect_rai0() {
  284. echo "detect_rai0()" >>/tmp/wifi.log
  285. uci get wireless.rai0 >/dev/null 2>&1 && return
  286. ifconfig rai0 >/dev/null 2>&1 || return
  287. echo " > rai0 config not found, load default" >>/tmp/wifi.log
  288. cat <<EOF
  289. config wifi-device rai0
  290. option type rai0
  291. option vendor ralink
  292. option band 5G
  293. option channel 0
  294. option autoch 2
  295. option disabled 1
  296.  
  297. config wifi-iface default_rai0
  298. option device rai0
  299. option ifname rai0
  300. option network lan
  301. option mode ap
  302. option ssid OpenWrt_5G
  303. option encryption none
  304.  
  305. EOF
  306. }
  307.  
  308.  
  309. kexecuser wrote:
  310.  
  311. However, I still found some minor bugs in the 5G radio:
  312.  
  313. It lists as "client mode", even when running as AP.
  314.  
  315. Only works as AP, no support for other modes.
  316.  
  317. Can't scan for other networks.
  318.  
  319. I hope you can improve the 5G radio. In any case, I'll run it for some days to check the reability.
  320.  
  321. Regards.
  322.  
  323. They may be able to turned on at
  324. menuconfig mediatek > drivers > mt7610e
  325. if github.com/zaccareal/openwrt-archer-c2/issues/2 still works.. but as rai0.sh somewhy doesn't used, I'm doubt if it will work correctly in current envirerment.
  326. Tags 태그 없음 (+) [글 노트 편집]
  327. Re: TP-Link Archer C2 AC750 support — null@example.com (kexecuser)Apr 12, 16:42 [0]
  328.  
  329. Hi abnoeh,
  330.  
  331. I feel we need to focus the efforts in the merge with the official repository. To achieve it, the requirement is a plain support of the device. So, let me to list the goals:
  332.  
  333. Include the basic support for the device in the compilation. DONE.
  334.  
  335. Generate the squashfs firmware for sysupgrade. DONE.
  336.  
  337. Generate the factory firmware for initial flash. INCOMPLETE.
  338.  
  339. Add support for configure the device (leds, buttons, radio, etc.). INCOMPLETE (partial 5G radio).
  340.  
  341. Initial documentation. PARTIAL.
  342.  
  343. Fix bugs. IN THE ROAD.
  344.  
  345. So, in fact you're very close! Don't care about some luci or small troubles. After the initial merge we can work in improve the support.
  346.  
  347. You agree?
  348. Tags 태그 없음 (+) [글 노트 편집]
  349. Re: TP-Link Archer C2 AC750 support — null@example.com (kexecuser)Apr 12, 16:51 [0]
  350. abnoeh wrote:
  351.  
  352. do you have tip for physically open this router? I unscrewed two screws at the buttom but it didn't help much. 3rd one hidden behind sticker maybe? but that would be middle of PCB.
  353.  
  354. The problem is that the case of this router has "plastic tabs". It has a lot of them inside, so opening it is difficult "without breaking them". So as I have two units, I opened only one... that is only for development (I'll close this unit using glue). If you like to open it, you really need to break it. Sorry!
  355.  
  356. In any case, I can test any firmware that you like. With the current initramfs firmware version with mtd-rw support I'm completly safe. The only case to worry is a flashing of the bootloader. So, if you never release a firmware that overwrites the the bootloader, then we're protected.
  357.  
  358. Here a video of how to open a similar device:
  359. www.youtube.com/watch?v=lOIcgF0b-m0
  360.  
  361. Regards.
  362. Tags 태그 없음 (+) [글 노트 편집]
  363. Re: TP-Link Archer C2 AC750 support — null@example.com (the-pj)Apr 13, 0:05 [0]
  364.  
  365. I have an archer c2 v1.1, after an unsuccessful flash, just turn the internet led on and off, leaving only the power led on, I probably lost the boot, would have to rewrite using the serial, how?
  366. Tags 태그 없음 (+) [글 노트 편집]
  367. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 13, 4:21 [0]
  368. kexecuser wrote:
  369.  
  370. Hi abnoeh,
  371.  
  372. I feel we need to focus the efforts in the merge with the official repository. To achieve it, the requirement is a plain support of the device. So, let me to list the goals:
  373.  
  374. Include the basic support for the device in the compilation. DONE.
  375.  
  376. Generate the squashfs firmware for sysupgrade. DONE.
  377.  
  378. Generate the factory firmware for initial flash. INCOMPLETE.
  379.  
  380. Add support for configure the device (leds, buttons, radio, etc.). INCOMPLETE (partial 5G radio).
  381.  
  382. Initial documentation. PARTIAL.
  383.  
  384. Fix bugs. IN THE ROAD.
  385.  
  386. So, in fact you're very close! Don't care about some luci or small troubles. After the initial merge we can work in improve the support.
  387.  
  388. You agree?
  389.  
  390. then I'll need to rewrite kernel patch file for kernel 4.14 I guess upstream won't upload directly to already released version.
  391. there is more option for 5G radio (kernel module to enable) like client mode
  392. IIRC striping(or adding) 512bytes to front/end of sysupgrade firmware will create recovery firmware for tftp... my memory doesn't help much as one wrong move bricks the device.
  393. I'll read this whole thread
  394. Tags 태그 없음 (+) [글 노트 편집]
  395. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 13, 4:46 [0]
  396. dob71 wrote:
  397.  
  398. norulez.nikita wrote:
  399.  
  400. Bit there are one mistake in that post:
  401.  
  402. cp.b 0x82020000 0x20000 0x7a0000
  403.  
  404. Don't use 0x82020000 memory address cause you upload image at 0x82000000 in that guide
  405.  
  406. cp.b 0x82000000 0x20000 0x7a0000
  407.  
  408.  
  409. And flash sysupgrade firmware
  410.  
  411. That is not a mistake. If the recovery firmware image (as the post instructs) is loaded to the address 0x82000000 in memory then write from 0x82020000 to offset 0x20000 in the flash.
  412. If the sysupgrade image is loaded to 0x82000000 then write from 0x82000000 to 0x20000.
  413.  
  414. The reason is that the first 0x20000 bytes of the recovery image contain the bootloader, while the sysupgrade image doesn't have it.
  415.  
  416. As for recovering the bricked AP, if it is bricked because the bootloader is corrupt (might happen quite easily if you use the TFTP method and power cycle the AP after erasing the flash but before it writes the bootloader) then the only way to recover is to use an external flasher (see "Recovering from a bad flash" here h_ttps://pwassi.privatedns.org/lede/archerc20i/#factory).
  417.  
  418. so offest 0x20000 bytes?
  419.  
  420. @yoq made a recovery tftp flash file, but he didn't tell us how to make one.
  421. beinder.at/pub/ArcherC2V1_tp_recovery.bin (p.s cert of it expired. but site itself is alive)
  422. Tags 태그 없음 (+) [글 노트 편집]
  423. Re: TP-Link Archer C2 AC750 support — null@example.com (kexecuser)Apr 13, 5:37 [0]
  424. abnoeh wrote:
  425.  
  426. so offest 0x20000 bytes?
  427.  
  428. @yoq made a recovery tftp flash file, but he didn't tell us how to make one.
  429. beinder.at/pub/ArcherC2V1_tp_recovery.bin (p.s cert of it expired. but site itself is alive)
  430.  
  431. Hi @abnoeh,
  432.  
  433. I don't recomend at all to write to the flash from the bootloader! Please, don't do it! Don't explain how to do it! A high risk of overwrite the bootloader and/or ART partition is present!
  434.  
  435. Regarding the TFTP boot, you have two options:
  436.  
  437. Option 1: Open the device and use a SERIAL cable for stop the bootloader, load IN RAM a firmware with initfamfs root, and BOOT this firmware from the RAM.
  438.  
  439. Option 2: Use the TFTP recovery for flashing a "factory" firmware to the flash, and then reboot. You don't need to open the device or access to the serial console. But you need to grant that the firmware works (because it will be flashed); and the firmware needs to have the correct header. Regarding the header, several tools in the toolchain enables to generate it. Search for other TP-Link devices. This is the regular install method when the flash using the stock UI is blocked ofr unsigned firmwares.
  440.  
  441. Regards.
  442. Tags 태그 없음 (+) [글 노트 편집]
  443. Re: TP-Link Archer C2 AC750 support — null@example.com (kexecuser)Apr 13, 5:40 [0]
  444. the-pj wrote:
  445.  
  446. I have an archer c2 v1.1, after an unsuccessful flash, just turn the internet led on and off, leaving only the power led on, I probably lost the boot, would have to rewrite using the serial, how?
  447.  
  448. Hi,
  449.  
  450. If you have overwrited the bootloader, then you can't unbrick using the serial console (only with and SPI flasher).
  451.  
  452. However, if you do a TFTP or GUI flash, then is improvable that you rewrited the bootloader. In this case, retry to flash using the TFTP recovery flash of the stock firmware.
  453.  
  454. I hope it helps.
  455. Tags 태그 없음 (+) [글 노트 편집]
  456. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 13, 11:05 [0]
  457.  
  458. Aren't we need to make a factory flash image? or @yoq's old one is enough?
  459. well it can be delayed until I make a image based on current trunk.
  460.  
  461. Generate the factory firmware for initial flash.
  462.  
  463. teslamint wrote:
  464.  
  465. polioman wrote:
  466.  
  467. How did you manage to flash using TFTP? I tried many times with C20i image but was not able to do it.
  468.  
  469. Could you give me the image (or tell me how did yo udo it) you use to flash your C2?
  470.  
  471. Thanks
  472.  
  473. Archer C2's TFTP recovery procedure is same as Archer C7(see wiki), except file name of firmware is 'ArcherC2V1_tp_recovery.bin'.
  474.  
  475. EDIT: You also need to remove 512 byte tp-link header first, or it will be bricked.
  476.  
  477. Tags 태그 없음 (+) [글 노트 편집]
  478. Re: TP-Link Archer C2 AC750 support — null@example.com (kexecuser)Apr 14, 3:40 [0]
  479. abnoeh wrote:
  480.  
  481. Aren't we need to make a factory flash image? or @yoq's old one is enough?
  482. well it can be delayed until I make a image based on current trunk.
  483.  
  484. Generate the factory firmware for initial flash.
  485.  
  486. I'm not sure, but I feel the toolchain has the capability of generate factory images for TP-Link routers.
  487. Tags 태그 없음 (+) [글 노트 편집]
  488. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 15, 11:29 [0]
  489.  
  490. never mind. I found it in other places
  491.  
  492. TPLINK_HWID TPLINK_HWREV
  493. they makefile now asks those two. any idea what to fill? can I set abiterry numbers?
  494. like
  495. TPLINK_HWID := 0xc2100001
  496. TPLINK_HWREV := 60
  497. as c20i uses those number?
  498. TPLINK_HWID := 0xc2000001
  499. TPLINK_HWREV := 58
  500.  
  501. Tags 태그 없음 (+) [글 노트 편집]
  502. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 15, 14:57 [0]
  503.  
  504. anyone know about Makefile:272: *** Missing Build/tplink-header. Stop.
  505. tplink-header?
  506. Tags 태그 없음 (+) [글 노트 편집]
  507. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 15, 17:19 [0]
  508.  
  509. expirebox.com/download/224ecfdafd01fec7e28caa4b2a0de7da.html
  510.  
  511. can somebody try this? a build based on curent trunk, no 5G wifi (I'll do later if I can, makes compile error when enabled) and not sure about if the gigabit switch works.
  512. if you want a build machine you can do it on my repo
  513. github.com/orangepizza/openwrt-archer-c2-lede17.01
  514. but on master branch. (default is seted to lede 17.01)
  515. Tags 태그 없음 (+) [글 노트 편집]
  516. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 15, 17:40 [0]
  517.  
  518. error when I tried to include mtk driver
  519.  
  520. mt7610e/./os/linux/rt_proc.c:32:0:
  521. ./arch/mips/include/asm/uaccess.h: In function 'eva_kernel_access':
  522. ./arch/mips/include/asm/uaccess.h:91:9: error: implicit declaration of function 'uaccess_kernel'; did you mean 'getname_kernel'? [-Werror=implicit-function-declaration]
  523. return uaccess_kernel();
  524. ^~~~~~~~~~~~~~
  525. getname_kernel
  526. cc1: some warnings being treated as errors
  527.  
  528.  
  529. it looks like uaccess is deprecated in 4.14
  530. and the first lines of rt_proc.c are
  531.  
  532. /*
  533. ***************************************************************************
  534. * Ralink Tech Inc.
  535. * 4F, No. 2 Technology 5th Rd.
  536. * Science-based Industrial Park
  537. * Hsin-chu, Taiwan, R.O.C.
  538. *
  539. * (c) Copyright 2002, Ralink Technology, Inc.
  540. *
  541. * All rights reserved. Ralink's source code is an unpublished work and the
  542. * use of a copyright notice does not imply otherwise. This source code
  543. * contains confidential trade secret material of Ralink Tech. Any attemp
  544. * or participation in deciphering, decoding, reverse engineering or in any
  545. * way altering the source code is stricitly prohibited, unless the prior
  546. * written consent of Ralink Technology, Inc. is obtained.
  547. ***************************************************************************
  548.  
  549. Module Name:
  550. rt_proc.c
  551.  
  552. Abstract:
  553. Create and register proc file system for ralink device
  554.  
  555. Revision History:
  556. Who When What
  557. -------- ---------- ----------------------------------------------
  558. */
  559.  
  560. well. it sucks. Not much thing I can do about this.
  561. Tags 태그 없음 (+) [글 노트 편집]
  562. Re: TP-Link Archer C2 AC750 support — null@example.com (fratzicu)Apr 15, 18:55 [0]
  563.  
  564. Hi,
  565.  
  566. I am so glad that the last build works. The only thong that doesn't work it seems is the 5Ghz wifi
  567.  
  568. Kind regards
  569. Tags 태그 없음 (+) [글 노트 편집]
  570. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 16, 5:37 [0]
  571. fratzicu wrote:
  572.  
  573. Hi,
  574.  
  575. I am so glad that the last build works. The only thong that doesn't work it seems is the 5Ghz wifi
  576.  
  577. Kind regards
  578.  
  579.  
  580. yes. it suck that I will need to change include asm/uaccess.h to linux/uaccess.h to be compiled as direct include of asm/uaccess.h is deprecated in 4.12. but mediatek driver's license doesn't allow me to do that. unless mediatek themself update it.
  581. Tags 태그 없음 (+) [글 노트 편집]
  582. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 16, 18:38 [0]
  583.  
  584. now the plan is:
  585. remove mtk closed source driver out and try pull request to main repo.. If I can get it work with default setting.
  586. Tags 태그 없음 (+) [글 노트 편집]
  587. Re: TP-Link Archer C2 AC750 support — null@example.com (kexecuser)Apr 17, 4:18 [0]
  588. abnoeh wrote:
  589.  
  590. now the plan is:
  591. remove mtk closed source driver out and try pull request to main repo.. If I can get it work with default setting.
  592.  
  593. Hi @abnoeh,
  594.  
  595. I agree!
  596. The Archer C20i has the same 5GHz radio, and it has "official" support. Only with the *warning* of no 5GHz support:
  597. https://openwrt.org/toh/tp-link/archer-c20i
  598. https://openwrt.org/unsupported/wifi_5ghz
  599. Tags 태그 없음 (+) [글 노트 편집]
  600. Re: TP-Link Archer C2 AC750 support — null@example.com (kexecuser)Apr 18, 17:20 [0]
  601.  
  602. Hi @abnoeh,
  603.  
  604. Regarding the 5GHz driver support, please see this project:
  605. http://github.com/Nossiac/mtk-openwrt-feeds
  606.  
  607. I firmly believe that the main objective must be to make the merge with the official repository without the 5GHz radio. And to work after that in incorporating the rt7610 support joining efforts with other developers focused on similar hardware (for example, the Archer C20i).
  608.  
  609. I hope you can complete the PR soon!
  610. Tags 태그 없음 (+) [글 노트 편집]
  611. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 18, 18:42 [0]
  612.  
  613. I found current setting creates wrong sysupgrade image (size not right and can't boot) from lede to trunk upstream changed where to define flash layout.. any I have no idea why this tried to install wpad and wpad mini at the same time (this will create error on compile)
  614.  
  615. after some edit. now it makes 4mb sysupgrade.bin
  616. Tags 태그 없음 (+) [글 노트 편집]
  617. Re: TP-Link Archer C2 AC750 support — null@example.com (kexecuser)Apr 18, 23:20 [0]
  618. abnoeh wrote:
  619.  
  620. after some edit. now it makes 4mb sysupgrade.bin
  621.  
  622. Great!
  623.  
  624. So, as I have access to the UBoot through the Serial Console, if you need I can check if this sysupgrade.bin can be flashed correctly. The idea is to support the initial flash using the TFTP recovery method, as it doesn't need internal access to the device (only a TFTP server). So if something goes wrong, I can reflash using the initifamfs booted with the bootloader.
  625.  
  626. We can see the light at the end of the tunnel!
  627. Tags 태그 없음 (+) [글 노트 편집]
  628. Re: TP-Link Archer C2 AC750 support — null@example.com (bpyoung)Apr 18, 23:31 [0]
  629.  
  630. Can anyone tell me if there's a way to go back to stock using the GUI from OpenWRT? I had no problem initially using TFTP to get OpenWRT installed, but now I can't for the life of me get it to work to restore stock. I've tried all the different suggestions for settings and even a bunch of different TFTP servers. It's strange as the initial flash worked instantly without a hitch.
  631.  
  632. Thank you!
  633. Tags 태그 없음 (+) [글 노트 편집]
  634. Re: TP-Link Archer C2 AC750 support — null@example.com (bpyoung)Apr 19, 4:02 [0]
  635.  
  636. Can I just flash Archer_C2v1_0.9.1_5.0_up_boot(170228)_2017-02-28_11.13.22.bin from TP-link using the GUI? Or does this include the boot loader which I'd need to strip?
  637. Tags 태그 없음 (+) [글 노트 편집]
  638. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 19, 5:31 [0]
  639. kexecuser wrote:
  640.  
  641. abnoeh wrote:
  642.  
  643. after some edit. now it makes 4mb sysupgrade.bin
  644.  
  645. Great!
  646.  
  647. So, as I have access to the UBoot through the Serial Console, if you need I can check if this sysupgrade.bin can be flashed correctly. The idea is to support the initial flash using the TFTP recovery method, as it doesn't need internal access to the device (only a TFTP server). So if something goes wrong, I can reflash using the initifamfs booted with the bootloader.
  648.  
  649. We can see the light at the end of the tunnel!
  650.  
  651. Problem is right size for c2 sysupgrade bin is 7,995,392byte, and as I already defined TPLINK_FLASHLAYOUT := 8Mmtk at makefile, so I have no idea where it gets that image size from (naked sum of file size is about 1.5MB)
  652.  
  653. P.S Can I alway go back to right firmware with tftp whenever I mass up with sysupgrade image, right?
  654. P.S 2: Can you recover this router from massed bootloader? I'm not keen to make image for TFTP myself as I'll brink my router if I was wrong at first guess.
  655. Tags 태그 없음 (+) [글 노트 편집]
  656. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 19, 5:47 [0]
  657.  
  658. @bpyoung
  659. use back to stock tftp image #124 (quoted under)then write your image with stock fimware gui.
  660. yoq wrote:
  661.  
  662. xmas release OpenWrt r50020 + 5G driver wink
  663. - will now read the correct mac address from rom, for both 2.4G and 5G wifi
  664.  
  665. and here is a new openwrt recovery image, back-to-stock recovery image, and a simple tftp server for linux:
  666. beinder.at/pub/c2_recovery.zip
  667.  
  668. TFTP flashing:
  669. - turn the C2 off
  670. - connect a ethernet cable from any port to your machine
  671. - set your machines' IP to static 192.168.0.66/255.255.255.0
  672. - set up your TFTP server (windows: tftpd32, linux: simple server in folder)
  673. - hold the WPS/Reset button
  674. - turn the C2 on
  675. - keep holding the WPS/Reset button until the WPS light comes on (takes ~10sec)
  676. - the C2 will now attempt to pull the file ArcherC2V1_tp_recovery.bin from your TFTP server
  677. - flashing takes about 1 minute and reboot afterwards
  678. - set your machines' IP back to dynamic
  679. - WebUI for stock firmware is at 192.168.0.1, OpenWrt is at 192.168.1.1
  680.  
  681. and if I have to guess (it's russian rullet, if I was wrong, you will brick the router) that image's size match with recovery image.(Don't flash that!)
  682.  
  683. edit:maybe I can post links now. exemple.com
  684. Tags 태그 없음 (+) [글 노트 편집]
  685. Re: TP-Link Archer C2 AC750 support — null@example.com (bpyoung)Apr 19, 7:15 [0]
  686.  
  687. Ah, I see. It looks like images without the boot loader are 8,126,464 bytes; images with the boot loader are 8,126,976 (512 bytes larger). I'll give it a try later. Thanks!
  688. Tags 태그 없음 (+) [글 노트 편집]
  689. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 19, 10:02 [0]
  690. bpyoung wrote:
  691.  
  692. Ah, I see. It looks like images without the boot loader are 8,126,464 bytes; images with the boot loader are 8,126,976 (512 bytes larger). I'll give it a try later. Thanks!
  693.  
  694. I missed. if you download it from official tplink site and unmodified, don't flash it. it will be bricked.
  695. Tags 태그 없음 (+) [글 노트 편집]
  696. Re: TP-Link Archer C2 AC750 support — null@example.com (bpyoung)Apr 19, 23:25 [0]
  697.  
  698. Just for reference for anyone else, the GUI didn't work for flashing the recovery image, so I downloaded the latest official TP-Link firmware to my Windows laptop, set up a temporary h-t-t-p server using miniweb to serve the .bin file, ssh'd into the router, grabbed the firmware with wget (which DOESN'T support h-t-t-p-s, so downloading from elsewhere can be problematic), removed the first 512 bytes as described elsewhere and wrote the firmware using mtd -r. The original firmware was restored, and surprisingly to me, my original settings were too.
  699. Tags 태그 없음 (+) [글 노트 편집]
  700. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 20, 10:16 [0]
  701. bpyoung wrote:
  702.  
  703. Just for reference for anyone else, the GUI didn't work for flashing the recovery image, so I downloaded the latest official TP-Link firmware to my Windows laptop, set up a temporary h-t-t-p server using miniweb to serve the .bin file, ssh'd into the router, grabbed the firmware with wget (which DOESN'T support h-t-t-p-s, so downloading from elsewhere can be problematic), removed the first 512 bytes as described elsewhere and wrote the firmware using mtd -r. The original firmware was restored, and surprisingly to me, my original settings were too.
  704.  
  705. can you quote the orignal post of "the removed the first 512 bytes as described elsewhere" part? I'm looking for how to make recovery image file that can be used for tftp flash
  706. Tags 태그 없음 (+) [글 노트 편집]
  707. Re: TP-Link Archer C2 AC750 support — null@example.com (the-pj)Apr 20, 18:45 [0]
  708.  
  709. On what line do I change the MAC address in the Original Stock firmware using a Hex Editor?
  710. Tags 태그 없음 (+) [글 노트 편집]
  711. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 20, 20:26 [0]
  712. the-pj wrote:
  713.  
  714. On what line do I change the MAC address in the Original Stock firmware using a Hex Editor?
  715.  
  716. doesn't stock firmware already have MAC clone option? Am I missing somthing?
  717. Tags 태그 없음 (+) [글 노트 편집]
  718. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 20, 20:43 [0]
  719.  
  720. about image size bug. I think upstream changed in tplink mt7620 devices upstream because c20i and c20-v1 also create 4mb sysupgrade image
  721. Tags 태그 없음 (+) [글 노트 편집]
  722. Re: TP-Link Archer C2 AC750 support — null@example.com (the-pj)Apr 20, 21:00 [0]
  723. abnoeh wrote:
  724.  
  725. the-pj wrote:
  726.  
  727. On what line do I change the MAC address in the Original Stock firmware using a Hex Editor?
  728.  
  729. doesn't stock firmware already have MAC clone option? Am I missing somthing?
  730.  
  731. I used the CH341A SPI to rewrite the firmware, everything worked ok, but the MAC address of the wifi was FF:FF:FF:FF:FF:FF, and trying to use the MAC clone appears invalid address format.
  732. Tags 태그 없음 (+) [글 노트 편집]
  733. Re: TP-Link Archer C2 AC750 support — null@example.com (franz.flasch)Apr 21, 14:55 [0]
  734.  
  735. I've tested the openwrt firmware from https://github.com/orangepizza/openwrt- … -lede17.01 and it works great except of the 5GHz. Not sure if I forgot to add some package. However I don't need it anyway.
  736.  
  737. Could someone please merge this into mainline? Would be a shame if this gets lost, as this router works great with openwrt!
  738.  
  739. Thanks!
  740. Tags 태그 없음 (+) [글 노트 편집]
  741. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 21, 21:22 [0]
  742.  
  743. I made a new release! https://github.com/orangepizza/openwrt- … r-c2-v1.03
  744.  
  745. I just updated it. and I missed 5g Wi-Fi doesn't register at first flash because I just upgrade with my normal config because I'm using that in my room.
  746.  
  747. https://github.com/orangepizza/openwrt- … r-c2-v1.03
  748.  
  749. To make 5G Wi-Fi work, visit http://192.168.1.1/cgi-bin/luci/admin/n … etwork/lan after flash, and press save and apply at the bottom of page without change anything.
  750. franz.flasch wrote:
  751.  
  752. Could someone please merge this into mainline? Would be a shame if this gets lost, as this router works great with openwrt!
  753. Thanks!
  754.  
  755.  
  756. and while it work great on lede 17.01.x releases, it goes haywire when I tried to update it to trunk based (gigabit switch somehow broken.) - and it won't get 5g WI-FI because proprietary driver won't pushed into mainline, and it doesn't want to be compiled on kernel 4.14 anyway.
  757. Tags 태그 없음 (+) [글 노트 편집]
  758. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 21, 21:48 [0]
  759.  
  760. P.S currently my build has a lot of things on itself (because the setting was made for me using it at home) (like ddns, wol, a luci theme, .....) should I remove it to save ram and make people use opkg?
  761. Tags 태그 없음 (+) [글 노트 편집]
  762. Re: TP-Link Archer C2 AC750 support — null@example.com (zazaka)Apr 21, 22:03 [0]
  763.  
  764. Guys, I really do not want to read all 16+ pages of text, with a dictionary .... In a nutshell, tell me, is it worth taking this router or not, and flashing it on the OpenWRT?
  765. Does OpenWRT support 5GHz?
  766. PS omg, install openwrt only via SFTP? really?
  767. Tags 태그 없음 (+) [글 노트 편집]
  768. Re: TP-Link Archer C2 AC750 support — null@example.com (tonidertiger)Apr 22, 2:25 [0]
  769.  
  770. @abnoeh
  771.  
  772. Thank you for your great releases.
  773. They are working great.
  774.  
  775. Do you think it is possible to enable hardware nat and hardware aes like they did for other mediatek devices.
  776.  
  777. I want to use my archer c2 for openvpn and using hardware for that would give some very nice speeds.
  778. Tags 태그 없음 (+) [글 노트 편집]
  779. Re: TP-Link Archer C2 AC750 support — null@example.com (misty)Apr 22, 5:12 [0]
  780.  
  781. Will this work on a D2 v1? It's supposed to be the same device with xDSL modem in it which I don't care to lose.
  782. Tags 태그 없음 (+) [글 노트 편집]
  783. Re: TP-Link Archer C2 AC750 support — null@example.com (the-pj)Apr 22, 6:22 [0]
  784. the-pj wrote:
  785.  
  786. abnoeh wrote:
  787.  
  788. the-pj wrote:
  789.  
  790. On what line do I change the MAC address in the Original Stock firmware using a Hex Editor?
  791.  
  792. doesn't stock firmware already have MAC clone option? Am I missing somthing?
  793.  
  794. I used the CH341A SPI to rewrite the firmware, everything worked ok, but the MAC address of the wifi was FF:FF:FF:FF:FF:FF, and trying to use the MAC clone appears invalid address format.
  795.  
  796. Someone would have the original backup of archer c2 v1.1 (full dump) and could pass me, because I am not able to make the wifi work with the firmware of the site.
  797. Tags 태그 없음 (+) [글 노트 편집]
  798. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 22, 11:12 [0]
  799. the-pj wrote:
  800.  
  801. the-pj wrote:
  802.  
  803. abnoeh wrote:
  804.  
  805. doesn't stock firmware already have MAC clone option? Am I missing somthing?
  806.  
  807. I used the CH341A SPI to rewrite the firmware, everything worked ok, but the MAC address of the wifi was FF:FF:FF:FF:FF:FF, and trying to use the MAC clone appears invalid address format.
  808.  
  809. Someone would have the original backup of archer c2 v1.1 (full dump) and could pass me, because I am not able to make the wifi work with the firmware of the site.
  810.  
  811. I don't have that but throw something it may be able to(or not) help you
  812. MAC address of wifi can be changed on openwrt (https://forum.openwrt.org/viewtopic.php?id=70896)
  813.  
  814. and it looks like mac address would be at one of mtd6~8 partition so MACdefault address would be saved at the near end of image, but it'd not likely you can search one as FFFFFFFF is not unique enough, but if you look for just right length, you may be able to find one.
  815. mtd0: 00020000 00001000 "u-boot"
  816. mtd1: 007a0000 00001000 "firmware"
  817. mtd2: 00138468 00001000 "kernel"
  818. mtd3: 00667b98 00001000 "rootfs"
  819. mtd4: 0032c000 00001000 "rootfs_data"
  820. mtd5: 00010000 00001000 "config"
  821. mtd6: 00010000 00001000 "rom"
  822. mtd7: 00010000 00001000 "romfile"
  823. mtd8: 00010000 00001000 "radio"
  824. Tags 태그 없음 (+) [글 노트 편집]
  825. Re: TP-Link Archer C2 AC750 support — null@example.com (kexecuser)Apr 23, 0:32 [0]
  826. abnoeh wrote:
  827.  
  828. I made a new release! https://github.com/orangepizza/openwrt- … r-c2-v1.03
  829.  
  830. I just updated it. and I missed 5g Wi-Fi doesn't register at first flash because I just upgrade with my normal config because I'm using that in my room.
  831.  
  832. Thank you! Great release.
  833. Tags 태그 없음 (+) [글 노트 편집]
  834. Re: TP-Link Archer C2 AC750 support — null@example.com (kexecuser)Apr 23, 0:39 [0]
  835. abnoeh wrote:
  836.  
  837. P.S currently my build has a lot of things on itself (because the setting was made for me using it at home) (like ddns, wol, a luci theme, .....) should I remove it to save ram and make people use opkg?
  838.  
  839. Please, make plain releases (that is, with only minimal installed).
  840.  
  841. Based on these releases, users can install new packages with:
  842.  
  843. Option 1: Using the "opkg" tool (easy)
  844. Option 2: Using the "Image Builder" (https://openwrt.org/docs/guide-develope … ild-images)
  845.  
  846. The drawback of the opkg install is that the packages consumes more flash space (no compression). Instead of it, the "Image Builder" re-packs added packages in the same firmware.
  847.  
  848. However, to support "Image Builder" you should merge with the oficial release. If you feel that creating a PR for the last bleeding edge version it's difficult, then you can first create a PR for the LEDE 17.01 version.
  849. Tags 태그 없음 (+) [글 노트 편집]
  850. Re: TP-Link Archer C2 AC750 support — null@example.com (kexecuser)Apr 23, 0:43 [0]
  851. the-pj wrote:
  852.  
  853. the-pj wrote:
  854.  
  855. abnoeh wrote:
  856.  
  857. doesn't stock firmware already have MAC clone option? Am I missing somthing?
  858.  
  859. I used the CH341A SPI to rewrite the firmware, everything worked ok, but the MAC address of the wifi was FF:FF:FF:FF:FF:FF, and trying to use the MAC clone appears invalid address format.
  860.  
  861. Someone would have the original backup of archer c2 v1.1 (full dump) and could pass me, because I am not able to make the wifi work with the firmware of the site.
  862.  
  863. You have lost the RADIO (aka ART for some guys) partition. Without it your radio will not work as all adjustement of parameters are lost. You need a full dump for restored it!
  864.  
  865. I commented before the requirement to make a full backup before try "in-dev" firmwares.
  866. Tags 태그 없음 (+) [글 노트 편집]
  867. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 23, 1:16 [0]
  868. the-pj wrote:
  869.  
  870. On what line do I change the MAC address in the Original Stock firmware using a Hex Editor?
  871.  
  872. I found it at mtd6 ( so called rom in /proc/mtd)
  873.  
  874. start from 0xf100 to 0xf106
  875.  
  876. and from 58c2 0014 start from 0xf200 (if I missspelled it. )
  877. almost empty except that.
  878.  
  879. size of flash layout.
  880.  
  881. dev: size erasesize name
  882. mtd0: 00020000 00001000 "u-boot"
  883. mtd1: 007a0000 00001000 "firmware"
  884. mtd2: 00138468 00001000 "kernel"
  885. mtd3: 00667b98 00001000 "rootfs"
  886. mtd4: 0032c000 00001000 "rootfs_data"
  887. mtd5: 00010000 00001000 "config"
  888. mtd6: 00010000 00001000 "rom"
  889. mtd7: 00010000 00001000 "romfile"
  890. mtd8: 00010000 00001000 "radio"
  891. Tags 태그 없음 (+) [글 노트 편집]
  892. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 23, 1:49 [0]
  893. zazaka wrote:
  894.  
  895. Guys, I really do not want to read all 16+ pages of text, with a dictionary .... In a nutshell, tell me, is it worth taking this router or not, and flashing it on the OpenWRT?
  896. Does OpenWRT support 5GHz?
  897. PS omg, install openwrt only via SFTP? really?
  898.  
  899. read https://openwrt.org/toh/tp-link/ac750 for install.
  900.  
  901. and it's TFTP, not SFTP
  902. Tags 태그 없음 (+) [글 노트 편집]
  903. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 23, 3:59 [0]
  904.  
  905. snapshot/trunk version can't install kernel modules by opkg because kernel hash is different every commit?
  906. Tags 태그 없음 (+) [글 노트 편집]
  907. Re: TP-Link Archer C2 AC750 support — null@example.com (tmo26)Apr 23, 5:57 [0]
  908. abnoeh wrote:
  909.  
  910. snapshot/trunk version can't install kernel modules by opkg because kernel hash is different every commit?
  911.  
  912. From https://openwrt.org/releases/snapshot::
  913.  
  914. snapshots are built daily, and that sets time limits to installing new packages with opkg. Due to kernel version checksums, you can only install “kmod” kernel modules and other kernel version dependent modules from the exactly same snapshot build. So, a few hours after flashing the firmware you may not be able to install new modules with opkg any more (as the next snapshot has been built into the download repo and has different checksums).
  915.  
  916. See also https://openwrt.org/faq/after_installat … pendencies
  917. Tags 태그 없음 (+) [글 노트 편집]
  918. Re: TP-Link Archer C2 AC750 support — null@example.com (franz.flasch)Apr 23, 17:25 [0]
  919. abnoeh wrote:
  920.  
  921. I made a new release! https://github.com/orangepizza/openwrt- … r-c2-v1.03
  922.  
  923. I just updated it. and I missed 5g Wi-Fi doesn't register at first flash because I just upgrade with my normal config because I'm using that in my room.
  924.  
  925. https://github.com/orangepizza/openwrt- … r-c2-v1.03
  926.  
  927. To make 5G Wi-Fi work, visit http://192.168.1.1/cgi-bin/luci/admin/n … etwork/lan after flash, and press save and apply at the bottom of page without change anything.
  928. franz.flasch wrote:
  929.  
  930. Could someone please merge this into mainline? Would be a shame if this gets lost, as this router works great with openwrt!
  931. Thanks!
  932.  
  933.  
  934. and while it work great on lede 17.01.x releases, it goes haywire when I tried to update it to trunk based (gigabit switch somehow broken.) - and it won't get 5g WI-FI because proprietary driver won't pushed into mainline, and it doesn't want to be compiled on kernel 4.14 anyway.
  935.  
  936. What do you mean with gigabit switch is broken? Does it still work with in 100Mbit mode?
  937.  
  938. Is there an easy way to get a patch of your changes in contrast to 17.01? I would like to try it myself and apply it to trunk and test it. We should definitely get this into mainline, even if 5g is not working. Hopefully fixing gigabit is not too hard.
  939.  
  940. Regards,
  941. Franz
  942. Tags 태그 없음 (+) [글 노트 편집]
  943. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 23, 18:02 [0]
  944. franz.flasch wrote:
  945.  
  946. abnoeh wrote:
  947.  
  948. I made a new release! https://github.com/orangepizza/openwrt- … r-c2-v1.03
  949.  
  950. I just updated it. and I missed 5g Wi-Fi doesn't register at first flash because I just upgrade with my normal config because I'm using that in my room.
  951.  
  952. https://github.com/orangepizza/openwrt- … r-c2-v1.03
  953.  
  954. To make 5G Wi-Fi work, visit http://192.168.1.1/cgi-bin/luci/admin/n … etwork/lan after flash, and press save and apply at the bottom of page without change anything.
  955. franz.flasch wrote:
  956.  
  957. Could someone please merge this into mainline? Would be a shame if this gets lost, as this router works great with openwrt!
  958. Thanks!
  959.  
  960.  
  961. and while it work great on lede 17.01.x releases, it goes haywire when I tried to update it to trunk based (gigabit switch somehow broken.) - and it won't get 5g WI-FI because proprietary driver won't pushed into mainline, and it doesn't want to be compiled on kernel 4.14 anyway.
  962.  
  963. What do you mean with gigabit switch is broken? Does it still work with in 100Mbit mode?
  964.  
  965. Is there an easy way to get a patch of your changes in contrast to 17.01? I would like to try it myself and apply it to trunk and test it. We should definitely get this into mainline, even if 5g is not working. Hopefully fixing gigabit is not too hard.
  966.  
  967. Regards,
  968. Franz
  969.  
  970. no. you can't connect anything with wire (at default setting) because the gigabit switch is connected at port 5 or internal MT7620 chip's switch(for bypass), which is usually unused in normal config.
  971.  
  972. literally only thing I did was porting @zaccareal 's commit to current openwrt's 17.01 LEDE branch, because he choose to do his patch on openwrt trunk, not more active LEDE trunk at that time (lede was separate thing at then) but it was later merged with LEDE trunk.
  973. there are some files I didn't import to trunk as it didn't exsist for 4.14, maybe I have better luck if I do that.
  974. Tags 태그 없음 (+) [글 노트 편집]
  975. Re: TP-Link Archer C2 AC750 support — null@example.com (franz.flasch)Apr 23, 18:35 [0]
  976.  
  977. OK thanks for the info.
  978.  
  979. If I look at your changes at github I see a lot of files regarding the mt7610e driver. I assume this is the 5g wifi driver, correct? Does 2.4g wifi work without this? If yes I can try to merge the other files in a first step and try to get the 5g working afterwards.
  980. Tags 태그 없음 (+) [글 노트 편집]
  981. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 23, 19:34 [0]
  982. franz.flasch wrote:
  983.  
  984. OK thanks for the info.
  985.  
  986. If I look at your changes at github I see a lot of files regarding the mt7610e driver. I assume this is the 5g wifi driver, correct? Does 2.4g wifi work without this? If yes I can try to merge the other files in a first step and try to get the 5g working afterwards.
  987.  
  988. see last commits @zaccareal did at
  989. https://github.com/zaccareal/openwrt-ar … its/master
  990.  
  991. All commits except 32358d3cc0249a420c39bf4ec6b05e2a7c85be0a and 9ba6b0cd13c48fd9733699e30982d1edd5d925b8 will be about 5G Wi-Fi
  992.  
  993. Changes I notice when I tried to merge it into trunk :
  994.  
  995. update kernel config files 4.4 to 4.14 (so you will need to do it by hand
  996.  
  997. openwrt/tools/firmware-utils/src/mktplinkfw2.c no longer has hard-coded info about boards, so exclude this file when merge
  998.  
  999. target/linux/generic/patches-4.4/726-phy_rtl8366.patch
  1000. target/linux/generic/patches-4.4/727-phy-rtl8367.patch
  1001. target/linux/generic/patches-4.4/728-phy-rtl8367b.patch
  1002. those three files about kernel patch changed on zacareal's patch, but it doesn't have correspond version on 4.14
  1003. I tried compile without those, but as I stated above 5g switch didn't work.
  1004.  
  1005. if you want to, see my commit on master branch at https://github.com/orangepizza/openwrt- … ree/master
  1006. Tags 태그 없음 (+) [글 노트 편집]
  1007. Re: TP-Link Archer C2 AC750 support — null@example.com (possetti)Apr 23, 23:44 [0]
  1008.  
  1009. I am new to this forum and I have couple of questions before updating my Archer C2 to openwrt. I just bought this router for 2 main reasons:
  1010.  
  1011. 1) Gigabit speeds (since my ISP speed is 200 mbps down, 100 mpbs up)
  1012. 2) Access control (have my kid's devices internet cutoff on certain scheduled time) - Not working properly for already established connections, works well for NEW connections
  1013.  
  1014. My questions:
  1015.  
  1016. 1) Will I be able to get gigabit proper speeds with the new released software by @abnoeh (Did someone already tested gigabit speeds on data transfer?)
  1017.  
  1018. 2) Will I be able to kill current stablished connections with parental control feature like described in openwrt documentation? (by creating a script and run in a cron job?) - Sorry I am not sure how to post a link to the documentation. Main reason I am upgrading to openwrt would be to have parental control working properly once for all big_smile
  1019.  
  1020. Wi-fi issues do not concern me at all since I am using a different access point so I will not be using Tp-link Archer C2 wireless connections, only wired. I will be also using only basic router functionalities like static DHCP and port forwarding only.
  1021.  
  1022. Any help from you would be really appreciated.
  1023. Tags 태그 없음 (+) [글 노트 편집]
  1024. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 24, 5:08 [0]
  1025. possetti wrote:
  1026.  
  1027. I am new to this forum and I have couple of questions before updating my Archer C2 to openwrt. I just bought this router for 2 main reasons:
  1028.  
  1029. 1) Gigabit speeds (since my ISP speed is 200 mbps down, 100 mpbs up)
  1030. 2) Access control (have my kid's devices internet cutoff on certain scheduled time) - Not working properly for already established connections, works well for NEW connections
  1031.  
  1032. My questions:
  1033.  
  1034. 1) Will I be able to get gigabit proper speeds with the new released software by @abnoeh (Did someone already tested gigabit speeds on data transfer?)
  1035.  
  1036. 2) Will I be able to kill current stablished connections with parental control feature like described in openwrt documentation? (by creating a script and run in a cron job?) - Sorry I am not sure how to post a link to the documentation. Main reason I am upgrading to openwrt would be to have parental control working properly once for all big_smile
  1037.  
  1038. Wi-fi issues do not concern me at all since I am using a different access point so I will not be using Tp-link Archer C2 wireless connections, only wired. I will be also using only basic router functionalities like static DHCP and port forwarding only.
  1039.  
  1040. Any help from you would be really appreciated.
  1041.  
  1042. try disable NAT/Current Hardware NAT Status and test yourself. It'll do just about it.
  1043. and for parental control:
  1044. see https://openwrt.org/docs/guide-user/fir … l-controls (include droping already established connections) but you will need to do it by firewall rules (no fancy luci page just for it)
  1045.  
  1046. and there are chances that you don't have right version - this firmware is for c2 v1, you may have newer version of this- (like v5 or things)
  1047. Tags 태그 없음 (+) [글 노트 편집]
  1048. Re: TP-Link Archer C2 AC750 support — null@example.com (franz.flasch)Apr 24, 7:29 [0]
  1049.  
  1050. OK, I've now rebased your changes onto openwrt mainline:
  1051. https://github.com/franzflasch/openwrt/ … c2-support
  1052.  
  1053. There were some hacks needed to make it work. The biggest problem is, that in the mainline tree there is a driver "rtl8366_smi.c" which implements a lot of functions which are also defined in "rtl8367_mdio.c". However they are not exactly the same. The gigabit switch does not work with the rtl8366_smi.c. We need to unify those files.
  1054.  
  1055. I didn't integrate the 5g drivers yet, however I don't see any reason why this should not work with kernel 4.14.
  1056.  
  1057. Maybe we should continue work on this branch and hopefully manage to merge it into mainline.
  1058.  
  1059. Regards,
  1060. Franz
  1061. Tags 태그 없음 (+) [글 노트 편집]
  1062. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 24, 15:59 [0]
  1063. franz.flasch wrote:
  1064.  
  1065. OK, I've now rebased your changes onto openwrt mainline:
  1066. https://github.com/franzflasch/openwrt/ … c2-support
  1067.  
  1068. There were some hacks needed to make it work. The biggest problem is, that in the mainline tree there is a driver "rtl8366_smi.c" which implements a lot of functions which are also defined in "rtl8367_mdio.c". However they are not exactly the same. The gigabit switch does not work with the rtl8366_smi.c. We need to unify those files.
  1069.  
  1070. I didn't integrate the 5g drivers yet, however I don't see any reason why this should not work with kernel 4.14.
  1071.  
  1072. Maybe we should continue work on this branch and hopefully manage to merge it into mainline.
  1073.  
  1074. Regards,
  1075. Franz
  1076.  
  1077. more like will not get into mainline sence, as it's mt7610e doesn't have open source driver.
  1078. and the reason I had problem with porting 5g wifi driver was because it asm/uaccess.h was deprecated (we should use linux/uaccess.h) after 4.12, and I can't change it because driver's license doesn't allow that
  1079.  
  1080. and the biggest reason is I don't know nothing about C or how linux kernel works tongue I'm happy that somebody better then me taked it over.
  1081. try pull request at current state (as Proprietary driver is not likely accepted)
  1082. Tags 태그 없음 (+) [글 노트 편집]
  1083. Re: TP-Link Archer C2 AC750 support — null@example.com (franz.flasch)Apr 24, 16:27 [0]
  1084. abnoeh wrote:
  1085.  
  1086. franz.flasch wrote:
  1087.  
  1088. OK, I've now rebased your changes onto openwrt mainline:
  1089. https://github.com/franzflasch/openwrt/ … c2-support
  1090.  
  1091. There were some hacks needed to make it work. The biggest problem is, that in the mainline tree there is a driver "rtl8366_smi.c" which implements a lot of functions which are also defined in "rtl8367_mdio.c". However they are not exactly the same. The gigabit switch does not work with the rtl8366_smi.c. We need to unify those files.
  1092.  
  1093. I didn't integrate the 5g drivers yet, however I don't see any reason why this should not work with kernel 4.14.
  1094.  
  1095. Maybe we should continue work on this branch and hopefully manage to merge it into mainline.
  1096.  
  1097. Regards,
  1098. Franz
  1099.  
  1100. more like will not get into mainline sence, as it's mt7610e doesn't have open source driver.
  1101. and the reason I had problem with porting 5g wifi driver was because it asm/uaccess.h was deprecated (we should use linux/uaccess.h) after 4.12, and I can't change it because driver's license doesn't allow that
  1102.  
  1103. and the biggest reason is I don't know nothing about C or how linux kernel works tongue I'm happy that somebody better then me taked it over.
  1104. try pull request at current state (as Proprietary driver is not likely accepted)
  1105.  
  1106. OK, maybe we do not need to merge the mt7610e driver into mainline, we could just offer it as a package feed, then we do not run into licensing troubles
  1107. Tags 태그 없음 (+) [글 노트 편집]
  1108. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 24, 17:08 [0]
  1109. franz.flasch wrote:
  1110.  
  1111. abnoeh wrote:
  1112.  
  1113. franz.flasch wrote:
  1114.  
  1115. OK, I've now rebased your changes onto openwrt mainline:
  1116. https://github.com/franzflasch/openwrt/ … c2-support
  1117.  
  1118. There were some hacks needed to make it work. The biggest problem is, that in the mainline tree there is a driver "rtl8366_smi.c" which implements a lot of functions which are also defined in "rtl8367_mdio.c". However they are not exactly the same. The gigabit switch does not work with the rtl8366_smi.c. We need to unify those files.
  1119.  
  1120. I didn't integrate the 5g drivers yet, however I don't see any reason why this should not work with kernel 4.14.
  1121.  
  1122. Maybe we should continue work on this branch and hopefully manage to merge it into mainline.
  1123.  
  1124. Regards,
  1125. Franz
  1126.  
  1127. more like will not get into mainline sence, as it's mt7610e doesn't have open source driver.
  1128. and the reason I had problem with porting 5g wifi driver was because it asm/uaccess.h was deprecated (we should use linux/uaccess.h) after 4.12, and I can't change it because driver's license doesn't allow that
  1129.  
  1130. and the biggest reason is I don't know nothing about C or how linux kernel works tongue I'm happy that somebody better then me taked it over.
  1131. try pull request at current state (as Proprietary driver is not likely accepted)
  1132.  
  1133. OK, maybe we do not need to merge the mt7610e driver into mainline, we could just offer it as a package feed, then we do not run into licensing troubles
  1134.  
  1135. about that.. maybe we don't need. https://github.com/Nossiac/mtk-openwrt- … ree/master
  1136. and we need a image that can be flashed from stuck firmware (not sysupgrade). factory.bin? but IIRC it donsn't completable for TFTP flash. maybe it's on documaneted how to make up on c20 docs.
  1137. Tags 태그 없음 (+) [글 노트 편집]
  1138. Re: TP-Link Archer C2 AC750 support — null@example.com (123serge123)Apr 24, 17:15 [0]
  1139. franz.flasch wrote:
  1140.  
  1141. There were some hacks needed to make it work. The biggest problem is, that in the mainline tree there is a driver "rtl8366_smi.c" which implements a lot of functions which are also defined in "rtl8367_mdio.c". However they are not exactly the same. The gigabit switch does not work with the rtl8366_smi.c. We need to unify those files.
  1142.  
  1143. Where exist this patch for rtl8366_smi.c which uniform access to realtek switch both gpio and mdio-bus.
  1144. Tags 태그 없음 (+) [글 노트 편집]
  1145. Re: TP-Link Archer C2 AC750 support — null@example.com (franz.flasch)Apr 24, 17:27 [0]
  1146. 123serge123 wrote:
  1147.  
  1148. franz.flasch wrote:
  1149.  
  1150. There were some hacks needed to make it work. The biggest problem is, that in the mainline tree there is a driver "rtl8366_smi.c" which implements a lot of functions which are also defined in "rtl8367_mdio.c". However they are not exactly the same. The gigabit switch does not work with the rtl8366_smi.c. We need to unify those files.
  1151.  
  1152. Where exist this patch for rtl8366_smi.c which uniform access to realtek switch both gpio and mdio-bus.
  1153.  
  1154.  
  1155. Thanks for the hint! Thats awesome! Will try it as soon as I am back home. I think with this there is not much left to do to get it into mainline, except for the Image generation. Currently I am doing it the same way as on the Archer C20i. It generates both sysupgrade and factory images. I tested the factory image, however only with sysupgrade command. Don't know if it also works with tftp boot.
  1156. Tags 태그 없음 (+) [글 노트 편집]
  1157. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 24, 17:40 [0]
  1158.  
  1159. Thanks for the hint! Thats awesome! Will try it as soon as I am back home. I think with this there is not much left to do to get it into mainline, except for the Image generation. Currently I am doing it the same way as on the Archer C20i. It generates both sysupgrade and factory images. I tested the factory image, however only with sysupgrade command. Don't know if it also works with tftp boot.
  1160.  
  1161. on, https://openwrt.org/toh/tp-link/archer-c20i
  1162.  
  1163. LEDE can be flashed via web interface by using the factory images if the stock firmware is not too recent (see above). Factory images are available since this commit in LEDE. Use these images for flashing from the TP-Link firmware (not the sysupgrade).
  1164.  
  1165. If you happen to brick your device, it can be recovered via TFTP using a recovery image (more information is provided here).
  1166.  
  1167. TFTP recovery images for Archer C20i differ from the normal firmware images as they do not have the 512-byte long header at the beginning of the file. In order to create a recovery image, download a stock firmware image like this one and strip the header from the file:
  1168.  
  1169. dd if=archer_firwmare.bin of=ArcherC20iV1_tp_recovery.bin bs=512 skip=1
  1170.  
  1171. To flash the recovery, start a TFTP server from IP address 192.168.0.66 and serve the recovery image named ArcherC20iV1_tp_recovery.bin. Connect to your device to the LAN port, then press the WPS/Reset button and power it up. It will try to download the recovery image and flash it.
  1172.  
  1173. unless stock firmware is too new we are able to flash by stock web gui, and the way for make tftp firmware from factory image.
  1174. this would work for our C2 v1 as well, as not much changed.
  1175. Tags 태그 없음 (+) [글 노트 편집]
  1176. Re: TP-Link Archer C2 AC750 support — null@example.com (possetti)Apr 24, 18:31 [0]
  1177. abnoeh wrote:
  1178.  
  1179. and there are chances that you don't have right version - this firmware is for c2 v1, you may have newer version of this- (like v5 or things)
  1180.  
  1181. Thank you for the reply. My hardware is v1.1 would it still work ? Or it has to be the v1.0 hardware exactly.
  1182. Tags 태그 없음 (+) [글 노트 편집]
  1183. Re: TP-Link Archer C2 AC750 support — null@example.com (possetti)Apr 24, 19:14 [0]
  1184.  
  1185. I went ahead and flashed via TFTP. It took about 2 seconds to flash and the router rebooted. I was able to access the 192.168.0.1 interface with no issues.
  1186.  
  1187. Now by trying to upgrade to @abnoeh firmware, I see 2 .bin files inside the folder, which one should I use?
  1188.  
  1189. lede-ramips-mt7620-ArcherC2-initramfs-kernel.bin
  1190.  
  1191. OR
  1192.  
  1193. lede-ramips-mt7620-ArcherC2-squashfs-sysupgrade.bin
  1194. Tags 태그 없음 (+) [글 노트 편집]
  1195. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 25, 3:31 [0]
  1196. possetti wrote:
  1197.  
  1198. I went ahead and flashed via TFTP. It took about 2 seconds to flash and the router rebooted. I was able to access the 192.168.0.1 interface with no issues.
  1199.  
  1200. Now by trying to upgrade to @abnoeh firmware, I see 2 .bin files inside the folder, which one should I use?
  1201.  
  1202. lede-ramips-mt7620-ArcherC2-initramfs-kernel.bin
  1203.  
  1204. OR
  1205.  
  1206. lede-ramips-mt7620-ArcherC2-squashfs-sysupgrade.bin
  1207.  
  1208. actually, neither.
  1209.  
  1210. All openwrt/lede image uses 192.168.1.1 for access page, which mean your router don't have openwrt image. tftp didn't flash anything. because transmission was unsuccessful. you need ArcherC2V1_tp_recovery.bin for tftp flash again.
  1211. http://openwrt.org/toh/tp-link/ac750 wrote:
  1212.  
  1213. A few users reported that flashing via TFTP server was only possible when the option “Use anticipation window of” with 1000 bytes was enabled in TFTPD32 for Windows. So, if your flashing process hang at some point, restart the process with this option enabled.
  1214.  
  1215. Also, you might have to lower your ethernet link to 10 Mbps Half Duplex in order to finish the process.
  1216.  
  1217. I assume you used yoq's files. http://beinder.at/pub/c2_recovery.zip,
  1218.  
  1219. you need ArcherC2-recovery.bin for TFTP flash, and you need to slow your tftp server's speed slow enough so router's flash can eat it.
  1220.  
  1221. I recommend you follow https://openwrt.org/toh/tp-link/ac750 as this router and
  1222. Tags 태그 없음 (+) [글 노트 편집]
  1223. Re: TP-Link Archer C2 AC750 support — null@example.com (possetti)Apr 25, 4:14 [0]
  1224.  
  1225. Thanks. Sorry for the typo, I was able to access 192.168.1.1 (not 192.168.0.1) and I can see the Openwrt interface with no issues. I am pretty sure I have Openwrt running on it.
  1226.  
  1227. I am following the openwrt page tutorial and came across these 2 bin files. I was not sure which one to update to next:
  1228.  
  1229. lede-ramips-mt7620-ArcherC2-initramfs-kernel.bin
  1230.  
  1231. OR
  1232.  
  1233. lede-ramips-mt7620-ArcherC2-squashfs-sysupgrade.bin
  1234. Tags 태그 없음 (+) [글 노트 편집]
  1235. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 25, 4:24 [0]
  1236. possetti wrote:
  1237.  
  1238. Thanks. Sorry for the typo, I was able to access 192.168.1.1 (not 192.168.0.1) and I can see the Openwrt interface with no issues. I am pretty sure I have Openwrt running on it.
  1239.  
  1240. I am following the openwrt page tutorial and came across these 2 bin files. I was not sure which one to update to next:
  1241.  
  1242. lede-ramips-mt7620-ArcherC2-initramfs-kernel.bin
  1243.  
  1244. OR
  1245.  
  1246. lede-ramips-mt7620-ArcherC2-squashfs-sysupgrade.bin
  1247.  
  1248.  
  1249. lede-ramips-mt7620-ArcherC2-squashfs-sysupgrade.bin
  1250.  
  1251. I should've set some subfolders
  1252. Tags 태그 없음 (+) [글 노트 편집]
  1253. Re: TP-Link Archer C2 AC750 support — null@example.com (possetti)Apr 25, 4:34 [0]
  1254.  
  1255. Thank you very much. Will try it later today and will let you know just for the record. Great job!
  1256. Tags 태그 없음 (+) [글 노트 편집]
  1257. Re: TP-Link Archer C2 AC750 support — null@example.com (franz.flasch)Apr 25, 5:29 [0]
  1258. 123serge123 wrote:
  1259.  
  1260. franz.flasch wrote:
  1261.  
  1262. There were some hacks needed to make it work. The biggest problem is, that in the mainline tree there is a driver "rtl8366_smi.c" which implements a lot of functions which are also defined in "rtl8367_mdio.c". However they are not exactly the same. The gigabit switch does not work with the rtl8366_smi.c. We need to unify those files.
  1263.  
  1264. Where exist this patch for rtl8366_smi.c which uniform access to realtek switch both gpio and mdio-bus.
  1265.  
  1266. Hi Serge!
  1267.  
  1268. I tried tested your patch, however there seems to be something missing. I changed the device tree as you've described it in your pathset, however I always get:
  1269.  
  1270. rtl8367b rtl8367rb: cannot find mdio bus from bus handle
  1271.  
  1272. Is there something missing in the devicetree?
  1273. Tags 태그 없음 (+) [글 노트 편집]
  1274. Re: TP-Link Archer C2 AC750 support — null@example.com (123serge123)Apr 25, 8:49 [0]
  1275. franz.flasch wrote:
  1276.  
  1277. I tried tested your patch, however there seems to be something missing. I changed the device tree as you've described it in your pathset, however I always get:
  1278.  
  1279. rtl8367b rtl8367rb: cannot find mdio bus from bus handle
  1280.  
  1281. Is there something missing in the devicetree?
  1282.  
  1283. In patch comment:
  1284.  
  1285. rtl8367rb {
  1286. compatible = "realtek,rtl8367b", "rtl8367b";
  1287. realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
  1288. mii-bus = <&mdio0>;
  1289. };
  1290.  
  1291. &ethernet {
  1292. status = "okay";
  1293. mtd-mac-address = <&rom 0xf100>;
  1294. pinctrl-names = "default";
  1295. pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
  1296.  
  1297. port@5 {
  1298. status = "okay";
  1299. mediatek,fixed-link = <1000 1 1 1>;
  1300. phy-mode = "rgmii";
  1301. };
  1302.  
  1303. mdio0: mdio-bus {
  1304. status = "okay";
  1305. };
  1306. };
  1307.  
  1308. Two modification of devicetree:
  1309. 1. Enable mdio-bus of internal switch and mark it with mdio0 label.
  1310. 2. Add mii-bus property with label above into realtek switch node.
  1311. Tags 태그 없음 (+) [글 노트 편집]
  1312. Re: TP-Link Archer C2 AC750 support — null@example.com (franz.flasch)Apr 25, 15:47 [0]
  1313. 123serge123 wrote:
  1314.  
  1315. franz.flasch wrote:
  1316.  
  1317. I tried tested your patch, however there seems to be something missing. I changed the device tree as you've described it in your pathset, however I always get:
  1318.  
  1319. rtl8367b rtl8367rb: cannot find mdio bus from bus handle
  1320.  
  1321. Is there something missing in the devicetree?
  1322.  
  1323. In patch comment:
  1324.  
  1325. rtl8367rb {
  1326. compatible = "realtek,rtl8367b", "rtl8367b";
  1327. realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
  1328. mii-bus = <&mdio0>;
  1329. };
  1330.  
  1331. &ethernet {
  1332. status = "okay";
  1333. mtd-mac-address = <&rom 0xf100>;
  1334. pinctrl-names = "default";
  1335. pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
  1336.  
  1337. port@5 {
  1338. status = "okay";
  1339. mediatek,fixed-link = <1000 1 1 1>;
  1340. phy-mode = "rgmii";
  1341. };
  1342.  
  1343. mdio0: mdio-bus {
  1344. status = "okay";
  1345. };
  1346. };
  1347.  
  1348. Two modification of devicetree:
  1349. 1. Enable mdio-bus of internal switch and mark it with mdio0 label.
  1350. 2. Add mii-bus property with label above into realtek switch node.
  1351.  
  1352. Alread did that. The problem was that I've compiled it in directly into the kernel. So the function "of_mdio_find_bus" could not find any mdio bus node, because it was called before the mdio bus was probed.
  1353. Tags 태그 없음 (+) [글 노트 편집]
  1354. Re: TP-Link Archer C2 AC750 support — null@example.com (123serge123)Apr 25, 21:57 [0]
  1355. franz.flasch wrote:
  1356.  
  1357. [
  1358. The problem was that I've compiled it in directly into the kernel. So the function "of_mdio_find_bus" could not find any mdio bus node, because it was called before the mdio bus was probed.
  1359.  
  1360. I'd tested only defconfig compilation. In case of modules all work.
  1361. Tags 태그 없음 (+) [글 노트 편집]
  1362. Re: TP-Link Archer C2 AC750 support — null@example.com (franz.flasch)Apr 26, 4:20 [0]
  1363. 123serge123 wrote:
  1364.  
  1365. franz.flasch wrote:
  1366.  
  1367. [
  1368. The problem was that I've compiled it in directly into the kernel. So the function "of_mdio_find_bus" could not find any mdio bus node, because it was called before the mdio bus was probed.
  1369.  
  1370. I'd tested only defconfig compilation. In case of modules all work.
  1371.  
  1372. Hi Serge!
  1373.  
  1374. The mii-bus node is found correctly now, however the ethernet switch still does not work: Here is the kernel log:
  1375.  
  1376. [ 0.000000] Linux version 4.14.34 (franz@c2b4e61ab357) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r6744+2-751746c736)) #0 Mon Apr 23 22:21:00 2018
  1377. [ 0.000000] Board has DDR2
  1378. [ 0.000000] Analog PMU set to hw control
  1379. [ 0.000000] Digital PMU set to hw control
  1380. [ 0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6
  1381. [ 0.000000] bootconsole [early0] enabled
  1382. [ 0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
  1383. [ 0.000000] MIPS: machine is TP-Link Archer C2
  1384. [ 0.000000] Determined physical RAM map:
  1385. [ 0.000000] memory: 04000000 @ 00000000 (usable)
  1386. [ 0.000000] Initrd not found or empty - disabling initrd
  1387. [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
  1388. [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
  1389. [ 0.000000] Zone ranges:
  1390. [ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
  1391. [ 0.000000] Movable zone start for each node
  1392. [ 0.000000] Early memory node ranges
  1393. [ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
  1394. [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
  1395. [ 0.000000] On node 0 totalpages: 16384
  1396. [ 0.000000] free_area_init_node: node 0, pgdat 8043c9f0, node_mem_map 81000040
  1397. [ 0.000000] Normal zone: 128 pages used for memmap
  1398. [ 0.000000] Normal zone: 0 pages reserved
  1399. [ 0.000000] Normal zone: 16384 pages, LIFO batch:3
  1400. [ 0.000000] random: get_random_bytes called from start_kernel+0x8c/0x474 with crng_init=0
  1401. [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
  1402. [ 0.000000] pcpu-alloc: [0] 0
  1403. [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256
  1404. [ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
  1405. [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
  1406. [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
  1407. [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
  1408. [ 0.000000] Writing ErrCtl register=00040001
  1409. [ 0.000000] Readback ErrCtl register=00040001
  1410. [ 0.000000] Memory: 60104K/65536K available (3356K kernel code, 175K rwdata, 812K rodata, 192K init, 216K bss, 5432K reserved, 0K cma-reserved)
  1411. [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
  1412. [ 0.000000] NR_IRQS: 256
  1413. [ 0.000000] CPU Clock: 580MHz
  1414. [ 0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
  1415. [ 0.000000] systick: enable autosleep mode
  1416. [ 0.000000] systick: running - mult: 214748, shift: 32
  1417. [ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
  1418. [ 0.000012] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
  1419. [ 0.007586] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
  1420. [ 0.073549] pid_max: default: 32768 minimum: 301
  1421. [ 0.078265] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
  1422. [ 0.084644] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
  1423. [ 0.097538] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
  1424. [ 0.107074] futex hash table entries: 256 (order: -1, 3072 bytes)
  1425. [ 0.113062] pinctrl core: initialized pinctrl subsystem
  1426. [ 0.118648] NET: Registered protocol family 16
  1427. [ 0.385040] PCI host bridge /pcie@10140000 ranges:
  1428. [ 0.389653] MEM 0x0000000020000000..0x000000002fffffff
  1429. [ 0.394706] IO 0x0000000010160000..0x000000001016ffff
  1430. [ 0.407330] random: fast init done
  1431. [ 0.417648] rt2880_gpio 10000600.gpio: registering 24 gpios
  1432. [ 0.423100] rt2880_gpio 10000600.gpio: registering 24 irq handlers
  1433. [ 0.429420] rt2880_gpio 10000638.gpio: registering 16 gpios
  1434. [ 0.434833] rt2880_gpio 10000638.gpio: registering 16 irq handlers
  1435. [ 0.441114] rt2880_gpio 10000660.gpio: registering 32 gpios
  1436. [ 0.446520] rt2880_gpio 10000660.gpio: registering 32 irq handlers
  1437. [ 0.452841] rt2880_gpio 10000688.gpio: registering 1 gpios
  1438. [ 0.458170] rt2880_gpio 10000688.gpio: registering 1 irq handlers
  1439. [ 0.464883] PCI host bridge to bus 0000:00
  1440. [ 0.468852] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
  1441. [ 0.475475] pci_bus 0000:00: root bus resource [io 0xffffffff]
  1442. [ 0.481231] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
  1443. [ 0.487816] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
  1444. [ 0.495556] pci 0000:00:00.0: [1814:0801] type 01 class 0x060400
  1445. [ 0.495598] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
  1446. [ 0.495614] pci 0000:00:00.0: reg 0x14: [mem 0x20200000-0x2020ffff]
  1447. [ 0.495692] pci 0000:00:00.0: supports D1
  1448. [ 0.495704] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
  1449. [ 0.496158] pci 0000:01:00.0: [14c3:7650] type 00 class 0x028000
  1450. [ 0.496209] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
  1451. [ 0.496346] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
  1452. [ 0.496597] pci 0000:01:00.1: [14c3:8650] type 00 class 0x0d1100
  1453. [ 0.496644] pci 0000:01:00.1: reg 0x10: [mem 0x00000000-0x000fffff]
  1454. [ 0.496776] pci 0000:01:00.1: supports D1
  1455. [ 0.496787] pci 0000:01:00.1: PME# supported from D0 D1 D3hot D3cold
  1456. [ 0.497005] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
  1457. [ 0.497024] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
  1458. [ 0.497075] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
  1459. [ 0.503439] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
  1460. [ 0.510253] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
  1461. [ 0.516794] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
  1462. [ 0.523410] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff]
  1463. [ 0.529984] pci 0000:01:00.1: BAR 0: assigned [mem 0x20100000-0x201fffff]
  1464. [ 0.536592] pci 0000:00:00.0: PCI bridge to [bus 01]
  1465. [ 0.541395] pci 0000:00:00.0: bridge window [mem 0x20000000-0x201fffff]
  1466. [ 0.552297] clocksource: Switched to clocksource systick
  1467. [ 0.558651] NET: Registered protocol family 2
  1468. [ 0.563714] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
  1469. [ 0.570440] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
  1470. [ 0.576665] TCP: Hash tables configured (established 1024 bind 1024)
  1471. [ 0.582939] UDP hash table entries: 256 (order: 0, 4096 bytes)
  1472. [ 0.588564] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
  1473. [ 0.594941] NET: Registered protocol family 1
  1474. [ 0.599194] PCI: CLS 0 bytes, default 32
  1475. [ 0.601435] rt-timer 10000100.timer: maximum frequency is 1220Hz
  1476. [ 0.608147] Crashlog allocated RAM at address 0x3f00000
  1477. [ 0.614550] workingset: timestamp_bits=30 max_order=14 bucket_order=0
  1478. [ 0.626467] squashfs: version 4.0 (2009/01/31) Phillip Lougher
  1479. [ 0.632067] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
  1480. [ 0.649699] io scheduler noop registered
  1481. [ 0.653504] io scheduler deadline registered (default)
  1482. [ 0.659368] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
  1483. [ 0.666703] console [ttyS0] disabled
  1484. [ 0.670154] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
  1485. [ 0.679835] console [ttyS0] enabled
  1486. [ 0.686862] bootconsole [early0] disabled
  1487. [ 0.695570] cacheinfo: Failed to find cpu0 device node
  1488. [ 0.700815] cacheinfo: Unable to detect cache hierarchy for CPU 0
  1489. [ 0.711038] spi spi0.0: force spi mode3
  1490. [ 0.715735] m25p80 spi0.0: found s25fl064k, expected mx25l6405d
  1491. [ 0.732894] m25p80 spi0.0: s25fl064k (8192 Kbytes)
  1492. [ 0.737836] 6 fixed-partitions partitions found on MTD device spi0.0
  1493. [ 0.744339] Creating 6 MTD partitions on "spi0.0":
  1494. [ 0.749236] 0x000000000000-0x000000020000 : "u-boot"
  1495. [ 0.755225] 0x000000020000-0x0000007c0000 : "firmware"
  1496. [ 2.013165] 2 tplink-fw partitions found on MTD device firmware
  1497. [ 2.019230] 0x000000020000-0x000000183862 : "kernel"
  1498. [ 2.025248] 0x000000183864-0x0000007c0000 : "rootfs"
  1499. [ 2.031100] mtd: device 3 (rootfs) set to be root filesystem
  1500. [ 2.038168] 1 squashfs-split partitions found on MTD device rootfs
  1501. [ 2.044548] 0x000000370000-0x0000007c0000 : "rootfs_data"
  1502. [ 2.050969] 0x0000007c0000-0x0000007d0000 : "config"
  1503. [ 2.056906] 0x0000007d0000-0x0000007e0000 : "rom"
  1504. [ 2.062581] 0x0000007e0000-0x0000007f0000 : "romfile"
  1505. [ 2.068582] 0x0000007f0000-0x000000800000 : "radio"
  1506. [ 2.075190] libphy: Fixed MDIO Bus: probed
  1507. [ 2.085761] gsw: setting port4 to ephy mode
  1508. [ 2.090379] libphy: mdio: probed
  1509. [ 2.093763] mtk_soc_eth 10100000.ethernet: using fixed link parameters
  1510. [ 2.100503] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
  1511. [ 2.107217] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
  1512. [ 2.116216] rt2880_wdt 10000120.watchdog: Initialized
  1513. [ 2.122802] NET: Registered protocol family 10
  1514. [ 2.130873] Segment Routing with IPv6
  1515. [ 2.134807] NET: Registered protocol family 17
  1516. [ 2.139407] 8021q: 802.1Q VLAN Support v1.8
  1517. [ 2.158183] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
  1518. [ 2.166492] Freeing unused kernel memory: 192K
  1519. [ 2.171026] This architecture does not have kernel memory protection.
  1520. [ 3.519503] init: Console is alive
  1521. [ 3.523310] init: - watchdog -
  1522. [ 5.309070] kmodloader: loading kernel modules from /etc/modules-boot.d/*
  1523. [ 5.564480] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
  1524. [ 5.574436] init: - preinit -
  1525. [ 7.197571] mtk_soc_eth 10100000.ethernet eth0: port 5 link up (1000Mbps/Full duplex)
  1526. [ 7.206337] 8021q: adding VLAN 0 to HW filter on device eth0
  1527. [ 7.736574] jffs2_scan_eraseblock(): End of filesystem marker found at 0x2000
  1528. [ 7.744262] jffs2_build_filesystem(): unlocking the mtd device...
  1529. [ 7.744316] done.
  1530. [ 7.752603] jffs2_build_filesystem(): erasing all blocks after the end marker...
  1531. [ 70.499624] done.
  1532. [ 70.509281] jffs2: notice: (355) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
  1533. [ 70.526850] mount_root: overlay filesystem has not been fully initialized yet
  1534. [ 70.549135] mount_root: switching to jffs2 overlay
  1535. [ 70.582535] overlayfs: upper fs does not support tmpfile.
  1536. [ 70.996467] urandom-seed: Seed file not found (/etc/urandom.seed)
  1537. [ 71.222194] mtk_soc_eth 10100000.ethernet eth0: port 5 link down
  1538. [ 71.239426] procd: - early -
  1539. [ 71.243287] procd: - watchdog -
  1540. [ 71.438955] procd: - watchdog -
  1541. [ 71.442451] procd: - ubus -
  1542. [ 71.609058] procd: - init -
  1543. [ 72.040946] kmodloader: loading kernel modules from /etc/modules.d/*
  1544. [ 72.054105] ip6_tables: (C) 2000-2006 Netfilter Core Team
  1545. [ 72.072656] smi probe!!!
  1546. [ 72.075350] USING smi->ext_mbus
  1547. [ 72.078565] rtl8367b rtl8367rb: using MDIO bus 'mdio'
  1548. [ 72.084646] rtl8367b rtl8367rb: RTL8367RB chip found
  1549. [ 72.932782] libphy: rtl8367rb: probed
  1550. [ 72.941505] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
  1551. [ 72.949748] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
  1552. [ 72.961065] ip_tables: (C) 2000-2006 Netfilter Core Team
  1553. [ 72.975726] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
  1554. [ 73.046012] xt_time: kernel timezone is -0000
  1555. [ 73.221171] PPP generic driver version 2.4.2
  1556. [ 73.228432] NET: Registered protocol family 24
  1557. [ 73.263943] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "radio"
  1558. [ 73.271161] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
  1559. [ 73.279252] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7620 detected
  1560. [ 73.286952] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
  1561. [ 73.363914] kmodloader: done loading kernel modules from /etc/modules.d/*
  1562. [ 81.574521] mtk_soc_eth 10100000.ethernet eth0: port 5 link up (1000Mbps/Full duplex)
  1563. [ 81.582815] 8021q: adding VLAN 0 to HW filter on device eth0
  1564. [ 81.614976] br-lan: port 1(eth0.1) entered blocking state
  1565. [ 81.620501] br-lan: port 1(eth0.1) entered disabled state
  1566. [ 81.626455] device eth0.1 entered promiscuous mode
  1567. [ 81.631351] device eth0 entered promiscuous mode
  1568. [ 81.687598] br-lan: port 1(eth0.1) entered blocking state
  1569. [ 81.693185] br-lan: port 1(eth0.1) entered forwarding state
  1570. [ 81.699081] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
  1571. [ 82.603435] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
  1572. [ 87.095019] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
  1573. [ 87.107521] br-lan: port 2(wlan0) entered blocking state
  1574. [ 87.113100] br-lan: port 2(wlan0) entered disabled state
  1575. [ 87.118961] device wlan0 entered promiscuous mode
  1576. [ 89.233127] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
  1577. [ 89.239871] br-lan: port 2(wlan0) entered blocking state
  1578. [ 89.245332] br-lan: port 2(wlan0) entered forwarding state
  1579. [ 90.725952] random: crng init done
  1580.  
  1581.  
  1582. There must still be something missing. I am not sure how you got this working.
  1583.  
  1584. Any help would be greatly appreciated
  1585. Tags 태그 없음 (+) [글 노트 편집]
  1586. Re: TP-Link Archer C2 AC750 support — null@example.com (123serge123)Apr 26, 10:41 [0]
  1587. franz.flasch wrote:
  1588.  
  1589. Any help would be greatly appreciated
  1590.  
  1591. You miss userspace configuration scripts. The patch do not include addition of support for Archer C2 board. Realtek switch configuration may be viewed/changed with swconfig
  1592.  
  1593. swconfig dev switch1 show
  1594.  
  1595. You can configure realtek switch by executing
  1596.  
  1597. swconfig dev switch1 set reset 1
  1598. swconfig dev switch1 set enable_vlan 1
  1599. swconfig dev switch1 set enable_vlan4k 1
  1600. swconfig dev switch1 vlan 1 set ports "1 2 3 4 6t"
  1601. swconfig dev switch1 vlan 2 set ports "0 6t"
  1602. swconfig dev switch1 set apply 1
  1603.  
  1604. Tags 태그 없음 (+) [글 노트 편집]
  1605. Re: TP-Link Archer C2 AC750 support — null@example.com (franz.flasch)Apr 26, 15:23 [0]
  1606. 123serge123 wrote:
  1607.  
  1608. franz.flasch wrote:
  1609.  
  1610. Any help would be greatly appreciated
  1611.  
  1612. You miss userspace configuration scripts. The patch do not include addition of support for Archer C2 board. Realtek switch configuration may be viewed/changed with swconfig
  1613.  
  1614. swconfig dev switch1 show
  1615.  
  1616. You can configure realtek switch by executing
  1617.  
  1618. swconfig dev switch1 set reset 1
  1619. swconfig dev switch1 set enable_vlan 1
  1620. swconfig dev switch1 set enable_vlan4k 1
  1621. swconfig dev switch1 vlan 1 set ports "1 2 3 4 6t"
  1622. swconfig dev switch1 vlan 2 set ports "0 6t"
  1623. swconfig dev switch1 set apply 1
  1624.  
  1625. Hi Serge!
  1626.  
  1627. That did the trick! Thanks for your help!
  1628. Tags 태그 없음 (+) [글 노트 편집]
  1629. Re: TP-Link Archer C2 AC750 support — null@example.com (123serge123)Apr 26, 22:24 [0]
  1630. franz.flasch wrote:
  1631.  
  1632. That did the trick! Thanks for your help!
  1633.  
  1634. Just for case
  1635. add Archer C2 to Openwrt patch
  1636. Tags 태그 없음 (+) [글 노트 편집]
  1637. Re: TP-Link Archer C2 AC750 support — null@example.com (franz.flasch)Apr 26, 22:48 [0]
  1638. 123serge123 wrote:
  1639.  
  1640. franz.flasch wrote:
  1641.  
  1642. That did the trick! Thanks for your help!
  1643.  
  1644. Just for case
  1645. add Archer C2 to Openwrt patch
  1646.  
  1647. Great! Thanks! If knew that you are already working on a patch I would've just waited for it wink
  1648. Tags 태그 없음 (+) [글 노트 편집]
  1649. Re: TP-Link Archer C2 AC750 support — null@example.com (kexecuser)Apr 27, 15:44 [0]
  1650. 123serge123 wrote:
  1651.  
  1652. franz.flasch wrote:
  1653.  
  1654. That did the trick! Thanks for your help!
  1655.  
  1656. Just for case
  1657. add Archer C2 to Openwrt patch
  1658.  
  1659. Please, create a PR in the oficial github repository for this patch. This is the only way to merge it!
  1660.  
  1661. Regards.
  1662. Tags 태그 없음 (+) [글 노트 편집]
  1663. Re: TP-Link Archer C2 AC750 support — null@example.com (Grund_Grunf)Apr 27, 16:08 [0]
  1664.  
  1665. Warning if you use multiple C2's in same network:
  1666.  
  1667. If you like me and use multiple Archer C2's with OpenWRT as dumb AP's, do remember that flashing from same image leaves you with identical MAC-addresses on all interfaces! While MAC-addresses for eth0, wifi etc. are configurable from LUCI, eth0.1 and eth0.2 are not.
  1668.  
  1669. This has led to very peculiar issues with my four C2's. I thought I have successfully changed MAC's for all interfaces, but now and then I got "br-lan received packet on eth0 with own address as source address" and some AP's mysteriously stopped responding.
  1670.  
  1671. Running "ifconfig" in router revealed that eth0.1 in all routers had identical MAC's, confusing the hell out a IP-stack as soon as one AP chat to another. Luckily, MAC is editable in /etc/config/networks.
  1672.  
  1673. Now they all work fine big_smile Next step is to try to configure 802.11r fast roaming.
  1674. Tags 태그 없음 (+) [글 노트 편집]
  1675. Re: TP-Link Archer C2 AC750 support — null@example.com (franz.flasch)Apr 27, 16:28 [0]
  1676. kexecuser wrote:
  1677.  
  1678. 123serge123 wrote:
  1679.  
  1680. franz.flasch wrote:
  1681.  
  1682. That did the trick! Thanks for your help!
  1683.  
  1684. Just for case
  1685. add Archer C2 to Openwrt patch
  1686.  
  1687. Please, create a PR in the oficial github repository for this patch. This is the only way to merge it!
  1688.  
  1689. Regards.
  1690.  
  1691. I guess serge is already preparing the PR for this.
  1692.  
  1693. The changeset also depends on this patch:
  1694. https://patchwork.ozlabs.org/patch/894715/
  1695.  
  1696. So we need to integrate the following patches to make the Archer C2 work:
  1697.  
  1698. https://patchwork.ozlabs.org/patch/894715/
  1699. https://pastebin.com/UEjhWJap
  1700.  
  1701. I've built an image based on these 2 patches and it works like a charm. wink
  1702.  
  1703. Thanks for the great work!
  1704. Tags 태그 없음 (+) [글 노트 편집]
  1705. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 27, 18:59 [0]
  1706. Grund_Grunf wrote:
  1707.  
  1708. Warning if you use multiple C2's in same network:
  1709.  
  1710. If you like me and use multiple Archer C2's with OpenWRT as dumb AP's, do remember that flashing from same image leaves you with identical MAC-addresses on all interfaces! While MAC-addresses for eth0, wifi etc. are configurable from LUCI, eth0.1 and eth0.2 are not.
  1711.  
  1712. This has led to very peculiar issues with my four C2's. I thought I have successfully changed MAC's for all interfaces, but now and then I got "br-lan received packet on eth0 with own address as source address" and some AP's mysteriously stopped responding.
  1713.  
  1714. Running "ifconfig" in router revealed that eth0.1 in all routers had identical MAC's, confusing the hell out a IP-stack as soon as one AP chat to another. Luckily, MAC is editable in /etc/config/networks.
  1715.  
  1716. Now they all work fine big_smile Next step is to try to configure 802.11r fast roaming.
  1717.  
  1718. I removed package/kernel/mac80211/patches/623-rt2x00-mac-address-override-from-of.patch when I moved that patch to newer version (it was new file on original patch) because it didn't compile with it.. maybe that's the reason
  1719.  
  1720. #from 623-rt2x00-mac-address-override-from-of.patch
  1721.  
  1722. --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
  1723. +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
  1724. @@ -38,6 +38,7 @@
  1725. #include <linux/slab.h>
  1726. #include <linux/clk.h>
  1727. #include <linux/of.h>
  1728. +#include <linux/of_net.h>
  1729.  
  1730. #include "rt2x00.h"
  1731. #include "rt2800lib.h"
  1732. @@ -8346,6 +8347,7 @@ static int rt2800_probe_hw_mode(struct r
  1733. char *default_power3;
  1734. unsigned int i;
  1735. u32 reg;
  1736. + const void *perm_mac;
  1737.  
  1738. /*
  1739. * Disable powersaving as default.
  1740. @@ -8377,9 +8379,13 @@ static int rt2800_probe_hw_mode(struct r
  1741. ieee80211_hw_set(rt2x00dev->hw, MFP_CAPABLE);
  1742.  
  1743. SET_IEEE80211_DEV(rt2x00dev->hw, rt2x00dev->dev);
  1744. - SET_IEEE80211_PERM_ADDR(rt2x00dev->hw,
  1745. - rt2800_eeprom_addr(rt2x00dev,
  1746. - EEPROM_MAC_ADDR_0));
  1747. +
  1748. + /* Set permanent MAC from EE, but check OF override first */
  1749. + perm_mac = of_get_mac_address(rt2x00dev->dev->of_node);
  1750. + if(!perm_mac)
  1751. + perm_mac = (const void *)rt2800_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0);
  1752. +
  1753. + SET_IEEE80211_PERM_ADDR(rt2x00dev->hw, perm_mac);
  1754.  
  1755. /*
  1756. * As rt2800 has a global fallback table we cannot specify
  1757.  
  1758. Tags 태그 없음 (+) [글 노트 편집]
  1759. Re: TP-Link Archer C2 AC750 support — null@example.com (possetti)Apr 28, 3:12 [0]
  1760.  
  1761. I did some performance testing and I could notice that:
  1762.  
  1763. - After booting for the first time, I performed a factory reset and connected the switch cable to WAN port, getting a DHCP IP. I could get the speeds I was getting with my ISP router ~240mbps down with speedtest (I believe it can do more than that since my ISP speed is 200/100)
  1764.  
  1765. - When I configured the PPPoe connection getting an external IP, the speed dropped to 215 mbps down max (not sure if it is due to the fact that my ISP provides both IPV4 and IPV6 addresses)
  1766.  
  1767. - When I add some firewall rules (parental controlled ones), the speed drops to 170mbps down max NAT to LAN.
  1768.  
  1769. My questions are:
  1770.  
  1771. 1) I tried 3 different ways to block my kids access to internet using time rules. The one that worked effectively was the one that uses crontab to execute the following command :
  1772.  
  1773. iptables -I forwarding_rule -p all -m mac --mac-source <mac-address> -j REJECT
  1774.  
  1775. By doing that the REJECT rules comes before the the ESTABLISHED one, dropping any streaming/gaming activities. Do you know a more efficient way to block kids access, specially those established connections? Not sure if it is correct to add these rules to the "fowarding_rule" part of the chain.
  1776.  
  1777. 2) Is there any clean up (remove unnecessary installed packages) that can be done in order to improve CPU performance since all NAT related tasks are done by CPU? I only use basic DHCP and Firewall.
  1778.  
  1779. 3) Do you see any issue with my performance speeds or this is within the expected result for the Archer C2 hardware?
  1780.  
  1781. PS: Sorry if you see any bad english, I am from Brazil big_smile
  1782. Tags 태그 없음 (+) [글 노트 편집]
  1783. Re: TP-Link Archer C2 AC750 support — null@example.com (abnoeh)Apr 28, 6:56 [0]
  1784. possetti wrote:
  1785.  
  1786. I did some performance testing and I could notice that:
  1787.  
  1788. - After booting for the first time, I performed a factory reset and connected the switch cable to WAN port, getting a DHCP IP. I could get the speeds I was getting with my ISP router ~240mbps down with speedtest (I believe it can do more than that since my ISP speed is 200/100)
  1789.  
  1790. - When I configured the PPPoe connection getting an external IP, the speed dropped to 215 mbps down max (not sure if it is due to the fact that my ISP provides both IPV4 and IPV6 addresses)
  1791.  
  1792. - When I add some firewall rules (parental controlled ones), the speed drops to 170mbps down max NAT to LAN.
  1793.  
  1794. My questions are:
  1795.  
  1796. 1) I tried 3 different ways to block my kids access to internet using time rules. The one that worked effectively was the one that uses crontab to execute the following command :
  1797.  
  1798. iptables -I forwarding_rule -p all -m mac --mac-source <mac-address> -j REJECT
  1799.  
  1800. By doing that the REJECT rules comes before the the ESTABLISHED one, dropping any streaming/gaming activities. Do you know a more efficient way to block kids access, specially those established connections? Not sure if it is correct to add these rules to the "fowarding_rule" part of the chain.
  1801.  
  1802. 2) Is there any clean up (remove unnecessary installed packages) that can be done in order to improve CPU performance since all NAT related tasks are done by CPU? I only use basic DHCP and Firewall.
  1803.  
  1804. 3) Do you see any issue with my performance speeds or this is within the expected result for the Archer C2 hardware?
  1805.  
  1806. PS: Sorry if you see any bad english, I am from Brazil big_smile
  1807.  
  1808. While removing packages will reduce your ram usage, as router is idle at idle (<5% CPU use) I don't think it will help much.
  1809. about pppoe, it would expected as tplink need to process that too.
  1810.  
  1811. If your connection speed is 200/100, wouldn't it limited at 200Mbps? Am I missing something?
  1812. Tags 태그 없음 (+) [글 노트 편집]
  1813. Re: TP-Link Archer C2 AC750 support — null@example.com (possetti)Apr 28, 9:34 [0]
  1814.  
  1815. I removed the PPPoe connection (Let my ISP router do the trick and DMZed the IP to Archer C2) and put DHCP in WAN port. Performance (speed) is the same now as if I was using my ISP router only.
  1816.  
  1817. My internet is 200/100 but during speed test it reaches 240/115 mbps. In the beginning of the test, it peaks at 450 mbps and then drops to 240 mbps. So I guess it is kinda future proof for a while (for a 400 mbps ISP connection maybe).
  1818.  
  1819. I am happy now with the results. Thank you very much.
  1820. Tags 태그 없음 (+) [글 노트 편집]
  1821. Re: TP-Link Archer C2 AC750 support — null@example.com (NiftyPixel)Apr 30, 12:47 [0]
  1822.  
  1823. Sorry to sound noob'ish, but I'm definitely interested in moving my C2 V1 to openwrt. I've read through the last 10 pages or so and I'm a bit confused on how to get this installed.
  1824.  
  1825. Could someone please describe how to prepare and flash this firmware to the router? I very much appreciate the time/patience!
  1826. Tags 태그 없음 (+) [글 노트 편집]
  1827. Re: TP-Link Archer C2 AC750 support — null@example.com (tmo26)Apr 30, 16:19 [0]
  1828. NiftyPixel wrote:
  1829.  
  1830. Could someone please describe how to prepare and flash this firmware to the router?
  1831.  
  1832. https://openwrt.org/toh/tp-link/ac750#i … model_only
  1833. Tags 태그 없음 (+) [글 노트 편집]
  1834. Re: TP-Link Archer C2 AC750 support — null@example.com (kexecuser)May 02, 16:20 [0]
  1835. franz.flasch wrote:
  1836.  
  1837. I guess serge is already preparing the PR for this.
  1838.  
  1839. The changeset also depends on this patch:
  1840. https://patchwork.ozlabs.org/patch/894715/
  1841.  
  1842. Hi,
  1843.  
  1844. Anyone knows why this patch isn't accepted/merged already?
  1845. One month after no one has posted in the patchwork tool!
  1846.  
  1847. As I understand this patch in the mainstream is mandatory to create a patch to support the Archer C2. So we need to work on pushing this other patch regarding the "rtl8366-smi module".
  1848. Tags 태그 없음 (+) [글 노트 편집]
  1849. Re: TP-Link Archer C2 AC750 support — null@example.com (kexecuser)May 02, 16:25 [0]
  1850. tmo26 wrote:
  1851.  
  1852. NiftyPixel wrote:
  1853.  
  1854. Could someone please describe how to prepare and flash this firmware to the router?
  1855.  
  1856. https://openwrt.org/toh/tp-link/ac750#i … model_only
  1857.  
  1858. Hi NiftyPixel,
  1859.  
  1860. The OpenWRT support is on-road. So, no official support at time. The current method to install the OpenWRT is:
  1861.  
  1862. First, install an ancient version of LEDE using the TFTP Flash mode (the yoq's version "c2_recovery.zip").
  1863.  
  1864. After, upgrade to the last version compiled by abnoeh or serge (search in the last posts in this thread).
  1865.  
  1866. Regards.
  1867. Tags 태그 없음 (+) [글 노트 편집]
  1868. Re: TP-Link Archer C2 AC750 support — null@example.com (franz.flasch)May 02, 17:46 [0]
  1869. kexecuser wrote:
  1870.  
  1871. franz.flasch wrote:
  1872.  
  1873. I guess serge is already preparing the PR for this.
  1874.  
  1875. The changeset also depends on this patch:
  1876. https://patchwork.ozlabs.org/patch/894715/
  1877.  
  1878. Hi,
  1879.  
  1880. Anyone knows why this patch isn't accepted/merged already?
  1881. One month after no one has posted in the patchwork tool!
  1882.  
  1883. As I understand this patch in the mainstream is mandatory to create a patch to support the Archer C2. So we need to work on pushing this other patch regarding the "rtl8366-smi module".
  1884.  
  1885. Indeed, the rtl8366 patch is definitely needed for the Archer C2. What is now the correct way to contribute to openwrt actually? If the patchwork patches will not be processed anymore I can prepare a github pull request for both the smi driver and also for the archer c2. As far as I can say the patches from serge are cleanly made and this is the way it should be. abnoehs version may support 5GHz, no offence, but this is just a dirty hack.
  1886.  
  1887. Regards.
  1888. Tags 태그 없음 (+) [글 노트 편집]
  1889. Re: TP-Link Archer C2 AC750 support — null@example.com (possetti)May 03, 21:23 [0]
  1890.  
  1891. I was able to successfully flash the Archer C2 v1 following the tutorial.
  1892.  
  1893. If you still need help please add me to discord so I can help.
  1894.  
  1895. My discord: Possettin#9133
  1896. Tags 태그 없음 (+) [글 노트 편집]
  1897. Re: TP-Link Archer C2 AC750 support — null@example.com (NiftyPixel)May 05, 9:46 [0]
  1898.  
  1899. Thank you very much. I followed the instructions and am now running OpenWrt 50020
  1900.  
  1901. However when I create a wireless network, with "network" specified to "lan:" my devices can connect, get an IP, but cannot access the internet. Any ideas what's up with this?
  1902.  
  1903. Update: I reset settings to default via System > Backup/Flash Firmware. Now Wifi seems to be working, I hadn't touched anything lol. Very odd.
  1904.  
  1905. Also how/where do I upload the 5ghz.zip and adjust settings for the SSID/etc of 5ghz I did visit the settings page, and hit save & apply without adjusting anything as stated to get 5ghz to work. Figured it might be under packages but see no area to upload a zip.
  1906.  
  1907. Additionally, I can't seem to install luci-app-sqm for QoS managment due to dependency issues (kernel). Any intention to compile what's needed in on any future release for QoS?
  1908.  
  1909. Any assistance is appreciated. Thank you!
  1910. Tags 태그 없음 (+) [글 노트 편집]
  1911. Re: TP-Link Archer C2 AC750 support — null@example.com (kexecuser)May 06, 2:39 [0]
  1912. franz.flasch wrote:
  1913.  
  1914. Indeed, the rtl8366 patch is definitely needed for the Archer C2. What is now the correct way to contribute to openwrt actually? If the patchwork patches will not be processed anymore I can prepare a github pull request for both the smi driver and also for the archer c2. As far as I can say the patches from serge are cleanly made and this is the way it should be. abnoehs version may support 5GHz, no offence, but this is just a dirty hack.
  1915.  
  1916. Hi,
  1917.  
  1918. Yes, a PR in the official github repository (http://github.com/openwrt/openwrt/pulls) is the current method for contributing.
  1919.  
  1920. Futhermore, the patch for 5GHz radio is great, but not ready for mainstream. So, as other (a lot, in fact) devices have official support without the secondary radio, this isn't a problem.
  1921.  
  1922. Then, please create a PR for: a) the rtl8366 patch; b) the Archer C2 support.
  1923. After the merge we will continue trying to add the 5GHz support, but not before.
  1924.  
  1925. Regards.
RAW Paste Data