ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Rootfs generated by LTIB


From: Stuart Hughes
Subject: Re: [Ltib] Rootfs generated by LTIB
Date: Fri, 16 May 2008 15:13:28 +0100

Hi Yuri,

/bin/init is not required.  Normally I'd expect userspace to boot from
rootfs/sbin/init, which is usually a symlink to busybox:

$ find rootfs -name init
rootfs/sbin/init

How do you know if your ltib output is normal? I can't tell unless I see
it.

Please answer the question:
>> Also, how did you install this? 
> > was it from an iso image? 
> > did it every work?

Regards, Stuart

On Fri, 2008-05-16 at 10:37 -0300, Yuri Ribeiro wrote: 
> Stuart,
> 
> I'm worry about /bin/init file.
> Looking inside the kernel code, I saw that the init process is called in
> the end of the code:
> 
>       ...
>       run_init_process("/sbin/init");
>       run_init_process("/etc/init");
>       run_init_process("/bin/init");
>       run_init_process("/bin/sh");
> 
>       panic("No init found.  Try passing init= option to kernel.");
>       ...
> 
> I have the /bin/sh but none of the others.
> The PANIC is not reached and my SH is launched (I think). However, I
> don't see the prompt ( $ ) and no command is interpreted.
> Only I type the strings and it is echoed on terminal.
> 
> I'm not sure but I think that is due to the missing of INIT file. I'm
> new on Linux.
> 
> My ./ltib output appears to be normal. No error in the output.
> Is there any configuration that I must turn on? 
> Is the INIT file necessary?
> 
> Thanks,
> 
> Yuri.
> 
> On Fri, 2008-05-16 at 13:59 +0100, Stuart Hughes wrote:
> > Hi Yuri,
> > 
> > It looks reasonable. What's the output from ./ltib
> > 
> > Also, how did you install this? 
> > was it from an iso image? 
> > did it every work?
> > 
> > Regards, Stuart
> > 
> > On Fri, 2008-05-16 at 08:21 -0300, Yuri Ribeiro wrote:
> > > Stuart,
> > > 
> > > This is the output command,
> > >   $ ls -l rootfs/{etc,bin,sbin,usr/bin,usr/sbin}
> > > 
> > > Any help will be welcome.
> > > 
> > > Thanks.
> > > 
> > > Yuri Ribeiro
> > > Development and Research Department
> > > TSDA - Tecnologia e Soluções Digitais Aplicadas
> > > www.tsda.com.br
> > > 
> > > rootfs/bin:
> > > total 1768
> > > -rwxr-xr-x 1 root root 1783969 2008-05-06 18:07 bash
> > > -r-xr-xr-x 1 root root    7708 2008-05-06 18:07 bashbug
> > > lrwxrwxrwx 1 root root       4 2008-05-06 18:07 sh -> bash
> > > 
> > > rootfs/etc:
> > > total 68
> > > -rw-r--r-- 1 root root  177 2008-05-15 17:50 inittab
> > > -rw-rw-rw- 1 root root   70 2008-04-04 07:52 issue
> > > -rw-r--r-- 1 root root  240 2008-05-15 17:50 ltib-release
> > > -rw-rw-rw- 1 root root  164 2008-04-04 07:52 modprobe.conf
> > > -rw-r--r-- 1 root root 5754 2008-05-06 18:06 modprobe.conf.dist
> > > -rw-rw-rw- 1 root root   79 2008-04-04 07:52 profile
> > > drwxr-xr-x 3 root root 4096 2008-05-15 17:50 rc.d
> > > -rw-rw-rw- 1 root root  195 2008-04-04 07:52 securetty
> > > 
> > > rootfs/sbin:
> > > total 1988
> > > -rwxr-xr-x 1 root root  66934 2008-05-06 18:06 depmod
> > > -rwxr-xr-x 1 root root   8723 2008-05-06 18:06 generate-modprobe.conf
> > > -rwxr-xr-x 1 root root  11401 2008-05-06 18:06 insmod
> > > -rwxr-xr-x 1 root root 569138 2008-05-06 18:06 insmod.static
> > > -rwxr-xr-x 1 root root 665286 2007-05-09 15:27 ldconfig
> > > -rwxr-xr-x 1 root root   9822 2008-05-06 18:06 lsmod
> > > -rwxr-xr-x 1 root root  24275 2008-05-06 18:06 modinfo
> > > -rwxr-xr-x 1 root root  54113 2008-05-06 18:06 modprobe
> > > -rwxr-xr-x 1 root root  16466 2008-05-06 18:06 rmmod
> > > -rwxr-xr-x 1 root root 527991 2007-05-09 15:27 sln
> > > 
> > > rootfs/usr/bin:
> > > total 1052
> > > -rwxr-xr-x 1 root root   3368 2007-05-09 13:19 catchsegv
> > > -rwxr-xr-x 1 root root  22805 2007-05-09 15:26 gencat
> > > -rwxr-xr-x 1 root root  21018 2007-05-09 15:26 getconf
> > > -rwxr-xr-x 1 root root  24888 2007-05-09 15:26 getent
> > > -rwxr-xr-x 1 root root  56318 2007-05-09 15:26 iconv
> > > -rwxr-xr-x 1 root root   5565 2007-05-09 13:23 ldd
> > > -rwxr-xr-x 1 root root 335075 2008-05-06 18:10 less
> > > -rwxr-xr-x 1 root root  13577 2008-05-06 18:10 lessecho
> > > -rwxr-xr-x 1 root root  24528 2008-05-06 18:10 lesskey
> > > -rwxr-xr-x 1 root root  39205 2007-05-09 15:26 locale
> > > -rwxr-xr-x 1 root root 308725 2007-05-09 15:26 localedef
> > > -rwxr-xr-x 1 root root  83028 2007-05-09 15:26 rpcgen
> > > -rwxr-xr-x 1 root root  32060 2007-05-09 15:26 sprof
> > > -rwxr-xr-x 1 root root   6892 2007-05-09 13:15 tzselect
> > > 
> > > rootfs/usr/sbin:
> > > total 84
> > > -rwxr-xr-x 1 root root 17707 2007-05-09 15:26 rpcinfo
> > > -rwxr-xr-x 1 root root 13460 2007-05-09 15:26 zdump
> > > -rwxr-xr-x 1 root root 36828 2007-05-09 15:26 zic
> > > 
> > > 
> > > On Fri, 2008-05-16 at 08:32 +0100, Stuart Hughes wrote:
> > > > Hi Yuri,
> > > > 
> > > > Can you paste the output of:
> > > > 
> > > > $ ./ltib
> > > > and the output of:
> > > > $ ls -l rootfs/{etc,bin,sbin,usr/bin,usr/sbin}
> > > > 
> > > > LTIB should be placing the files you mention (albeit lower case version)
> > > > into rootfs.
> > > > 
> > > > Regards, Stuart
> > > > 
> > > > On Thu, 2008-05-15 at 16:41 -0300, Yuri Ribeiro wrote:
> > > > > Hi,
> > > > > 
> > > > > When I try to boot my linux kernel (generated with LTIB) nothing
> > > > > happens.
> > > > > All seems to be fine (almost all).
> > > > > But checking my ROOTFS directory, I saw that some files are missing.
> > > > > For example, no INIT file could be found in ETC, BIN or SBIN 
> > > > > directory.
> > > > > I thought that LTIB might be generating that files.
> > > > > 
> > > > > Thanks
> > > > > 
> > > 
> > > 
> > > 
> > 
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]