Read/Write to USB stick when using the 3.1 CD image

View: New views
3 Messages — Rating Filter:   Alert me  

Read/Write to USB stick when using the 3.1 CD image

by Stephen Lee-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm trying to save the config info onto a usb stick and be able to ready
it during boot up from a CD. How do I do this when booting from
Bering-uClibc_3.1_iso_bering-uclibc-iso.bin? Normally I would make a
bootable usb usb stick using the 3.1 usb image but I've got some PIII
boxes that can't boot from usb. Is there a document explaining this type
of setup?

Thanks,
Stephen
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@...
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Re: Read/Write to USB stick when using the 3.1 CD image

by skate :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

First, make sure that you have loaded the proper usb kernel modules
for your system in your initrd.  I have a router that has OHCI usb
root hubs on the motherboard and the stock initrd with the Bering CD
image would not work since most intel systems have UHCI root hubs.
Once you have the modules loading at boot, then do something like this
to your leaf.cfg on the usb device that you created with the bering
packages on it:

# The first entry is the backup device.
# If equal packages exist on multiple devices, the ones on the left most device
PKGPATH="/dev/sda1:msdos"

Also, on the bootable CD have your isolinux.cfg configured like this:

display syslinux.dpy
timeout 0
append reboot=bios
default linux initrd=initrd.lrp init=/linuxrc rw root=/dev/ram0
LEAFCFG=/dev/sda1:msdos

The last line above is all one line by the way.  It's been a while
since I set this up but I think that this is mostly what is needed to
make it work.  I have two systems like this that I maintain and they
both work well.  One has OHCI usb and the other has UHCI usb.

Take Care & Good Luck,

Fred Stevens

On 10/23/09, Stephen Lee <splee@...> wrote:

> Hi,
>
> I'm trying to save the config info onto a usb stick and be able to ready
> it during boot up from a CD. How do I do this when booting from
> Bering-uClibc_3.1_iso_bering-uclibc-iso.bin? Normally I would make a
> bootable usb usb stick using the 3.1 usb image but I've got some PIII
> boxes that can't boot from usb. Is there a document explaining this type
> of setup?
>
> Thanks,
> Stephen
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> ------------------------------------------------------------------------
> leaf-user mailing list: leaf-user@...
> https://lists.sourceforge.net/lists/listinfo/leaf-user
> Support Request -- http://leaf-project.org/
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@...
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Re: Read/Write to USB stick when using the 3.1 CD image

by Stephen Lee-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks, Fred, for the instructions. Some questions:

1. I presume I have to rebuild the CD image to use the usb initrd since
I have an Intel board?
2. I don't see an isolinux.cfg on the 3.1 CD. There is a syslinux.cfg so
I guess that's the equivalent to isolinux.cfg?
3. Did you have to rebuild the bootdisk.ima?

Thanks,
Stephen
On Sat, 2009-10-24 at 08:46 -0500, Frederick Stevens wrote:

> Hello,
>
> First, make sure that you have loaded the proper usb kernel modules
> for your system in your initrd.  I have a router that has OHCI usb
> root hubs on the motherboard and the stock initrd with the Bering CD
> image would not work since most intel systems have UHCI root hubs.
> Once you have the modules loading at boot, then do something like this
> to your leaf.cfg on the usb device that you created with the bering
> packages on it:
>
> # The first entry is the backup device.
> # If equal packages exist on multiple devices, the ones on the left most device
> PKGPATH="/dev/sda1:msdos"
>
> Also, on the bootable CD have your isolinux.cfg configured like this:
>
> display syslinux.dpy
> timeout 0
> append reboot=bios
> default linux initrd=initrd.lrp init=/linuxrc rw root=/dev/ram0
> LEAFCFG=/dev/sda1:msdos
>
> The last line above is all one line by the way.  It's been a while
> since I set this up but I think that this is mostly what is needed to
> make it work.  I have two systems like this that I maintain and they
> both work well.  One has OHCI usb and the other has UHCI usb.
>
> Take Care & Good Luck,
>
> Fred Stevens
>
> On 10/23/09, Stephen Lee <splee@...> wrote:
> > Hi,
> >
> > I'm trying to save the config info onto a usb stick and be able to ready
> > it during boot up from a CD. How do I do this when booting from
> > Bering-uClibc_3.1_iso_bering-uclibc-iso.bin? Normally I would make a
> > bootable usb usb stick using the 3.1 usb image but I've got some PIII
> > boxes that can't boot from usb. Is there a document explaining this type
> > of setup?
> >
> > Thanks,
> > Stephen
> > ------------------------------------------------------------------------------
> > Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> > is the only developer event you need to attend this year. Jumpstart your
> > developing skills, take BlackBerry mobile applications to market and stay
> > ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> > http://p.sf.net/sfu/devconference
> > ------------------------------------------------------------------------
> > leaf-user mailing list: leaf-user@...
> > https://lists.sourceforge.net/lists/listinfo/leaf-user
> > Support Request -- http://leaf-project.org/
> >
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@...
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/