ts-7000
[Top] [All Lists]

[ts-7000] Re: ts-7260, stock kernel, initrd and usb boot

To:
Subject: [ts-7000] Re: ts-7260, stock kernel, initrd and usb boot
From: "kmoore37918" <>
Date: Tue, 08 Jan 2008 23:47:32 -0000
--- 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/
 

<Prev in Thread] Current Thread [Next in Thread>
  • [ts-7000] Re: ts-7260, stock kernel, initrd and usb boot, kmoore37918 <=
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU