Re: embedded rootfs utility

2008-08-14 Thread Grant Likely
Hey Behan, a few more comments...

On Fri, Aug 8, 2008 at 11:03 AM, Behan Webster [EMAIL PROTECTED] wrote:
 Geert Uytterhoeven wrote:
 Thanks for this useful tool!
 I'm used to plain debootstrap, but decided to give your elbs-rootfs a try for
 creating up a mipsel and a powerpc NFS root file system. It worked fine,
 except for one minor nit. As an NFS root file system is mounted read-only by
 default, I had to manually do

 | mount -n proc /proc -t proc
 | mount -n -o remount -w /

 before running finish.sh. Perhaps this can be added to the top of finish.sh?

 Odd.  I never had this issue.  It has always just worked for me.

I had to do this also, and I had to explicitly export PATH to get
the finish script to work.  Otherwise I dpkg complains.

What I probably did differently is that I booted the system with
init=/bin/bash on the command line instead of letting it just run
init.  I needed to do this because if I let it run init, I got
complaints about PAM failures when trying to log in as root.  How are
you booting the system on first run?

Also, when booting on something like a 5200 with an uncommon serial
ports name (ttyPSC0), I had to manually add the /dev/ttyPSC0 device
file before it would boot.

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
--
To unsubscribe from this list: send the line unsubscribe linux-embedded in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: embedded rootfs utility

2008-08-14 Thread Behan Webster
Grant Likely wrote:
 Hey Behan, a few more comments...

 On Fri, Aug 8, 2008 at 11:03 AM, Behan Webster [EMAIL PROTECTED] wrote:
   
 Geert Uytterhoeven wrote:
 
 Thanks for this useful tool!
 I'm used to plain debootstrap, but decided to give your elbs-rootfs a try 
 for
 creating up a mipsel and a powerpc NFS root file system. It worked fine,
 except for one minor nit. As an NFS root file system is mounted read-only by
 default, I had to manually do

 | mount -n proc /proc -t proc
 | mount -n -o remount -w /

 before running finish.sh. Perhaps this can be added to the top of finish.sh?

   
 Odd.  I never had this issue.  It has always just worked for me.
 

 I had to do this also, and I had to explicitly export PATH to get
 the finish script to work.  Otherwise I dpkg complains
   
I've also never had this issue, but I will add it to the script.
 What I probably did differently is that I booted the system with
 init=/bin/bash on the command line instead of letting it just run
 init.  I needed to do this because if I let it run init, I got
 complaints about PAM failures when trying to log in as root.  How are
 you booting the system on first run?
   
There's your problem.  You may have had pam failures before you used
elbs-rootfs, but you shouldn't when using it.  My script twiddles with
inittab to give you a getty with a bash shell without a password, and
then fixes it in the finish.sh script.  If you just boot with it
normally it should just work.  I'm too lazy to type init=/bin/bash, so
the script does it for you. :)

 Also, when booting on something like a 5200 with an uncommon serial
 ports name (ttyPSC0), I had to manually add the /dev/ttyPSC0 device
 file before it would boot.
   
You're using an older version then.  The latest (v1.2) allows you to
specify the serial port/baud rate when running the tool.

Behan

-- 
Behan Webster
[EMAIL PROTECTED]

--
To unsubscribe from this list: send the line unsubscribe linux-embedded in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: embedded rootfs utility

2008-08-14 Thread Behan Webster
Grant Likely wrote:
 On Thu, Aug 14, 2008 at 8:35 AM, Behan Webster [EMAIL PROTECTED] wrote:
   
 Grant Likely wrote:
 
 Also, when booting on something like a 5200 with an uncommon serial
 ports name (ttyPSC0), I had to manually add the /dev/ttyPSC0 device
 file before it would boot.

   
 You're using an older version then.  The latest (v1.2) allows you to
 specify the serial port/baud rate when running the tool.
 

 Hmm, I can only find v1.1.2 on your website.
   
Version 1.1.2 of elbs contains v1.2 of the rootfs tool.  I suppose I
should Sync the version numbers on a release.

-- 
Behan Webster
[EMAIL PROTECTED]

--
To unsubscribe from this list: send the line unsubscribe linux-embedded in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: embedded rootfs utility

2008-08-14 Thread Behan Webster
Grant Likely wrote:
 On Thu, Aug 14, 2008 at 1:20 PM, Behan Webster [EMAIL PROTECTED] wrote:
   
 Grant Likely wrote:
 
 On Thu, Aug 14, 2008 at 8:35 AM, Behan Webster [EMAIL PROTECTED] wrote:

   
 Grant Likely wrote:

 
 Also, when booting on something like a 5200 with an uncommon serial
 ports name (ttyPSC0), I had to manually add the /dev/ttyPSC0 device
 file before it would boot.


   
 You're using an older version then.  The latest (v1.2) allows you to
 specify the serial port/baud rate when running the tool.

 
 Hmm, I can only find v1.1.2 on your website.

   
 Version 1.1.2 of elbs contains v1.2 of the rootfs tool.  I suppose I
 should Sync the version numbers on a release.
 

 Okay, then I've still got a problem.  I did specify the serial port
 when running it, and the files in /etc were all set correctly.  It was
 just the /dev/ttyPSC0 device file which was missing
I see.  I thought MAKEDEV would have done that for you.  It appears that
MAKEDEV doesn't support ttyPSC0.

Yes, I suppose then you would have to make that dev file manually...

Best laid plans...

-- 
Behan Webster
[EMAIL PROTECTED]

--
To unsubscribe from this list: send the line unsubscribe linux-embedded in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: embedded rootfs utility

2008-08-08 Thread Behan Webster
Geert Uytterhoeven wrote:
 Thanks for this useful tool!
 I'm used to plain debootstrap, but decided to give your elbs-rootfs a try for
 creating up a mipsel and a powerpc NFS root file system. It worked fine,
 except for one minor nit. As an NFS root file system is mounted read-only by
 default, I had to manually do

 | mount -n proc /proc -t proc   
 | mount -n -o remount -w /

 before running finish.sh. Perhaps this can be added to the top of finish.sh?
   
Odd.  I never had this issue.  It has always just worked for me.

None the less, I will add checks for this to the script.

 Add the end of its execution, finish.sh says:

 | Feel free to delete /debootstrap and the downloaded packages
 |   # rm -rf /debootstrap
 |   # apt-get clean
 | Please reboot now
 |   # shutdown -r now

 Shouldn't it suggest to delete /finish.sh, too?
   
Ah.  finish.sh used to delete itself when finished.  I removed that
while testing, and forgot to put it back in.

Indeed you are correct.

 Anyway, thanks for this tool!
   
I'm glad you are finding it useful.

-- 
Behan Webster
[EMAIL PROTECTED]

--
To unsubscribe from this list: send the line unsubscribe linux-embedded in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: embedded rootfs utility

2008-08-06 Thread Geert Uytterhoeven
Hi Behan,

On Tue, 29 Jul 2008, Behan Webster wrote:
 However, most notably it contains a utility called elbs-rootfs which
 makes it easy to create an embedded rootfs for any architecture
 supported by the Debian projecy (or Ubuntu Linux).  The idea is to get a
 rootfs up and working quickly via nfs (or a flash drive) which allows
 you to install any debian package and/or to do native development.  This
 is (not yet) meant as a tool to make your final rootfs fit on a small
 flash partition.
 
 For those of you who are interested, it does the following: builds a
 first stage debootstrap directory using a dist/mirror of your choice,
 and then tweaks it so you can boot it natively to be able to run the
 second stage debootstrap scripts.  Yes, you can do all these things
 manually, however, this does it all for you in a few minutes (with
 reasonable defaults for available options).  The only annoying bit is it
 must be run as root, as it needs to be able to set file
 permissions/ownerships and such.
 
 For example (as root):
 
 # elbs rootfs --arch mips --baud 19200 --dist etch /nfs/myrootfs
 I: Building rootfs in /nfs/myrootfs
 I: Installing etch/mips from http://http.us.debian.org/debian
 snip
 I: debootstrap succeeded
 I: MAKEDEV in /nfs/myrootfs/dev
 snip
 I: create /nfs/myrootfs/etc/group
 Boot your target with /nfs/myrootfs as your rootfs, then run the
 finish script on the target
 
 The directory /nfs/myrootfs will now contain a stage-one (unconfigured)
 debootstrap installation of arch mips from debian/etch, modified to
 allow you to connect to a serial console ttyS0 at 19200 baud (as
 specified on the command line above).
 
 You then need to boot your target using this rootfs and run the
 finish.sh script which will complete the installation.
 
 # sh /finish.sh
 
 You should now have a fully configured rootfs for your target which is
 capable of native compiling (amongst other things).

