找到一些蛛丝马迹了.希望你明天使用部分精力来看下。

22 views
Skip to first unread message

略略

unread,
Mar 30, 2009, 11:51:34 AM3/30/09
to RDC_taiwan
先看这个。


/kamikaze/target/linux/rdc/files/drivers/mtd/maps/rdc3210.c

static struct mtd_partition rdc3210_parts[] =
{
#if CONFIG_MTD_RDC3210_SIZE == 0x400000
{ name: "linux", offset: 0, size:
0x003C0000 }, /* 3840 KB = (Kernel + ROMFS) = (768 KB + 3072 KB)
*/
{ name: "romfs", offset: 0x000C0000, size:
0x00300000 }, /* 3072 KB */
{ name: "nvram", offset: 0x003C0000, size:
0x00010000 }, /* 64 KB */
#ifdef CONFIG_MTD_RDC3210_FACTORY_PRESENT
{ name: "factory", offset: 0x003D0000, size:
0x00010000 }, /* 64 KB */
#endif
{ name: "bootldr", offset: 0x003E0000, size:
0x00020000 }, /* 128 KB */

/kamikaze/target/linux/rdc/files/drivers/mtd/maps/rdc3210.c



OK,我使用 openwrt的内核来带动 ext2.gz(其实是使用 initram)
提示:

flash device: 400000 at ffc00000
RDC3210 Flash: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code
brokenness.
Creating 5 MTD partitions on "RDC3210 Flash":
0x00000000-0x003c0000 : "linux"
0x000c0000-0x003c0000 : "romfs"
0x003c0000-0x003d0000 : "nvram"
0x003d0000-0x003e0000 : "factory"
0x003e0000-0x00400000 : "bootldr"
TCP vegas registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <gre...@candelatech.com>
All bugs added by David S. Miller <da...@redhat.com>
Using IPI Shortcut mode
RAMDISK: Compressed image found at block 0
RAMDISK: ran out of compressed data
out of input data
List of all partitions:
1f00 3840 mtdblock0 (driver?)
1f01 3072 mtdblock1 (driver?)
1f02 64 mtdblock2 (driver?)
1f03 64 mtdblock3 (driver?)
1f04 128 mtdblock4 (driver?)
No filesystem could mount root, tried: ext2 squashfs

我们刷固件到 norflash的时候,是使用
fl -s 0x100000 -d 0xffc00000 -l 0xab2af

而wl-153是使用这个
flash -s 0x100000 -d 0xffe08000 -l 0x18c4d4
我尝试这个 153的刷新命令,提示
Wrapper error

我使用 fl -s 0x100000 -d 0xffc00000 -l 0xab2af
来刷新,启动不了系统。提示
RedBoot>
mem_size: 2000000
Bootsector magic not found (0x0000 @ 0x4001fe) OK,无法启动kernel。

说了这么多,能否改下 /kamikaze/target/linux/rdc/files/drivers/mtd/maps/
rdc3210.c
这个分布? 这个非常重要!!直接影响我们。
已经23:50了,我要休息了,希望你明天先放下手上的工作来看看如何更改这个文件。如果实在不行就暂时放。

good luck!!!
Reply all
Reply to author
Forward
0 new messages