ubnt解决方案
查看: 24385|回复: 18

[路由器改造] 改造斐讯FWR601路由器,换8M Flash,32M内存后写入Uboot

[复制链接]

220

回帖

868

积分

199 小时

在线时间

中尉

注册时间
2009-3-29
金币
606 个
威望
0 个
荣誉
0 个
累计签到:31 天
连续签到:0 天
[LV.50]初入江湖
发表于 2014-2-22 15:58
硬件的改造在下面的帖子中已经完成http://www.anywlan.com/thread-267761-1-1.html
此贴是为了寻找合适的Uboot,开始想使用不用TTL的方法,用SecureCRT,参考了很多别人的帖子,备份都成功,但是写入时失败,提示

root@OpenWrt:/tmp# flash_unlock /dev/mtd0
flash_unlock: error!: could not open: /dev/mtd0
              error 13 (Permission denied)
root@OpenWrt:/tmp# flashcp uboot256.img /dev/mtd0
While trying to open /dev/mtd0 for read/write access: Permission denied。

应该是没能打开其写入权限,请高手指教。细节参见http://www.anywlan.com/forum.php?mod=viewthread&tid=268713&page=1&extra=#pid5456519.

那就只能使用ttl了。下面尝试使用TTL。
TTL连接好以后,在启动过程中,按下9:
Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.
观察要求的IP地址,设置好TFTP服务器,将Uboot的代码写入到设备中,设备会自动重启,如果没有错误的话,系统就又运行起来。
我的目的是找一个能有8M闪存空间的Uboot,很遗憾没有找到。
测试的几个Uboot:
1.最早用编程器写入的含固件的系统:固件是从这个帖子下载的:http://www.anywlan.com/thread-198687-1-1.htmlrt5350123.rar
若写入的固件失败,可以使用复位键用TFTP重新写入固件,方法是按着复位键给设备加电。设置TFTP服务器的IP地址为192.168.16.111(或者是123,可能是这个,记不太清楚了,可以用wireshark试试)。

2.从
https://github.com/JiapengLi/OpenWrt-RT5350 下载的Uboot256.img,注意:他自己声明是:
UbootSelf compile uboot imageThese two file use 192.168.2.1(device ip) and 192.168.2.2(server ip) by default.
uboot256.img - (RT5350 32M RAM Uboot,support 32M SDRAM)
uboot128.img - (RT5350 16M RAM Uboot,support 16M SDRAM)

可是写入后若固件失败,要重新写入的话,一是不支持上面描述的
用复位键用TFTP重新写入固件,二是若由TTL按2写入新的固件,TFTP的IP地址是10.10.10.123

3.上面的Uboot不完美,最后使用这个固件,也是从
https://github.com/JiapengLi/OpenWrt-RT5350 下载,Hame offcial mpr-a1 uboot image
hame-mpr-a1-v22-uboot128.bin - (HAME Uboot support 16MRAM, divide from hame-mpr-a1-v22.bin) 。
这个Uboot运行的非常好,虽然原作者声明是16MRAM,但是对32M的RAM支持的非常好。就是依旧只有4M的Flash可用,固件是不是不能超过4M,超过以后会如何,不得而知。
此固件不仅支持用复位键用TFTP重新写入固件,还可以用如下方法写入,非常方便,上传此Uboot。



发现个小工具可以不焊ttl也可以刷机,华美网站上的   A1红灯长亮无法开机,升级程序。--内附操作说明书、工具、软件。
http://www.hamedata.com.cn/uploadfiles/download/201210110214219016.rar

刷机有风险,请谨慎!变砖不负责!编程器可解决!

Uboot已经解决,虽然不太完美,可能只支持不超过4M的IMG,先凑合用了,毕竟已经可以刷机失败时不用TTL和编程器了。

准备开始折腾Openwrt了。现在使用的固件是我自己编译的,使用上没有什么问题,就是Lan2、Lan3和Lan4的灯在和插网线时常亮,插入网线就正常闪烁,大概知道为什么,但是要修改哪里编译,请高手指教。



Uboot启动TTL的信息:


U-Boot 1.1.7 (Dec 13 2011 - 13:49:42)
Board: Ralink APSoC DRAM:  32 MB
relocate_code Pointer at: 81fb4000
******************************
Software System Reset Occurred
******************************
spi_wait_nsec: 42
spi device id: c2 20 17 c2 20 (2017c220)
find flash: MX25L6405D
raspi_read: from:30000 len:1000
.*** Warning - bad CRC, using default environment

============================================
Ralink UBoot Version: 3.6.0.0
--------------------------------------------
ASIC 5350_MP (Port5<->None)
DRAM_CONF_FROM: Boot-Strapping
DRAM_TYPE: SDRAM
DRAM_SIZE: 256 Mbits
DRAM_WIDTH: 16 bits
DRAM_TOTAL_WIDTH: 16 bits
TOTAL_MEMORY_SIZE: 32 MBytes
Flash component: SPI Flash
Dateec 13 2011  Time:13:49:42
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384

##### The CPU freq = 360 MHZ ####
estimate memory size =32 Mbytes
raspi_read: from:40028 len:6
.
raspi_read: from:0 len:30004
....*************Is_update = 0 plat = 1**************

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.

You choosed 3
0
   
3: System Boot system code via Flash.
## Booting image at bc050000 ...
raspi_read: from:50000 len:40
.   Image Name:   Linux Kernel Image
   Created:      2014-02-22   2:12:23 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    972801 Bytes = 950 kB
   Load Address: 80000000
   Entry Point:  80000000
raspi_read: from:50040 len:ed801
...............   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 32

