Re: [lfs-support] Boot LFS from usb

2013-01-09 Thread Chris J. Breisch
On 1/7/2013 7:18 PM, Baho Utot wrote:
 I am trying to put LFS on a thumbdrive to use a rescue/fixit system.

 [...]

 Any one known what needs to be set in the kernel to allow booting from
 thumb drive?
Once you get this to work, can you please post a HOWTO, as I think I'm 
going to want to use this with CLFS.

-- 

Chris J. Breischhttp://www.sports-gazer.com
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Boot LFS from usb

2013-01-09 Thread Baho Utot
On 01/09/2013 08:51 AM, Chris J. Breisch wrote:
 On 1/7/2013 7:18 PM, Baho Utot wrote:
 I am trying to put LFS on a thumbdrive to use a rescue/fixit system.

 [...]

 Any one known what needs to be set in the kernel to allow booting from
 thumb drive?
 Once you get this to work, can you please post a HOWTO, as I think I'm
 going to want to use this with CLFS.

If I am successful  I will try to create some notes on this.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Boot LFS from usb

2013-01-09 Thread William Harrington


On Jan 8, 2013, at 7:07 AM, Baho Utot wrote:

I have usb built into the kernel.  I just would like to know if I  
missed something as it won't boot.


Chris stated earlier about what you need.

This is what you need to boot from your USB flash drive (thumb drive  
isn't very good terminology).


Build into your kernel the folloing:

USB drivers for EHCI, OHCI, UHCI.  Use only what your platform uses.  
(usb drivers section).

Include the USB mass storage driver in the kernel. (usb drivers section)
Make sure scsi disk block device driver is built in the kernel (scsi  
device drivers area.)

Make sure filesystem driver is in the kernel as well.
And as Chris stated, include rootdelay kernel parameter at the kernel  
line in your boot loader. (Documentation/kernel-parameters.txt)



Sincerely,

William Harrington-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Boot LFS from usb

2013-01-08 Thread Simon Geard
On Mon, 2013-01-07 at 19:18 -0500, Baho Utot wrote:
 I am trying to put LFS on a thumbdrive to use a rescue/fixit system.
 
 When I boot it can not find the usb drive and filesystem.  I have the 
 correct filesystem built into the kernel, not as a module
 
 I am miising something in my kernel config.
 This system boots fine from a hard drive, just won't boot when I put it 
 on a thumb drive
 
 Any one known what needs to be set in the kernel to allow booting from 
 thumb drive?

You're booting from a USB device, so the obvious answer would be the USB
drivers. Are they built in, or modules? In particular, the usb-storage
module, without which the kernel certainly isn't going to find a USB
storage device...

Simon.


signature.asc
Description: This is a digitally signed message part
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Boot LFS from usb

2013-01-08 Thread Baho Utot

On 01/08/2013 04:23 AM, Simon Geard wrote:

On Mon, 2013-01-07 at 19:18 -0500, Baho Utot wrote:

I am trying to put LFS on a thumbdrive to use a rescue/fixit system.

When I boot it can not find the usb drive and filesystem.  I have the
correct filesystem built into the kernel, not as a module

I am miising something in my kernel config.
This system boots fine from a hard drive, just won't boot when I put it
on a thumb drive

Any one known what needs to be set in the kernel to allow booting from
thumb drive?

You're booting from a USB device, so the obvious answer would be the USB
drivers. Are they built in, or modules? In particular, the usb-storage
module, without which the kernel certainly isn't going to find a USB
storage device...

Simon.


I have usb built into the kernel.  I just would like to know if I missed 
something as it won't boot.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[lfs-support] Boot LFS from usb

2013-01-07 Thread Baho Utot
I am trying to put LFS on a thumbdrive to use a rescue/fixit system.

When I boot it can not find the usb drive and filesystem.  I have the 
correct filesystem built into the kernel, not as a module

I am miising something in my kernel config.
This system boots fine from a hard drive, just won't boot when I put it 
on a thumb drive

Any one known what needs to be set in the kernel to allow booting from 
thumb drive?
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Boot LFS from usb

2013-01-07 Thread Chris Staub
On 01/07/2013 07:18 PM, Baho Utot wrote:
 I am trying to put LFS on a thumbdrive to use a rescue/fixit system.

 When I boot it can not find the usb drive and filesystem.  I have the
 correct filesystem built into the kernel, not as a module

 I am miising something in my kernel config.
 This system boots fine from a hard drive, just won't boot when I put it
 on a thumb drive

 Any one known what needs to be set in the kernel to allow booting from
 thumb drive?

You don't need to set anything in the kernel - it just takes some time 
for it all to be loaded from USB, so you only need a delay. Add 
rootdelay=10 to the kernel line in your bootloader config (feel free 
to adjust the number, could try lower if you want to see if it will work 
with less delay, or higher if needed).
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page