Skip to contentSkip to conversation

Dataflash rootfs problems (still)

Buildroot Michael Trimarchi 2 participants 3 messages Oct 24, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

Quoted 9 lines

I've sucessfully built several root filesystems for my custom board (AT91RM9200 + 8MiB DataFlash), but now i'm >facing a strange problem.

I'm using a JFFS2 filesystem on an MTD partition into the DataFlash, my rootfs boots OK, but ONLY for the first time. >See steps:

1) Create a rootfs JFFS2 image using buildroot -> OK
2) Erase entire flash partition: I boot from an initrd containing mtd-tools for this purpouse. -> OK
3) Dump the rootfs image "rootfs.jffs2" into the Dataflash (i use loadb from u-boot here...) -> OK

Quoted 6 lines

4) Boot the system... -> OK
5) Login and issue a simple reboot, no other commands...nothing else.... -> OK

After the reboot at step "5" the system comes again, but now when is press BACKSPACE it writes a space, and if i try >to add a user or change the root password

i always get a "/etc/passwd" not found.

Is a problem of your busybox configuration :)

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/20071024/44dc3067/attachment.htm

#1 lore raw

2007/10/24, Michael Trimarchi <[email protected]>:

Quoted 13 lines

Hi,

Quoted 1 line

I've sucessfully built several root filesystems for my custom board

(AT91RM9200 + 8MiB DataFlash), but now i'm >facing a strange problem.

Quoted 1 line

I'm using a JFFS2 filesystem on an MTD partition into the DataFlash, my

rootfs boots OK, but ONLY for the first time. >See steps:

Quoted 2 lines

1) Create a rootfs JFFS2 image using buildroot -> OK
2) Erase entire flash partition: I boot from an initrd containing

mtd-tools for this purpouse. -> OK

Quoted 1 line

3) Dump the rootfs image "rootfs.jffs2" into the Dataflash (i use loadb

Quoted 10 lines

from u-boot here...) -> OK

Quoted 2 lines

4) Boot the system... -> OK
5) Login and issue a simple reboot, no other commands...nothing else....

-> OK

Quoted 1 line

After the reboot at step "5" the system comes again, but now when is

press BACKSPACE it writes a space, and if i try >to add a user or change the root password

Quoted 1 line

i always get a "/etc/passwd" not found.

Is a problem of your busybox configuration :)

Quoted 1 line

Can you point me to something concrete?

And, if busybox isn't properly configured, why is it working fine for the very first time?

I use the default busybox (1.6.0) on buildroot. Any *must-change* option?

Regards.

Regards

Quoted 6 lines

Michael

------------------------------
L'email della prossima generazione? Puoi averla con la Nuova Yahoo! Mail<http://us.rd.yahoo.com/mail/it/taglines/gmail/nowyoucan/nextgen/*http://it.docs.yahoo.com/nowyoucan.html>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20071024/f2321fca/attachment.htm

#2 lore raw

2007/10/24, Jorge S. <[email protected]>:

Quoted 34 lines

2007/10/24, Michael Trimarchi <[email protected]>:

Quoted 13 lines

Hi,

Quoted 1 line

I've sucessfully built several root filesystems for my custom board

(AT91RM9200 + 8MiB DataFlash), but now i'm >facing a strange problem.

Quoted 1 line

I'm using a JFFS2 filesystem on an MTD partition into the DataFlash, my

rootfs boots OK, but ONLY for the first time. >See steps:

Quoted 2 lines

1) Create a rootfs JFFS2 image using buildroot -> OK
2) Erase entire flash partition: I boot from an initrd containing

mtd-tools for this purpouse. -> OK

Quoted 1 line

3) Dump the rootfs image "rootfs.jffs2 " into the Dataflash (i use

Quoted 10 lines

loadb from u-boot here...) -> OK

Quoted 2 lines

4) Boot the system... -> OK
5) Login and issue a simple reboot, no other commands...nothing

else.... -> OK

Quoted 1 line

After the reboot at step "5" the system comes again, but now when is

press BACKSPACE it writes a space, and if i try >to add a user or change the root password

Quoted 1 line

i always get a "/etc/passwd" not found.

Is a problem of your busybox configuration :)

Quoted 1 line
Quoted 7 lines

Can you point me to something concrete?

And, if busybox isn't properly configured, why is it working fine for the very first time?

I use the default busybox (1.6.0) on buildroot. Any *must-change* option?

I mean -> I use the default busibox CONFIG on build root. In fact, i use busybox 1.70 and 1.6.0 config as
default on buildroot.

Is there anything wrong here?

Regards.

Quoted 10 lines

Regards

Quoted 6 lines

Michael

------------------------------
L'email della prossima generazione? Puoi averla con la Nuova Yahoo! Mail<http://us.rd.yahoo.com/mail/it/taglines/gmail/nowyoucan/nextgen/*http://it.docs.yahoo.com/nowyoucan.html>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20071024/1a3015ef/attachment.htm