trying to get started with 0.6.3

Scott James Remnant scott at netsplit.com
Tue Dec 8 21:44:56 GMT 2009


On Tue, 2009-12-08 at 13:22 -0800, T.Michael Turney wrote:

> With upstart-0.6.3, the package builds (./configure --prefix=<blah>) fine.
> I copy init to /sbin/init on my SDCard and the board won't boot.
> 
The <blah> is quite important.  If you get the <blah> wrong, the new
binary won't look in the right places for things.  What <blah> did you
actually use?

> A couple of questions...
> 
> Q.1) Besides printf, what is the best method for debugging init?
> I can use BDI-2000 and gdb to debug kernel, and gdb by itself for
> user-space code.  Since init is in the boot-path, there is this
> gray area in the middle that I'm finding difficult to debug with
> traditional tools.
> 
Well. first rather than copying over, why not copy to /sbin/new-init and
then add to your kernel command-line:

  init=/sbin/new-init

You can then do things like:

  init=/sbin/new-init --verbose

to get detailed output.

> Q.2) Can I just replace /sbin/init from a clean build and expect success,
> or do I have to install everything from an upstart build?
> 
Generally speaking yes, provided it was built with the same paths as the
one installed; major version jumps may require matching telinit, etc.
too though

> Q.3) I have grabbed the upstart source from an ARM target running
> Ubuntu karmic (and ended up with 0.6.3).  With only specifying --prefix=
> on the configure line, should I be able to build a bootable /sbin/init?
> 
Yes.  Provided you put config files in ${prefix}/etc ... which is not
where the existing /sbin/init was looking for them.


If it's any help, the Ubuntu packages are built with:

  ./configure --prefix=/usr --exec-prefix= --sysconfdir=/etc
--localstatedir=/var/lib

The --sysconfdir is probably the one you're missing - though you should
get prefix and exec-prefix right too

Scott
-- 
Have you ever, ever felt like this?
Had strange things happen?  Are you going round the twist?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/upstart-devel/attachments/20091208/f295023d/attachment.pgp 


More information about the upstart-devel mailing list