install linux error

azam
hello every body 

I have a sumsung  s3c2440Al - 40 and its os is win ce.
I would like to install linux on it via DNW.
I don't know which nand flash I have 64 or 128

the bios list options is
##### ## BIOS for ## #####

Press Space key to Download Mode !



#####   Boot for Nor Flash Main Menu  #####

[1] Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash

[2] Download Eboot to Nand Flash

[3] Download Linux Kernel to Nand Flash

[5] Download CRAMFS image to Nand Flash

[6] Download YAFFS image to Nand Flash

[7] Download Program (uCOS-II or EM2440_Test) to SDRAM and Run it

[8] Boot the system

[9] Format the Nand Flash

[0] Set the boot parameters

[a] Download User Program (eg: uCOS-II or EM2440_Test)

[b] Download LOGO Picture (.bin) to Nand  Flash 

[l] Set LCD Parameters 

[o] Download u-boot to Nor Flash

[r] Reboot u-boot

[q] quit from menu

Enter your selection: 9


I select Format nand and I recieved 

##### Erase Nand Menu #####

[1] Nand scrub - really clean NAND erasing bad blocks (UNSAFE) 

[2] Nand earse - clean NAND eraseing 

[q] Return main Menu 

I select 1 for nand dcrub

then I select 
1 and download supervivi64.bin
3 and download zImage_2.6.30.4_W43_64MB.bin
6 and download root_qtopia_2.2.0_2.6.30.4_64MB.bin

but at the end I select 8 for booting the system and i have these error

Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to
kernel.
Backtrace: 
[<c0046fd4>] (dump_backtrace+0x0/0x10c) from [<c02be40c>]
(dump_stack+0x18/0x1c)
 r7:00000000 r6:c03c9da0 r5:c03c9760 r4:c03a2248
[<c02be3f4>] (dump_stack+0x0/0x1c) from [<c02be45c>] (panic+0x4c/0x124)
[<c02be410>] (panic+0x0/0x124) from [<c00424f0>] (init_post+0xec/0x178)
 r3:00000000 r2:c384ad00 r1:c03fd000 r0:c034befc
[<c0042404>] (init_post+0x0/0x178) from [<c000847c>]
(kernel_init+0xcc/0xf4)
 r5:c001d6b0 r4:c001da14
[<c00083b0>] (kernel_init+0x0/0xf4) from [<c0057f30>] (do_exit+0x0/0x620)
 r7:00000000 r6:00000000 r5:00000000 r4:00000000

any help will be appreciated

davef
http://www.friendlyarm.net/downloads

and under datsheets you will see the different flash types listed.  Read
the number of the top of the flash chip and you are off and running.

azam
I found size of nand flash .it is 64M nand flash.
I did the following  things 
Nand scrub - really clean NAND erasing bad blocks (UNSAFE) 
supervivi64.bin
zImage_2.6.30.4_W43_64MB.bin
root_qtopia_2.2.0_2.6.30.4_64MB.bin
remove usb cable and then boot the system linux was installed
but when i powered off and poweredd on in nand flash,the screen was black

davef
You are sure is it a w43 screen?

You really want to connect the mini2440 to your host PC and capture the
bootup messages.

Use the RS232 cable supplied by FriendlyArm and run minicom on your host
(115200, 8N1)

davef
Sorry,  I see you already have seen the error.

> Failed to execute /linuxrc

Search for that on this site, I am sure it is a fairly common problem.

azam
boot linux from nand flash have problem


I install linux and it boot in nor flash but in nand flash linux don't load
and here it's messages

Warning: this binary is not compressed linux kernel image
zImage magic = 0xffffffff
Setup linux parameters at 0x30000100
linux command line is: "noinitrd root=/dev/mtdblock3 init=/linuxrc
console=ttySAC0"
MACH_TYPE = 1999
NOW, Booting Linux......

davef
I just went to the downloads page to check a few things and I see there are
no versions of Qtopia there ... any more.

I reason I checked is because I have never seen any of the files you refer
to.  2.6.30 looks odd as I thought all the FriendlyArm distros were 2.6.32
based.  Are you sure there are .bin extensions on the files?

Where did you get those files from?

Put zimage magic in the forum search.

Good luck!

azam
hello and thanks for your response
I found these files on DVD.
but I did't find any more in download page . Is there a link on download
page for linux kernel and yaff

