LinuxQuestions.org
Visit Jeremy's Blog.
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 11-19-2009, 07:26 AM   #1
atmurali
Member
 
Registered: Nov 2007
Location: Kerala
Posts: 42

Rep: Reputation: 15
U-boot mini2440 128 MiB Nand


Hello,

I have been trying to port a U-boot to a MINI2440 for last two weeks.
But So many problems are there.

The error is
nand_scan() cannot allocate buf

Please Help me to solve the problem
 
Old 11-20-2009, 05:17 AM   #2
harywang
LQ Newbie
 
Registered: Oct 2009
Location: poland
Distribution: Suse, linux device driver, miniGUI, QT, video MPEG H.265
Posts: 5

Rep: Reputation: 0
you are newer?
 
Old 11-21-2009, 02:28 AM   #3
maheshkuruganti
LQ Newbie
 
Registered: Nov 2006
Location: Chennai , India
Distribution: Ubuntu Jaunty
Posts: 8

Rep: Reputation: 0
Why are you trying to Port something that has already been ported.Check this Post

http://bliterness.blogspot.com/2009/...11-v26308.html


There is a Git tree.There is a workaround on making it work

Here is the Procedure.

1)Boot from NOR Flash
2)Download and Run uboot-nand2k.bin after compiling from the git tree.
3)Do nand scrub,createbbt.
4)!!IMPORTANT!! Reset the board and boot into NOR flash.
5)Select the Download Vivi option and download uboot-nand2k.bin
6)Reset into NAND Flash.
7)uboot boots up then run "dynenv set 40000"
8)run saveenv
9)You should see a Writing to NAND.

Setup is complete
 
Old 11-23-2009, 06:23 AM   #4
atmurali
Member
 
Registered: Nov 2007
Location: Kerala
Posts: 42

Original Poster
Rep: Reputation: 15
But doesn't work

I am newer in Embedded Linux


Thank you for your reply.

I have compiled the u-boot downloaded from
git://repo.or.cz/u-boot-openmoko/mini2440.git
But the error is same as given:

Please see this



Supervivi> load ram 0x33f80000 235520 u
USB host is connected. Waiting a download.

Now, Downloading [ADDRESS:33f80000h,TOTAL:235530]
RECEIVED FILE SIZE: 235530 (32KB/S, 7S)
Downloaded file at 0x33f80000, size = 235520 bytes
Supervivi> go 0x33f80000
go to 0x33f80000
argument 0 = 0x00000000
argument 1 = 0x00000000
argument 2 = 0x00000000
� argument 3 = 0x00000000

U-Boot 1.3.2-mini2440 (Nov 23 2009 - 10:52:19)

I2C: ready
DRAM: 64 MB
Flash: 2 MB
NAND: Bad block table not found for chip 0
Bad block table not found for chip 0
128 MiB
*** Warning - bad CRC or NAND, using default environment

USB: S3C2410 USB Deviced
In: serial
Out: se

U-Boot 1.3.2-mini2440 (Nov 23 2009 - 10:52:19)

I2C: ready
DRAM: 64 MB
Flash: 2 MB
NAND: nand_scan(): Cannot allocate oob_buf
0 MiB
��

///*******************
Here the Vivi shell again comes
What may be the problem?
Please help me.
 
  


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
Why can't i get GUI on mini2440 when NAND flashing qt image? neo3matrix Linux - Newbie 0 11-03-2009 06:11 AM
A question about u-boot in Nand flash dongbo Linux - Hardware 0 10-15-2009 04:25 AM
how configure the serial ports on MINI2440 pix23 Linux - Hardware 3 09-03-2009 02:11 PM
Unable to connect to wap at work or home - 128 bit - Linux: 128 hex only option? pearsdb Linux - Newbie 5 05-28-2009 05:27 PM
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:04 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