Modify

Opened 10 years ago

Last modified 2 years ago

#2281 accepted defect

Fritz!Box TFFS problems

Reported by: anonymous Owned by: mirko
Priority: normal Milestone:
Component: kernel Version:
Keywords: Cc:

Description

Since r8424 my flash partitions are detected as 8 MB, but everytime preinit runs, it overwrites the TFFS where EVA stores its settings, causing the message "<create new TFFS>" at bootup because EVA has to load the default settings. EVA gives this for the mtd partitions:

mtd0 0x90000000,0x90000000
mtd1 0x90010000,0x90780000
mtd2 0x90000000,0x90010000
mtd3 0x90780000,0x907C0000
mtd4 0x907C0000,0x90800000

while OpenWRT shows this with trunk:

0x00000000-0x00010000 : "loader"
0x007f0000-0x00800000 : "config"
0x00010000-0x007f0000 : "linux"
0x000e0000-0x007f0000 : "rootfs"

and this with r8424:

0x00000000-0x00010000 : "loader"
0x003f0000-0x00400000 : "config"
0x00010000-0x003f0000 : "linux"
0x000e0000-0x003f0000 : "rootfs"

Attachments (2)

mtd3.bz2 (33.5 KB) - added by avalentin@… 9 years ago.
TFFS Dump
tffs-source.tar.bz2 (19.9 KB) - added by avalentin@… 9 years ago.
TFFS Source from AVM (under GPL)

Download all attachments as: .zip

Change History (15)

comment:1 Changed 10 years ago by nico

  • Owner changed from developers to nico
  • Status changed from new to assigned

Which partition contains TFFS settings? mtd3 or mtd4?
Can you provide a dump of a TFFS partition?
Can you also provide a boot log from a recent trunk?

Thanks for your help!

comment:2 Changed 10 years ago by Axel Gembe

Whats the best way to find out which one is the TFFS partition ?

Heres the bootlog from trunk:

(AVM) EVA Revision: 1.136 Version: 1136
(C) Copyright 2005 AVM Date: Feb  2 2006 Time: 12:38:21 (1) 2 0-1111

[FLASH:] MACRONIX Top-MirrorBit-Flash 8MB 32 Bytes WriteBuffer
[FLASH:](Eraseregion [0] 127 sectors a 64kB)
[FLASH:](Eraseregion [1] 8 sectors a 8kB)
[SYSTEM:] OHIO on 211MHz/125MHz

Eva_AVM >
Eva_AVM >printenv
HWRevision            94.1.0.0
ProductID             Fritz_Box_7170
SerialNumber          0000000000000000
annex                 B
autoload              yes
bootloaderVersion     1.136
bootserport           tty0
bluetooth             00:04:0E:FF:FF:07
cpufrequency          211968000
firstfreeaddress      0x946AD700
flashsize             0x00800000
kernel_args           init=/etc/preinit
maca                  00:15:0C:FC:06:25
macb                  00:15:0C:FC:06:26
macwlan               00:15:0C:FC:06:27
macdsl                00:15:0C:FC:06:28
memsize               0x02000000
modetty0              38400,n,8,1,hw
modetty1              38400,n,8,1,hw
mtd0                  0x90000000,0x90000000
mtd1                  0x90010000,0x90780000
mtd2                  0x90000000,0x90010000
mtd3                  0x90780000,0x907C0000
mtd4                  0x907C0000,0x90800000
my_ipaddress          90.0.1.24
prompt                Eva_AVM
reserved              00:04:0E:FF:FF:00
req_fullrate_freq     125000000
sysfrequency          125000000
urlader-version       1136
usb_board_mac         00:15:0C:FC:06:29
usb_rndis_mac         00:15:0C:FC:06:2A
usb_device_id         0x3D00
usb_revision_id       0x0200
usb_manufacturer_name  AVM
wlan_cal              03EC,03EF,0015,00EF,010A,00F0,010A,0320,032B

Eva_AVM >
erase mtd1 .......................................................................................................................
Eva_AVM >
flash ...................check mtd1

