--- In "dokapra" <> wrote:
>
> Hi
> I am trying to get ts-7260 to boot from usb stick.
> Idea is to use bootloader to start new linux kernel with initrd, which
> is supposed to load all needed drivers, and start new sbin/init.
> So far so good.
> I used ts7260-sdcard-initrd-1.03.gz as a starting point.
> I changed linuxrc a bit, added loading of modules, and expected that a
> debian copied on a stick should work right away.
> Nope.
> All modules gets loaded ok, mounting of usb stick is ok, pivot_root
> and stuff ok, and finally when chroot whith exec /sbin/init I get to
> see the same message as when I type init on command line - help message.
> This means that /sbin/init gets started, but not as a root process.
> Init stuff is picky one - they require to run as a PID 1, otherwise
> they assume that you allready have some other init handling your
> processes.
> What I do not understand in this story is why init is not started as
No 1?
> Has anybody any experience with this?
> Thanx
I haven't looked at the source but am guessing that the chroot command
does a fork before it execs the process that gets run under it, which
would give init a new PID. Why not just exec /sbin/init directly?
You've already set the root to the current directory, so the chroot is
redundant anyway.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|