public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] /sbin/init don't work
@ 2010-12-22 18:41 Kfir Lavi
  2010-12-22 23:31 ` David Ford
  0 siblings, 1 reply; 9+ messages in thread
From: Kfir Lavi @ 2010-12-22 18:41 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 285 bytes --]

Hi,
I have created a small cross filesystem.
I have /sbin/init but the kernel is stuck in:
Freeing unused kernel memory: 284k freed

I created a init script for testing and this init script work.
Why this /sbin/init don't work for me.

I'm using baselayout 2 and openrc.

Thanks,
Kfir

[-- Attachment #2: Type: text/html, Size: 354 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-embedded] /sbin/init don't work
  2010-12-22 18:41 [gentoo-embedded] /sbin/init don't work Kfir Lavi
@ 2010-12-22 23:31 ` David Ford
  2010-12-23  8:38   ` Kfir Lavi
  0 siblings, 1 reply; 9+ messages in thread
From: David Ford @ 2010-12-22 23:31 UTC (permalink / raw
  To: gentoo-embedded

does /dev/console exist? is /sbin/init statically compiled? if it's a
shell script, does /bin/sh (or /bin/bash etc) exist?

On 12/22/2010 01:41 PM, Kfir Lavi wrote:
> Hi,
> I have created a small cross filesystem.
> I have /sbin/init but the kernel is stuck in:
> Freeing unused kernel memory: 284k freed
>
> I created a init script for testing and this init script work.
> Why this /sbin/init don't work for me.
>
> I'm using baselayout 2 and openrc.
>
> Thanks,
> Kfir



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-embedded] /sbin/init don't work
  2010-12-22 23:31 ` David Ford
@ 2010-12-23  8:38   ` Kfir Lavi
  2010-12-23  9:31     ` Jan Kobler
  2010-12-23  9:52     ` Arkadi Shishlov
  0 siblings, 2 replies; 9+ messages in thread
From: Kfir Lavi @ 2010-12-23  8:38 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 925 bytes --]

On Thu, Dec 23, 2010 at 1:31 AM, David Ford <david@blue-labs.org> wrote:

> does /dev/console exist? is /sbin/init statically compiled? if it's a
> shell script, does /bin/sh (or /bin/bash etc) exist?
>
> On 12/22/2010 01:41 PM, Kfir Lavi wrote:
> > Hi,
> > I have created a small cross filesystem.
> > I have /sbin/init but the kernel is stuck in:
> > Freeing unused kernel memory: 284k freed
> >
> > I created a init script for testing and this init script work.
> > Why this /sbin/init don't work for me.
> >
> > I'm using baselayout 2 and openrc.
> >
> > Thanks,
> > Kfir
>
> Hi David,
Thanks for your replay.
I have bash, so if I run bash from the script bash will open a session.
I did a compilation of /sbin/init statically.
I don't have /dev/console, because udev didn't kickstart. My /dev is empty.
Maybe this is the problem. :-P
Is there a gentoo article that describe the must for loading a system?

Regards,
Kfir

[-- Attachment #2: Type: text/html, Size: 1390 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-embedded] /sbin/init don't work
  2010-12-23  8:38   ` Kfir Lavi
@ 2010-12-23  9:31     ` Jan Kobler
  2010-12-23  9:52     ` Arkadi Shishlov
  1 sibling, 0 replies; 9+ messages in thread
From: Jan Kobler @ 2010-12-23  9:31 UTC (permalink / raw
  To: gentoo-embedded; +Cc: Kfir Lavi

Hi,

this is how I have set up the root file system
http://en.gentoo-wiki.com/wiki/Phytec_phyCORE-iMX35/Gentoo/Desktop#Prepare_target_root_file_system

Because /dev/console was missing I have created it with:
mknod ${ROOT}/dev/console c 5 1

This worked for me. If there is a better way to do it, let me know.

Best regards

Jan





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-embedded] /sbin/init don't work
  2010-12-23  8:38   ` Kfir Lavi
  2010-12-23  9:31     ` Jan Kobler
@ 2010-12-23  9:52     ` Arkadi Shishlov
  2010-12-23 10:22       ` Kfir Lavi
  1 sibling, 1 reply; 9+ messages in thread