Eva_AVM >go
AVM decompress Kernel:
..................done
start kernel
Linux version 2.6.22.4 (ago@agovm) (gcc version 4.1.2) #19 Wed Aug 29 07:02:17 EDT 2007
CPU revision is: 00018448
Clocks: Async mode
Clocks: Setting DSP clock
Clocks: base = 25000000, frequency = 125000000, prediv = 1, postdiv = 2, postdiv2 = 1, mul = 10
Clocks: Setting CPU clock
Adjusted requested frequency 211000000 to 211968000
Clocks: base = 35328000, frequency = 211968000, prediv = 1, postdiv = 1, postdiv2 = -1, mul = 6
Clocks: Setting USB clock
Adjusted requested frequency 48000000 to 48076920
Clocks: base = 125000000, frequency = 48000000, prediv = 13, postdiv = 1, postdiv2 = -1, mul = 5
TI AR7 (TNETD7200), ID: 0x002b, Revision: 0x11
Determined physical RAM map:
 memory: 02000000 @ 14000000 (usable)
Built 1 zonelists.  Total pages: 8128
Kernel command line: init=/etc/preinit console=ttyS0,38400n8r
Primary instruction cache 16kB, physically tagged, 4-way, linesize 16 bytes.
Primary data cache 8kB, 4-way, linesize 16 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
PID hash table entries: 128 (order: 7, 512 bytes)
Using 105.984 MHz high precision timer.
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 28804k/32768k available (2026k kernel code, 3964k reserved, 406k data, 104k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
vlynq0: regs 0x08611800, irq 29, mem 0x04000000
Generic PHY: Registered new driver
Time: MIPS clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered (default)
ar7_wdt: timer margin 59 seconds (prescale 65535, change 57180, freq 62500000)
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x8610e00 (irq = 15) is a TI-AR7
console handover: boot [early0] -> real [ttyS0]
Fixed PHY: Registered new driver
cpmac-mii: probed
cpmac: device eth0 (regs: 08610000, irq: 27, phy: fixed@100:1, mac: 00:15:0c:fc:06:25)
physmap platform flash device: 00800000 at 10000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
physmap-flash.0: Swapping erase regions for broken CFI table.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
RedBoot partition parsing not available
Parsing AR7 partition map...
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=1B0000, len=640000
0x001b0000-0x007f0000 : "rootfs_data"
Registered led device: ar7:status
Registered led device: avm:led0
Registered led device: avm:led1
Registered led device: avm:led2
Registered led device: avm:led3
Registered led device: avm:led4
nf_conntrack version 0.5.0 (256 buckets, 2048 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP vegas registered
NET: Registered protocol family 1
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 104k freed
Warning: unable to open an initial console.
Algorithmics/MIPS FPU Emulator v1.5
mini_fo: using base directory: /
mini_fo: using storage directory: /tmp/root
init started:  BusyBox v1.4.2 (2007-08-28 10:02:21 EDT) multi-call binary
Please press Enter to activate this console. device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
br-lan: port 1(eth0) entering disabled state
device eth0 left promiscuous mode
br-lan: port 1(eth0) entering disabled state
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
NET: Registered protocol family 8
NET: Registered protocol family 20
registered device TI Avalanche SAR
Ohio250(7200/7100A2) detected
PHY: fixed@100:1 - Link is Up - 10/Half
requesting firmware image "ar0700xx.bin"
Creating new root folder avalanche in the proc for the driver stats
Texas Instruments ATM driver: version:[7.02.01.00]
device nas0 entered promiscuous mode
br-lan: port 2(nas0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 2(nas0) entering forwarding state
jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
jffs2_build_filesystem(): unlocking the mtd device... done.
jffs2_build_filesystem(): erasing all blocks after the end marker...


BusyBox v1.4.2 (2007-08-28 10:02:21 EDT) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| F r i t z ! B o x   F R E E D O M
 ---------------------------------------------------
root@fritz:/# done.
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs

root@fritz:/# ps
  PID  Uid     VmSize Stat Command
    1 root        380 S   init
    2 root            SW< [kthreadd]
    3 root            SWN [ksoftirqd/0]
    4 root            SW< [events/0]
    5 root            SW< [khelper]
   20 root            SW< [kblockd/0]
   32 root            SW  [pdflush]
   33 root            SW  [pdflush]
   34 root            SW< [kswapd0]
   35 root            SW< [aio/0]
   50 root            SW< [mtdblockd]
  206 root        388 S   logger -s -p 6 -t
  208 root        476 S   /bin/ash --login
  219 root        324 S   syslogd -C16
  222 root        272 S   klogd
  230 root        264 S   /sbin/hotplug2 --override --persistent --max-children
  281 root        192 S   /sbin/watchdog -t 10 /dev/watchdog
  440 root        244 S   br2684ctl -b -c 0 -e 0 -a 1.32
  455 root        164 S   httpd -p 80 -h /www -r OpenWrt
  481 root            SWN [jffs2_gcd_mtd4]
  510 root        316 S   /usr/sbin/dropbear -p 22
  511 root        360 R   ps
root@fritz:/# reboot
The system is going down NOW !ar7_wdt: watchdog device closed unexpectedly, will not disable the watchdog timer
!
Sending SItn7atm_close: closing 0.1.32.5
GTtn7sar_teardown_complete called for channel 0
ERChannelTeardown returned rc = 0
M to all processes.
br-lan: port 2(nas0) entering disabled state
device nas0 left promiscuous mode
br-lan: port 2(nas0) entering disabled state
br-lan: port 1(eth0) entering disabled state
Restarting system.reboot.

<create new TFFS>

(AVM) EVA Revision: 1.136 Version: 1136
(C) Copyright 2005 AVM Date: Feb  2 2006 Time: 12:38:21 (1) 2 0-1111

[FLASH:] MACRONIX Top-MirrorBit-Flash 8MB 32 Bytes WriteBuffer
[FLASH:](Eraseregion [0] 127 sectors a 64kB)
[FLASH:](Eraseregion [1] 8 sectors a 8kB)
[SYSTEM:] OHIO on 211MHz/125MHz

Eva_AVM >
Eva_AVM >printenv
HWRevision            94.1.0.0
ProductID             Fritz_Box_7170
SerialNumber          0000000000000000
annex                 B
autoload              yes
bootloaderVersion     1.136
bootserport           tty0
bluetooth             00:04:0E:FF:FF:07
cpufrequency          211968000
firstfreeaddress      0x946AD700
flashsize             0x00800000
maca                  00:15:0C:FC:06:25
macb                  00:15:0C:FC:06:26
macwlan               00:15:0C:FC:06:27
macdsl                00:15:0C:FC:06:28
memsize               0x02000000
modetty0              38400,n,8,1,hw
modetty1              38400,n,8,1,hw
mtd0                  0x90000000,0x90000000
mtd1                  0x90010000,0x90780000
mtd2                  0x90000000,0x90010000
mtd3                  0x90780000,0x907C0000
mtd4                  0x907C0000,0x90800000
my_ipaddress          192.168.178.1
prompt                Eva_AVM
reserved              00:04:0E:FF:FF:00
req_fullrate_freq     125000000
sysfrequency          125000000
urlader-version       1136
usb_board_mac         00:15:0C:FC:06:29
usb_rndis_mac         00:15:0C:FC:06:2A
usb_device_id         0x3D00
usb_revision_id       0x0200
usb_manufacturer_name  AVM
wlan_cal              03EC,03EF,0015,00EF,010A,00F0,010A,0320,032B

Eva_AVM >

As you can see, the bootloader shows the default environment.

comment:3 Changed 10 years ago by hydra

see also #2232

comment:4 Changed 9 years ago by anonymous

i confirm that on my W701V with 8MB flash, and the flash size correctly detected by the kernel, that even in r12435 this problem still exists, after each reboot the TFFS is regenerated - something is overwriting it.

I'm using a squashfs based image.

Would a dump of the TFFS partition help?

comment:5 Changed 9 years ago by avalentin@…

How can I help to get rid of this TFFS problem? I can dump the TFFS Partition if needed.
Thanx.

comment:6 Changed 9 years ago by florian

  • Owner changed from nico to florian
  • Status changed from assigned to new

Yes, please provide us with a dump of your TFFS partition.

Changed 9 years ago by avalentin@…

TFFS Dump

Changed 9 years ago by avalentin@…

TFFS Source from AVM (under GPL)

comment:7 Changed 8 years ago by thepeople

  • Status changed from new to assigned

comment:8 Changed 8 years ago by thepeople

See #2232 as well as it is likely related.

comment:9 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.

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

comment:10 Changed 7 years ago by frank@…

well.. I could use squashfs before, without jffs,when the image was <4mb..
a jffs image <4mb could be written.. then with mtd..worked ok..

with the fix images above 4mb everything works..

dont understand that i have to came up with this.. i though this was a very difficult problem because it was never fixed ..

comment:11 Changed 6 years ago by mirko

  • Owner changed from florian to mirko
  • Status changed from assigned to accepted

Does the issue still exist? If the fix is that trivial it can just get committed.. otherwise I'll close the ticket (fixed / obsolete)

comment:12 Changed 6 years ago by florian

The issue still exists, please try with the following patch: /ticket/9420.html

comment:13 Changed 2 years ago by anonymous

Parsing error on the name of the uploaded file.

Add Comment

Modify Ticket

Action
as accepted .
Author


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

 
Note: See TracTickets for help on using tickets.