Port linux for arm LH79525

Submitted by Anonymous
on June 11, 2009 - 7:08pm

Dir my friends,

I'm an application engineer. I'm in project ARM lh79525. I searched on internet about embedded Linux for arm lh79525 and I see a little document about arm linux for it.I have some trouble with embedded Linux on Lh79525. I hope that everybody will help me.
First, i illustrator my project. I use u boot is bootloader. My board boot is ok.

U-Boot 1.1.1 (Apr 7 2009 - 00:37:01)
U-Boot code: 21F80000 -> 21F993B0 BSS: -> 21F9D5C0
RAM Configuration:
Bank #0: 20000000 8 MB
Bank #1: 21000000 8 MB
Bank #2: 22000000 8 MB
Bank #3: 23000000 8 MB
Flash: 8 MB
In: serial
Out: serial
Err: serial

and I use Uboot and linux kernel 2.6.12 from bsp-sharplh7-1.2.9 package.
Now, i have troble with linux kenel. When i build zImage, after i use tool mkimage of Uboot to make zImage to uImage. Then use command u boot to load uImage through tftp

Uboot> tftp 23000000 uImage
Uboot> bootm 23000000
## Booting image at 23000000 ...
Image Name: linux-2.6.12
Image Type: ARM Linux Kernel Image (gzip compressed)
Data Size: 1095780 Bytes = 1 MB
Load Address: 21000000
Entry Point: 21000000
Verifying Checksum ... OK
Uncompressing linux kernel .......................................done, booting kernel

hang forever and nothing to see. So, i can not debug anything here.
I would like to know what I wrong?
I am looking forward to hearing from you.

Thanks and Best regards,

Tuyen Pham

hang?

strcmp
on
June 12, 2009 - 11:23am

are you sure it's hanging? maybe it's running perfectly but writing all messages to nowhere or at least another port than the one you are looking at. how did you configure&build the kernel? did you include console drivers etc? can you select where the messages are going?

LH79525

tuyenpham
on
June 14, 2009 - 7:17pm

hi strcmp!

thanks for your reply!

I also think same you. I select make ARCH=arm menuconfig and include
<*> Sharp LH7952x embedded UART support
<*> Support for console on Sharp LH7952x serial port
am I lack anything?
my U boot rum at baudrate 115200. I also set baudrate by setenv command in U boot all speed but I can see Linux kernel run on console. Do you have method to debug in kernel?

thanks

Tuyen Pham

Kernel hangs after uncompressing linux......

Prathap K V (not verified)
on
August 4, 2009 - 10:22pm

This could be because you might not have properly set your machine ID.
Please find your machine id from linux/arch/arm/tools/mch-types.

The below commented text is from arch/arm/kernel/head.s
You have to set proper machine nr in register r1.

/*
* Kernel startup entry point.
* ---------------------------
*
* This is normally called from the decompressor code. The requirements
* are: MMU = off, D-cache = off, I-cache = dont care, r0 = 0,
* r1 = machine nr, r2 = atags pointer.
*
* This code is mostly position independent, so if you link the kernel at
* 0xc0008000, you call this at __pa(0xc0008000).
*
* See linux/arch/arm/tools/mach-types for the complete list of machine
* numbers for r1.
*/

Hope this may help.

Warning: unable to open an initial console.

tuyenpham
on
August 7, 2009 - 2:52am

hi all,

thanks so much for your reply about my problem. Now, i have a new trouble when mount ramdisk for my board. I post message when board booting

<5>RAMDISK: Compressed image found at block 0
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
<6>Mounted devfs on /dev
<6>Freeing init memory: 96K
<4>Warning: unable to open an initial console.

and stop at run_init_process("/sbin/init") function in /init/main.c

my u boot environment are:

Bank #0: 20000000 8 MB
Bank #1: 20800000 8 MB
Bank #2: 21000000 8 MB
Bank #3: 21800000 8 MB
Flash: 8 MB
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
Uboot> pri
bootdelay=3
baudrate=115200
ethaddr=00:09:3e:26:0a:5b
ipaddr=192.168.1.203
netmask=255.255.255.0
serverip=192.168.1.22
bootcmd=tftp 0x20800000 initrd; bootm 0x440a0000 0x20800000
bootargs=console=ttyAM0 root=/dev/ram rw init=/sbin/init mtdparts=phys_mapped_flas
h:1024k(UBOOT),256k(UBOOT_ENV),2560k(KERNEL),4096k(FS)
stdin=serial
stdout=serial
stderr=serial

Environment size: 355/131068 bytes

I tried change init=/... but all were failed.
I searched on many linux forum and saw this problem is quite populate but i didn't find a answer for my trouble.
I hope friends with your experience will help me!!!

thanks so much

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.