Re: Re: USB system with modified kernel and minimal software

2007-09-17 Thread Rene Sonderegger
Justin, thank you for your comments!

I've downloaded:
http://live.debian.net/debian-snapshots/live-helper_1.0~a29~20070917.124122_all.deb
and 
http://live.debian.net/debian-snapshots/live-initramfs_1.102.2~20070917.110439_all.deb

I did not see any information about downloading lh_helper scripts, so I 
followed the information at 
http://www.pendrivelinux.com/2007/05/31/create-your-own-live-linux-cd-or-usb-distribution.
 
This was the reason for my outdated version.


No binary image file is created when I try to include the modified kernel.
I followed Daniel's suggestions and in an empty directory I did the 
following:
lh_config -d etch -b usb-hdd -p minimal --linux-packages none
cp /usr/src/linux-image-2.6.20.19-rt_1_i386.deb config/chroot_local-packages
lh_build 21 | tee log

In the log file, no error seems to indicate a problem. Does anyone have any 
suggestion?

Best regards,
René 


___
debian-live-devel mailing list
debian-live-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel


Re: Re: USB system with modified kernel and minimal software

2007-09-17 Thread Justin Pryzby
On Mon, Sep 17, 2007 at 10:13:40AM -0600, Rene Sonderegger wrote:

 I did not see any information about downloading lh_helper scripts, so I 
 followed the information at 
 http://www.pendrivelinux.com/2007/05/31/create-your-own-live-linux-cd-or-usb-distribution.
  
 This was the reason for my outdated version.
I see.

 No binary image file is created when I try to include the modified kernel.
 I followed Daniel's suggestions and in an empty directory I did the 
 following:
 lh_config -d etch -b usb-hdd -p minimal --linux-packages none
 cp /usr/src/linux-image-2.6.20.19-rt_1_i386.deb config/chroot_local-packages
Are you sure this has the modules for squashfs and either aufs or
unionfs (depending on and consistent with the livehelper settings)?

 lh_build 21 | tee log
 
 In the log file, no error seems to indicate a problem. Does anyone have any 
 suggestion?
The following might help find errors:
http://lists.alioth.debian.org/pipermail/debian-live-devel/2007-August/002108.html

Justin

___
debian-live-devel mailing list
debian-live-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel


Re: USB system with modified kernel and minimal software

2007-09-17 Thread Ben Armstrong
On Mon, 17 Sep 2007 10:13:40 -0600
Rene Sonderegger [EMAIL PROTECTED] wrote:
 I did not see any information about downloading lh_helper scripts, so I 
 followed the information at 
 http://www.pendrivelinux.com/2007/05/31/create-your-own-live-linux-cd-or-usb-distribution.
  
 This was the reason for my outdated version.

I wouldn't follow this if I were you.  It is very out of date.  Look at the
HOWTOs at http://wiki.debian.org/DebianLive instead.  It tends to be kept
up to date.

For one thing, any config variable prefixed LIVE_ is from an older version
of live-helper.  All config variables are now prefixed LH_ instead.

Ben
--
 ,-.  nSLUGhttp://www.nslug.ns.ca   [EMAIL PROTECTED]
 \`'  Debian   http://www.debian.org[EMAIL PROTECTED]
  `  [ gpg 395C F3A4 35D3 D247 1387 2D9E 5A94 F3CA 0B27 13C8 ]
 [ pgp 7F DA 09 4B BA 2C 0D E0 1B B1 31 ED C6 A9 39 4F ]

___
debian-live-devel mailing list
debian-live-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel


Re: USB system with modified kernel and minimal software

2007-09-17 Thread Justin Pryzby
On Mon, Sep 17, 2007 at 02:24:08PM -0600, Rene Sonderegger wrote:
 Justin and Ben, thanks for your comments!
 
 
  lh_config -d etch -b usb-hdd -p minimal --linux-packages none
  cp /usr/src/linux-image-2.6.20.19-rt_1_i386.deb 
  config/chroot_local-packages
 Are you sure this has the modules for squashfs and either aufs or
 unionfs (depending on and consistent with the livehelper settings)?
 When compared with the log of some newer runs (see below), it looks like the 
 squashfs-modules-2.6.18-5-486 and unionfs-modules-2.6.18-5-486 were not 
 included due to --linux-packages none during the lh_config.
That's an intentional effect of the none setting.

To see why, run vanilla lh_config then read config/chroot (and
config/!(chroot) for good measure).

 New runs:
 After doing the following in an empty directory, I get a binary.img file.
 lh_config -d etch -b usb-hdd
 lh_build 21 | tee log
