Hacking Your Linux-Based Wireless Router

基于RTL8367的实用千兆交换机设计 基于RTL8367的实用千兆交换机设计 描述 这是基于RTL8367RB设计的5口千兆交换机,性价比极高,超级实用,附外壳文件,媲美市面上的各种千兆交换机! RTL8367RB是一款LQFP128封装,高性能5 + 2端口千兆以太网交换机。集成低功耗Giga-PHY,每个端口都支持全双工10 / 100 / 1000M。外围电路简单,只需要3.3V和1.0V电源供电,一个25MHz无源晶振即可。对于特定应用,RTL8367RB支持两个额外的接口,可以将其配置为RGMII / MII接口,本工程为普通交换机, 阅读详情
  WRT54GL History
Linksys found a place in many a geek's heart when it released the original WRT54G router back in 2003. A network router, 10/100 Ethernet switch, and wireless access point all rolled into one, the WRT54G blazed a happy trail as one of the earliest home networking devices to have its firmware source code made publicly available under the GNU General Public License (GPL). Soon after, a number of third-party firmware options became available, letting networking and Linux enthusiasts utilize their routers in ever more powerful and creative ways.
Linksys WRT54GL Router
click on image for full view

Earlier this year, Linksys modified the design of its most recent WRT54G. They halved the amount of flash memory and RAM to just 2MB Flash and 8MB RAM and switched to a VxWorks firmware. According to Linksys, this change allowed them to decrease the memory footprint of the OS and reduce the hardware requirements while maintaining a similar feature set at a reduced cost.

Carrying on the Linux heritage for enthusiasts is the WRT54GL, a device with essentially the same Linux kernel, 200MHz processor, 4MB Flash, and 16MB RAM as the old WRT54G v4. Since the majority of aftermarket firmware won't work on the WRT54G v5's crippled hardware, the WRT54GL is now your only Linksys option for third-party-compatible fun if you can't score an older model. It's the same story with the neutered WRT54GS v5, Linksys's SpeedBooster–equipped line that flaunts enhanced Wireless-G speeds.

Here we'll show you how to use these firmware utilities to optimize your wireless internet performance for gaming, VOIP, security, or increased signal strength. Continued...

Memory

Aftermarket Firmware Options and Flashing the Firmware

Here's a list of some of the popular third-party firmware available for the WRT54GL:

Sveasoft (www.sveasoft.com): Comes in two versions: Alchemy  and Talisman. Alchemy is the free public release, but later versions of the WRT54G (v4.0 or higher), WRT54GS (v3.0 or higher), or the WRT54GL (v1.0) are not supported. If you own one of these, you can purchase the latest-release Talisman. The subscription fee is $20/year and includes unlimited support and access to new releases.

DD-WRT (www.dd-wrt.com): Created in response to Sveasoft's $20 fee, early versions of DD-WRT were based on Sveasoft's Alchemy. The current version (v23), however, is an entirely new project that boasts an extensive feature set. It comes in four flavors: Mini, Standard, VoIP (includes SIPatH, a tool for VoIP serving from a Broadcom-based router), and VPN (includes OpenVPN).

HyperWRT (Thibor, www.thibor.co.uk): Thibor 14, the latest version of HyperWRT, only works with the WRT54GS (v1-v4) and WRT54GL. The GUI retains the same look and feel of the Linksys factory firmware. It doesn't have as many features as DD-WRT, but the configuration instructions on the website are fairly straightforward.

OpenWRT (openwrt.org): Built from the ground up without using Linksys sources, this is a purely command-line-based firmware for the serious Linux enthusiast who doesn't need or want a GUI. Their warning states: "Users are expected to have working knowledge of the GNU/Linux command line and basic networking concepts".

This Linksys page has a nice breakdown of features supported by HyperWRT, Sveasoft Alchemy, Talisman, and DD-WRT.

Flashing the Firmware
You can install DD-WRT and HyperWRT using the Linksys firmware flashing utility in the GUI. It is highly recommended to flash over a wired connection. For command-line-only firmware, such as OpenWRT, you can use Trivial File Transfer Protocol (TFTP). This is also an option for restoring the firmware back to a working state if the GUI flashing utility is unreachable for some reason.

For the following examples, we tested DD-WRT.v23 and HyperWRT Thibor 14. We barely scratch the surface in terms of what one is capable of with the WRT54GL and various firmware options. Continued...

Flashing Firmware

Traffic Shaping Using DD-WRT

Traffic shaping  is a way of optimizing network performance with emphasis on latency and bandwidth. Normally, without any shaping, your home broadband router deals with requests on a first come, first served basis. This strategy works just fine at McDonald's, but it comes up short in situations where high and low-priority traffic compete for limited resources.