From: Arkadi Shishlov @ 2010-12-23  9:52 UTC (permalink / raw
  To: gentoo-embedded

On 12/23/10 10:38, Kfir Lavi wrote:
> I don't have /dev/console, because udev didn't kickstart. My /dev is empty.
> Maybe this is the problem. :-P
> Is there a gentoo article that describe the must for loading a system?

Not Gentoo specific and you must have /dev/console. Also /dev/null, /dev/zero
and /dev/tty* or many programs will fail.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-embedded] /sbin/init don't work
  2010-12-23  9:52     ` Arkadi Shishlov
@ 2010-12-23 10:22       ` Kfir Lavi
  2010-12-23 11:11         ` Arkadi Shishlov
  2010-12-23 11:57         ` Peter Stuge
  0 siblings, 2 replies; 9+ messages in thread
From: Kfir Lavi @ 2010-12-23 10:22 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 596 bytes --]

On Thu, Dec 23, 2010 at 11:52 AM, Arkadi Shishlov <arkadi.shishlov@gmail.com
> wrote:

> On 12/23/10 10:38, Kfir Lavi wrote:
> > I don't have /dev/console, because udev didn't kickstart. My /dev is
> empty.
> > Maybe this is the problem. :-P
> > Is there a gentoo article that describe the must for loading a system?
>
> Not Gentoo specific and you must have /dev/console. Also /dev/null,
> /dev/zero
> and /dev/tty* or many programs will fail.
>
> I remember that back then we had a script that would run and populate /dev.
Is it possible to use it just to make things faster for me?

Tnx,
Kfir

[-- Attachment #2: Type: text/html, Size: 953 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-embedded] /sbin/init don't work
  2010-12-23 10:22       ` Kfir Lavi
@ 2010-12-23 11:11         ` Arkadi Shishlov
  2010-12-23 11:57         ` Peter Stuge
  1 sibling, 0 replies; 9+ messages in thread
From: Arkadi Shishlov @ 2010-12-23 11:11 UTC (permalink / raw
  To: gentoo-embedded

On 12/23/10 12:22, Kfir Lavi wrote:
> On Thu, Dec 23, 2010 at 11:52 AM, Arkadi Shishlov <arkadi.shishlov@gmail.com
>     Not Gentoo specific and you must have /dev/console. Also /dev/null, /dev/zero
>     and /dev/tty* or many programs will fail.
> 
> I remember that back then we had a script that would run and populate /dev.
> Is it possible to use it just to make things faster for me?

Sure. But you can't start init/pid[1] without /dev/console.
Just put whatever you need in static /dev (in case device hotplug is not required).



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-embedded] /sbin/init don't work
  2010-12-23 10:22       ` Kfir Lavi
  2010-12-23 11:11         ` Arkadi Shishlov
@ 2010-12-23 11:57         ` Peter Stuge
  2010-12-26 15:27           ` Kfir Lavi
  1 sibling, 1 reply; 9+ messages in thread
From: Peter Stuge @ 2010-12-23 11:57 UTC (permalink / raw
  To: gentoo-embedded

Kfir Lavi wrote:
> Is it possible to use it just to make things faster for me?

I think you should just take five minutes and learn a bit about
device nodes.


//Peter



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-embedded] /sbin/init don't work
  2010-12-23 11:57         ` Peter Stuge
@ 2010-12-26 15:27           ` Kfir Lavi
  0 siblings, 0 replies; 9+ messages in thread
From: Kfir Lavi @ 2010-12-26 15:27 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 336 bytes --]

On Thu, Dec 23, 2010 at 1:57 PM, Peter Stuge <peter@stuge.se> wrote:

> Kfir Lavi wrote:
> > Is it possible to use it just to make things faster for me?
>
> I think you should just take five minutes and learn a bit about
> device nodes.
>
>
> //Peter
>
> Hi,
I solved it by copying the device nodes I need from the mother system.

Kfir

[-- Attachment #2: Type: text/html, Size: 705 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-12-26 16:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-22 18:41 [gentoo-embedded] /sbin/init don't work Kfir Lavi
2010-12-22 23:31 ` David Ford
2010-12-23  8:38   ` Kfir Lavi
2010-12-23  9:31     ` Jan Kobler
2010-12-23  9:52     ` Arkadi Shishlov
2010-12-23 10:22       ` Kfir Lavi
2010-12-23 11:11         ` Arkadi Shishlov
2010-12-23 11:57         ` Peter Stuge
2010-12-26 15:27           ` Kfir Lavi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox