|
MT7620N好像没什么搞,小度出了MT7620A,OP官网最早就支持A,N也就是刚出,但还不能支持国内的型号(要自行修改代码),就买了一台回来研究。拆开板很干净,高集成都是这样,有5G芯片空位。第一步刷OPENWRT,失败ING。第二步,升128M内存,中行ING。
接上TTL线:
Ralink UBoot Version: 4.1.2.0
--------------------------------------------
ASIC 7620_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Nov 1 2013 Time:13:49:26
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768
##### The CPU freq = 580 MHZ ####
estimate memory size =64 Mbytes
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 bc040000 ...
raspi_read: from:40000 len:40
Image Name: Ai-BR
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 5019591 Bytes = 4.8 MB
Load Address: 80000000
Entry Point: 8000c310
raspi_read: from:40040 len:4c97c7
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 8000c310) ...
## Giving linux memsize in MB, 64
Starting kernel ...
LINUX started...
THIS IS ASIC
Linux version 2.6.36 (chris@ubuntu-dt) (gcc version 3.4.2) #2 Wed Dec 4 17:18:29 CST 2013
The CPU feqenuce set to 580 MHz
MIPS CPU sleep mode enabled.
PCIE: bypass PCIe DLL.
PCIE: Elastic buffer control: Addr:0x68 -> 0xB4
disable all power about PCIe
CPU revision is: 00019650 (MIPS 24Kc)
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
Normal 0x00000000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00004000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: console=ttyS1,57600n8 root=/dev/ram0 console=ttyS0
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Writing ErrCtl register=0000000c
Readback ErrCtl register=0000000c
Memory: 56176k/65536k available (4354k kernel code, 9360k reserved, 808k data, 3404k init, 0k highmem)
NR_IRQS:128
MTK/Ralink System Tick Counter init... cd:804f1e78, m:214748, s:32
console [ttyS1] enabled
Calibrating delay loop... 386.04 BogoMIPS (lpj=772096)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource Ralink external timer
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
写入OPENWRT固件出错:
TIMEOUT_COUNT=10,Load address: 0x80a00000
Loading: Got ARP REPLY, set server/gtwy eth addr (bc:5f:f4:77:cc:a8)
Got it
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
################
done
Bytes transferred = 3407876 (340004 hex)
NetBootFileXferSize= 00340004
raspi_read: from:20000 len:10000
Erasing SPI Flash...
raspi_erase: offs:20000 len:10000
.
Writing to SPI Flash...
raspi_write: to:20000 len:10000
.
done
Automatic boot of image at addr 0x80A00000 ...
## Booting image at 80a00000 ...
Image Name: MIPS OpenWrt Linux-3.10.21
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1041827 Bytes = 1017.4 kB
Load Address: 80000000
Entry Point: 80000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64
Starting kernel ...
[ 0.000000] Linux version 3.10.21 (dari@ubuntu) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r39056) ) #2 Mon Dec 16 22:06:05 CST 2013
[ 0.000000] Board has DDR2
[ 0.000000] Analog PMU set to hw control
[ 0.000000] Digital PMU set to hw control
[ 0.000000] SoC Type: Ralink MT7620A ver:2 eco:3
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019650 (MIPS 24KEc)
[ 0.000000] MIPS: machine is Buffalo WHR-300HP2
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x03ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x03ffffff]
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Writing ErrCtl register=00040000
[ 0.000000] Readback ErrCtl register=00040000
[ 0.000000] Memory: 61576k/65536k available (2348k kernel code, 3960k reserved, 567k data, 220k 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: 580MHz
[ 0.000000] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.060000] pid_max: default: 32768 minimum: 301
[ 0.060000] Mount-cache hash table entries: 512
[ 0.070000] pinctrl core: initialized pinctrl subsystem
[ 0.080000] NET: Registered protocol family 16
[ 0.100000] bio: create slab <bio-0> at 0
[ 0.110000] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.120000] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.130000] rt2880_gpio 10000660.gpio: registering 32 gpios
[ 0.140000] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[ 0.150000] Switching to clocksource MIPS
[ 0.160000] NET: Registered protocol family 2
[ 0.170000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.180000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.190000] TCP: Hash tables configured (established 512 bind 512)
[ 0.210000] 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.240000] NET: Registered protocol family 1
[ 0.250000] rt-timer 10000100.timer: maximum frequncy is 2441Hz
[ 0.270000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.280000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.310000] msgmni has been set to 120
[ 0.310000] io scheduler noop registered
[ 0.320000] io scheduler deadline registered (default)
[ 0.330000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.360000] console [ttyS0] enabled, bootconsole disabledirq = 20) is a 16550A
[ 0.360000] console [ttyS0] enabled, bootconsole disabled
[ 0.390000] m25p80 spi32766.0: found mx25l6405d, expected en25q64
[ 0.400000] m25p80 spi32766.0: mx25l6405d (8192 Kbytes)
[ 0.410000] 5 ofpart partitions found on MTD device spi32766.0
[ 0.420000] Creating 5 MTD partitions on "spi32766.0":
[ 0.430000] 0x000000000000-0x000000030000 : "u-boot"
[ 0.440000] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.450000] 0x000000040000-0x000000050000 : "factory"
[ 0.470000] 0x000000050000-0x000000700000 : "firmware"
[ 0.480000] 0x000000700000-0x000000800000 : "usercfg"
[ 0.490000] gsw: setting port4 to ephy mode
[ 0.500000] (unregistered net_device): port 2 link up (100Mbps/Full duplex)
[ 0.520000] ralink_soc_eth 10100000.ethernet: loaded mt7530 driver
[ 0.530000] eth0: done loading
[ 0.540000] rt3xxx-usbphy ubsphy.3: loaded
[ 0.540000] rt2880_wdt 10000120.watchdog: Initialized
[ 0.560000] TCP: cubic registered
[ 0.560000] NET: Registered protocol family 17
[ 0.570000] 8021q: 802.1Q VLAN Support v1.8
[ 0.580000] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 0.600000] Please append a correct "root=" boot option; here are the available partitions:
[ 0.610000] 1f00 192 mtdblock0 (driver?)
[ 0.620000] 1f01 64 mtdblock1 (driver?)
[ 0.630000] 1f02 64 mtdblock2 (driver?)
[ 0.640000] 1f03 6848 mtdblock3 (driver?)
[ 0.650000] 1f04 1024 mtdblock4 (driver?)
[ 0.660000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
|
|