also In nor flash linux will be boot but that error is for nand flash.

davef
Software
  -> ARM9
    -> Linux 2.6.32.2 2011-04-13 is the kernel

But I see the yaffs2 root file system files are gone now, as well.

Wait a minute ... go down to the bottom of the downloads page and log in to
the FTP server, I think everything is now in there.

azam
hello Davef and thank you for kindly response
Linux 2.6.32.2 2011-04-13 in Software->ARM9 is a tar.gz file not a .bin
file and DNW cannot download it

Is there any way for downloading bootloader and linux kernel and file
system for mini2440.

davef
Linux .tar.gz  You need to extract it on your Linux host machine.  Sort of
like a .zip file on a Windows machine.  This file will get your the patched
Linux source for the mini2440.  I don't think you are ready to compile your
own kernel.

> Is there any way for downloading bootloader and linux kernel and file
> system for mini2440.

Well, there are lots of ways, but first ... didn't you get a CD with all
these files on it?

Failing that, on the FTP server there should be images that you can just
download using DNW to your mini2440.

azam
Hello and thanks
the images that i found in DVD are :
rootfs_64M.bin
rootfs_256MB.bin
u-boot_A70.bin
u-boot_W35.bin
root_2.6.13_condense_64MB.bin
root_2.6.13_qt_mouse_64MB.bin
root_2.6.13_qt_tp_64MB.bin
root_qtopia_2.2.0_2.6.30.4_64MB.bin
root_qtopia_2.2.0_2.6.30.4_256MB.bin

and I downloaded supervivi64 from download page.

LCD is KD43G7-40NM-82
NAND flash is 64 MB

I couldn't find any images file in ftp server 

and i do'nt know when linux can boot in nor flash but not in nand flash
,what is wrong

davef
The ftp server contents look quite different this time.  Last time I looked
was when they actually offered that service, a few years ago.

2.6.13 I think was when they first introduced the product.  I got involved
at 2.6.32.2

I ditched FriendlyArm distros about two years and put my learning effort
into the Pengutronix BSP.  One major plus with Pengutronix is that there is
really good support for this free BSP.  Even I might be of more help :)

Booting from NOR and Flash.  From memory Supervivi bootloader goes into NOR
but also there is something else that gets loaded into Flash, so that you
can boot from there.

Read through this procedure
http://forrestbao.blogspot.co.nz/2008/01/deploying-embedded-linux-to-sam...
and maybe you will see that he uses Supervivi in NOR to load u-boot.bin
(another bootloader)into RAM then into FLASH.  Then the kernel and root
filesystem are loaded into flash.  And away you go.

Are you following a written tutorial or procedure?  Also, I would suggest
getting more up-date files.  Sorry, I don't know where to get them.

azam
Hello Davef
thank you very much indeed for your help

I download u-boot_W43.bin instead of suppervivi64.bin
zImage__W43_64MB instead of zImage_2.6.30.4_W43_64MB.bin
and root_qtopia_2.2.0_2.6.30.4_64MB.bin.
linux boot in Nand flash successfully

thank you for everything

davef
Good going!

Just curious you said:
> zImage__W43_64MB instead of zImage_2.6.30.4_W43_64MB.bin

specifically the first file zImage__W43_64MB, is it not a uImage?

davef
Also, on the command line type:

uname -r and see which version of Linux you are running

azam
it is 2.6.30.4-EmbedSky
is it ok?

azam
uImage is a linux kernel?
I have n't uImage on my DVD.

davef
> it is 2.6.30.4-EmbedSky

Ah, you don't have a FriendlyAm mini2440.  I didn't pick that up when you
said you had a s3c2440Al - 40

There could be some differences as you have two different groups of people
patching the mainline kernel for their particular boards. Stick with
whatever came with the dev board until you run into a problem.

A few years ago uboot would only load uImages, but with more recent
versions it will load zImages.

Yes, uImage is a Linux kernel with a different header format, or different
compression or ? compared with zImage.

Be aware there have been many changes since 2.6.30.4 but for a learning
exercise or doing most stuff it should be OK. I doubt if EmbedSky keep up
to-date, likewise FriendlyArm.  We still use 2.6.20 in a product, you just
need people who are good at patching old kernels!

Pengutronix are up 3.14

azam
Thanks Davef for your kindly help.