[syslinux] Booting to USB Pen Drive
Luciano Miguel Ferreira Rocha
strange at nsk.no-ip.org
Thu Mar 11 16:03:24 PST 2004
On Thu, Mar 11, 2004 at 01:15:23PM -0800, H. Peter Anvin wrote:
> Worse. For some idiotic reason the USB people decided to do enumeration
> asynchronously, even on first boot, so the device tends to show up late.
Yes, but a sleep 5 on initrd takes care of that. In fact, redhat's mkinitrd
adds the sleep if a usb controller module is defined.
FWIW, I send a script to create initrds with usb support for kernels 2.4.x
and 2.6.x.
Regards,
Luciano Rocha
-------------- next part --------------
#! /bin/bash
cd /boot
for i in vmlinuz*
do
V=${i#vmlinuz-*}
echo "Creating /boot/initrd-$V.img"
if echo $V | fgrep -q 2.4.
then
mkinitrd -f -v --preload sd_mod --preload ehci-hcd --preload usb-uhci \
--preload usb-ohci --preload usb-storage \
"/boot/initrd-$V.img" "$V"
else
mkinitrd -f -v --preload sd_mod --preload ehci-hcd --preload uhci-hcd \
--preload ohci-hcd --preload usb-storage \
"/boot/initrd-$V.img" "$V"
fi
done
More information about the Syslinux
mailing list