Subject: Re: exec init
To: None <Lin.Colin@iac.com.tw>
From: Matt Thomas <matt@3am-software.com>
List: port-arm
Date: 05/19/2004 08:40:31
On May 17, 2004, at 7:53 AM, <Lin.Colin@iac.com.tw> wrote:

>
> Hi all,
> My OMAP porting is ready to exec init. However, there has been one=20
> problem brothering me for some days.
> The root is a ramdisk stored in NOR flash.
> The file formats of these init executable files are all=20
> "elf32-little". They all can be executed.
> The kernel configuration has options "EXEC_ELF32".
> Kernel can exec both "/usr/src/obj/destdir.evbarm/rescue/init" and the=20=

> init in "/usr/obj/distrib/evbarm/instkernel/ramdisk/ramdisk.fs".
> But if I put =93/usr/src/obj/destdir.evbarm/sbin/init=94(just 22910=20
> bytes!!!) in /sbin/, check_exec would return "ENOEXEC".

Probably because /libexec/ld.elf_so doesn't exist.  You'll also need to
populate /lib with the appropriate shared libraries.

/rescue/init is linked statically while /sbin/init is linked=20
dynamically.

--=20
Matt Thomas                     email: matt@3am-software.com
3am Software Foundry              www: http://3am-software.com/bio/matt/
Cupertino, CA              disclaimer: I avow all knowledge of this=20
message.=20=