From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthieu CASTET Date: Wed, 09 May 2007 10:25:42 +0200 Subject: [U-Boot-Users] RO jffs2 implementation for bootloader In-Reply-To: <200705071938.20278.sr@denx.de> References: <200705041423.49187.sr@denx.de> <463F3EBD.3020709@parrot.com> <200705071938.20278.sr@denx.de> Message-ID: <46418586.9060103@parrot.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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