You may have noticed your network responsiveness suffer during heavy traffic. DSL modems employ large packet queues to maximize download speed and limit packet loss, but filling your upstream quota (mine is 384kbps at home) and maxing out the queue can result in high latency. That causes severe performance degradation for interactive applications where response time really matters—VoIP calls suck, VNC takes forever to respond, or you get killed easily when playing an online FPS. VoIP traffic is especially dependent on Quality of Service (QoS), a component of traffic shaping. Network aberrations like latency, packet loss, and jitter can have a crippling effect on call quality and cause delayed speech, overlapping, echoing, and other undesirable effects.

Lowering the uplink Kbps in DD-WRT's QoS settings is the first step to making traffic shaping more efficient. That is, we set aside some extra bandwidth to guarantee service for our high-priority applications. DD-WRT recommends limiting bandwidth allocation to 80% to 95% of maximum for uploads. The downlink speed is a different story, since downstream queuing is essentially controlled by the ISP. In other words, you don't have much say about when the packets arrive, but you can control how they go out. That's where you can free up the congestion bottleneck. DD-WRT suggests setting downlink Kbps between 80% to 100% of maximum.

Say you're sharing a DSL or cable connection over a WRT54GL with bandwidth-hogging BitTorrenters and need low pings for World of Warcraft and Battlefield 2. You can customize traffic prioritization by assigning different bandwidth classes to selected services, netmasks, MACs, or Ethernet ports. The four classes are broken down into premium, express, standard, and bulk. Premium, the highest priority class where you want minimum delay, should be assigned very selectively. It'll include top-priority traffic like ICMP, DNS, handshaking, maybe VoIP. Other interactive stuff that doesn't quite fit into premium, such as browsing and SSH, fits under express. Standard includes everything else. Down at the bottom there's the bulk classification for P2P, BitTorrent, FTP, and other applications for which latency isn't a vital consideration.

QoS

If you prefer the Telnet/SSH method, you could also classify packet priority with IPtables through the command line. Continued...

DD-WRT: Boosting Wireless Range

Under the Wireless>>Advanced Settings  tab, DD-WRT has a customizable setting for transmit power. Labeled "Xmit Power", this entry is 28Mw by default, but it can be set anywhere between 0 to 251mW. The "Help" menu indicates up to 70mW is safe for improving range. Raising the power level above that, they warn, may generate excess heat in the chipset, which could shorten the life of the router.

And setting it too high probably won't boost your wireless range by much. Additional power output might actually generate enough interference to diminish SNR, hurting range and throughput performance. Finally, clients, typically power-saving laptops, probably won't be able to generate an equivalent mW radio response at the edge of the router's maximum boosted range to capitalize on the gains on one side of the transmission anyway. Continued...

Transmit Power Tweaking

Wireless Repeating with WDS

Trying to extend your WiFi reach is by no means a lost cause. In fact, it's possible to get viable range extension with DD-WRT's Wireless Distribution System (WDS) protocol. WDS provides bridging and repeating capabilities for routers. For example, you might want to share a single broadband connection through two routers, using the second router to expand your wireless range.

With WDS, two or more routers are connected wirelessly by their MAC addresses. Both the router connected directly to the internet and the remote router can accept client connections. Regardless of which router they're on, clients share the same subnet and are visible to one another across the WDS link. They also share the same network channel and encryption keys. Under this configuration, if you're planning on using WPA encryption, the same SSID should be used for both routers. For WEP, assign a different SSID for each.

Because 802.11b/g radios are half-duplex and the routers share a single channel, the additional backhaul traffic for each additional node consumes some of the available bandwidth and degrades network performance to some degree.

WDS

Using directional or high-gain antennas with boosted signal power, WRT54G buffs have managed to extend stable WDS networks over distances of many miles. Such long links usually require line of sight, so you'll often find the routers perched high atop towers and buildings with some kind of protection from the elements.

DD-WRT: Other Features

Management: DD-WRT adds features like Samba FS Automount (to mount shared folders from Windows PCs), boot wait (creates a 5 second delay while booting for flashing new firmware, typically used when the firmware is unreachable through the web interface), and support for IPv6 and Journaling Flash File System 2 (JFFS2).

Management
click on image for full view

Chillispot: This tool is useful for configuring your own captive portal hotspot with RADIUS server authentication support.

Chillispot
click on image for full view

Firewall: Additional filter settings for proxies, cookies, java applets, and cookies.

Firewall
click on image for full view

