mini2440 1Gig kernel Panic

Slampt
Hey All, 
I have been playing with a 1gig version of the mini2440 for a few days, 
I have managed to get u-boot on the nand, I have also compiled (using
buildroot) a filesystem and kernel. I can get the kernel on the Nand also
but get a kernel panic when trying to boot the root filesystem.

A few little things that pop up are as follows;


mtd: partition "root" extends beyond the end of device "NAND 1GiB 3,3V
8-bit" -- size truncated to 0x3faa0000

VFS: Cannot open root device "mtdblock3" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available
partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(0,0)


Any help would be appreciated.

davef
0x3faa0000

Seems suspect.  This is the rootfs size for the 64M machine.

Maybe, you have the wrong u-boot??

slampt
Thanks, 

I could be :P
I am using the u-boot 256M one as I have read it works on the mini2440 1Gig
ver.
I have tried to make my own but that just ends in tears at this stage...
Perhaps I should use the 64M? :)

Slampt

davef
No.

I one for 256M I believe is correct for the 1GB.  

Search around this forum it has been mentioned before.

slamptq
Hey Davef, 

I am currently using the 256M one.
I have managed to boot the rootfs, but I am getting a lot of these messages
on the console.

# JFFS2 notice: (736) check_node_data: wrong data CRC in data node at
0x0b499ba0: read 0x7738f86f, calculated 0xc7493c55.
JFFS2 notice: (736) check_node_data: wrong data CRC in data node at
0x31202c54: read 0x80ebe5b8, calculated 0x5764a143.
JFFS2 notice: (736) check_node_data: wrong data CRC in data node at
0x0b492fb0: read 0xa7b7a973, calculated 0x3228b794.
JFFS2 notice: (736) check_node_data: wrong data CRC in data node at
0x0b48d078: read 0x50673f2e, calculated 0xd82e8b71.

Any idea what it means.

Slampt

davef
When I made my own JFFS2 files system and loaded it on the machine I didn't
get that error.  When I modified anything in the root file system, ie
tweaking /etc/network/interfaces on re-booting the machine those errors
would pop-up.

Everything seemed to continue working OK and when no one answered my
question about this issue, I came to the conclusion they were not
important.

slampt
No Worries, 

Thanks for that, Now I need to find a kernel that has all the support I
need, 
I would like the LED support so the backlight turns off and I would like
DirectFB and SDL working.
I only ever seem to get 1 or the other working, not both...

If anyone can help with this I would appreciate it. :P

I am trying another custom kernel (Jay's I think). But I am having problems
getting it to work with my Buildroot environment at the moment.

Cheers
Joe

Andreas
I have compiled my kernel...
it supports w-Lan for a RTL8187L chipset, GPIO support,
Logitech usb webcam support and i have already crosscompiled SDL...
but i am not such fit i have still some trouble to include the libs of SDL
in my toolchain.

But so far WPA2 works almost (expect from some disconnect issues)
mjpg streamer works fine and the SDL examples are running inclusive touch
screen support. 

Yours Andreas

iam now at a mini6410 ... but here i am just at the beginning.

slampt
Just an update, I found a fix for my DirectFB problem.

http://permalink.gmane.org/gmane.linux.ports.arm.kernel/75279

Now it works *yay*
The only thing I need to figure out now is the LED blanking/unblanking with
TSLIB.

Any ideas?

davef
Did you try buserror's kernel at any stage?
http://repo.or.cz/w/linux-2.6/mini2440.git
He sorted out most (?)the __initdata issues.  Did he miss that one?

stereo_m
I can't get X working with buserror's kernel, but maybe it's just me?

davef
OK.  It is just that some other things might not work with someone elses
kernel.

denizcan
Hi slampt,

How did you solve the VFS problem? Just using 256MB instead of 1Gig?

Oco karso
Hi davef
I think the mini2440 that you have is the previous version, while the
troubled is the latest version

davef
I see I didn't mention which one mine was, but as implied by the 2nd
posting I seemed to know something about the 64M unit!

Oco karso
I've tried mini2440 64M, 256M and 1G previous versions and runs fine but
for the latest version 1G always failed flashing, always "kernel panic"

davef
I am having a bit of difficultly understanding why you wrote a response to
a 4 year old thread.

I now understand you to say, that you are having a problem with the latest
version of mini2440 with a 1G flash.

Possibly the actual flash chips are different in the old and new versions
of the mini2440.

On the downloads page you will find under Datasheets a list of NAND flash
ICs used in FriendlyArm product.

You want to get the part number off the flash chips used in your device and
drop that into the search function and see if someone else has the same
problem.

Or at least confirm that the NAND flash chips in your newer mini2440 are
the same .... or different parts.

Oco karso
hahaha, I'm sorry Dave, I do not see the date and year of thread.
but for the moment I am more troubled by mini2440 1G like this thread.
maybe you can help me.
the problem is when supervivi replaced with superboot.

davef
Search superboot.  There have been some recent threads about problems with
superboot.

Other than that I will be of little help as I use Supervivi + Barebox and
the Pengutronix BSP.

Good luck!