Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] (AT91RM9200/DATAFLASH) Unable to create a *working* jffs2 rootfs.
@ 2007-10-19 17:42 Michael Trimarchi
  0 siblings, 0 replies; 11+ messages in thread
From: Michael Trimarchi @ 2007-10-19 17:42 UTC (permalink / raw)
  To: buildroot

Hi

>Inviato: Venerd? 19 ottobre 2007, 18:18:21
>Oggetto: (AT91RM9200/DATAFLASH) Unable to create a *working* jffs2 rootfs.

>Michael, you where right! the problem was the "flash_erase" step missing in my procedure.

>I ended up mounting the jffs2 fs image on my Host system and discovered that the "/dev" is missing!


>So, when the kernel says: "Warning: unable to open an initial console" is not a problem mounting the FS, indeed, the FS >is perfectly mounted now, but lacks of /dev directory!!

>So, i think there's a buildroot bug here... it creates a JFFS but forgets to create the /dev directory...



>PD: Michael,Ulf consider yourself "free beer" awarded if you ever come to spain! :)

I live in Valencia

Regards 
Michael








      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20071019/d683cb36/attachment.htm 

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Buildroot] (AT91RM9200/DATAFLASH) Unable to create a *working* jffs2 rootfs.
@ 2007-10-19 16:59 Michael Trimarchi
  0 siblings, 0 replies; 11+ messages in thread
From: Michael Trimarchi @ 2007-10-19 16:59 UTC (permalink / raw)
  To: buildroot


Hi,

>Freeing init memory: 132K
>Warning: unable to open an initial console.

Send your inittab. Do you have create a /dev/console in your filesystem.
Your fstab must contain /sys /proc directory mounted, then you can use mdev -s
in your startup script to create all the device of your board.

Regards Michael







      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20071019/5172a961/attachment.htm 

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Buildroot] (AT91RM9200/DATAFLASH) Unable to create a *working* jffs2 rootfs.
@ 2007-10-19  6:35 Michael Trimarchi
       [not found] ` <6090c5eb0710190134w575a787cy6ff6bc98516815d9@mail.gmail.com>
  0 siblings, 1 reply; 11+ messages in thread
From: Michael Trimarchi @ 2007-10-19  6:35 UTC (permalink / raw)
  To: buildroot


Hi,

>Ok, im going to give a try. 

This solution must work. How do you flash your system? Do you use u-boot?

Regards 
Michael







      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20071019/5d6a8a2c/attachment.htm 

^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <997232.91985.qm@web26201.mail.ukl.yahoo.com>]
* [Buildroot] (AT91RM9200/DATAFLASH) Unable to create a *working* jffs2 rootfs.
@ 2007-10-18 12:24 Michael Trimarchi
  0 siblings, 0 replies; 11+ messages in thread
From: Michael Trimarchi @ 2007-10-18 12:24 UTC (permalink / raw)
  To: buildroot


Hi

>at91_rtc at91_rtc: setting the system clock to 1998-01-01 00:06:50 (883613210)

>JFFS2 write-buffering enabled buffer (1056) erasesize (8448)
>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00223ae4: 0x2001 instead
>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00223ae8: 0x3c00 instead

>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00223aec: 0x2000 instead
>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00223af0: 0x2bf4 instead
>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00223af4: 0x3000 instead

>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00223af8: 0x3001 instead

Check if your partition is alignment, but I think so :)
regards
Michael







      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20071018/391fb938/attachment.htm 

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Buildroot] (AT91RM9200/DATAFLASH) Unable to create a *working* jffs2 rootfs.
@ 2007-10-17 22:05 Jorge S.
  2007-10-17 23:05 ` Ulf Samuelsson
  0 siblings, 1 reply; 11+ messages in thread
From: Jorge S. @ 2007-10-17 22:05 UTC (permalink / raw)
  To: buildroot

Dear all,

 I'm still having problems with the rootfs on my AT91RM9200/Dataflash
(AT45DB642D) based system.

 Now i'm trying to build a jffs2 rootfs and but getting tons of errors from