Kai Daemon: Tunneling for LAN/system-link console gaming that works with the XBox, Playstation 2, PSP, and Gamecube.

HyperWRT Thibor: Screens

HyperWRT Thibor 14: Looks and feels just like the factory Linksys firmware with a few tweaks.

HyperWRT Thibor 14 Firmware
click on image for full view

Advanced Wireless Settings: Transmit power can be set to a maximum of 84mW. The transmission rate can also be set manually from 1 to 54Mbps.

Advanced Wireless Settings
click on image for full view

Port Triggers: Dynamically forward ports based on specific applications and customizable port ranges.

Port Triggering
click on image for full view

QoS: Additional QoS settings such as prioritizing ACK and ICMP. Low, medium, high, and highest classifications can be assigned to various P2P applications: BitTorrent, Kazaa, eDonkey, and Gnutella.

QoS
click on image for full view

Factory Defaults: There's an additional "Clear NVRAM" option added to "Restore factory defaults" option.

Restore Factory Defaults
click on image for full view

Firewall: Extra firewall options like filters for proxy, Java applets, cookies, ActiveX, P2P, and blocking port scans. Continued...

Firewall

What to Do If You Brick It

With any kind of tweaking or modding, you run the risk of bricking (rendering your router useless) with a bad flash or buggy software. If that unfortunate circumstance befalls you, there are a few methods of last resort you can try before assigning the black and blue plastic box permanent paperweight status.

Pointer Graphic for Fingerlinks Read more Wireless Networking articles on ExtremeTech.

Final Thoughts: Should You?
Not everyone needs a router that accepts customized firmware. Most home users would be perfectly happy with the lesser WRT54G. But the WRT54GL opens up a host of possibilities for more demanding users. So if your wireless networking environment needs more power, or if you're interested in VOIP, you need improved security for a Wi-Fi hotspot, or you have other needs not served by standard firmware in consumer routers, check out the WRT54GL and the wealth of emerging open-source firmware.
【瑞芯微px30】【RTL8363】【五】驱动移植-网卡驱动检测网线插拔 工作中遇到rk平台 px30 linux 4.4 内核移植完成之后,网卡拔插的时候不能检测到动态的拔插状态,调试完成之后,将调用逻辑记录一下 阅读详情

相关推荐

RTL8197FH-VG+RTL8367RB boot

只支持烧录器烧录

Linux内核2.4.6调试交换芯片RTL8364\RTL8367(kernel调试篇)

平台 主控芯片arm:ast1520 Linux内核版本:2.4.6 uboot版本:1.1.4 概述 现在uboot的网络功能调通了,采用的是mac to mac的方式,并且是千兆全双工的;现在要开始调试kernel的网络了,因为kernel的网络都是走的框架,但是ast1520代码的看了下,都是自己写的驱动框架,貌似没有看到mac to mac模式的兼容,那么就先对比日志开始吧。 分析过程 对比日志好像看不出啥太大区别,那么只能跟踪一下原来的流程了,由ftgmac100_init()开始 大概就是获取m

newbee_sccc的博客 4667

Realtek_API_Source.rar_REALTEK8367_Realtek switch_realtek switc

realtek 交换芯片 驱动程序 很有价值 值得参考

RTL8367s调试

8367

zyldw的博客 3471

开源滑翔伞升降速度表:基于STM32与传感器融合的DIY飞行仪表

传感器融合是现代嵌入式系统与物联网设备中的核心技术,它通过整合多个传感器的数据,利用滤波与估计算法,获得比单一传感器更精确、更可靠的环境感知能力。其技术价值在于提升系统的鲁棒性、精度和上下文理解能力,广泛应用于无人机导航、可穿戴设备、工业监测及智能驾驶等领域。本文聚焦于一个具体的工程实践案例——开源多功能滑翔伞升降速度表(Open-Vario),该项目巧妙地运用了**卡尔曼滤波器**进行气压与GNSS数据的融合,以精确计算升降率,并基于**FreeRTOS**实时操作系统构建了一个稳定、可扩展的嵌入式平台,

weixin_33657398的博客 192

LAMMPS in文件详解:从零开始手把手教你配置金属分子动力学模拟

本文详细解析了LAMMPS in文件的配置方法,手把手教你完成金属分子动力学模拟的全流程。从软件环境准备、势函数选择,到使用Materials Studio构建模型、编写in文件进行能量最小化与系统弛豫,再到实施单轴拉伸生产模拟并提取应力应变数据,最后通过Python和OVITO进行结果分析与可视化,提供了完整的实战指南和常见问题排查技巧。

weixin_28475533的博客 534

init rtl8367