-d sid probably makes much more sense.  In particular it will use
live-initramfs instead of casper (about this I know nothing more,
though).

 My last run from an empty directory was like this:
 lh_config -d etch -b usb-hdd
 cp /usr/src/linux-image-2.6.20.19-rt_1_i386.deb config/chroot_local-packages
 lh_build 21 | tee log
 
 The standard kernel boots ok after I made the above corrections. However the 
 modified kernel stoppes during the booting like this:
 
 ...
 sd 0:0:0:0: Attached scsi removable disk sda
 loop: loaded (max 8 devices)
 BusyBox v1.1.3 (Debian 1:1.1.3-4) Built-in shell (ash)
 Enter 'help' for a list of built-in commands.
 /bin/sh: can't access tty; job control turned off
 (initramfs)
 
 
 Does anyone have any suggestion what to do from here?
That's due to missing squashfs and unionfs/aufs.  You have to compile
the modules yourself if you're not using a standard kernel.  Note some
previous thread messages which document how the kernel image has to be
named.  In particular, the argument to --linux-flavors must be the
same as the make-kpkg option --append-to-version but without the
leading hyphen character.

Justin

___
debian-live-devel mailing list
debian-live-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel


USB system with modified kernel and minimal software

2007-09-17 Thread Rene Sonderegger
Justin and Ben, thanks for your comments!


 lh_config -d etch -b usb-hdd -p minimal --linux-packages none
 cp /usr/src/linux-image-2.6.20.19-rt_1_i386.deb 
 config/chroot_local-packages
Are you sure this has the modules for squashfs and either aufs or
unionfs (depending on and consistent with the livehelper settings)?
When compared with the log of some newer runs (see below), it looks like the 
squashfs-modules-2.6.18-5-486 and unionfs-modules-2.6.18-5-486 were not 
included due to --linux-packages none during the lh_config.


New runs:
After doing the following in an empty directory, I get a binary.img file.
lh_config -d etch -b usb-hdd
lh_build 21 | tee log

In order to boot the from the USB device I have to do this:
dd if=binary.img of=/dev/sda
mount /dev/sda1 /mnt
mv /mnt/i* /mnt/initrd.img
mv /mnt/v* /mnt/vmlinuz
vi /mnt/*cfg (edit names to initrd.img and vmlinuz)
umount /mnt
syslinux -f /dev/sda1

Without all this, the system complaints:
Could not find kernel image: /vmlinuz.-26

At one run, I included --bootloader grub, but that didn't even give me the 
grub promt.


My last run from an empty directory was like this:
lh_config -d etch -b usb-hdd
cp /usr/src/linux-image-2.6.20.19-rt_1_i386.deb config/chroot_local-packages
lh_build 21 | tee log

The standard kernel boots ok after I made the above corrections. However the 
modified kernel stoppes during the booting like this:

...
sd 0:0:0:0: Attached scsi removable disk sda
loop: loaded (max 8 devices)
BusyBox v1.1.3 (Debian 1:1.1.3-4) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
/bin/sh: can't access tty; job control turned off
(initramfs)


Does anyone have any suggestion what to do from here?

Best regards,
René 


___
debian-live-devel mailing list
debian-live-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel


Re: USB system with modified kernel and minimal software

2007-09-14 Thread Justin Pryzby
On Fri, Sep 14, 2007 at 09:18:02AM -0600, Rene Sonderegger wrote:
 Hello everybody,
 
 I'm new to DebianLive. I've been trying to use it for the last couple days, 
 but I'm hardly getting anywhere. I would appreciate some help.
 
 Here is what I'm trying to do:
 1. Put a modified kernel with a minimal system on a USB drive.
http://lists.alioth.debian.org/pipermail/debian-live-devel/2007-July/001947.html

 2. Add two executable programs into /usr/local/bin.
 3. Add a service script to start the two programs after the system booted.
chroot_local-includes should handle these.

 Here is what I'm working with:
 Debian GNU/Linux 4.0r1
 Kernel 2.6.20.19 pached with RTAI 3.5-cv
 Live-helper 1.0~a21-1
Why not the latest?

 Syslinux 1:3.51-1~e
 
 Some of the main problems that I've run into are:
 1. After lh_config, change from iso to usp-hdd in config/chroot, lh_build 
 and dd if=binary.img of=/dev/sda, Unknown keyword in syslinux.cfg. shows 
 up 4 times and when I press enter to boot it reports Could not find kernel 
 image: /vmlinuz.
I see this too

 2. When I try mount -o loop,offset=512 binary.img /mnt, it reports mount: 
 you must specify the filesystem type.
Works for me; do you get something like:

$ file ./binary.img 
./binary.img: x86 boot sector; partition 1: ID=0x6, active, starthead 0, 
startsector 1, 511999 sectors

 4. To reproduce my steps, I use scripts for most of my work. It would be 
 nice to enter something like lh_config -b usb-hdd -p minimal but it just 
 reports lh_config: invalid option - b.
I'm going to guess that this goes away if you upgrade.

Justin

___
debian-live-devel mailing list
debian-live-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel