|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
Reading USB flash during boot issuesI have several devices that run Bering-uClibc v3.0-Beta2. These devices
boot from CD and read and save config on USB flash drive. I'm trying to upgrade to v3.1.1-Beta2 but having a bit of trouble with the flash drive. On my test machine and on 2 other machines the setup works as expected, but on the target machine, the machine does not see the flash drive during boot so packages and config are not loaded. But after booting, I can mount and access the flash drive, no problem. I'm using the same CD and flash drive on the test machines and the target machine. I've also tried burning a new CD and using other flash drives. The target machine works fine with v3.0-Beta2. I've been digging through the logs, comparing logs between the machines that work and the one that doesn't, I can't find any obvious issues. I've tried switching around the module load order in initrd. Can anyone give me other ideas to consider? Brent Gardner ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ------------------------------------------------------------------------ leaf-user mailing list: leaf-user@... https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/ |
|
|
Re: Reading USB flash during boot issuesBrent Gardner wrote:
> I have several devices that run Bering-uClibc v3.0-Beta2. These devices > boot from CD and read and save config on USB flash drive. > > I'm trying to upgrade to v3.1.1-Beta2 but having a bit of trouble with > the flash drive. > > On my test machine and on 2 other machines the setup works as expected, > but on the target machine, the machine does not see the flash drive > during boot so packages and config are not loaded. But after booting, I > can mount and access the flash drive, no problem. > > I'm using the same CD and flash drive on the test machines and the > target machine. I've also tried burning a new CD and using other flash > drives. The target machine works fine with v3.0-Beta2. > > I've been digging through the logs, comparing logs between the machines > that work and the one that doesn't, I can't find any obvious issues. > I've tried switching around the module load order in initrd. > > > Can anyone give me other ideas to consider? > Sorry, I was looking at the wrong logs earlier. I see lines such as these when the machine boots without reading the flash drive properly: usb.c: USB device not accepting new address=3 (error=-110) usb.c: USB device not accepting new address=4 (error=-110) I'll be researching this but if anyone has an idea I'd love to hear it. Brent Gardner ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ------------------------------------------------------------------------ leaf-user mailing list: leaf-user@... https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/ |
|
|
Re: Reading USB flash during boot issuesBrent
Brent Gardner schrieb: > Brent Gardner wrote: > >> I have several devices that run Bering-uClibc v3.0-Beta2. These devices >> boot from CD and read and save config on USB flash drive. >> >> I'm trying to upgrade to v3.1.1-Beta2 but having a bit of trouble with >> the flash drive. >> >> On my test machine and on 2 other machines the setup works as expected, >> but on the target machine, the machine does not see the flash drive >> during boot so packages and config are not loaded. >> But after booting, I >> can mount and access the flash drive, no problem. >> use lsmod to see what modules are loaded. I suspect you have different usb hardware in your target machine. Looking at the initrd the following modules are loaded for usb usbcore.o usb-storage.o usb-uhci.o along with scsi_mod.o sd_mod.o Erich ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ------------------------------------------------------------------------ leaf-user mailing list: leaf-user@... https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/ |
|
|
Re: Reading USB flash during boot issuesErich Titl wrote:
> Brent > > Brent Gardner schrieb: >> Brent Gardner wrote: >> >>> I have several devices that run Bering-uClibc v3.0-Beta2. These >>> devices boot from CD and read and save config on USB flash drive. >>> >>> I'm trying to upgrade to v3.1.1-Beta2 but having a bit of trouble >>> with the flash drive. >>> >>> On my test machine and on 2 other machines the setup works as >>> expected, but on the target machine, the machine does not see the >>> flash drive during boot so packages and config are not loaded. >>> But after booting, I can mount and access the flash drive, no problem. >>> > Please have a look if you load additional usb modules in /etc/modules, > these might be missing in the usb_initrd package. Look at your logs and > use lsmod to see what modules are loaded. I suspect you have different > usb hardware in your target machine. > > Looking at the initrd the following modules are loaded for usb > usbcore.o usb-storage.o usb-uhci.o > > along with > > scsi_mod.o > sd_mod.o > Thanks for your reply, Erich. I've been successfully booting the target machine from a Bering-uClibc v3.0-Beta2 CD and reading/writing config to USB flash for 2+ years and it continues to boot properly with that config. From the Bering-uClibc v3.1.1-Beta2 setup that's giving me trouble: CD uses isolinux to boot. contents of <cd root>/boot/isolinux/isolinuc.cfg: display isolinux.dpy timeout 0 append reboot=bios default linux initrd=initrd.lrp init=/linuxrc rw root=/dev/ram0 LEAFCFG=/dev/sda1:msdos PKGPATH=/dev/sda1:msdos,/dev/cdrom:iso9660 LRP=root,config,etc contents of <initrd root>/boot/lib/modules directory: -rw-r--r-- 1 root root 37512 2009-02-07 14:37 cdrom.o -rw-r--r-- 1 root root 20908 2009-04-28 14:19 ehci-hcd.o -rw-r--r-- 1 root root 36596 2009-02-07 14:37 ide-cd.o -rw-r--r-- 1 root root 135908 2009-02-07 14:37 ide-core.o -rw-r--r-- 1 root root 1075 2009-02-07 14:37 ide-detect.o -rw-r--r-- 1 root root 18236 2009-02-07 14:37 ide-disk.o -rw-r--r-- 1 root root 22199 2009-02-07 14:37 isofs.o -rw-r--r-- 1 root root 77786 2009-04-23 16:38 scsi_mod.o -rw-r--r-- 1 root root 15828 2009-04-23 16:38 sd_mod.o -rw-r--r-- 1 root root 81022 2009-04-23 16:35 usbcore.o -rw-r--r-- 1 root root 22776 2009-04-28 17:10 usb-ohci.o -rw-r--r-- 1 root root 69776 2009-04-23 16:36 usb-storage.o -rw-r--r-- 1 root root 26392 2009-04-23 16:36 usb-uhci.o -rw-r--r-- 1 root root 13930 2009-02-07 14:37 vfat.o contents of <initrd root>/boot/etc/modules: cdrom ide-core ide-disk ide-cd ide-detect isofs usbcore usb-uhci #usb-ohci #ehci-hcd scsi_mod usb-storage sd_mod vfat On a machine where I can get it to boot, contents of /etc/modules: tg3 e1000e ip_conntrack iptable_nat ip_conntrack_amanda ip_conntrack_ftp ip_conntrack_h323 ip_conntrack_irc ip_conntrack_pptp ip_conntrack_tftp ip_nat_amanda ip_nat_ftp ip_nat_h323 ip_nat_irc ip_nat_pptp ip_nat_snmp_basic ip_nat_tftp sch_sfq sch_ingress sch_htb cls_fw cls_u32 ipt_ah ipt_CLASSIFY ipt_connmark ipt_CONNMARK ipt_conntrack ipt_esp ipt_helper ipt_ipp2p ipt_MASQUERADE ipt_owner ipt_physdev ipt_recent ipt_REDIRECT ipt_state ipt_ttl softdog From the Bering-uClibc v3.0-Beta2 setup that works: CD boots eltorito-style. Contents of syslinux.cfg in bootdisk.ima: display syslinux.dpy timeout 0 default linux initrd=initrd.lrp init=/linuxrc rw root=/dev/ram0 LEAFCFG=/dev/sda1:msdos PKGPATH=/dev/sda1:msdos,/dev/cdrom:iso9660 LRP=root,config,etc Contents of <initrd root> boot/lib/modules directory: -r--r--r-- 1 root root 37512 2006-08-28 12:22 cdrom.o -r--r--r-- 1 root root 36596 2006-08-28 12:23 ide-cd.o -rw-r--r-- 1 root root 135972 2006-08-20 08:10 ide-core.o -r--r--r-- 1 root root 1071 2006-08-28 12:24 ide-detect.o -r--r--r-- 1 root root 18268 2006-08-28 12:23 ide-disk.o -r-xr-xr-x 1 root root 22199 2006-08-28 12:32 isofs.o -rw-r--r-- 1 root root 77786 2006-08-20 08:10 scsi_mod.o -rw-r--r-- 1 root root 15828 2006-08-20 08:10 sd_mod.o -rw-r--r-- 1 root root 80352 2006-08-20 08:10 usbcore.o -rw-r--r-- 1 root root 69746 2006-08-20 08:10 usb-storage.o -rw-r--r-- 1 root root 26392 2006-08-20 08:10 usb-uhci.o -rw-r--r-- 1 root root 13930 2006-08-20 08:10 vfat.o Contents of <initrd root>/boot/etc/modules: cdrom ide-core ide-disk ide-cd ide-detect isofs usbcore usb-uhci scsi_mod usb-storage sd_mod vfat Brent Gardner ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ------------------------------------------------------------------------ leaf-user mailing list: leaf-user@... https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/ |
|
|
Re: Reading USB flash during boot issuesBrent
Brent Gardner schrieb: > Erich Titl wrote:... > > I've been successfully booting the target machine from a Bering-uClibc > v3.0-Beta2 CD and reading/writing config to USB flash for 2+ years and > it continues to boot properly with that config Yes, but this is a different kernel with a different initrd. . > > > From the Bering-uClibc v3.1.1-Beta2 setup that's giving me trouble: > > CD uses isolinux to boot. > > contents of <cd root>/boot/isolinux/isolinuc.cfg: > > display isolinux.dpy > timeout 0 > append reboot=bios > default linux initrd=initrd.lrp init=/linuxrc rw root=/dev/ram0 > LEAFCFG=/dev/sda1:msdos PKGPATH=/dev/sda1:msdos,/dev/cdrom:iso9660 > LRP=root,config,etc _not_loaded, can you confirm that? > > > contents of <initrd root>/boot/lib/modules directory: > > -rw-r--r-- 1 root root 37512 2009-02-07 14:37 cdrom.o > -rw-r--r-- 1 root root 20908 2009-04-28 14:19 ehci-hcd.o > -rw-r--r-- 1 root root 36596 2009-02-07 14:37 ide-cd.o > -rw-r--r-- 1 root root 135908 2009-02-07 14:37 ide-core.o > -rw-r--r-- 1 root root 1075 2009-02-07 14:37 ide-detect.o > -rw-r--r-- 1 root root 18236 2009-02-07 14:37 ide-disk.o > -rw-r--r-- 1 root root 22199 2009-02-07 14:37 isofs.o > -rw-r--r-- 1 root root 77786 2009-04-23 16:38 scsi_mod.o > -rw-r--r-- 1 root root 15828 2009-04-23 16:38 sd_mod.o > -rw-r--r-- 1 root root 81022 2009-04-23 16:35 usbcore.o > -rw-r--r-- 1 root root 22776 2009-04-28 17:10 usb-ohci.o > -rw-r--r-- 1 root root 69776 2009-04-23 16:36 usb-storage.o > -rw-r--r-- 1 root root 26392 2009-04-23 16:36 usb-uhci.o > -rw-r--r-- 1 root root 13930 2009-02-07 14:37 vfat.o suspicious. Ahhhh.... you are using the initrd_ide_cd This is the content of the modules directory in initrd_ide_cd luna:/mnt/boot/lib/modules # ls -l total 270 drwxr-xr-x 2 root root 288 2009-04-29 22:55 . drwxr-xr-x 3 root root 96 2009-04-29 22:55 .. -rw-r--r-- 1 root root 37512 2009-04-29 22:55 cdrom.o -rw-r--r-- 1 root root 36628 2009-04-29 22:55 ide-cd.o -rw-r--r-- 1 root root 135908 2009-04-29 22:55 ide-core.o -rw-r--r-- 1 root root 1071 2009-04-29 22:55 ide-detect.o -rw-r--r-- 1 root root 18268 2009-04-29 22:55 ide-disk.o -rw-r--r-- 1 root root 22199 2009-04-29 22:55 isofs.o -rw-r--r-- 1 root root 13930 2009-04-29 22:55 vfat.o so not a single usb module, you are not using the original initrd_ide_cd > > > contents of <initrd root>/boot/etc/modules: > > cdrom > ide-core > ide-disk > ide-cd > ide-detect > isofs > usbcore > usb-uhci > #usb-ohci > #ehci-hcd > scsi_mod > usb-storage > sd_mod > vfat > > > On a machine where I can get it to boot, contents of /etc/modules: > > tg3 > e1000e > > ip_conntrack > iptable_nat > ip_conntrack_amanda > ip_conntrack_ftp > ip_conntrack_h323 > ip_conntrack_irc > ip_conntrack_pptp > ip_conntrack_tftp > ip_nat_amanda > ip_nat_ftp > ip_nat_h323 > ip_nat_irc > ip_nat_pptp > ip_nat_snmp_basic > ip_nat_tftp > sch_sfq > sch_ingress > sch_htb > cls_fw > cls_u32 > ipt_ah > ipt_CLASSIFY > ipt_connmark > ipt_CONNMARK > ipt_conntrack > ipt_esp > ipt_helper > ipt_ipp2p > ipt_MASQUERADE > ipt_owner > ipt_physdev > ipt_recent > ipt_REDIRECT > ipt_state > ipt_ttl > > softdog > > From the Bering-uClibc v3.0-Beta2 setup that works: > > CD boots eltorito-style. > ..... > > cdrom > ide-core > ide-disk > ide-cd > ide-detect > isofs > usbcore > usb-uhci > scsi_mod > usb-storage > sd_mod > vfat > > which modules you use to build your initrd file. You must have the usb modules included with the ide_cd stuff. Please run an lsmod on a machine where you can get it to boot and look for usb modules. Try to determine _when_ they are loaded. Use an original initrd_ide_cd to build a bootable CD for your target machine. This will not yet allow you to use the usb stick, but you can work from there. Load the usb modules manually to determine if they are working correctly. If you have a working LINUX system you can gunzip the initrd and loop mount it, then inspect the contents. You can also add additional modules as fit, unmount and gzip it to use it on the target. cheers Erich ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ------------------------------------------------------------------------ leaf-user mailing list: leaf-user@... https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/ |
|
|
Re: Reading USB flash during boot issuesErich Titl wrote:
> Brent > > Brent Gardner schrieb: >> Erich Titl wrote:... >> >> I've been successfully booting the target machine from a Bering-uClibc >> v3.0-Beta2 CD and reading/writing config to USB flash for 2+ years and >> it continues to boot properly with that config > > Yes, but this is a different kernel with a different initrd. > . >> >> From the Bering-uClibc v3.1.1-Beta2 setup that's giving me trouble: >> >> CD uses isolinux to boot. >> >> contents of <cd root>/boot/isolinux/isolinuc.cfg: >> >> display isolinux.dpy >> timeout 0 >> append reboot=bios >> default linux initrd=initrd.lrp init=/linuxrc rw root=/dev/ram0 >> LEAFCFG=/dev/sda1:msdos PKGPATH=/dev/sda1:msdos,/dev/cdrom:iso9660 >> LRP=root,config,etc > > It is not the isolinux which gives trouble, unless the initrd is > _not_loaded, can you confirm that? > Yeah, pretty sure initrd is loaded, otherwise it wouldn't be able to access the CD to load packages listed in LRP= above. >> >> contents of <initrd root>/boot/lib/modules directory: >> >> -rw-r--r-- 1 root root 37512 2009-02-07 14:37 cdrom.o >> -rw-r--r-- 1 root root 20908 2009-04-28 14:19 ehci-hcd.o >> -rw-r--r-- 1 root root 36596 2009-02-07 14:37 ide-cd.o >> -rw-r--r-- 1 root root 135908 2009-02-07 14:37 ide-core.o >> -rw-r--r-- 1 root root 1075 2009-02-07 14:37 ide-detect.o >> -rw-r--r-- 1 root root 18236 2009-02-07 14:37 ide-disk.o >> -rw-r--r-- 1 root root 22199 2009-02-07 14:37 isofs.o >> -rw-r--r-- 1 root root 77786 2009-04-23 16:38 scsi_mod.o >> -rw-r--r-- 1 root root 15828 2009-04-23 16:38 sd_mod.o >> -rw-r--r-- 1 root root 81022 2009-04-23 16:35 usbcore.o >> -rw-r--r-- 1 root root 22776 2009-04-28 17:10 usb-ohci.o >> -rw-r--r-- 1 root root 69776 2009-04-23 16:36 usb-storage.o >> -rw-r--r-- 1 root root 26392 2009-04-23 16:36 usb-uhci.o >> -rw-r--r-- 1 root root 13930 2009-02-07 14:37 vfat.o > > You got many more modules than I found on the initrd, this is > suspicious. Ahhhh.... you are using the initrd_ide_cd > > This is the content of the modules directory in initrd_ide_cd > > luna:/mnt/boot/lib/modules # ls -l > total 270 > drwxr-xr-x 2 root root 288 2009-04-29 22:55 . > drwxr-xr-x 3 root root 96 2009-04-29 22:55 .. > -rw-r--r-- 1 root root 37512 2009-04-29 22:55 cdrom.o > -rw-r--r-- 1 root root 36628 2009-04-29 22:55 ide-cd.o > -rw-r--r-- 1 root root 135908 2009-04-29 22:55 ide-core.o > -rw-r--r-- 1 root root 1071 2009-04-29 22:55 ide-detect.o > -rw-r--r-- 1 root root 18268 2009-04-29 22:55 ide-disk.o > -rw-r--r-- 1 root root 22199 2009-04-29 22:55 isofs.o > -rw-r--r-- 1 root root 13930 2009-04-29 22:55 vfat.o > > so not a single usb module, you are not using the original initrd_ide_cd > Right. Actually, I add the modules and config info from initrd_usb to initrd_ide_cd and call it initrd_ide_cd_usb.lrp on my CDs. >> >> contents of <initrd root>/boot/etc/modules: >> >> cdrom >> ide-core >> ide-disk >> ide-cd >> ide-detect >> isofs >> usbcore >> usb-uhci >> #usb-ohci >> #ehci-hcd >> scsi_mod >> usb-storage >> sd_mod >> vfat > > And this is also different from the original. > >> >> On a machine where I can get it to boot, contents of /etc/modules: > >> tg3 >> e1000e >> >> ip_conntrack >> iptable_nat >> ip_conntrack_amanda >> ip_conntrack_ftp >> ip_conntrack_h323 >> ip_conntrack_irc >> ip_conntrack_pptp >> ip_conntrack_tftp >> ip_nat_amanda >> ip_nat_ftp >> ip_nat_h323 >> ip_nat_irc >> ip_nat_pptp >> ip_nat_snmp_basic >> ip_nat_tftp >> sch_sfq >> sch_ingress >> sch_htb >> cls_fw >> cls_u32 >> ipt_ah >> ipt_CLASSIFY >> ipt_connmark >> ipt_CONNMARK >> ipt_conntrack >> ipt_esp >> ipt_helper >> ipt_ipp2p >> ipt_MASQUERADE >> ipt_owner >> ipt_physdev >> ipt_recent >> ipt_REDIRECT >> ipt_state >> ipt_ttl >> >> softdog > > obviously the usb modules are _not_ loaded here > >> From the Bering-uClibc v3.0-Beta2 setup that works: >> >> CD boots eltorito-style. >> > ..... >> cdrom >> ide-core >> ide-disk >> ide-cd >> ide-detect >> isofs >> usbcore >> usb-uhci >> scsi_mod >> usb-storage >> sd_mod >> vfat >> >> > > So you are using the usb-uhci just like on the other disk.I am wondering > which modules you use to build your initrd file. You must have the usb > modules included with the ide_cd stuff. > > Please run an lsmod on a machine where you can get it to boot and look > for usb modules. Try to determine _when_ they are loaded. > Use an original initrd_ide_cd to build a bootable CD for your target > machine. This will not yet allow you to use the usb stick, but you can > work from there. Load the usb modules manually to determine if they are > working correctly. > > If you have a working LINUX system you can gunzip the initrd and loop > mount it, then inspect the contents. You can also add additional modules > as fit, unmount and gzip it to use it on the target. > Finally found the problem. I needed to increase the usb_wait value in /var/lib/lrpkg/root.linuxrc in my initrd package. Default value is 1, I increased that to 3. Works as expected now. I remember (now) having to do this when I first set up my v3.0-Beta2 disks. Guess I didn't take good enough notes back then. The machines I'm running LEAF on here are way overkill for the job, so they run through the boot process too fast to allow for proper USB initialization, I guess. Thanks again. Brent Gardner ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ------------------------------------------------------------------------ leaf-user mailing list: leaf-user@... https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/ |
|
|
Re: Reading USB flash during boot issuesBrent
Brent Gardner schrieb: > Erich Titl wrote: > >> Brent >> ... > > Finally found the problem. I needed to increase the usb_wait value in > /var/lib/lrpkg/root.linuxrc in my initrd package. Default value is 1, I > increased that to 3. Works as expected now. > Yes, I saw similar problems with pcmcia based stuff, I would suggest to increase the default and/or make it a boot parameter. cheers Erich ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ------------------------------------------------------------------------ leaf-user mailing list: leaf-user@... https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/ |
|
|
Re: Reading USB flash during boot issuesBrent Gardner schrieb:
> Erich Titl wrote: > >> Brent >> >> Brent Gardner schrieb: >> >>> Erich Titl wrote:... >>> >>> I've been successfully booting the target machine from a Bering-uClibc >>> v3.0-Beta2 CD and reading/writing config to USB flash for 2+ years and >>> it continues to boot properly with that config >>> >> Yes, but this is a different kernel with a different initrd. >> . >> >>> From the Bering-uClibc v3.1.1-Beta2 setup that's giving me trouble: >>> >>> CD uses isolinux to boot. >>> >>> contents of <cd root>/boot/isolinux/isolinuc.cfg: >>> >>> display isolinux.dpy >>> timeout 0 >>> append reboot=bios >>> default linux initrd=initrd.lrp init=/linuxrc rw root=/dev/ram0 >>> LEAFCFG=/dev/sda1:msdos PKGPATH=/dev/sda1:msdos,/dev/cdrom:iso9660 >>> LRP=root,config,etc >>> >> It is not the isolinux which gives trouble, unless the initrd is >> _not_loaded, can you confirm that? >> >> > > Yeah, pretty sure initrd is loaded, otherwise it wouldn't be able to > access the CD to load packages listed in LRP= above. > > > >>> contents of <initrd root>/boot/lib/modules directory: >>> >>> -rw-r--r-- 1 root root 37512 2009-02-07 14:37 cdrom.o >>> -rw-r--r-- 1 root root 20908 2009-04-28 14:19 ehci-hcd.o >>> -rw-r--r-- 1 root root 36596 2009-02-07 14:37 ide-cd.o >>> -rw-r--r-- 1 root root 135908 2009-02-07 14:37 ide-core.o >>> -rw-r--r-- 1 root root 1075 2009-02-07 14:37 ide-detect.o >>> -rw-r--r-- 1 root root 18236 2009-02-07 14:37 ide-disk.o >>> -rw-r--r-- 1 root root 22199 2009-02-07 14:37 isofs.o >>> -rw-r--r-- 1 root root 77786 2009-04-23 16:38 scsi_mod.o >>> -rw-r--r-- 1 root root 15828 2009-04-23 16:38 sd_mod.o >>> -rw-r--r-- 1 root root 81022 2009-04-23 16:35 usbcore.o >>> -rw-r--r-- 1 root root 22776 2009-04-28 17:10 usb-ohci.o >>> -rw-r--r-- 1 root root 69776 2009-04-23 16:36 usb-storage.o >>> -rw-r--r-- 1 root root 26392 2009-04-23 16:36 usb-uhci.o >>> -rw-r--r-- 1 root root 13930 2009-02-07 14:37 vfat.o >>> >> You got many more modules than I found on the initrd, this is >> suspicious. Ahhhh.... you are using the initrd_ide_cd >> >> This is the content of the modules directory in initrd_ide_cd >> >> luna:/mnt/boot/lib/modules # ls -l >> total 270 >> drwxr-xr-x 2 root root 288 2009-04-29 22:55 . >> drwxr-xr-x 3 root root 96 2009-04-29 22:55 .. >> -rw-r--r-- 1 root root 37512 2009-04-29 22:55 cdrom.o >> -rw-r--r-- 1 root root 36628 2009-04-29 22:55 ide-cd.o >> -rw-r--r-- 1 root root 135908 2009-04-29 22:55 ide-core.o >> -rw-r--r-- 1 root root 1071 2009-04-29 22:55 ide-detect.o >> -rw-r--r-- 1 root root 18268 2009-04-29 22:55 ide-disk.o >> -rw-r--r-- 1 root root 22199 2009-04-29 22:55 isofs.o >> -rw-r--r-- 1 root root 13930 2009-04-29 22:55 vfat.o >> >> so not a single usb module, you are not using the original initrd_ide_cd >> >> > > Right. Actually, I add the modules and config info from initrd_usb to > initrd_ide_cd and call it initrd_ide_cd_usb.lrp on my CDs. > > > >>> contents of <initrd root>/boot/etc/modules: >>> >>> cdrom >>> ide-core >>> ide-disk >>> ide-cd >>> ide-detect >>> isofs >>> usbcore >>> usb-uhci >>> #usb-ohci >>> #ehci-hcd >>> scsi_mod >>> usb-storage >>> sd_mod >>> vfat >>> >> And this is also different from the original. >> >> >>> On a machine where I can get it to boot, contents of /etc/modules: >>> >>> tg3 >>> e1000e >>> >>> ip_conntrack >>> iptable_nat >>> ip_conntrack_amanda >>> ip_conntrack_ftp >>> ip_conntrack_h323 >>> ip_conntrack_irc >>> ip_conntrack_pptp >>> ip_conntrack_tftp >>> ip_nat_amanda >>> ip_nat_ftp >>> ip_nat_h323 >>> ip_nat_irc >>> ip_nat_pptp >>> ip_nat_snmp_basic >>> ip_nat_tftp >>> sch_sfq >>> sch_ingress >>> sch_htb >>> cls_fw >>> cls_u32 >>> ipt_ah >>> ipt_CLASSIFY >>> ipt_connmark >>> ipt_CONNMARK >>> ipt_conntrack >>> ipt_esp >>> ipt_helper >>> ipt_ipp2p >>> ipt_MASQUERADE >>> ipt_owner >>> ipt_physdev >>> ipt_recent >>> ipt_REDIRECT >>> ipt_state >>> ipt_ttl >>> >>> softdog >>> >> obviously the usb modules are _not_ loaded here >> >> >>> From the Bering-uClibc v3.0-Beta2 setup that works: >>> >>> CD boots eltorito-style. >>> >>> >> ..... >> >>> cdrom >>> ide-core >>> ide-disk >>> ide-cd >>> ide-detect >>> isofs >>> usbcore >>> usb-uhci >>> scsi_mod >>> usb-storage >>> sd_mod >>> vfat >>> >>> >>> >> So you are using the usb-uhci just like on the other disk.I am wondering >> which modules you use to build your initrd file. You must have the usb >> modules included with the ide_cd stuff. >> >> Please run an lsmod on a machine where you can get it to boot and look >> for usb modules. Try to determine _when_ they are loaded. >> Use an original initrd_ide_cd to build a bootable CD for your target >> machine. This will not yet allow you to use the usb stick, but you can >> work from there. Load the usb modules manually to determine if they are >> working correctly. >> >> If you have a working LINUX system you can gunzip the initrd and loop >> mount it, then inspect the contents. You can also add additional modules >> as fit, unmount and gzip it to use it on the target. >> >> > > > Finally found the problem. I needed to increase the usb_wait value in > /var/lib/lrpkg/root.linuxrc in my initrd package. Default value is 1, I > increased that to 3. Works as expected now. > > I remember (now) having to do this when I first set up my v3.0-Beta2 > disks. Guess I didn't take good enough notes back then. > > The machines I'm running LEAF on here are way overkill for the job, so > they run through the boot process too fast to allow for proper USB > initialization, I guess. > > > Thanks again. > > > Brent Gardner > > > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > ------------------------------------------------------------------------ > leaf-user mailing list: leaf-user@... > https://lists.sourceforge.net/lists/listinfo/leaf-user > Support Request -- http://leaf-project.org/ > > ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ------------------------------------------------------------------------ leaf-user mailing list: leaf-user@... https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/ |
| Free embeddable forum powered by Nabble | Forum Help |