G:\sftp\a8\a8\a8\rootfs\rootfs\usr\sbin\init (1 hit)     Line 83: echo "init rtl8367" module.sh /lib/modules/3.1.0 echo "init rtl8367" rtlcfg -i rtlcfg -f -p 1 -s 1 -d 0 rtlcfg -f -p 2 -s 1 -d

q123456789098的专栏 2981

matlab实现MSK调制解调

文章目录一、要求二、设计三、代码四、结果五、结论 一、要求 画出MSK信号产生的信息、I路、Q路信号对比图以及接收端解调的信息恢复的对比图。 二、设计 1.MSK调制 2.MSK解调 三、代码 clear all;clc; N=20; T=1; fc=10; Fs=100; bitstream=randi([0,1],1,N); bitstream1=2*bitstream-1; b0=1; for i=1:N encode_output(i)=b0*bitstream

Time_book的博客 1万+

linux系统安装驱动rtl8188eu,rtl8188eu_USB_linux RTL8188EU驱动源码

【实例简介】RTL8188EU驱动源码【实例截图】【核心代码】8188eu_USB_linux├── document│ ├── Quick_Start_Guide_for_SoftAP.pdf│ ├── SoftAP_Mode_features.pdf│ ├── Wireless_tools_porting_guide.pdf│ └── linux_dhcp_server_not...

weixin_39841640的博客 814

移植 lwip,在 windows 内核构建一个 TCPIP 协议栈

移植 lwip,在 windows 内核构建一个 TCPIP 协议栈 亲,当你点开看这篇文章,就说明你知道我想要干什么事情,或者说,你知道在 Windows 的内核种绕开它的网络协议,再独立构建一个网络协议栈的意义。如果你要问我有 windows 系统的网络协议栈不用,移植 lwip 有什么意义,那么你可以关闭链接走人了,因为这篇文章不适合你,它不是讲 lwip 移植原理的。 经常关注我的博客的朋...

oRbIt 的专栏 3585

Wireshark时间分析实战:精准调试网络延迟与时间同步问题

本文深入探讨了Wireshark在网络延迟与时间同步问题分析中的核心应用。通过实战案例,详细讲解了如何设置时间显示格式、利用时间参考点量化关键路径延迟,以及运用时间平移功能校正错位时间轴。掌握这些时间分析技巧,能帮助网络工程师精准定位隐藏于数据包时序中的性能瓶颈与故障根源。

weixin_29290963的博客 268

1.3 px30驱动移植-网卡驱动框架

移植瑞芯微px30 网卡RTL8363的时候,不能识别到网卡 日志打印No found PHY, 只能调试一下代码,调试完成后,梳理网卡框架如下。

szembed的博客 1149

一文吃透 SAP IDoc 状态码:从 TEDS1 到 WE02 排障,再到 ABAP 自动化监控

在 SAP 集成场景里,IDoc 往往是最常见、也最容易被低估的一条生命线:采购订单、发票、主数据、库存移动……只要系统之间要稳定地交换结构化业务数据,IDoc 就经常登场。真正让人头疼的,并不是 IDoc 本身,而是它在链路里到底走到了哪一步、卡在了哪里、该找谁背锅。这篇文章把常用的 IDoc 状态码按出站、入站拆开讲清楚,并且把每个状态对应的真实世界故障现象、排查入口、以及可以落地的 ABAP 监控代码串起来,让你看到状态码就能想到动作。

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 426

RTL8367RB -CG

第2层管理的5 + 2-端口10/100/1000开关控制器 RTL8367RB是一款LQFP128 EPAD,高性能5 + 2端口千兆以太网交换机。 RTL8367RB具有支持1000Base-T,100Base-T和10Base-T的低功耗集成5端口Giga-PHY。 对于特定应用,RTL8367RB支持两个额外的接口,可以将其配置为RGMII / MII接口。 RTL8367RB集成了高速...

芒果木有籽 2万+

Python航空航天设计神器!从入门到实操,小白也能搞定飞机优化

AeroSandbox的核心价值的是:​降低航空工程优化的门槛,用Python实现高效、简洁的工程设计​。无论是科研、学习还是实际项目,它都能帮你节省大量时间,不用再手动推导导数、编写复杂的优化逻辑。对于新手来说,建议先从案例1(Rosenbrock函数)入手,熟悉优化流程,再尝试案例2(翼型优化),逐步掌握核心用法;对于有航空相关需求的小伙伴,可以深入研究内置的物理模型,结合自己的项目进行定制化开发。最后,互动时间到!👉 你是用AeroSandbox做科研、练手还是实际项目?

