Hi all,

I have an AR71XX board and the on board SPI flash is winbond "w25q128".
(W25Q128 can be recognized in m25p80.c)
{ "w25q128", INFO(0xef4018, 0, 64 * 1024, 256, SECT_4K) },
I'm porting OpenWrt with trunk revision 21441, Linux 2.6.39.

The boot loader on this board is redboot and I cannot to modify the boot loader
since I have no code and permission to update the redboot.

However, when I doing OpenWrt porting to this platform.
The kernel tell me the w25q128 can be probed.
But when kernel doing redboot partition scanning, it has been always failed.

The following is the output and I've add some debug information to kernel.

master->size: 00002000, directory: 0, master->erasesize: 0x1000000
Searching for RedBoot partition table in spi0.0 at offset 0xffe000
master->size: 80280000, directory: 0, master->erasesize: 0x1000000
Searching for RedBoot partition table in spi0.0 at offset 0xfff000

The kernel will do partition scan twice with these 2 offset and then
report failed.

However, I've compared to origin BSP which shipped with this board.
The redboot partition table is at the offset 0xfe0000.

Here after, I've modified the kernel code and hard coded the offset as
0xfe0000, then it works!
I'd like to know where the problem is? Is the driver/mtd/redboot has problem?
Is there any CMDLINE parameters for me to passing the offset to kernel?
Please give some suggestions. Thanks!

master->size: 00020000, directory: 0, master->erasesize: 0x1000000
Searching for RedBoot partition table in spi0.0 at offset 0xfe0000

Creating 7 MTD partitions on "spi0.0":
0x000000000000-0x000000040000 : "RedBoot"
0x000000040000-0x0000001a0000 : "linux"
0x0000001a0000-0x000000f60000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=325000, len=C3B000
0x000000325000-0x000000f60000 : "rootfs_data"
0x000000f60000-0x000000fe0000 : "caldata"
0x000000fe0000-0x000000fef000 : "FIS directory"
0x000000fef000-0x000000ff0000 : "RedBoot config"
0x000000ff0000-0x000001000000 : "boardconfig"

-- 
Best regards,
Macpaul Lin
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to