找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 9516|回复: 13

wbr-g54 sd/mmc卡扩充方案重点

[复制链接]
发表于 2006-9-3 23:38 | 显示全部楼层 |阅读模式
wbr-g54经典型号机器,使用bcm4702 cpu,有点老,但与其它47系列还是基本兼容的。
不知是cpu版本的原因还是sdk对板型识别的原因(对buffalo尤其是wbr-g54和wbr2-g54,dd-wrt采取了与大多数其它品牌其它型号不同的识别方式),在该机上操作gpio的方式与众不同。所以需要改mmc驱动才可以。
附件是修改后的mmc驱动,使用gpio6代替标准接法的gpio4,以获得reset button的兼容性(不用关闭reset button支持)。

别的东西wvr-g54-nf的方案里都说了,就不罗嗦了

哦哦,还有,这个型号是3.3V供电的(有的配的是3V电源,一样的,差点没问题),所以取电相对容易,没有拍照(机器已经给我弟弟了),我是在主板的电源电路后面(经过电源电路处理过后)取的电,应该比直接电源进来要稳定一点,用万用表看一下就好了。
GND到处都有,就不说了。

软件方面,
用winscp把mmc.o,如果用FAT格式,把vfat.o与fat.o一起复制到路由器/tmp下,然后运行如下命令:

cd /tmp
insmod ./mmc.o
insmod ./fat.o
insmod ./vfat.o
mount -tvfat /dev/mmc/disc0/part1 /mmc

如果一切ok,ls -al /mmc就能看到mmc卡里面东西了

如果用ext2,就不用vfat.o跟fat.o了,dd-wrt提供了ext2支持,不过如果没有打开mmc支持的话,要insmod一下,然后mount上去就可以了(如果没有格式化要先mkfs),具体可以google也可以自己研究。

[ 本帖最后由 jnjn 于 2006-9-3 23:47 编辑 ]

本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2006-9-3 23:39 | 显示全部楼层
GPIO3和GPIO5

本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2006-9-3 23:40 | 显示全部楼层
GPIO4跟GPIO6

本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2006-9-3 23:41 | 显示全部楼层
GPIO 7

本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2006-9-3 23:42 | 显示全部楼层
For the SD card to work we need to attach 6 wires inside the router. This drawing of the SD card should give an idea of the pins that come into play:

1. CS - Chip Select for the SD card
GPIO7

2. DI - Data in on the SD card.
GPIO5

3. VSS - Ground is a good thing
GND

4. VDD - We need power of course. 3.3V will do the job
3.3v

5. CLK - The clock we generate for the SD card
GPIO3

6. VSS2 - Another ground is also a good thing
GND

7. DO - Data out from the SD card
GPIO4  (WBR-G54上用GPIO 6替换,我的驱动是针对6的)

本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2006-9-3 23:53 | 显示全部楼层
看看效果,呵呵

本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2006-9-4 10:01 | 显示全部楼层
还能看见中文。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2006-9-4 11:02 | 显示全部楼层
linux,命令也得学习了啦。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2006-9-11 04:06 | 显示全部楼层
whr3-ag54是不是一样加装?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2006-9-11 09:41 | 显示全部楼层
强的,呵呵
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2006-9-11 09:42 | 显示全部楼层
WHR2-G54V也一样加行不?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2006-9-11 09:59 | 显示全部楼层
此处看到有SD的插槽http://www.ouravr.com/shop/product_detail.jsp?kind=normal&product_id=3673&class_id=3300&super_id=1381

[ 本帖最后由 吸铁石 于 2006-9-11 10:01 编辑 ]

本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2006-9-23 19:57 | 显示全部楼层
能建个FTP服务器不?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2006-10-17 10:09 | 显示全部楼层
~ # cd /tmp
/tmp # insmod mmc.o
/tmp # dmesg
/tmp # insmod ./vfat.o
/tmp # insmod ./vfat.o
/tmp # insmod ./msdos.o
/tmp # mount -tvfat /dev/mmc1/disc0/part1 /mmc
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-20 06:05

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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