LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 10-24-2011, 11:04 AM   #1
tompo
LQ Newbie
 
Registered: Oct 2011
Posts: 3

Rep: Reputation: Disabled
Question U-Boot: nand write problem


Hello everyone,

I try to write to my NAND flash and for this I tried different things. One is to use the U-Boot functionality and the other to use linux functionality (other thread). If I do it as described at the manual I always get an error and I do not know why. See the procedure here:

Quote:
=> tftp 1000000 u-boot.bin

Speed: 1000, full duplex
Using eth0 device
TFTP from server 192.168.0.11; our IP address is 192.168.0.111
Filename 'u-boot.bin'.
Load address: 0x1000000
Loading: ##################################
done
Bytes transferred = 488468 (77414 hex)
=> nand erase 00000000 000fffff

NAND erase: device 0 offset 0x0, size 0xfffff
Bad block table found at page 65504, version 0x01
Bad block table found at page 65472, version 0x01
nand_read_bbt: Bad block at 0x000000ac4000
Erasing at 0xfc000 -- 100% complete.
OK
=> nand write 1000000 00000000 000fffff

NAND write: device 0 offset 0x0, size 0xfffff
NAND write to offset 0 failed -5
0 bytes written: ERROR
NAND Flash memory map address:
MTD | Start offset |End offset | Description
MTD5 0x00000000 0x000fffff NAND boot binary
MTD6 0x00100000 0x001fffff DTB
MTD7 0x00200000 0x005fffff uImage
MTD8 0x00600000 0x009fffff Ramdisk
MTD9 0x00a00000 0x018fffff Rootfs image
MTD10 0x01900000 0x01ffffff User area

Does anyone know what the problem could be?

Thank you for your help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] What are the NAND(MTD) read and write commands? dbrazeau Linux - Software 3 11-05-2010 06:31 PM
Nand flash boot Roger03 Programming 1 04-03-2010 05:19 AM
U-boot mini2440 128 MiB Nand atmurali Linux - Embedded & Single-board computer 3 11-23-2009 06:23 AM
A question about u-boot in Nand flash dongbo Linux - Hardware 0 10-15-2009 04:25 AM
Nand flash boot problem nagi.slm Linux - Embedded & Single-board computer 1 01-05-2009 01:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration