数码之家

 找回密码
 立即注册
搜索

恭喜您,帖子穿越成功!

您是第4482055位成功穿越者

查看: 3114|回复: 11

[工仪] 发个没卵用的东西,路由器跑Debian,还是那个P1mini

[复制链接]
发表于 2021-5-27 23:10:46 | 显示全部楼层 |阅读模式

爱科技、爱创意、爱折腾、爱极致,我们都是技术控

您需要 登录 才可以下载或查看,没有账号?立即注册

x
本帖最后由 deyafe 于 2021-5-28 23:16 编辑

跑的是纯Debian系统,不是通过chroot启动的,先放个启动信息,有空再补步骤
  1. Boot and Recovery Environment for Embedded Devices
  2. Copyright (C) 2020 HackPascal <hackpascal@gmail.com>
  3. Build date 2020-10-09 [git-676bfd4]
  4. Version 1.1 (r1286)

  5. DRAM: 128MB
  6. Platform: Qualcomm Atheros QCA953X rev 2
  7. Board: Letv LBA-047-CH
  8. Clocks: CPU: 550MHz, DDR: 400MHz, AHB: 200MHz, Ref: 25MHz
  9. Flash: Winbond W25Q128 (16MB) on ath79-spi
  10. ag71xx-eth: MAC address is invalid, using default settings.
  11. ag71xx-eth: Using MAC address 00:13:74:00:00:01
  12. Waiting for auto-negotiation complete ... OK
  13. eth0: Atheros AR8228/AR8229 rev 1

  14. Network started on eth0, inet addr 192.168.1.1, netmask 255.255.255.0

  15. Press any key to interrupt autoboot ... 0

  16. Trying to boot firmware from 0x9f020000 ...
  17. TP-LINK firmware image header detected.
  18.     Image Name:   00000000
  19.     Data Size:    2160052 Bytes
  20.     Load Address: 80060000
  21.     Entry Point:  80060000
  22. Uncompressing data (LZMA) ... done.
  23. Flushing cache ... done.

  24. Starting kernel at 0x80060000...

  25. [    0.000000] Linux version 4.14.195 (feng@Feng-UB) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r3087-3dcb5a5c8)) #0 Wed Mar 3 15:09:55 2021
  26. [    0.000000] bootconsole [early0] enabled
  27. [    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
  28. [    0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0
  29. [    0.000000] Determined physical RAM map:
  30. [    0.000000]  memory: 08000000 [url=home.php?mod=space&uid=3057940]@[/url] 00000000 (usable)
  31. [    0.000000] Initrd not found or empty - disabling initrd
  32. [    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
  33. [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
  34. [    0.000000] Zone ranges:
  35. [    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
  36. [    0.000000] Movable zone start for each node
  37. [    0.000000] Early memory node ranges
  38. [    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
  39. [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
  40. [    0.000000] random: get_random_bytes called from start_kernel+0x98/0x4ac with crng_init=0
  41. [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
  42. [    0.000000] Kernel command line:  board=P1MINI  console=ttyS0,115200 root=/dev/sda1 rw rootfstype=ext4 rootwait noinitrd console=ttyS0,115200n8
  43. [    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
  44. [    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
  45. [    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
  46. [    0.000000] Writing ErrCtl register=0001ae80
  47. [    0.000000] Readback ErrCtl register=0001ae80
  48. [    0.000000] Memory: 122424K/131072K available (5022K kernel code, 232K rwdata, 1160K rodata, 296K init, 225K bss, 8648K reserved, 0K cma-reserved)
  49. [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
  50. [    0.000000] NR_IRQS: 51
  51. [    0.000000] Clocks: CPU:550.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
  52. [    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6950037990 ns
  53. [    0.000010] sched_clock: 32 bits at 275MHz, resolution 3ns, wraps every 7809031678ns
  54. [    0.008895] Calibrating delay loop... 366.18 BogoMIPS (lpj=1830912)
  55. [    0.075971] pid_max: default: 32768 minimum: 301
  56. [    0.081544] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
  57. [    0.089085] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
  58. [    0.100489] devtmpfs: initialized
  59. [    0.105390] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
  60. [    0.116631] futex hash table entries: 256 (order: -1, 3072 bytes)
  61. [    0.124316] NET: Registered protocol family 16
  62. [    0.135349] MIPS: machine is ZMT P1mini
  63. [    0.654443] SCSI subsystem initialized
  64. [    0.659165] usbcore: registered new interface driver usbfs
  65. [    0.665574] usbcore: registered new interface driver hub
  66. [    0.671708] usbcore: registered new device driver usb
  67. [    0.677718] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
  68. [    0.694112] clocksource: Switched to clocksource MIPS
  69. [    0.705005] NET: Registered protocol family 2
  70. [    0.710929] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
  71. [    0.718941] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
  72. [    0.726188] TCP: Hash tables configured (established 1024 bind 1024)
  73. [    0.733600] UDP hash table entries: 256 (order: 0, 4096 bytes)
  74. [    0.740314] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
  75. [    0.747863] NET: Registered protocol family 1
  76. [    0.756264] Crashlog allocated RAM at address 0x3f00000
  77. [    0.764314] workingset: timestamp_bits=14 max_order=15 bucket_order=1
  78. [    0.781090] squashfs: version 4.0 (2009/01/31) Phillip Lougher
  79. [    0.804472] fuse init (API version 7.26)
  80. [    0.819264] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
  81. [    0.827737] io scheduler noop registered
  82. [    0.832179] io scheduler deadline registered (default)
  83. [    0.839674] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
  84. [    0.848668] console [ttyS0] disabled
  85. [    0.872932] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
  86. [    0.882751] console [ttyS0] enabled
  87. [    0.882751] console [ttyS0] enabled
  88. [    0.890319] bootconsole [early0] disabled
  89. [    0.890319] bootconsole [early0] disabled
  90. [    0.915731] loop: module loaded
  91. [    0.923036] m25p80 spi0.0: found w25q128, expected m25p80
  92. [    0.938694] m25p80 spi0.0: w25q128 (16384 Kbytes)
  93. [    0.943920] 5 tp-link partitions found on MTD device spi0.0
  94. [    0.949727] Creating 5 MTD partitions on "spi0.0":
  95. [    0.954704] 0x000000000000-0x000000020000 : "u-boot"
  96. [    0.962518] 0x000000020000-0x00000022f7b4 : "kernel"
  97. [    0.970882] 0x00000022f7b4-0x000000ff0000 : "rootfs"
  98. [    0.978343] mtd: device 2 (rootfs) set to be root filesystem
  99. [    0.984339] 1 squashfs-split partitions found on MTD device rootfs
  100. [    0.990743] 0x000000700000-0x000000ff0000 : "rootfs_data"
  101. [    0.999821] 0x000000ff0000-0x000001000000 : "art"
  102. [    1.007923] 0x000000020000-0x000000ff0000 : "firmware"
  103. [    1.017653] libphy: Fixed MDIO Bus: probed
  104. [    1.057668] libphy: ag71xx_mdio: probed
  105. [    1.686693] ag71xx-mdio.1: Found an AR934X built-in switch
  106. [    1.740039] eth0: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
  107. [    2.377175] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd042, driver=Generic PHY]
  108. [    2.387423] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode: mii
  109. [    2.393855] usbcore: registered new interface driver rtl8150
  110. [    2.399860] usbcore: registered new interface driver r8152
  111. [    2.405559] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  112. [    2.412301] ehci-platform: EHCI generic platform driver
  113. [    2.417817] ehci-platform ehci-platform: EHCI Host Controller
  114. [    2.423784] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
  115. [    2.434185] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
  116. [    2.464131] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
  117. [    2.471895] hub 1-0:1.0: USB hub found
  118. [    2.476443] hub 1-0:1.0: 1 port detected
  119. [    2.482508] usbcore: registered new interface driver uas
  120. [    2.488297] usbcore: registered new interface driver usb-storage
  121. [    2.496337] Netfilter messages via NETLINK v0.30.
  122. [    2.501499] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
  123. [    2.507972] nf_tables: (c) 2007-2009 Patrick McHardy <kaber@trash.net>
  124. [    2.515358] ip_tables: (C) 2000-2006 Netfilter Core Team
  125. [    2.521858] NET: Registered protocol family 10
  126. [    2.531687] Segment Routing with IPv6
  127. [    2.535682] NET: Registered protocol family 17
  128. [    2.540382] Ebtables v2.0 registered
  129. [    2.544933] 8021q: 802.1Q VLAN Support v1.8
  130. [    2.552430] random: fast init done
  131. [    2.556727] Waiting for root device /dev/sda1...
  132. [    2.844122] usb 1-1: new high-speed USB device number 2 using ehci-platform
  133. [    3.048318] hub 1-1:1.0: USB hub found
  134. [    3.052662] hub 1-1:1.0: 4 ports detected
  135. [    3.374124] usb 1-1.2: new high-speed USB device number 3 using ehci-platform
  136. [    3.526532] usb-storage 1-1.2:1.0: USB Mass Storage device detected
  137. [    3.534231] scsi host0: usb-storage 1-1.2:1.0
  138. [    5.819283] scsi 0:0:0:0: CD-ROM            Yao      WTG                   PQ: 0 ANSI: 6
  139. [    5.830123] scsi 0:0:0:0: Attached scsi generic sg0 type 5
  140. [    5.838284] scsi 0:0:0:1: Direct-Access     Yao      WTG                   PQ: 0 ANSI: 6
  141. [    5.848503] sd 0:0:0:1: Attached scsi generic sg1 type 0
  142. [    5.855590] sd 0:0:0:1: [sda] 29159168 512-byte logical blocks: (14.9 GB/13.9 GiB)
  143. [    5.865165] sd 0:0:0:1: [sda] Write Protect is off
  144. [    5.871272] sd 0:0:0:1: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
  145. [    5.885891]  sda: sda1 sda2 sda3 sda4
  146. [    5.895125] sd 0:0:0:1: [sda] Attached SCSI disk
  147. [    5.914564] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
  148. [    5.922598] VFS: Mounted root (ext4 filesystem) on device 8:1.
  149. [    5.931061] Freeing unused kernel memory: 296K
  150. [    5.935707] This architecture does not have kernel memory protection.
  151. [    6.684221] systemd[1]: System time before build time, advancing clock.
  152. [    6.732825] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
  153. [    6.755927] systemd[1]: Detected architecture mips.

  154. Welcome to Debian GNU/Linux 10 (buster)!

  155. [    6.805864] systemd[1]: Set hostname to <debian>.
  156. [   10.898841] random: systemd: uninitialized urandom read (16 bytes read)
  157. [   10.924729] random: systemd: uninitialized urandom read (16 bytes read)
  158. [   10.933751] systemd[1]: Listening on Journal Socket.
  159. [  OK  ] Listening on Journal Socket.
  160. [   10.984648] random: systemd: uninitialized urandom read (16 bytes read)
  161. [   11.005376] systemd[1]: Starting Load Kernel Modules...
  162.          Starting Load Kernel Modules...
  163. [   11.037464] systemd[1]: Mounting Kernel Debug File System...
  164.          Mounting Kernel Debug File System...
  165. [   11.061166] systemd[1]: Condition check resulted in Arbitrary Executable File Formats File System Automount Point being skipped.
  166. [   11.105222] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
  167. [  OK  ] Started Dispatch Password …ts to Console Directory Watch.
  168. [   11.134804] systemd[1]: Condition check resulted in Create list of required static device nodes for the current kernel being skipped.
  169. [   11.167699] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
  170. [  OK  ] Listening on udev Kernel Socket.
  171. [  OK  ] Created slice User and Session Slice.
  172. [  OK  ] Reached target Slices.
  173. [  OK  ] Listening on Syslog Socket.
  174. [  OK  ] Reached target Remote File Systems.
  175.          Mounting POSIX Message Queue File System...
  176. [  OK  ] Created slice system-getty.slice.
  177. [  OK  ] Started Forward Password R…uests to Wall Directory Watch.
  178. [  OK  ] Reached target Paths.
  179. [  OK  ] Listening on initctl Compatibility Named Pipe.
  180. [  OK  ] Listening on udev Control Socket.
  181. [  OK  ] Created slice system-serial\x2dgetty.slice.
  182.          Starting Set the console keyboard layout...
  183. [  OK  ] Listening on fsck to fsckd communication Socket.
  184. [   11.734629] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
  185. [   11.770116] systemd[1]: Starting Remount Root and Kernel File Systems...
  186.          Starting Remount Root and Kernel File Systems...
  187. [   11.829793] systemd[1]: Starting udev Coldplug all Devices...
  188.          Starting udev Coldplug all Devices...
  189. [   11.894727] systemd[1]: Reached target Local Encrypted Volumes.
  190. [  OK  ] Reached target Local Encrypted Volumes.
  191. [   11.922513] systemd[1]: Listening on Journal Socket (/dev/log).
  192. [  OK  ] Listening on Journal Socket (/dev/log).
  193. [   12.046444] systemd[1]: Starting Journal Service...
  194.          Starting Journal Service...
  195. [   12.163729] systemd[1]: Started Load Kernel Modules.
  196. [  OK  ] Started Load Kernel Modules.
  197. [   12.362986] systemd[1]: Mounted Kernel Debug File System.
  198. [  OK  ] Mounted Kernel Debug File System.
  199. [   12.415930] systemd[1]: Mounted POSIX Message Queue File System.
  200. [  OK  ] Mounted POSIX Message Queue File System.
  201. [   12.526433] systemd[1]: Starting Apply Kernel Variables...
  202.          Starting Apply Kernel Variables...
  203.          Mounting FUSE Control File System...
  204. [  OK  ] Started Set the console keyboard layout.
  205. [  OK  ] Mounted FUSE Control File System.
  206. [  OK  ] Started Apply Kernel Variables.
  207. [  OK  ] Started udev Coldplug all Devices.
  208.          Starting Helper to synchronize boot up for ifupdown...
  209. [  OK  ] Started Journal Service.
  210. [  OK  ] Started Helper to synchronize boot up for ifupdown.
  211. [   14.824267] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
  212. [  OK  ] Started Remount Root and Kernel File Systems.
  213.          Starting Load/Save Random Seed...
  214.          Starting Flush Journal to Persistent Storage...
  215.          Starting Create System Users...
  216. [  OK  ] Started Load/Save Random Seed.
  217. [   15.830767] systemd-journald[506]: Received request to flush runtime journal from PID 1
  218. [   15.850284] random: crng init done
  219. [   15.853831] random: 7 urandom warning(s) missed due to ratelimiting
  220. [  OK  ] Started Create System Users.
  221. [  OK  ] Started Flush Journal to Persistent Storage.
  222.          Starting Create Static Device Nodes in /dev...
  223. [  OK  ] Started Create Static Device Nodes in /dev.
  224. [  OK  ] Reached target Local File Systems (Pre).
  225. [  OK  ] Reached target Local File Systems.
  226.          Starting Set console font and keymap...
  227.          Starting Create Volatile Files and Directories...
  228.          Starting Raise network interfaces...
  229.          Starting udev Kernel Device Manager...
  230. [  OK  ] Started Set console font and keymap.
  231. [  OK  ] Started Raise network interfaces.
  232. [  OK  ] Reached target Network.
  233. [  OK  ] Started udev Kernel Device Manager.
  234. [  OK  ] Started Create Volatile Files and Directories.
  235.          Starting Update UTMP about System Boot/Shutdown...
  236.          Starting Network Time Synchronization...
  237. [  OK  ] Found device /dev/ttyS0.
  238. [  OK  ] Started Update UTMP about System Boot/Shutdown.
  239. [  OK  ] Started Network Time Synchronization.
  240. [  OK  ] Found device WTG 4.
  241.          Activating swap /dev/sda4...
  242. [  OK  ] Reached target System Time Synchronized.
  243. [  OK  ] Started ifup for eth0.
  244. [   22.455359] Adding 1023996k swap on /dev/sda4.  Priority:-2 extents:1 across:1023996k
  245. [  OK  ] Activated swap /dev/sda4.
  246. [  OK  ] Reached target Swap.
  247. [  OK  ] Reached target System Initialization.
  248. [  OK  ] Started Daily man-db regeneration.
  249. [  OK  ] Listening on D-Bus System Message Bus Socket.
  250. [  OK  ] Reached target Sockets.
  251. [  OK  ] Started Daily Cleanup of Temporary Directories.
  252. [  OK  ] Started Daily apt download activities.
  253. [  OK  ] Started Daily apt upgrade and clean activities.
  254. [  OK  ] Started Daily rotation of log files.
  255. [   22.983268] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
  256. [  OK  ] Reached target Timers.
  257. [  OK  ] Reached target Basic System.
  258.          Starting Login Service...
  259.          Starting The Apache HTTP Server...
  260.          Starting OpenBSD Secure Shell server...
  261.          Starting Permit User Sessions...
  262.          Starting System Logging Service...
  263. [  OK  ] Started D-Bus System Message Bus.
  264. [  OK  ] Started Regular background program processing daemon.
  265. [  OK  ] Started System Logging Service.
  266. [  OK  ] Started Permit User Sessions.
  267. [  OK  ] Started Serial Getty on ttyS0.
  268. [  OK  ] Reached target Login Prompts.
  269. [  OK  ] Started Login Service.
  270. [  OK  ] Started The Apache HTTP Server.
  271. [  OK  ] Started OpenBSD Secure Shell server.
  272. [  OK  ] Reached target Multi-User System.
  273. [  OK  ] Reached target Graphical Interface.
  274.          Starting Update UTMP about System Runlevel Changes...
  275. [  OK  ] Started Update UTMP about System Runlevel Changes.

  276. Debian GNU/Linux 10 debian ttyS0

  277. debian login: root
  278. Password:
  279. Last login: Thu May 27 20:50:41 CST 2021 on ttyS0
  280. Linux debian 4.14.195 #0 Wed Mar 3 15:09:55 2021 mips

  281. The programs included with the Debian GNU/Linux system are free software;
  282. the exact distribution terms for each program are described in the
  283. individual files in /usr/share/doc/*/copyright.

  284. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  285. permitted by applicable law.
  286. root@debian:~#
复制代码


----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

本帖只是为了记录如何配置openwrt实现跑原生debian
其实很久以前有个项目叫debwrt,但很少人玩,现在已经完全挂了
下载源码、编译那些就跳过了

  1. make menuconfig命令打开openwrt的配置,选好SOC架构、路由型号等
  2. 然后移动到
  3. Global build settings  --->
  4.   Kernel build options  --->
  5.     [*] Compile the kernel with device tmpfs enabled
  6. 选好后保存退出
  7. 被这一选项卡了很久,因为正常是在内核配置里选择的,但是却完全不起作用

  8. make kernel_menuconfig命令打开内核配置
  9. Kernel type  --->
  10.   [*] Floating Point support

  11. Device Drivers  --->
  12.   SCSI device support  --->
  13.    <*> SCSI device support
  14.    legacy /proc/scsi/ support
  15.    <*> SCSI disk support
  16.    <*> SCSI generic support
  17. [*] USB support  --->
  18.    <*>   Support for Host-side USB
  19.    <*>   xHCI HCD (USB 3.0) support
  20.    <*>     Generic xHCI driver for a platform device
  21.    <*>   EHCI HCD (USB 2.0) support
  22.    <*>     Generic EHCI driver for a platform device
  23.    <*>   USB Mass Storage support
  24.    <*>     USB Attached SCSI

  25. File systems  --->
  26.   <*> The Extended 4 (ext4) filesystem
  27.   Pseudo filesystems  --->
  28.     [*]   Tmpfs POSIX Access Control Lists
  29.   -*- Native language support  --->
  30.    <*>   Codepage 437 (United States, Canada)
  31.    <*>   NLS ISO 8859-1  (Latin 1; Western European Languages)
  32.    <*>   NLS UTF-8

  33. Kernel hacking  --->
  34.   (rootfstype=squashfs,jffs2) Default kernel command string 修改rootfstype=squashfs,jffs2 为 root=/dev/sda1 rw rootfstype=ext4 rootwait noinitrd

  35. 保存退出
复制代码



 楼主| 发表于 2021-5-27 23:12:16 | 显示全部楼层
本帖最后由 deyafe 于 2021-5-28 23:22 编辑

目前有线正常,无线不识别,求大佬指点怎样驱动无线

---------------------------------------------------------------------------------

要使用无线,需按顺序加载以下内核模块,模块可在编译出来的固件里提取
compat.ko
cfg80211.ko
mac80211.ko
ath.ko
ath9k_hw.ko
ath9k_common.ko
ath9k.ko

回复 支持 反对

使用道具 举报

发表于 2021-5-27 23:52:48 | 显示全部楼层
找对应版本的无线驱动打包进去
回复 支持 反对

使用道具 举报

发表于 2021-5-28 00:43:25 | 显示全部楼层
本帖最后由 rtlxyz 于 2021-5-28 01:02 编辑

4.14.195内核版本有点旧了,openwrt最新分支已经使用最新的longterm分支内核5.10.x版了

QCA953X  无线使用 ath9k 内核模块 与 1般 ar9382类无线网卡驱动方法1样

另,根据QCA953X V2.0 规格书,QCA953X rev 2版运行频率是650Mhz,v1版的是550Mhz,LZ的cpu被BootLoader初始化为以550Mhz运行。QCA953X 不止linux类系统能跑,FreeBSD类的Unix系统也能跑

打赏

参与人数 1家元 +8 收起 理由
deyafe + 8 加载了7个模块总算能用WIFI了

查看全部打赏

回复 支持 反对

使用道具 举报

发表于 2021-5-28 06:53:32 | 显示全部楼层
rtlxyz 发表于 2021-5-28 00:43
4.14.195内核版本有点旧了,openwrt最新分支已经使用最新的longterm分支内核5.10.x版了

QCA953X  无线使用 ...

最新那个内核由于DSA会把交换机识别成5个网卡,无法使用VLAN,谨慎升级。
回复 支持 反对

使用道具 举报

发表于 2021-5-28 07:09:14 来自手机浏览器 | 显示全部楼层
用openwrt的内核,加上debian的rootfs,组装的固件吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2021-5-28 12:52:49 | 显示全部楼层
yhky 发表于 2021-5-28 07:09
用openwrt的内核,加上debian的rootfs,组装的固件吧

不太同意组装这个词哈,openwrt编译出来的内核只是多了它自己的一些配置,本来就可以引导常规发行版的linux,只是多数发行版不支持mips这个架构而已
回复 支持 反对

使用道具 举报

 楼主| 发表于 2021-5-28 13:03:28 | 显示全部楼层
rtlxyz 发表于 2021-5-28 00:43
4.14.195内核版本有点旧了,openwrt最新分支已经使用最新的longterm分支内核5.10.x版了

QCA953X  无线使用 ...

主要是用LEAN的源码编译的,他源码里的AR71XX内核版本一直是4.XX
回复 支持 反对

使用道具 举报

发表于 2021-5-28 21:22:49 | 显示全部楼层
本帖最后由 rtlxyz 于 2021-5-28 21:31 编辑
rush 发表于 2021-5-28 06:53
最新那个内核由于DSA会把交换机识别成5个网卡,无法使用VLAN,谨慎升级。
ar71xx内核最新只能4.14.xxx,openwrt官方在2020年8月底已经移除并转换到ath79。
QCA953X  即使在最新的openwrt 快照版5.10.x内核下也是使用交换机模式,
DSA只有少部分平台切换到了(如MT7621),DSA方式是趋势,即使DSA也是可以支持VLAN,以前只能以linux方式使用 ip 命令来配置,难倒不少人而已,现在openwrt最新快照版自从2021年5月18日这个提交后
https://github.com/openwrt/openwrt/commit/d42640e389a8b22a31fb0061c12cd9dfbddb87b8
已经支持DSA在luci下配置VLAN了


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复 支持 反对

使用道具 举报

发表于 2021-5-29 14:11:14 | 显示全部楼层
rtlxyz 发表于 2021-5-28 21:22
ar71xx内核最新只能4.14.xxx,openwrt官方在2020年8月底已经移除并转换到ath79。
QCA953X  即使在最新的ope ...

就是MT7621,即使能配置VLAN,也是软件VLAN,千M流量跑满以后CPU消耗超大。
回复 支持 反对

使用道具 举报

发表于 2021-5-29 22:10:10 | 显示全部楼层
本帖最后由 rtlxyz 于 2021-5-29 22:11 编辑
rush 发表于 2021-5-29 14:11
就是MT7621,即使能配置VLAN,也是软件VLAN,千M流量跑满以后CPU消耗超大。

DSA架构又不是什么新鲜事物,早在2017年linux-4.12就内核已经支持mt7530的DSA方式,openwrt只是2020年mt7621才切换而已,mt7621的DSA方式早就支持2x GbE RGMII/TRGMII 模式
早在10年前一些平台(如marvell kirkwood)的交换芯片就已经使用DSA技术,而linux-3.3官方才正式引入。

另不知“软vlan”从何而来
根据https://github.com/openwrt/openwrt/blob/85ca6923bc21a7de031ca9b68e13ecfb4f3debd3/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c
mt7621 支持硬件offload 处理 VLAN

回复 支持 反对

使用道具 举报

发表于 2021-5-30 07:12:53 | 显示全部楼层
rtlxyz 发表于 2021-5-29 22:10
DSA架构又不是什么新鲜事物,早在2017年linux-4.12就内核已经支持mt7530的DSA方式,openwrt只是2020年mt76 ...

switch虽然集成在CPU内部,其实和以前独立的一个芯片没啥区别,swconfig设置出来的VLAN,在switch内部处理, 即使CPU死机了,还能正常使用。DSA的话顶多也是offload而已。因为我的网络VLAN特别多,很多数据只是在MT7621上面“路过”,说白了就是现在二层千M交换机价格虚高,一台MT7621才30块钱,买交换,还送AP,吓得我赶紧把SG105PRO全卖了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

APP|手机版|小黑屋|关于我们|联系我们|法律条款|技术知识分享平台

闽公网安备35020502000485号

闽ICP备2021002735号-2

GMT+8, 2025-5-11 02:49 , Processed in 0.187200 second(s), 13 queries , Redis On.

Powered by Discuz!

© 2006-2025 MyDigit.Net

快速回复 返回顶部 返回列表