[Celinux-dev] Linux kernel hangs while booting on hardware
Ashay Jaiswal
ashayj at KPITCummins.com
Fri Dec 15 02:56:26 PST 2006
Hello all,
I have successfully build SH4-Linux toolchain based on
(binutils-2.17, gcc-4.1.1, glibc-2.5) for Renesas SH target.
I am trying to cross compile Linux-2.6.17 using the above mentioned
Cross-toolchain for Renesas target (sh-7751R2D+).
I am facing following problem while booting kernel on the target:
In "arch/sh/kernel/timers/timer-tmu.c" file:
In "tmu_timer_init" function 'interval' variable is assigned 0
value and thus kernel hangs while "initializing tmu".
Observation:
In "arch/sh/kernel/cpu/clock.c"-
In function "clk_get" the initial value of rate (member of clk
structure) is 0.
I have initialized 'interval' variable to 80000(hard coded in kernel
source)
It then boots further but hangs after "Freeing unused kernel memory: 84k
freed"
After investigating into the kernel source I observed following problem:
In "init/main.c" file
Kernel hangs while executing "run_init_process" ("/sbin/init") even
though "init"
is present in sbin folder.
I tried to execute some binaries using 'exec' system call in the kernel
source
but kernel hangs while executing 'exec' call.
When tried with GCC-3.4.6 based toolchain (for cross compiling kernel)
kernel
boots properly on hardware.
Any help on this will be appreciated.
Regards,
Ashay Jaiswal
KPIT Cummins Infosystems Ltd,
Pune (INDIA)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~
Free download of GNU based SH-Linux toolchains for Renesas' SH Series.
The following site also offers free technical support to its users.
Visit http://www.kpitgnutools.com for details.
Latest versions of KPIT GNU SH-Linux tools were released on September
27, 2006.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~
More information about the Celinux-dev
mailing list