<br><br><div><span class="gmail_quote">2007/10/24, Ulf Samuelsson <<a href="mailto:ulf@atmel.com">ulf@atmel.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
ons 2007-10-24 klockan 18:20 +0200 skrev Jorge S.:<br>> Hello all:<br>><br>> I've sucessfully built  several root filesystems  for my custom board<br>> (AT91RM9200 + 8MiB DataFlash),  but  now  i'm facing a  strange
<br>> problem.<br>><br>> I'm using a JFFS2 filesystem on an MTD partition into the DataFlash,<br>> my rootfs boots OK, but ONLY for the first time. See steps:<br>><br>> 1) Create a rootfs JFFS2 image using buildroot -> OK
<br>> 2) Erase entire flash partition: I boot from an initrd containing<br>> mtd-tools for this purpouse. -> OK<br>> 3) Dump the rootfs image "rootfs.jffs2" into the Dataflash (i use<br>> loadb from u-boot here...) -> OK
<br>> 4) Boot the system... -> OK<br>> 5) Login and issue a simple reboot, no other commands...nothing<br>> else.... -> OK<br>><br><br>If you run the SPI faster than 5 Mbps, you are basically screwed.<br>
See Errata #13 in the datasheet.<br><br>You will need to add an external AND gate if you want to run faster.<br><br>* AND output to the dataflash chip select,<br>* one input to the NPCS0<br>* one input to a GPIO<br><br>The driver needs to be adapted for this.
</blockquote><div><br>So, there's a flash corruption on the 1st boot?, <br><br>I'm a little confused now...why u-boot looks like writing OK then? I've sucessfully uploaded hundreds of kernels and initrds images to the dataflash. 
<br><br>During the 1st boot, Dropbear creates and "writes" the generated keys, maybe is this *write* operation the one screwing up the dataflash?<br><br>And last question, which one is the best way to solve this by software? I suppose i can "slow down" the SPI speed somewhere in the kernel or board config at u-boot isn't it?
<br><br>Thanks for helping Ulf.<br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> After the reboot at step "5" the system comes again, but now when is
<br>> press BACKSPACE it writes a space, and if i try to add a user or<br>> change the root password<br>> i always get a "/etc/passwd" not found.<br>><br>> So i have (at least) 2 weird issues here:
<br>><br>> 1) Why my backspace key sends a space, but really deletes a<br>> character?!?! It worked fine for the 1st boot<br>> 2) Why "adduser" and "passwd" utilities are unable to access /etc
<br>> files? I'have TRIPLE checked read/write permissions...everything is<br>> ok. Of course it works fine if i do this on the 1st boot!<br>><br>> Any idea?!<br>><br>> Thanks in advance.<br>><br>>
<br>> _______________________________________________<br>> buildroot mailing list<br>> <a href="mailto:buildroot@uclibc.org">buildroot@uclibc.org</a><br>> <a href="http://busybox.net/mailman/listinfo/buildroot">
http://busybox.net/mailman/listinfo/buildroot</a><br>--<br>Best Regards,<br>Ulf Samuelsson<br><br></blockquote></div><br>