the kernel when it mounts the rootfs:

..
..
  Kernel messages...
..
..
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
ieee80211: 802.11 data/management/control stack, git-1.1.13
ieee80211: Copyright (C) 2004-2005 Intel Corporation <
jketreno@linux.intel.com>
at91_rtc at91_rtc: setting the system clock to 1998-01-01 02:21:11
(883621271)
JFFS2 write-buffering enabled buffer (1056) erasesize (8448)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00233100:
0x8c90 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00233104:
0x8c90 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00233108:
0x8c90 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0023310c:
0x8c90 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00233110:
0x8c90 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00233114:
0x8c90 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00233118:
0x8c90 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0023311c:
0x8c90 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00233120:
0x8c90 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00233124:
0x8c90 instead
(loooooots more of this errors)....

After those errors, it ended up working 1 time (the first time i flashed the
jffs2 rootfs) and  then i logged in, created
some directories, files, and so on...it was WRITABLE and apparently working.

Now, even if i reflash again the rootfs image, it still drops tons of errors
and finally gets
frozen...on this manner:

Further such events for this erase block will not be printed
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "pcmcia" (ino #562) of
dir ino #555 appears to be a hard link
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 128K
JFFS2 warning: (1) jffs2_do_read_inode_internal: Truncating ino #360 to
21168 bytes failed because it only had 4224 bytes to start with!
Kernel panic - not syncing: No init found.  Try passing init= option to
kernel.


Things i've checked so far:

 - Rootfs MTD partition has the right 1056 alignment, this is my bootargs
command line:

     console=/dev/ttyS0,115200
mtdparts=AT45DB642.spi0:168960(boot),2162688(kernel),-(root)
root=/dev/mtdblock2 rootfstype=jffs2

     My rootfs partition starts at 0xC0239400 (0xC000000 is the base address
for the dataflash).

 - Same buildroot .config works if i use ext2 filesystem (it gets mounted as
read-only, but i can login and run commands), so i assume my toolchain is
OK.
 - The rootfs MTD area is *not* locked, my u-boot is unlocking it, and jffs2
rootfs worked 1 time, so i was able to create files, it was WRITABLE.

 - My kernel knows about my dataflash sector/erase sizes because it says
this:

       JFFS2 write-buffering enabled buffer (1056) erasesize (8448).

 - mkfs.jjfs2 is being called with the (apparently) right params:

        mkfs.jffs2 -e 0x2100 -l -s 0x420 -n


My questions:

  - Since my rootfs MTD partition starts at "0xC0239400". Why is jffs
messing around with addresses below the partition start point
(0xC0239400)?!?!

       jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at
0x00233100: 0x8c90 instead

   What does the address on the message "not found at 0x00233100" means?
Does it means Dataflash sector? or is it relative to partition start point
position?

  - Any ideas on how to solve this?


 As usual, thanks in advance for your help, and sorry about my bad english.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20071018/d35c3aed/attachment.htm 

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-10-19 17:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-19 17:42 [Buildroot] (AT91RM9200/DATAFLASH) Unable to create a *working* jffs2 rootfs Michael Trimarchi
  -- strict thread matches above, loose matches on Subject: below --
2007-10-19 16:59 Michael Trimarchi
2007-10-19  6:35 Michael Trimarchi
     [not found] ` <6090c5eb0710190134w575a787cy6ff6bc98516815d9@mail.gmail.com>
2007-10-19  8:36   ` Jorge S.
2007-10-19 11:30     ` Jorge S.
2007-10-19 16:18       ` Jorge S.
     [not found] <997232.91985.qm@web26201.mail.ukl.yahoo.com>
2007-10-18 13:54 ` Jorge S.
2007-10-18 12:24 Michael Trimarchi
2007-10-17 22:05 Jorge S.
2007-10-17 23:05 ` Ulf Samuelsson
     [not found]   ` <6090c5eb0710180456n1b9fb465j8377bf965fe66a24@mail.gmail.com>
2007-10-18 11:57     ` Jorge S.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox