[U-Boot-Users] RO jffs2 implementation for bootloader

Matthieu CASTET matthieu.castet at parrot.com
Wed May 9 10:25:42 CEST 2007


Hi Stefan,

Stefan Roese a écrit :
> Hi Matthieu,
> 
> On Monday 07 May 2007, Matthieu CASTET wrote:
>> Using jffs2_nand_1pass.c make thing lot's of better (very fast scaning)
>>
>> Unfortunalty the code seems incomplete : if I do a ls, there are missing
>> files.
> 
> Do I understand this correctly? Some files are displayed and some are missing? 
yes

> Could you give an example?
> 
SMDK2410 # ls

  drwxr-xr-x        0 Mon May 07 14:52:44 2007 bin

  drwxr-xr-x        0 Mon May 07 14:50:31 2007 dev

  drwxr-xr-x        0 Mon May 07 14:52:44 2007 etc

  drwxr-xr-x        0 Mon May 07 14:50:31 2007 home

  drwxr-xr-x        0 Mon May 07 14:52:44 2007 lib

  lrwxrwxrwx       11 Mon May 07 14:52:44 2007 linuxrc

  drwxr-xr-x        0 Mon May 07 14:50:31 2007 mnt

  drwxr-xr-x        0 Mon May 07 14:50:31 2007 proc

  drwxr-xr-x        0 Mon May 07 14:50:31 2007 root

  drwxr-xr-x        0 Mon May 07 14:52:44 2007 sbin

  -rw-r--r--  1120660 Mon May 07 14:52:40 2007 test.bin

# ls -l

-rw-r--r--    1 root     root            0 Jan  1 00:02 1234

drwxr-xr-x    2 root     root            0 May  7  2007 bin

drwxr-xr-x    7 root     root            0 May  7  2007 dev

drwxr-xr-x    3 root     root            0 Mar 21  2007 etc

drwxr-xr-x    3 root     root            0 May  7  2007 home

drwxr-xr-x    2 root     root            0 May  7  2007 lib

lrwxrwxrwx    1 root     root           11 May  7  2007 linuxrc ->
bin/busybox
drwxr-xr-x    2 root     root            0 May  7  2007 mnt

dr-xr-xr-x   28 root     root            0 Jan  1 00:00 proc

drwxr-xr-x    2 root     root            0 May  7  2007 root

drwxr-xr-x    2 root     root            0 May  7  2007 sbin

-rw-r--r--    1 root     root      1120660 May  7  2007 test.bin

drwxr-xr-x    2 root     root            0 Jan  1 00:00 tmp

drwxr-xr-x    6 root     root            0 May  7  2007 usr

drwxr-xr-x    2 root     root            0 May  7  2007 var


I think jffs2_nand_1pass.c got the idea how to work with nand. Instead
of trying to use pointer in flash (like do jffs2_1pass.c + a cache to
emulate a nor), it parses the flash by pages.


Matthieu






More information about the U-Boot mailing list