Re: boot from usb flash - wake boot process when disk is ready?

From: Ben Collins (bcollins_at_debian.org)
Date: 05/28/04

  • Next message: Bartlomiej Zolnierkiewicz: "Re: idebus setup problem (2.6.7-rc1)"
    Date:	Fri, 28 May 2004 08:12:50 -0400
    To: "David N. Welton" <davidw@eidetix.com>
    
    

    On Fri, May 28, 2004 at 11:05:54AM +0200, David N. Welton wrote:
    > [ Please CC replies to me - thanks! ]
    >
    > Hi,
    >
    > We're toying around with the idea of booting an embedded system off of
    > USB flash (pros, cons, and advice about this would be appreciated, by
    > the way), and I had a look at several of the existing patches to do this
    > without going through the process of creating an initrd image. That
    > adds complexity and time to the boot process that we would prefer to
    > avoid, although it appears that the kernel folks in the first thread
    > cited are in favor of initrd....

    We have the same problem for firewire and sbp2 disks. I've often thought
    of adding a CONFIG_IEEE1394_BOOT_SUPPORT config option where the
    ieee1394 subsystem, if compiled with this option and built into the
    kernel, would block it's init until the bus scan and device probes were
    complete.

    It gets kind of complicated, mainly because this should only be done
    when a new host is added, and not for normal bus resets, and ideally
    only at boot (e.g. not when a PCMCIA card is inserted sometime after
    boot).

    The complicated part is that the host controllers are seperate drivers
    from the core. So the core can't block in it's init, since there are no
    controllers at that point. The logic needs to be in the host-add
    callbacks (same for USB and firewire). Since there's the possibility
    (especially with USB) that there is more than one host controller, you
    would have to do this for all of them, since the disk device may be on a
    later controller in the PCI detection process.

    Question is, is there a variable that can be looked at to see if init
    has been started yet? If there is, then the logic could be invoked in
    host-add whenever we are in pre-init state (IOW, no userspace is running
    yet).

    That would make it work more like standard SCSI hosts. USB could do the
    same.

    -- 
    Debian     - http://www.debian.org/
    Linux 1394 - http://www.linux1394.org/
    Subversion - http://subversion.tigris.org/
    WatchGuard - http://www.watchguard.com/
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Bartlomiej Zolnierkiewicz: "Re: idebus setup problem (2.6.7-rc1)"

    Relevant Pages

    • Re: Advanced USB snooping
      ... >Host Controllers are dedicated host controllers. ... >There are some cheap USB sniffers for full and low speed available ... some device with one male + female connector and a connection to the snoop ... Also m$-win host software snoop lack the nice programming enviroment of unix. ...
      (freebsd-hackers)
    • RE: USB Controller list in Device Manager
      ... I deleted all the host controllers and root hubs and restarted so they would ... Windows found no drivers for them and now all the USB ... Bridge and 963/963L for the South Bridge. ...
      (microsoft.public.windowsxp.hardware)
    • Re: Device Manager question about USB device
      ... probably b/c teh host controllers are off the shelf parts. ... the usb 2.0 and usb 1.1 host controllers can control the same port depending on what type of device is plugged into the port ... Please do not send e-mail directly to this alias. ...
      (microsoft.public.development.device.drivers)
    • Re: Ghost
      ... Some USB 2.0 host controllers and some USB 2.0 device controllers are ... and on occasion certain DOS excursions taken with Partition Magic 8.0. ... The Intel USB 2.0 host controller for integral USB ports on Dell ...
      (microsoft.public.windowsxp.general)
    • Re: soundcard SoundBlaster PCI128 or SoundBlaster live1024 problem
      ... > What messages are you getting from boot log and dmesg? ... ACPI tables contain no PCI IRQ routing entries ... RAMDISK driver initialized: 16 RAM disks of 64000K size 1024 blocksize ... USB Universal Host Controller Interface driver v2.2 ...
      (comp.os.linux.hardware)