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

Re: JFFS trouble on new board



Hi Jonas

Yes, your were right for the test button. I removed the rc.factorydefault
from the rc.init script in the package, and the 2 boards now start fine.

BUT the troubles when writing or deleting files in the JFFS remains on my
own board :

    FATAL FLASH ERROR (1)
    JFFS: jffs_rewrite_data: Write error during rewrite. (raw inode)

Best regards
Johann

johann.d@xxxxxxx.fr



----- Original Message -----
From: "Jonas Holmberg" <jonas.holmberg@xxxxxxx.com>
To: "'Johann Dantant'" <johann.d@xxxxxxx.fr>
Cc: "dev-etrax" <dev-etrax@xxxxxxx.com>
Sent: Wednesday, March 21, 2001 1:57 PM
Subject: RE: JFFS trouble on new board


>
> 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
>
>
> 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...)
>
>