Modify

Opened 10 years ago

Closed 5 years ago

Last modified 4 years ago

#2232 closed defect (fixed)

ar7 flash size incorrect for tcom speedport w701

Reported by: hydra Owned by: florian
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: w701v Cc: mailinglist.openwrt@…

Description

The tcom w701v has an 8MB flash size, only 4MB of it is currently used as of r8413

physmap platform flash device: 00400000 at 10000000
...
Reducing visibility of 8192KiB chip to 4096KiB
...
0x00000000-0x00010000 : "loader"
0x003f0000-0x00400000 : "config"
0x00010000-0x003f0000 : "linux"
0x000e0000-0x003f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=360000, len=90000
0x00360000-0x003f0000 : "rootfs_data"

In target/linux/ar7-2.6/files/arch/mips/ar7/platform.c physmap_flash_resource.end is defined as 0x103fffff instead of 0x107fffff

When set correctly the kernel reports:

physmap platform flash device: 00800000 at 10000000
...
4 ar7part partitions found on MTD device physmap-flash.0
Creating 4 MTD partitions on "physmap-flash.0":
0x00000000-0x00010000 : "loader"
0x007f0000-0x00800000 : "config"
0x00010000-0x007f0000 : "linux"
0x000e0000-0x007f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=2A0000, len=550000
0x002a0000-0x007f0000 : "rootfs_data"

I guess this needs to be made configurable somewhere, or use the detected flash size which is correctly detected at 8MB, and then downsized to 4MB in physmap.c in physmap_flash_probe()

Attachments (0)

Change History (7)

comment:1 Changed 10 years ago by nico

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [8424], thanks!

comment:2 Changed 10 years ago by hydra

  • Resolution fixed deleted
  • Status changed from closed to reopened

there seems to be issues with this change. As i stated in my original post "I guess this needs to be made configurable somewhere, or use the detected flash size which is correctly detected at 8MB, and then downsized to 4MB in physmap.c in physmap_flash_probe()"

Setting it to 8MB instead of 4MB also causes another issue, see #2281.

The TFFS partitions need to be detected and the sizes of the other partitions should be set correctly so the TFFS partitions don't get overridden.

comment:3 Changed 7 years ago by frank@…

FIXED
linux-2.6.32/arch/mips/ar7/platform.c physmap_flash_resource.end should be defined as 0x107cffff

I tested different values.. 107cffff is the highest you can go without problems..
Now I finally can use the squashfs image on my fritzbox 7141 without loss of the jffs2 each reboot.

comment:4 Changed 7 years ago by frank@…

107cffff (selects 7c0000) results in EVA not doing the TFFS rebuild anymore..its in mtd4.. after 0x07c0000...

comment:5 Changed 5 years ago by florian

  • Owner changed from developers to florian
  • Status changed from reopened to assigned
  • Version set to Trunk

comment:6 Changed 5 years ago by florian

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed with r33752

comment:7 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.