Hi,

On Friday 06 June 2008 15:57, Martin Fiala wrote:
> i'm porting Montavista linux 2.6.24.3 to our board which is based on Amd 
> alchemy mips processor. I'm using U-boot as boot loader and Eldk 4.1 by Denx, 
> which contains also busybox 1.3.0, for development.

Please do not try to win the monthly prize for the
email with longest line lengths.

> Linux boots well until it gets to starting of init process.
> After sys_execve function is completed (with no error), process,
> called init, invokes fpu emulator eight times with no error.
> After that is program moving in scheduller code and any assembler
> code, which is used to clearing memmory bits. Then linux randomly
> crashes with "not syncing - attemted to kill init" message.

The usual procedure to debug it is ti try to boot
with init which is very simple, say, which prints
"Hello world!" and sleeps for one second in a loop.

When that works, build busybox with the same exact toolchain
libc, options etc which were working for Hello-world class
init.

> This happens no matter if i try to boot from nfs or from ramdisk.
> I used ramdisk, which is part of eldk package and ramdisk which
> i created using bussybox in combination with Eldk libraries,
> but result was almost the same. The difference was only in some
> libraries, which are loaded by linker, i think. I got the same
> results with NFS.

Generally, try to make it work with statically linked init
(and then busybox).
Shared libraries are another can of worms, do not try to solve
two problems at once. You can attack that later.

> I can not post you messages, which writes linux during boot,
> because my console also doesn't work yet. I didn't even try
> to make console work much, because i can read printk messages
> from log_buf variable, when i debug linux using kgdb.    

You are more advanced than me, I dont know kgdb.

> I also compiled hello world application, i found at bussybox
> internet page, with Eldk compiler, changed it to elf format
> with cross compile objcopy and renamed it to init,
> but kernel gave me no init found message.   

You are on the right track. Find a working combination
of toolchain and libc which works for simple statically
linked "hello world".

> Right now, i'm quite clueless, because my knowledges
> ot this problematics are quie poor.

Everyone was starting like this.
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to