[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: JFFS trouble on new board



Hi Johann,

the output:

DS1302 RTC not found.

is probably just because you don't have any DS1302 RealTimeClock on your board. In that case just disable the driver in the kernel (make xconfig in elinux/).

Factorydefault works like this:

The init process runs /usr/rc.d/rc.init which sources through /usr/rc.d/rc.factorydefault. rc.factorydefault runs readbits (builtin in sash) which sets an environment variable (GPIO_A1) to "0" if the test button (on the devboard) is pressed.

I suspect that your test button (or equivalent) is always pressed. Otherwise you may have bad default values and/or directions on port PA and PB in the kernel configuration. Check that the values DEF_R_PORT_PA_DIR, DEF_R_PORT_PA_DATA, DEF_R_PORT_PB_DIR and DEF_R_PORT_PB_DATA in kernelconfig matches your hardware.

Please check these things first and if the problem with corrupt JFFS still remains send me an e-mail.

Best regards
/Jonas



-----Original Message-----
From: Johann Dantant [mailto:johann.d@xxxxxxx.fr]
Sent: Wednesday, March 21, 2001 10:56 AM
To: Niklas Morberg; ETRAX Developer List
Subject: JFFS trouble on new board


Hello,

We are now testing our own Etrax100 board. Up to now, it is nearly a clone of Axis' devboard (i.e., same 2MB flash AM29LV160DT-90OEC, compatible 8MB DRAM, and so on...). We still have a (small/big ?) trouble with the flash : flashing seems to works fine (the Etrax chip finds its kernel and can run it pretty good) BUT the JFFS doesn't seem to work (restore factory default after each boot, unable to perform a write or delete operation from a FTP client...).

Can anyone help us ? (can it be an hardware trouble, even if kernel flashing is OK, can it be a software trouble, even if the same package works fine on the "regular" devboard...)

Follows the dump of the flow on the debug port, first for the "regular" devboard and after for our own board (same images).

Regards,

Johann DANTANT
Pro-Active
johann.d@xxxxxxx.fr



FLASHING THE DEVBOARD (boot_elinux -F)

  PACKET_INFO
  0xC0000500
  0x00200018
  Checksum of file is 0x12D7A984
  FLASH
  0xC0000500
  0x00000000
  0x00200000
  Flash: 16Mb TB.
  Flash: Unknown device.
  Erasing flash
  No need to erase flash!
  Flashing...
  JUMP
  0x00000000
  Uncompressing Linux...
  Done. Now booting the kernel.
  Probing flash...
  Flash: 16Mb TB
  Flash: Unknown device
  ROM fs in RAM, size 3171696 bytes
  Linux/CRIS-NOMMU port, Copyright (c) 1999, 2000 Axis Communications AB
  Flat model support, Copyright (c) 1998 Kenneth Albanowski, D. Jeff Dionne, TSHG Ltd.
  Entering paging_init(), mem start 0x4039eb70, end 0x40800000
  Entering trap_init(), mem start 0x403bc000
  Initializing interrupts
  sched_init
  DS1302 RTC found.
  SDA, SCL, RST on PB0, PB1, PB2
  rtc_time : 09:21:05
  rtc_date : 2001-03-21
  rtc: sec 0x5 min 0x21 hour 0x9 day 0x21 mon 0x3 year 0x1
  Enabling watchdog...
  console_init 0x403bc000
  kmalloc_init 0x403bc000
  Calibrating delay loop... 99.58 BogoMIPS
  Entering mem_init(403bc000,40800000)
  Mem_init: start=403bc000, end=40800000
  Memory: 4368k/7797k available (396k kernel code, 3428k data)
(...)
  Linux version 2.0.38 (root@xxxxxxx.96 20000427 (experimental)) #1 jeu fév 22 20:16:25 CET 2001
(...)
  Ramdisk driver initialized : 16 ramdisks of 4096K size
  KROM block (c) 1998 D Jeff Dionne, SHG Ltd [3098k] at 40098600
  Flash/ROM block device v2.1, (c) 1999 Axis Communications AB
  Flash/ROM char device v2.1, (c) 1999 Axis Communications AB
  Checking flash partitions:
    /dev/flash0 at 0x80000000, size 0x10000
  Found valid partition table at 0x8001000A-0x80010056.
    /dev/flash1 at 0x80010000, size 0x1a0000
    /dev/flash2 at 0x801b0000, size 0x50000
(...)
  JFFS, version 1.0, (C) 1999, 2000  Axis Communications AB
  VFS: Mounted root (romfs filesystem) readonly.
(...)
  Mounting /etc
  JFFS: Trying to mount device 3c:12.
  JFFS: Successfully mounted device 3c:12.
  Mounted /dev/flash2 on /mnt/flash ok.
(...)


REBOOTING THE DEVBOARD

  Probing flash...
  Flash: 16Mb TB
  Flash: Unknown device
  ROM fs in RAM, size 3171696 bytes
(...)
  KROM block (c) 1998 D Jeff Dionne, SHG Ltd [3098k] at 40098600
  Flash/ROM block device v2.1, (c) 1999 Axis Communications AB
  Flash/ROM char device v2.1, (c) 1999 Axis Communications AB
  Checking flash partitions:
    /dev/flash0 at 0x80000000, size 0x10000
  Found valid partition table at 0x8001000A-0x80010056.
    /dev/flash1 at 0x80010000, size 0x1a0000
    /dev/flash2 at 0x801b0000, size 0x50000
(...)
  JFFS, version 1.0, (C) 1999, 2000  Axis Communications AB
  VFS: Mounted root (romfs filesystem) readonly.
(...)
  Mounting /etc
  JFFS: Trying to mount device 3c:12.
  JFFS: Successfully mounted device 3c:12.
  Mounted /dev/flash2 on /mnt/flash ok.
(...)


FLASHING MY BOARD (boot_elinux -F)

  PACKET_INFO
  0xC0000500
  0x00200018
  Checksum of file is 0x12D7A984
  FLASH
  0xC0000500
  0x00000000
  0x00200000
  Flash: 16Mb TB.
  Flash: Unknown device.
  Erasing flash
  No need to erase flash!
  Flashing...
  JUMP
  0x00000000
  Uncompressing Linux...
  Done. Now booting the kernel.
  Probing flash...
  Flash: 16Mb TB
  Flash: Unknown device
  ROM fs in RAM, size 3171696 bytes
  Linux/CRIS-NOMMU port, Copyright (c) 1999, 2000 Axis Communications AB
  Flat model support, Copyright (c) 1998 Kenneth Albanowski, D. Jeff Dionne, TSHG Ltd.
  Entering paging_init(), mem start 0x4039eb70, end 0x40800000
  Entering trap_init(), mem start 0x403bc000
  Initializing interrupts
  sched_init
  DS1302 RTC not found.
  Enabling watchdog...
  console_init 0x403bc000
  kmalloc_init 0x403bc000
  Calibrating delay loop... 99.58 BogoMIPS
  Entering mem_init(403bc000,40800000)
  Mem_init: start=403bc000, end=40800000
  Memory: 4368k/7797k available (396k kernel code, 3428k data)
(...)
  Linux version 2.0.38 (root@xxxxxxx.96 20000427 (experimental)) #1 jeu fév 22 20:16:25 CET 2001
(...)
  Ramdisk driver initialized : 16 ramdisks of 4096K size
  KROM block (c) 1998 D Jeff Dionne, SHG Ltd [3098k] at 40098600
  Flash/ROM block device v2.1, (c) 1999 Axis Communications AB
  Flash/ROM char device v2.1, (c) 1999 Axis Communications AB
  Checking flash partitions:
    /dev/flash0 at 0x80000000, size 0x10000
  Found valid partition table at 0x8001000A-0x80010056.
    /dev/flash1 at 0x80010000, size 0x1a0000
    /dev/flash2 at 0x801b0000, size 0x50000
(...)
  JFFS, version 1.0, (C) 1999, 2000  Axis Communications AB
  VFS: Mounted root (romfs filesystem) readonly.
(...)
  Reseting to factory defaults!
  Erasing flash /dev/cflash2...
  Erase of /dev/cflash2 finished.
  Factory defaults loaded.
  Mounting /etc
  JFFS: Trying to mount device 3c:12.
  JFFS: Successfully mounted device 3c:12.
  Mounted /dev/flash2 on /mnt/flash ok.
(...)


REBOOTING MY BOARD

  Probing flash...
  Flash: 16Mb TB
  Flash: Unknown device
  ROM fs in RAM, size 3171696 bytes
(...)
  Memory: 4368k/7797k available (396k kernel code, 3428k data)
(...)
  KROM block (c) 1998 D Jeff Dionne, SHG Ltd [3098k] at 40098600
  Flash/ROM block device v2.1, (c) 1999 Axis Communications AB
  Flash/ROM char device v2.1, (c) 1999 Axis Communications AB
  Checking flash partitions:
    /dev/flash0 at 0x80000000, size 0x10000
  Found valid partition table at 0x8001000A-0x80010056.
    /dev/flash1 at 0x80010000, size 0x1a0000
    /dev/flash2 at 0x801b0000, size 0x50000
(...)
  JFFS, version 1.0, (C) 1999, 2000  Axis Communications AB
  VFS: Mounted root (romfs filesystem) readonly.
(...)
  Reseting to factory defaults!
  Erasing flash /dev/cflash2...
  Erase of /dev/cflash2 finished.
  Factory defaults loaded.
  Mounting /etc
  JFFS: Trying to mount device 3c:12.
  JFFS: Successfully mounted device 3c:12.
  Mounted /dev/flash2 on /mnt/flash ok.
(...)

DOING A FILE DELETION FROM AN FTP CLIENT :

  Flash: verify error 0x801b0004. (flash_write() 1)
  *programAddress = 0xffa6, *theData = 0x0021
  Flash: verify error 0x801b0004. (flash_write() 1)
  *programAddress = 0x0001, *theData = 0x0021
  Flash: verify error 0x801b0004. (flash_write() 1)
  *programAddress = 0xffa6, *theData = 0x0021
  Flash: verify error 0x801b0004. (flash_write() 1)
  *programAddress = 0x0001, *theData = 0x0021
  Flash: verify error 0x801b0004. (flash_write() 1)
  *programAddress = 0xffa6, *theData = 0x0021
  FATAL FLASH ERROR (1)
  JFFS: jffs_write_node: Failed to write raw_inode.
  Flash: verify error 0x801b0040. (flash_write() 1)
  *programAddress = 0xffa6, *theData = 0x0021
  Flash: verify error 0x801b0040. (flash_write() 1)
  *programAddress = 0x0000, *theData = 0x0021
  Flash: verify error 0x801b0040. (flash_write() 1)
  *programAddress = 0xffa6, *theData = 0x0021
  Flash: verify error 0x801b0040. (flash_write() 1)
  *programAddress = 0x0000, *theData = 0x0021
  Flash: verify error 0x801b0040. (flash_write() 1)
  *programAddress = 0xffa6, *theData = 0x0021
  FATAL FLASH ERROR (1)
  JFFS: jffs_write_node: Failed to write raw_inode.


"SYNCING DISKS" ("REBOOT" COMMAND FROM A TELNET CLIENT) :

(...)
  Jan  1 00:01:36 ebox login: ROOT LOGIN ON ttyp0 FROM 192.168.0.6
  Flash: verify error 0x801b0078. (flash_write() 1)
  *programAddress = 0x7465, *theData = 0x3931
(...)
  FATAL FLASH ERROR (1)
  JFFS: jffs_rewrite_data: Write error during rewrite. (raw inode)
  Flash: verify error 0x801b00b4. (flash_write() 1)
  *programAddress = 0xc6a6, *theData = 0x3931
(...)
  FATAL FLASH ERROR (1)
  JFFS: jffs_rewrite_data: Write error during rewrite. (raw inode)
(...)
(NEVER ENDS...)

ff
ff