源代码杀手的博客 139

LinePhone3.2.7(android端最新版本) sip客户端

SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/

uboot移植之网络驱动移植--移植操作--7.29

1、网卡驱动文件介绍 uboot/drivers/net/dm9000x.c和dm9000x.h。 这个驱动来自于linux kernel源代码。所以我们uboot中是移植而不是编写。 2、网卡移植的关键:初始化 (1)网卡初始化代码地方在: start_armboot init_sequence board_init dm9000_pre_init 这个函数就是移植的关

西江物联的博客 1742

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

Linux内核2.4.6调试交换芯片RTL8364\RTL8367(uboot调试篇)

Linux内核2.4.6调试交换芯片RTL8364\RTL8367 主控芯片arm:ast1520 Linux内核版本:2.4.6 uboot版本:1.1.4 概述 原来的主控芯片连接的是一个phy芯片,采用的是mac控制器连接phy芯片的方式。现在的需求是把phy芯片换成了交换芯片RTL8367,并且采用mac to mac的方式进行连接。也就是arm的mac控制器直接连接到交换芯片的mac口,连接速度与连接方式都是固定的。 分析 该交换芯片支持I2C、SPI、mdio通信,但是看ast1520的uboo

newbee_sccc的博客 1万+

计算机控制技术及应用

《计算机控制技术及应用》通过总结作者的科研成果和吸收国内外的先进理论、方法和技术,以计算机控制系统的网络化、开放化、智能化和集成化发展趋势为主线索,主要介绍计算机控制系统的基本概念和计算机控制系统的典型形式,计算机控制系统的数学描述与基本分析方法,以及数字PID控制器、最少拍控制系统、达林算法、状态变量设计法等设计方法及其各种改进算法。重点突出计算机控制系统输入输出通道接口的设计方法和典型控制系统的设计案例与实现方法等。

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

RTL8367学习笔记1——基础知识

RTL8367学习笔记1——基础知识 文章目录RTL8367学习笔记1——基础知识写在前面一、RTL8367的应用举例1.5端口1000Base-T交换机二、使用步骤1.引入库2.读入数据总结 写在前面 最近开始学习RTL8367,发现自己真的像个文盲一样,这个领域对我来说实在是太陌生了,记录一下自己的学习过程,给以后的自己留一份回忆,看看现在像盲头苍蝇一样乱飞的自己。 一、RTL8367的应用举例 示例:8367可以作为5端口的1000Base-T交换机或者5端口双向MII/RGMII的1000Base

weixin_39276221的博客 1万+

求指点rtl8367s光口寄存器怎么配置

rtl8367s寄存器配置

weixin_36051159的博客 2058

基于RTL8364/RTL8367的vlan划分

vlan的划分

newbee_sccc的博客 4973

Linux route详解

route命令用于。要实现两个不同的子网之间的通信,需要一台连接,或者来实现。在系统中,设置路由通常是为了解决以下问题:该Linux系统在一个局域网中,局域网中有一个网关,能够让机器访问Internet,那么就需要将这台网关的IP地址设置为Linux机器的默认路由。要注意的是,直接在命令行下执行route命令来添加路由,不会永久保存,当网卡重启或者机器重启之后,该路由就失效了;要想永久保存,有如下方法:1、在/etc/rc.local里添加。

顺其自然~专栏 3431

10。1完整驱动

接下来,我们将根据您的需求,**实现RTL8367网口速率查询接口**,并**集成RTL8367芯片SDK支持IOCTL获取**,替换现有的`write`函数。- **RAII(资源获取即初始化)**:确保每一个`gpio_request`都有对应的`gpio_free`,每一个`alloc_chrdev_region`都有对应的`unregister_chrdev_region`。确保`rtl8367_driver_main.c`包含了驱动的主要逻辑,而`rtl8367_sdk.c`包含SDK的实现。

majhuaiii的博客 1845

8367读写

在 `RTL8367_init` 函数中,如果 `gpio_request` 或 `gpio_direction_output` 失败,我们会在 `goto` 语句中释放 GPIO 资源。`unlocked_ioctl` 函数已经处理得当,确保在用户空间和内核空间之间传递数据时,使用 `copy_from_user` 和 `copy_to_user` 来进行安全的数据传输。1. `RTL8367_IOC_I2C_READ` 和 `RTL8367_IOC_I2C_WRITE` 的处理分别完成。

majhuaiii的博客 896
上一篇: 什么是OpenWRT
下一篇: Passive Analysis of SSH (Secure Shell) Traffic
iiprogram
博客等级 码龄25年 1068粉丝 1515原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址