2008-03-19 14:11:17     nandwrite and nfs usage

Document created by Aaronwu Employee on Aug 5, 2013
Version 1Show Document
  • View in full screen mode

2008-03-19 14:11:17     nandwrite and nfs usage

Andras Szemzo (HUNGARY)

Message: 52766    Hi,

 

For development, I often use nfs for easy  test for new apps. This method worked with 2.6.22, but since I upgraded to the latest kernel, toolchain, u-boot, uclinux-dist, if I put a new compiled app to my nfs server, It always crash with:

 

BUG: failure at mm/nommu.c:861/do_mmap_private()!

Kernel panic - not syncing: BUG!

 

I tested video_test, tone, mplayer etc...

If I boot with the fs on NAND, this all works.

 

 

Another question is how can I write the my nand jffs2 image to nand with linux. I can write small images with u-boot,

but if example QT is in the rootfs, I cannot do that becouse the size. ( I have 64M on the board, but writing example a 19M image is freezing when I download it to sdram in u-boot)

 

I tried (eraseall and ) nandwrite /dev/mtd1 rootfs_nand.jffs2 0 but this one is do nasty things with the nand.

 

I attached the good video_test log and a crash from nfs.

bf532_mm_nommu.txt

QuoteReplyEditDelete

 

 

2008-03-19 16:21:22     Re: nandwrite and nfs usage

Robin Getz (UNITED STATES)

Message: 52771    Andras:

 

trunk is considered experimental right now - we are working the last issues out of the 2008R1 branch - I would suggest that you stick there (unless you really, really need something from trunk).

 

-Robin

QuoteReplyEditDelete

 

 

2008-03-20 03:03:25     Re: nandwrite and nfs usage

Andras Szemzo (HUNGARY)

Message: 52802    Thanks Robin, understood.

 

In this case I just only report this bug. Running the same apps from example samba share is works, so maybe it's nfs related.

 

Have you got a hint about my other question, to write jffs2 image to nand from linux?

 

 

Thanks,

Andras

QuoteReplyEditDelete

 

 

2008-03-20 08:36:38     Re: nandwrite and nfs usage

Robin Getz (UNITED STATES)

Message: 52840    Andras:

 

you should just be able to write to the /dev/mtdblockn directly. Have you tried that?

 

-Robin

QuoteReplyEditDelete

 

 

2008-03-20 09:42:39     Re: nandwrite and nfs usage

Andras Szemzo (HUNGARY)

Message: 52844    No, I only tried using nandwrite until now, but I'll try evening as you sad.

 

 

Thanks and Regards,

Andras

QuoteReplyEditDelete

 

 

2008-03-20 13:06:40     Re: nandwrite and nfs usage

Andras Szemzo (HUNGARY)

Message: 52851    Robin:

 

That works wholly. Thank you for the tip and help.

 

Regards,

Andras

QuoteReplyEditDelete

 

 

2008-03-20 13:34:30     Re: nandwrite and nfs usage

Robin Getz (UNITED STATES)

Message: 52854    Andras:

 

I'm pretty sure the /dev/mtdblockx should go around bad blocks - but you may want to test to make sure (mark one of the first blocks as bad in U-Boot, and then check with U-Boot (via nand read) to see if things were skipped properly.

 

-Robin

Attachments

Outcomes