Starting kernel ...
[    0.000000] Linux version 3.10.28 (mike@mike-7010) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r39637) ) #2 Sat Feb 22 10:12:16 CST 2014
[    0.000000] SoC Type: Ralink RT5350 id:1 rev:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001964c (MIPS 24KEc)
[    0.000000] MIPS: machine is HAME MPR-A1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00007f10
[    0.000000] Readback ErrCtl register=00007f10
[    0.000000] Memory: 29352k/32768k available (2127k kernel code, 3416k reserved, 535k data, 216k init, 0k highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:128
[    0.000000] CPU Clock: 360MHz
[    0.000000] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 512
[    0.080000] pinctrl core: initialized pinctrl subsystem
[    0.090000] NET: Registered protocol family 16
[    0.110000] rt2880-pinmux pinctrl.1: invalid group "rgmii" for function "gpio"
[    0.120000] rt2880-pinmux pinctrl.1: invalid group "mdio" for function "gpio"
[    0.150000] bio: create slab <bio-0> at 0
[    0.160000] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.170000] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.180000] Switching to clocksource MIPS
[    0.190000] NET: Registered protocol family 2
[    0.200000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.220000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.230000] TCP: Hash tables configured (established 512 bind 512)
[    0.240000] TCP: reno registered
[    0.250000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.260000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.270000] NET: Registered protocol family 1
[    0.280000] rt-timer 10000100.timer: maximum frequncy is 7324Hz
[    0.330000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.340000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.360000] msgmni has been set to 57
[    0.370000] io scheduler noop registered
[    0.380000] io scheduler deadline registered (default)
[    0.390000] gpio-export gpio_export.6: 2 gpio(s) exported
[    0.400000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.420000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20) is a 16550[    0.440000] console [ttyS0] enabled, bootconsole disabled
[    0.440000] console [ttyS0] enabled, bootconsole disabled
[    0.470000] m25p80 spi32766.0: found mx25l6405d, expected s25fl064k
[    0.480000] m25p80 spi32766.0: mx25l6405d (8192 Kbytes)
[    0.490000] 4 ofpart partitions found on MTD device spi32766.0
[    0.500000] Creating 4 MTD partitions on "spi32766.0":
[    0.510000] 0x000000000000-0x000000030000 : "u-boot"
[    0.530000] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.540000] 0x000000040000-0x000000050000 : "factory"
[    0.550000] 0x000000050000-0x000000400000 : "firmware"
[    0.570000] 0x00000013d841-0x000000400000 : "rootfs"
[    0.580000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.610000] mtd: device 4 (rootfs) set to be root filesystem
[    0.620000] mtd: partition "rootfs_data" created automatically, ofs=0x350000, len=0xb0000
[    0.640000] 0x000000350000-0x000000400000 : "rootfs_data"
[    0.660000] eth0: done loading
[    0.670000] rt3xxx-usbphy ubsphy.3: loaded
[    0.680000] rt2880_wdt 10000120.watchdog: Initialized
[    0.690000] TCP: cubic registered
[    0.700000] NET: Registered protocol family 17
[    0.710000] 8021q: 802.1Q VLAN Support v1.8
[    0.740000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    0.750000] Freeing unused kernel memory: 216K (8029a000 - 802d0000)
procd: Console is alive
procd: - watchdog -
procd: - preinit -
[    6.780000] rt305x-esw 10110000.esw: link changed 0x00
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    8.010000] usbcore: registered new interface driver usbfs
[    8.030000] usbcore: registered new interface driver hub
[    8.040000] usbcore: registered new device driver usb
[    8.060000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.070000] ehci-platform: EHCI generic platform driver
[    8.290000] rt3xxx-usbphy ubsphy.3: remote usb device wakeup disabled
[    8.300000] rt3xxx-usbphy ubsphy.3: UTMI 16bit 30MHz
[    8.310000] ehci-platform 101c0000.ehci: EHCI Host Controller
[    8.320000] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    8.340000] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    8.370000] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    8.380000] hub 1-0:1.0: USB hub found
[    8.390000] hub 1-0:1.0: 1 port detected
[    8.400000] rt305x-esw 10110000.esw: link changed 0x01
[    8.410000] rt305x-esw 10110000.esw: link changed 0x11
[    8.420000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    8.430000] ohci-platform 101c1000.ohci: Generic Platform OHCI Controller
[    8.450000] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    8.460000] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    8.540000] hub 2-0:1.0: USB hub found
[    8.550000] hub 2-0:1.0: 1 port detected
[    8.560000] leds-gpio gpio-leds.4: pins are not configured from the driver
mount_root: jffs2 is not ready - EOF marker found
procd: - early -
procd: - watchdog -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[   14.400000] NET: Registered protocol family 10
[   14.430000] nf_conntrack version 0.5.0 (462 buckets, 1848 max)
[   14.450000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   14.490000] Loading modules backported from Linux version master-2014-01-23-0-g62c147d
[   14.510000] Backport generated by backports.git backports-20140124-0-g1256d3e
[   14.530000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.610000] xt_time: kernel timezone is -0000
[   14.670000] cfg80211: Calling CRDA to update world regulatory domain
[   14.730000] cfg80211: World regulatory domain updated:
[   14.740000] cfg80211:  DFS Master region: unset
[   14.740000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   14.760000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   14.780000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   14.790000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   14.810000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)
[   14.820000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)
[   14.840000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm)
[   14.880000] PPP generic driver version 2.4.2
[   14.890000] NET: Registered protocol family 24
[   14.970000] rt2800_wmac 10180000.wmac: failed to load eeprom property
[   14.990000] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'soc_wmac.eeprom'.
[   15.200000] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5350, rev 0500 detected
[   15.210000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5350 detected
[   20.570000] rt305x-esw 10110000.esw: link changed 0x00
[   22.220000] rt305x-esw 10110000.esw: link changed 0x10
[   22.270000] rt305x-esw 10110000.esw: link changed 0x11
[   26.700000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   26.740000] jffs2_build_filesystem(): unlocking the mtd device... done.
[   26.750000] jffs2_build_filesystem(): erasing all blocks after the end marker... [   28.550000] device eth0.1 entered promiscuous mode
[   28.560000] device eth0 entered promiscuous mode
[   28.600000] br-lan: port 1(eth0.1) entered forwarding state
[   28.610000] br-lan: port 1(eth0.1) entered forwarding state
[   30.610000] br-lan: port 1(eth0.1) entered forwarding state
done.
[   35.100000] jffs2: notice: (861) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
procd: - init complete -







????????

88

回帖

696

积分

141 小时

在线时间

中尉

注册时间
2012-8-20
金币
583 个
威望
0 个
荣誉
0 个
累计签到:41 天
连续签到:0 天
[LV.50]初入江湖
发表于 2014-9-2 00:28
sd007 发表于 2014-8-31 23:07
对,应该没问题。如果有问题,应该是固件不正确。建议使用不死Uboot.

路由已成砖了.. 灯是全亮的 ..4M 32内存 ,设置固定192.168.1.2  255.255.255.0,  能ping192.168.1.2通,但是输入192.168.1.1 无法打开网页....
发广告gh

220

回帖

868

积分

199 小时

在线时间

中尉

注册时间
2009-3-29
金币
606 个
威望
0 个
荣誉
0 个
累计签到:31 天
连续签到:0 天
[LV.50]初入江湖
发表于 2014-2-23 12:53
本帖最后由 sd007 于 2014-3-2 11:07 编辑

最终完成了8M Flash和比较完美的固件,使用的Uboot是从下面地址下载的华美A100编程器固件.zip中提取的前128K。只刷写Uboot不影响系统启动。固件使用的是从openwrt下载的openwrt-ramips-rt305x-dir-320-b1-squashfs-sysupgrade.bin,固件要求Flash为8M Ram为32M,正好都一样大。

http://pan.baidu.com/s/1qWLeJ5E  :华美A100编程器固件.zip
http://pan.baidu.com/s/1kTqMQiV  penwrt-ramips-rt305x-dir-320-b1-squashfs-sysupgrade.bin
或者原始地址:https://code.google.com/p/openwr ... pgrade.bin&can=2&q=  
http://pan.baidu.com/s/1dDorljN   ::华美A100的Uboot。

测试中使用了TTL刷机和A1提供的按Reset刷机的方法,均成功。
????????

220

回帖

868

积分

199 小时

在线时间

中尉

注册时间
2009-3-29
金币
606 个
威望
0 个
荣誉
0 个
累计签到:31 天
连续签到:0 天
[LV.50]初入江湖
发表于 2014-2-23 12:56
显示UBoot的版本号为1.1.8.

U-Boot 1.1.8 (Feb  6 2012 - 16:07:57)

Board: Ralink APSoC DRAM:  32 MB
relocate_code Pointer at: 81fb0000
spi_wait_nsec: 42
spi device id: c2 20 17 c2 20 (2017c220)
find flash: MX25L6405D
raspi_read: from:30000 len:1000
.*** Warning - bad CRC, using default environment

============================================
Ralink UBoot Version: 3.6.0.0
--------------------------------------------
ASIC 5350_MP (Port5<->None)
DRAM_CONF_FROM: Boot-Strapping
DRAM_TYPE: SDRAM
DRAM_SIZE: 256 Mbits
DRAM_WIDTH: 16 bits
DRAM_TOTAL_WIDTH: 16 bits
TOTAL_MEMORY_SIZE: 32 MBytes
Flash component: SPI Flash
Date:Feb  6 2012  Time:16:07:57
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384

##### The CPU freq = 360 MHZ ####
estimate memory size =32 Mbytes
raspi_read: from:40028 len:6
.
raspi_read: from:0 len:30004
....[ff ff]
Init Plat A1
*************Is_update = 0 plat = 1**************
No lcd plat
Disable usb
Usb ok

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.
0
   
3: System Boot system code via Flash.
## Booting image at bc050000 ...
raspi_read: from:50000 len:40
.   Image Name:   DIR320B1
   Created:      2013-02-23  11:49:39 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    924629 Bytes = 903 kB
   Load Address: 80000000
   Entry Point:  80000000
raspi_read: from:50040 len:e1bd5
...............   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 32

Starting kernel ...

[    0.000000] Linux version 3.7.9 (vbox@vbox-VirtualBox) (gcc version 4.6.4 20121210 (prerelease) (Linaro GCC 4.6-2012.12) ) #8 Sat Feb 23 15:48:54 MSK 2013
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001964c (MIPS 24KEc)
[    0.000000] Ralink RT5350 id:1 rev:3 running at 360.00 MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  board=DIR-320-B1 console=ttyS1,57600 mtdparts=spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,1024k(kernel),6848k(rootfs),7872k@0x50000(firmware) rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] __ex_table already sorted, skipping sort
[    0.000000] Writing ErrCtl register=00007f1b
[    0.000000] Readback ErrCtl register=00007f1b
[    0.000000] Memory: 29568k/32768k available (1992k kernel code, 3200k reserved, 475k data, 220k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:48
[    0.000000] console [ttyS1] enabled, bootconsole disabled
[    0.000000] console [ttyS1] enabled, bootconsole disabled
[    0.010000] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 512
[    0.090000] NET: Registered protocol family 16
[    0.100000] MIPS: machine is D-Link DIR-320 B1
[    0.130000] bio: create slab <bio-0> at 0
[    0.140000] Switching to clocksource MIPS
[    0.150000] NET: Registered protocol family 2
[    0.160000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.180000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.190000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.200000] TCP: reno registered
[    0.210000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.220000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.230000] NET: Registered protocol family 1
[    0.280000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.290000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.320000] msgmni has been set to 57
[    0.320000] io scheduler noop registered
[    0.330000] io scheduler deadline registered (default)
[    0.340000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.360000] serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A
[    0.370000] serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
[    0.390000] ramips-spi ramips-spi.0: master is unqueued, this is deprecated
[    0.410000] m25p80 spi0.0: found mx25l6405d, expected s25fl064k
[    0.420000] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    0.430000] 6 cmdlinepart partitions found on MTD device spi0.0
[    0.440000] Creating 6 MTD partitions on "spi0.0":
[    0.450000] 0x000000000000-0x000000030000 : "u-boot"
[    0.460000] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.480000] 0x000000040000-0x000000050000 : "factory"
[    0.490000] 0x000000050000-0x000000150000 : "kernel"
[    0.500000] 0x000000150000-0x000000800000 : "rootfs"
[    0.520000] mtd: partition "rootfs" set to be root filesystem
[    0.530000] mtd: partition "rootfs_data" created automatically, ofs=680000, len=180000
[    0.550000] 0x000000680000-0x000000800000 : "rootfs_data"
[    0.560000] 0x000000050000-0x000000800000 : "firmware"
[    0.580000] ramips-wdt ramips-wdt: timeout value must be 0 < timeout <= 35, using 35
[    0.600000] TCP: cubic registered
[    0.610000] NET: Registered protocol family 17
[    0.620000] 8021q: 802.1Q VLAN Support v1.8
[    0.660000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    0.670000] Freeing unused kernel memory: 220k freed
[    6.230000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
[    6.420000] Button Hotplug driver version 0.4.1
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
[   10.520000] jffs2: notice: (360) jffs2_build_xattr_subsystem: complete building xattr subsystem, 3 of xdatum (0 unchecked, 3 orphan) and 53 of xref (0 dead, 53 orphan) found.
[   12.180000] SCSI subsystem initialized
[   12.590000] usbcore: registered new interface driver usbfs
[   12.600000] usbcore: registered new interface driver hub
[   12.610000] usbcore: registered new device driver usb
[   13.530000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   14.540000] ehci-platform ehci-platform: Generic Platform EHCI Controller
[   14.560000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[   14.600000] ehci-platform ehci-platform: irq 26, io mem 0x101c0000
[   14.630000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[   14.640000] hub 1-0:1.0: USB hub found
[   14.650000] hub 1-0:1.0: 1 port detected
[   14.980000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   14.990000] ohci-platform ohci-platform: Generic Platform OHCI Controller
[   15.010000] ohci-platform ohci-platform: new USB bus registered, assigned bus number 2
[   15.020000] ohci-platform ohci-platform: irq 26, io mem 0x101c1000
[   15.090000] hub 2-0:1.0: USB hub found
[   15.100000] hub 2-0:1.0: 1 port detected
[   15.130000] dwc_otg: version 2.72a 24-JUN-2008
[   15.280000] Initializing USB Mass Storage driver...
[   15.290000] usbcore: registered new interface driver usb-storage
[   15.300000] USB Mass Storage support registered.
switching to jffs2
- init -

Please press Enter to activate this console. [   42.130000] Compat-drivers backport release: compat-drivers-2013-01-08-3
[   42.150000] Backport based on wireless-testing.git master-2013-01-07
[   42.160000] compat.git: wireless-testing.git
[   42.220000] cfg80211: Calling CRDA to update world regulatory domain
[   42.230000] cfg80211: World regulatory domain updated:
[   42.240000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   42.260000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   42.270000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   42.290000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   42.300000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   42.320000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   43.060000] NET: Registered protocol family 10
[   44.830000] NTFS driver 2.1.30 [Flags: R/O MODULE].
[   45.400000] PPP generic driver version 2.4.2
[   45.460000] tun: Universal TUN/TAP device driver, 1.6
[   45.470000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   45.630000] PPP MPPE Compression module registered
[   45.760000] l2tp_core: L2TP core driver, V2.0
[   45.800000] l2tp_netlink: L2TP netlink interface
[   45.950000] sit: IPv6 over IPv4 tunneling driver
[   46.140000] gre: GRE over IPv4 demultiplexor driver
[   46.170000] ip_gre: GRE over IPv4 tunneling driver
[   46.490000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   46.840000] NET: Registered protocol family 24
[   47.010000] nf_conntrack version 0.5.0 (465 buckets, 1860 max)
[   47.510000] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[   47.540000] PPTP driver version 0.8.5
[   48.280000] xt_time: kernel timezone is -0000
[   48.740000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   49.210000] usbcore: registered new interface driver cdc_acm
[   49.220000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   49.420000] usbcore: registered new interface driver usblp
[   49.570000] usbcore: registered new interface driver usbserial
[   49.580000] usbcore: registered new interface driver usbserial_generic
[   49.590000] usbserial: USB Serial support registered for generic
[   49.660000] usbcore: registered new interface driver asix
[   49.700000] usbcore: registered new interface driver cdc_ether
[   49.750000] usbcore: registered new interface driver cdc_ncm
[   49.930000] usbcore: registered new interface driver rndis_host
[   50.090000] usbcore: registered new interface driver sierra_net
[   50.220000] usbcore: registered new interface driver ipw
[   50.230000] usbserial: USB Serial support registered for IPWireless converter
[   50.390000] usbcore: registered new interface driver option
[   50.410000] usbserial: USB Serial support registered for GSM modem (1-port)
[   50.450000] usbcore: registered new interface driver pl2303
[   50.460000] usbserial: USB Serial support registered for pl2303
[   50.500000] usbcore: registered new interface driver sierra
[   50.520000] usbserial: USB Serial support registered for Sierra USB modem
[   50.970000] u32 classifier
[   50.970000]     Performance counters on
[   50.980000]     input device check on
[   50.990000]     Actions configured
[   51.190000] Mirror/redirect action on
[   51.400000] fuse init (API version 7.20)
[   63.630000] ramips-wdt: timeout value 60 must be 0 < timeout <= 35, using 35
[   64.540000] device eth0.1 entered promiscuous mode
[   64.550000] device eth0 entered promiscuous mode
[   64.570000] br-lan: port 1(eth0.1) entered forwarding state
[   64.580000] br-lan: port 1(eth0.1) entered forwarding state
[   66.580000] br-lan: port 1(eth0.1) entered forwarding state
????????

11

回帖

105

积分

19 小时

在线时间

上等兵

注册时间
2014-2-14
金币
76 个
威望
1 个
荣誉
1 个
累计签到:1 天
连续签到:0 天
[LV.20]漫游旅程
发表于 2014-3-2 11:54
楼主能介绍下怎么从编程器固件中提取uboot吗?

220

回帖

868

积分

199 小时

在线时间

中尉

注册时间
2009-3-29
金币
606 个
威望
0 个
荣誉
0 个
累计签到:31 天
连续签到:0 天
[LV.50]初入江湖
发表于 2014-3-2 17:09
读出固件,前面的128K就是Uboot。

220

回帖

868

积分

199 小时

在线时间

中尉

注册时间
2009-3-29
金币
606 个
威望
0 个
荣誉
0 个
累计签到:31 天
连续签到:0 天
[LV.50]初入江湖
发表于 2014-3-7 22:26
本帖最后由 sd007 于 2014-4-16 23:14 编辑

上面描述的固件,openwrt-ramips-rt305x-dir-320-b1-squashfs-sysupgrade.bin,此固件可以把无线打开,可以做无线路由器使用(为什么要啰嗦这一句,因为我还有好几个版本的,均不能成功打开无线网络),从https://code.google.com/p/openwr ... pgrade.bin&can=2&q=   下载,但是此版本的samba共享未调试成功,有时间分析下什么原因。{结果出来了,卸载了samba36-server_3.6.11-2_ramips.ipk,换成了samba36-server_3.6.11-1_ramips.ipk就ok了,不明白为什么,呵呵。新版本反而不兼容??}

可以在界面的system/software下直接卸载,也可使用如下命令行卸载:
opkg remove samba36-server - 3.6.11-2 --force-depends

然后在电脑上下载文件后上传到tmp目录下用以下命令安装:
文件下载自:http://openwrt-on-dir-320-b1.googlecode.com/svn/opkg/samba36-server_3.6.11-1_ramips.ipk
用Winscp上传到/tmp下,用下述命令安装:
opkg install /tmp/samba36-server_3.6.11-1_ramips.ipk
然后可以在界面或者命令行启动它:
/etc/init.d/samba enable
/etc/init.d/samba restart

如果从界面卸载后可能Service下的Network Shares也不见了,需要下载:
http://openwrt-on-dir-320-b1.googlecode.com/svn/opkg/luci-app-samba_trunk+svn9668-1_ramips.ipk
然后用Winscp上传到/tmp下,用下述命令安装:
opkg install /tmp/opkg/luci-app-samba_trunk+svn9668-1_ramips.ipk
重新启动后可以设置共享,设置的共享也可以用Windows正常访问。

为了测试能共享文件的版本,我还尝试了:
在  https://code.google.com/p/openwrt-on-dir-320-b1/downloads/list  这里下载了其它几个文件,调试无线都不成功。我还从这里下载了源码,结果都是无论如何不能调试出无线来,我自己编译的也一样。倒是把samba共享文件成功调试了出来。
也试着加了个USB接口,另外找了个5V电源,连接上一个U盘,把U盘里的内容也共享了出来。

测试过从该网站下载的以下文件:
openwrt-AA-std-12.06.2013.bin  和    openwrt-BB-std-01.06.2013.bin   
以及自己编译的固件,都是打开无线的时候出问题,kernel log提示:
[  333.620000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  333.650000] device wlan0 entered promiscuous mode
????????

452

回帖

1451

积分

205 小时

在线时间

上尉

注册时间
2014-3-14
金币
959 个
威望
0 个
荣誉
0 个
累计签到:56 天
连续签到:0 天
[LV.100]试剑无线
发表于 2014-5-1 12:32
支持!这么好的文章!

21

回帖

137

积分

40 小时

在线时间

上等兵

注册时间
2012-6-9
金币
111 个
威望
0 个
荣誉
0 个

尚未签到

发表于 2014-5-19 11:54
我有空试一下 mx25l12845emi-10g
16m+64m能否使用

63

回帖

824

积分

122 小时

在线时间

中尉

注册时间
2014-5-7
金币
739 个
威望
1 个
荣誉
0 个
累计签到:68 天
连续签到:0 天
[LV.100]试剑无线
发表于 2014-5-25 21:51
好多  呵呵
头像被屏蔽

439

回帖

998

积分

17 小时

在线时间

禁止发言

注册时间
2014-5-19
金币
552 个
威望
0 个
荣誉
0 个
累计签到:16 天
连续签到:0 天
[LV.20]漫游旅程
发表于 2014-5-28 23:00
提示: 作者被禁止或删除 内容自动屏蔽

60

回帖

162

积分

46 小时

在线时间

上等兵

注册时间
2013-9-28
金币
95 个
威望
0 个
荣誉
0 个
累计签到:1 天
连续签到:0 天
[LV.20]漫游旅程
发表于 2014-6-1 04:06
sd007 发表于 2014-2-23 12:53
最终完成了8M Flash和比较完美的固件,使用的Uboot是从下面地址下载的华美A100编程器固件.zip中提取的前128 ...

16M有没法搞定

1653

回帖

5366

积分

831 小时

在线时间

中校

灌水天才

注册时间
2014-4-3
金币
3539 个
威望
5 个
荣誉
1 个
累计签到:311 天
连续签到:0 天
[LV.365]无线熟人
发表于 2014-6-1 19:36
高大上的节奏

站点统计 | Archiver | 手机版 | 无线门户 ( 粤ICP备11076993号|粤公网安备44010602008359号 ) |网站地图

GMT+8, 2025-1-11 15:56

返回顶部 返回列表