Thanks for this useful tool!

I'm used to plain debootstrap, but decided to give your elbs-rootfs a try for
creating up a mipsel and a powerpc NFS root file system. It worked fine,
except for one minor nit. As an NFS root file system is mounted read-only by
default, I had to manually do

| mount -n proc /proc -t proc   
| mount -n -o remount -w /

before running finish.sh. Perhaps this can be added to the top of finish.sh?

Add the end of its execution, finish.sh says:

| Feel free to delete /debootstrap and the downloaded packages
|   # rm -rf /debootstrap
|   # apt-get clean
| Please reboot now
|   # shutdown -r now

Shouldn't it suggest to delete /finish.sh, too?

Anyway, thanks for this tool!

With kind regards,

Geert Uytterhoeven
Software Architect

Sony Techsoft Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

Phone:+32 (0)2 700 8453
Fax:  +32 (0)2 700 8622
E-mail:   [EMAIL PROTECTED]
Internet: http://www.sony-europe.com/

A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis 293-0376800-10 GEBA-BE-BB

Re: embedded rootfs utility

2008-07-30 Thread Marco Stornelli


 On Tue, Jul 29, 2008 at 10:18:37PM -0400, Behan Webster wrote:

A quick announcement of the release of elbs, or the Embedded Linux
Build System (it seemed like a good name at the time I started writing
it...)  So far it's just a few utilities that I wrote to make a few of
my own projects easier.

However, most notably it contains a utility called elbs-rootfs which
makes it easy to create an embedded rootfs for any architecture
supported by the Debian projecy (or Ubuntu Linux).  The idea is to get a
rootfs up and working quickly via nfs (or a flash drive) which allows
you to install any debian package and/or to do native development.  This
is (not yet) meant as a tool to make your final rootfs fit on a small
flash partition.



Very interesting, where can I found it? Can you give me a site to 
download it?


--
Marco Stornelli
Embedded Software Engineer
CoRiTeL - Consorzio di Ricerca sulle Telecomunicazioni
http://www.coritel.it

[EMAIL PROTECTED]
+39 06 72582838
--
To unsubscribe from this list: send the line unsubscribe linux-embedded in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: embedded rootfs utility

2008-07-30 Thread Behan Webster
Marco Stornelli wrote:

  On Tue, Jul 29, 2008 at 10:18:37PM -0400, Behan Webster wrote:
 A quick announcement of the release of elbs, or the Embedded Linux
 Build System (it seemed like a good name at the time I started writing
 it...)  So far it's just a few utilities that I wrote to make a few of
 my own projects easier.

 However, most notably it contains a utility called elbs-rootfs which
 makes it easy to create an embedded rootfs for any architecture
 supported by the Debian projecy (or Ubuntu Linux).  The idea is to get a
 rootfs up and working quickly via nfs (or a flash drive) which allows
 you to install any debian package and/or to do native development.  This
 is (not yet) meant as a tool to make your final rootfs fit on a small
 flash partition.


 Very interesting, where can I found it? Can you give me a site to
 download it?

It's listed near the bottom of the announcement.

 You can find elbs at http://debian.websterwood.com/elbs/

Enjoy.

Behan

-- 
Behan Webster
[EMAIL PROTECTED]

--
To unsubscribe from this list: send the line unsubscribe linux-embedded in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html