2007-06-05 06:05:45 How to load Linux from JFFS2/NAND flash
Robert Selberg (SWEDEN)
Message: 36007 Hi. I have successfully loaded Linux from a NAND flash chip and booted it and now I want to use a JFFS2 filesystem on the partition that the kernel is loaded from. Can anyone give me a hint on how to do that?
The reason why I want to use JFFS2 on the NAND flash is that there are bad blocks on the chip and I don't want to use a fixed address from where I load Linux from. If a bad block occurs on that address I won't be able to boot Linux.
QuoteReplyEditDelete
2007-06-05 14:19:54 Re: How to load Linux from JFFS2/NAND flash
Mike Frysinger (UNITED STATES)
Message: 36029 use the "fsload" command
QuoteReplyEditDelete
2007-06-07 02:57:12 Re: How to load Linux from JFFS2/NAND flash
Robert Selberg (SWEDEN)
Message: 36111 Thanks. But to get it to work I had to replace jffs2_1pass.c with jffs2_nand_1pass.c in the fs/jffs2 directory.
QuoteReplyEditDelete
2008-10-31 06:13:15 Re: How to load Linux from JFFS2/NAND flash
Christophe Crepin (FRANCE)
Message: 64511
I replace jffs2_1pass.c with jffs2_nad1pass.c but when i run "ls or fsload " uboot crashed.
the error is :
-Boot 1.1.6 (ADI-2008R1) (Oct 31 2008 - 10:37:49)
CPU: ADSP bf537-0.3 (Detected Rev: 0.3)
Board: ADI BF537 Myboard
Support: http://blackfin.uclinux.org/
Clock: VCO: 500 MHz, Core: 500 MHz, System: 100 MHz
RAM: 128 MB
33 erase regions found, only 4 used
Flash: 0 kB
In: serial
Out: serial
Err: serial
NAND: 256 MiB
Net: Blackfin EMAC
MAC: 02:80:AD:20:41:E8
I2C: ready
Hit any key to stop autoboot: 0
atcom> help ls
ls [ directory ]
- list files in a directory.
atcom> ls
Scanning JFFS2 FS: \ DCPLB exception outside of memory map at 0x30000000
Ack! Something bad happened to the Blackfin!
SEQUENCER STATUS:
SEQSTAT: 0000e026 IPEND: 7fc00b2 SYSCFG: 0032
HWERRCAUSE: 0x3
EXCAUSE : 0x26
physical IVG7 asserted : <0x07fc0470> { _evt_default + 0x0 }
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x004f6000> /* unknown address */
RETX: <0x07fd70f4> { _jffs2_get_list + 0x9c }
RETS: <0x07fd70f2> { _jffs2_get_list + 0x9a }
PC : <0x07fc00b2> { _start + 0xb2 }
DCPLB_FAULT_ADDR: <0x30000001> { ___udivdi3 + 0x28026ce9 }
ICPLB_FAULT_ADDR: <0x07fd70f4> { _jffs2_get_list + 0x9c }
TranslateQuoteReplyEditDelete
2008-10-31 14:29:36 Re: How to load Linux from JFFS2/NAND flash
Robin Getz (UNITED STATES)
Message: 64550
Christophe:
New issue == new thread.