Can't find commads in chroot environment
I have accomplished all steps in LFS-BOOK-6.3 until 6.7, when I compiled Linux API header in *chroot environment*. The error message is sample and clearly: xargs is not here.Howerver it is in the path /tools/bin,while the environment PATH is set to /tools/bin. I have installed xargs in step 5.18.It seems that I can involed all commands installation from Findutils except in the chroot environment. I can involved find,updatedb in chroot environment.But when I did it with xargs and locate,an message displayed */tools/bin/xargs: No such file*. what's wrong with it?It's only happens in chroot environment. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Which chipset for USB?
On Sun, 2010-03-21 at 10:27 -0700, brown wrap wrote: Well, I have tried dozens of configurations to try and get my USB ports to work and nothing has succeeded. There is a config that works, because my USB ports work on CentOS, but I am tired of fighting the issue. I simply want a recommendation on a chipset or PCI board that works under LFS. And that's kind of hard to answer, because *all* of them should, including your current NVidia one. If USB works for you on CentOS, it's not a question of whether it's supported by Linux or not. It has to be something in your config, and if so, changing the hardware is unlikely to make any difference. For what it's worth, these are the config options I have enabled relating to USB (everything is a module, not built-in). * Device Drivers - USB support - Support for Host-side USB * Device Drivers - USB support - EHCI HCD (USB 2.0) support * Device Drivers - USB support - OHCI HCD support * Device Drivers - USB support - USB Mass Storage support That's it. I've been using that configuration on various machines for years, including the NVidia chipset I'm currently running, and another one before that. 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: Can't find commads in chroot environment
On Mon, Mar 22, 2010 at 1:56 AM, Caramon Majere caramon...@gmail.com wrote: I have accomplished all steps in LFS-BOOK-6.3 until 6.7, when I compiled Linux API header in chroot environment. The error message is sample and clearly: xargs is not here.Howerver it is in the path /tools/bin,while the environment PATH is set to /tools/bin. I have installed xargs in step 5.18.It seems that I can involed all commands installation from Findutils except in the chroot environment. I can involved find,updatedb in chroot environment.But when I did it with xargs and locate,an message displayed /tools/bin/xargs: No such file. what's wrong with it?It's only happens in chroot environment. Logout of the chroot Go back to the beginning of chapter 6 and make sure you do the steps in 6.2 and 6.4 exactly as they are in the book. You missed something. I did this. If you do those steps correctly without missing anything you won't have the problem you are having now. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Kernel panic - VFS
Andrew Benton wrote: I added CONFIG_PATA_VIA, and that did not help. which CONFIG_PATA_VIA depends? If I were you I'd enable support for lots of things that may, possibly be needed and compile them all into the kernel. Use lspci as a guide and Thanks. When enabling lots of options I noticed that I had stupidly enabled a similarly named option (I think CONFIG_SATA_VIA) instead of CONFIG_PATA_VIA which I needed. Thanks for the help. I would recommend improving chapter 8.3 of the book (configuring and compiling the kernel) by adding these hints about configuring the kernel, i.e. using lspci, lsmod, and enabling many options. Thanks again, --yaacov -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Kernel panic - VFS
Yaacov-Yoseph Weiss wrote: I would recommend improving chapter 8.3 of the book (configuring and compiling the kernel) by adding these hints about configuring the kernel, i.e. using lspci, lsmod, and enabling many options. There's way too many different issues for Chapter 8. Did you read the hint referenced in Section 8.3? http://www.linuxfromscratch.org/hints/downloads/files/kernel-configuration.txt -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Which chipset for USB?
On 3/21/10, brown wrap gra...@yahoo.com wrote: I'd be happy to get any keyboard and mouse to work. I wonder is your usb problem just the keyboard and the mouse? In my config # CONFIG_KEYBOARD_XTKBD is not set # CONFIG_MOUSE_SERIAL is not set I always thought XTKBD was obsoleted long ago. To me, serial refers to 9-pin connector used long ago. -When- does the keyboard start to not work? A. It works before grub only B. It works during grub but not after C. It works at a console login but not in X-windows Does computer have a PS/2 style for a keyboard? Do you have a keyboard with the PS/2 style plug? Does it work differently than as a usb keyboard? What kind of keyboard is it? In short, should the focus be on getting the keyboard/mose to work rather than on USB ? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: write error with new version of tar
linux fan wrote: On 3/19/10, Mike McCarty mike.mcca...@sbcglobal.net wrote: I wonder if head is closing the input pipe when it has read all it needs, and that's causing the error. I can't reproduce that problem with my host system, however. It is tar-1.23 and not head Umm, I didn't mean to imply that head was what needed fixing. I was proposing a possible cause for the behavior. As it happens, another reply seems to indicate that I was correct. Mike -- p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I speak only for myself, and I am unanimous in that! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Which chipset for USB?
brown wrap wrote: [...] Your best bet, I think, is to use lsmod with CentOS running, and see what's loaded, and configure appropriately. I'd be happy to get any keyboard and mouse to work. Here is a link to the Knoppix problem, where none of the input devices work: I used a Knoppix dvd that arrived with the Linux Magazine a while back. Debian, upon which KNOPPIX is based, used to have/has problems when you have both a USB keyboard and a USB mouse, but just a USB keyboard seemed to work fine. I didn't try just a USB mouse. When I had the problem, both the keyboard and mouse were dead. I reported this a couple of years ago, and was told by a member of the support team that this behavior was impossible. I didn't pursue it, due to the rather emotional nature of the response, and I'm reasonably sure it wasn't investigated further. About a year later, another guy with the same problem contacted me off list (due to the emotional response I garnered) asking whether I were ever able to resolve it, which I had not, since I no longer administer any Debian based machines. So, in the intervening year or so, I'm certain it wasn't pursued. Anyway, you might try replacing the USB mouse with a regular one, either PS/2 or serial port, and see if you can use the machine that way, until you resolve whatever the problem is. If there is an accepted trouble ticket, then perhaps it'll get tracked down now, and fixed. With the Debian support team, very much YMMV, IMO. Linux is practically a religion with some of the pro Debian people, though mostly the support team is rational. I like KNOPPIX, and use it as a rescue CD, but being based upon Debian, and often Debian Unstable, it's definitely in my considered experimental list. I've been disappointed somewhat by KNOPPIX 6.x so far. KNOPPIX 5.x was a better release, IMO. You might download an image of KNOPPIX 5.3.1 and try that, if you want a version of KNOPPIX which works. I can recommend it. It may have the USB keyboard+mouse problem, however. I don't like to use USB devices much, anyway, so I can't test for you since I don't have a USB keyboard at present. Mike -- p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I speak only for myself, and I am unanimous in that! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Kernel panic - VFS
Yaacov-Yoseph Weiss wrote: [...] I would recommend improving chapter 8.3 of the book (configuring and compiling the kernel) by adding these hints about configuring the kernel, i.e. using lspci, lsmod, and enabling many options. I would agree with this except that the kernel is such a rapidly moving target, it would require a nearly complete rewrite with each new kernel release. Describing the kernel configuration would require increasing the size of the book by quite a bit, and it would be a very high maintenance part of the book. Perhaps just a hints section about how to ascertain what hardware is present could be added, however. Perhaps also how to ascertain what modules got loaded by the 6.3 LiveCD could be put in, so one might have an idea what to build in. Mike -- p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I speak only for myself, and I am unanimous in that! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Which chipset for USB?
On 3/22/10, linux fan linuxscra...@gmail.com wrote: -When- does the keyboard start to not work? If it works at a console login but not in X-windows, that happened to me, and I reconfigured xorg-server to fix the scenario where dbus and hal were installed, but I was not running them, and thus the xorg-server obligingly disabled the keyboard and mouse: # xorg-server config --disable-config-dbus \ --disable-config-hal \ Then again, it could be a problem in xorg.conf. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Which chipset for USB?
Your best bet, I think, is to use lsmod with CentOS running, and see what's loaded, and configure appropriately. I used lsmod on the running CentOS and it must have had nearly 100 modules. Anyway, you might try replacing the USB mouse with a regular one, either PS/2 or serial port, and see if you can use the machine that way, until you resolve whatever the problem is. I tried that. NO inputs work. Not USB or PS/2 mouse and old XT keyboard. Today I booted up the LFS 6.3 DVD and its works as well. I found its .config and tried to use it to build a kernal: make mrproper Copied it to .config make oldconfig make make modules_install and then copied everything to its place in the /boot directory. I had previuously done the same thing with the CentOS .config. Both end up in a 'panic'. So now I went back to building a clean kernel that will at least boot again. So to state it again, none of the inputs work after I make the kernel selection from the menu. The last time I made this selection I was not using the USB, I was using XT and PS/2 mouse. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Which chipset for USB?
brown wrap wrote: Your best bet, I think, is to use lsmod with CentOS running, and see what's loaded, and configure appropriately. I used lsmod on the running CentOS and it must have had nearly 100 modules. That isn't surprising. The point is to identify what modules are there, and see which ones look like they are associated. Anyway, you might try replacing the USB mouse with a regular one, either PS/2 or serial port, and see if you can use the machine that way, until you resolve whatever the problem is. I tried that. NO inputs work. Not USB or PS/2 mouse and old XT keyboard. Ah, then the USB I/F is likely not the cause. You may have a basic chipset incompatibility. Maybe no interrupts, something like that. Today I booted up the LFS 6.3 DVD and its works as well. I found its .config and tried to use it to build a kernal: make mrproper Copied it to .config make oldconfig make make modules_install and then copied everything to its place in the /boot directory. I had previuously done the same thing with the CentOS .config. Both end up in a 'panic'. Not surprising. Nearly everything is likely an installable module, and it likely uses an initrd. That won't work, unless you also install an initrd, which you aren't if you are following the book. So now I went back to building a clean kernel that will at least boot again. So to state it again, none of the inputs work after I make the kernel selection from the menu. The last time I made this selection I was not using the USB, I was using XT and PS/2 mouse. I suggest using the kernel menu driven configurator, and configure it according to what lspci shows when booted with anything that runs. Using lspci will likely tell you what chipset you need to have support for in the kernel. Build everything as internal, not a loadable module. Mike -- p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I speak only for myself, and I am unanimous in that! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Which chipset for USB?
On 3/22/10, brown wrap gra...@yahoo.com wrote: So now I went back to building a clean kernel that will at least boot again. Possibly try rm .config make defconfig ARCH=x86_64 Then make menuconfig and select things you know that you will need built into the kernel. Try to avoid making any alterations to any input devices or usb until you know the defaults don't work. I refer to README in the kernel source tree. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
my lsmod versus LFS DVD lsmod
my kernel loads two modules: ohci_hcd 19241 0 ehci_hcd 30605 0 lsmod of LFS 6.3: Module Size Used by usbhid 32704 0 ext3 118664 2 jbd69360 1 ext3 psmouse46620 0 pcspkr 4864 0 ext2 56584 1 isofs 39780 1 zlib_inflate 17024 1 isofs sg 37800 0 sr_mod 19492 1 cdrom 42152 1 sr_mod sd_mod 29568 3 ohci1394 39240 0 ahci 27140 3 ohci_hcd 25220 0 ehci_hcd 37004 0 sata_sil24 18052 0 libata141456 2 ahci,sata_sil24 ieee1394 109912 1 ohci1394 usbcore 153776 4 usbhid,ohci_hcd,ehci_hcd amd74xx17584 0 [permanent] ide_core 160784 1 amd74xx My problem is I don't know how to make the one-to-one correspondence in building a kernel. For example, I have no idea what ohci1394 is. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
LFS 6.4 Ok?
I've got a 6.4 machine which I'm interested in starting in on BLFS, and wonder whether it might be better to restart and build 6.6 before attempting to proceed with BLFS. If I need later than 6.4, then... The last time I tried jhalfs, I had problems which needed manual fixups. I'd like just to wipe the disc, partition, and then boot the 6.3 LiveCD and download jhalfs, and let it go to work. ... otherwise I'll just get started building the X Window system. Mike -- p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I speak only for myself, and I am unanimous in that! -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: my lsmod versus LFS DVD lsmod
brown wrap wrote: My problem is I don't know how to make the one-to-one correspondence in building a kernel. For example, I have no idea what ohci1394 is. Firewire. If you don't know that you need it, you probably don't. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: my lsmod versus LFS DVD lsmod
brown wrap wrote: my kernel loads two modules: ohci_hcd 19241 0 ehci_hcd 30605 0 Prominently not here, but present below, is usbcore. However, didn't you say that even your normal keyboard and PS/2 mouse don't work? I also don't see any file systems, nor any disc drivers. lsmod of LFS 6.3: Module Size Used by usbhid 32704 0 ext3 118664 2 jbd69360 1 ext3 psmouse46620 0 pcspkr 4864 0 ext2 56584 1 isofs 39780 1 zlib_inflate 17024 1 isofs sg 37800 0 sr_mod 19492 1 cdrom 42152 1 sr_mod sd_mod 29568 3 ohci1394 39240 0 ahci 27140 3 ohci_hcd 25220 0 ehci_hcd 37004 0 sata_sil24 18052 0 libata141456 2 ahci,sata_sil24 ieee1394 109912 1 ohci1394 usbcore 153776 4 usbhid,ohci_hcd,ehci_hcd amd74xx17584 0 [permanent] ide_core 160784 1 amd74xx My problem is I don't know how to make the one-to-one correspondence in building a kernel. For example, I have no idea what ohci1394 is. You are leaving out many necessary things. I'm no kernel expert, but how can you hope to boot without any disc drivers or file systems present? I think your problem goes much deeper than just a mouse not working. I'm surprised you aren't panicking with root file system not found. Mike -- p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I speak only for myself, and I am unanimous in that! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: my lsmod versus LFS DVD lsmod
On 22 March 2010 19:56, brown wrap gra...@yahoo.com wrote: my kernel loads two modules: ohci_hcd 19241 0 ehci_hcd 30605 0 lsmod of LFS 6.3: Module Size Used by usbhid 32704 0 ext3 118664 2 jbd 69360 1 ext3 psmouse 46620 0 pcspkr 4864 0 ext2 56584 1 isofs 39780 1 zlib_inflate 17024 1 isofs sg 37800 0 sr_mod 19492 1 cdrom 42152 1 sr_mod sd_mod 29568 3 ohci1394 39240 0 ahci 27140 3 ohci_hcd 25220 0 ehci_hcd 37004 0 sata_sil24 18052 0 libata 141456 2 ahci,sata_sil24 ieee1394 109912 1 ohci1394 usbcore 153776 4 usbhid,ohci_hcd,ehci_hcd amd74xx 17584 0 [permanent] ide_core 160784 1 amd74xx My problem is I don't know how to make the one-to-one correspondence in building a kernel. For example, I have no idea what ohci1394 is. If you look at the help in menuconfig, it usually tells you the modules will be called. So find -name Kconfig | xargs grep 'called ohci1394' and then look at the Kconfig file that matches (that one is for firewire, aka 1394 or ieee1394). Also note that although you probably have the hardware (i.e. a chipset which has a 1394 port) you weren't using it when you ran lsmod, so you might not need it. In general, the best advice is to review your hardware (e.g. use lspci), and build in everything you know you need. If desperate, or if you have problems (such as your usb problems), one possible approach (apart from the suggestions already made) is to make everything that looks perhaps-related as a module. Once you have a kernel, test it to see if you can do everything you expect to do on the host system. Udev is now reasonably good at working out what to load for the hardware that is present, but each individual version of the kernel brings new bugs. In general, if people have a modifiable host system, and it is recent enough to build the kernel you are going to use in LFS, I recommend that people do that (_without_ an initrd or initramfs) - and keep tweaking it until it works sufficiently *before* they start LFS. ĸen -- After tragedy, and farce, OMG poneys! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: my lsmod versus LFS DVD lsmod
You are leaving out many necessary things. I'm no kernel expert, but how can you hope to boot without any disc drivers or file systems present? I think your problem goes much deeper than just a mouse not working. I'm surprised you aren't panicking with root file system not found. Mike The system boots, I can log into it remotely, it mounts my disks, I just can't use any keyboard or mouse. The filesystems and such are not modules, they are just included in the kernel. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: my lsmod versus LFS DVD lsmod
For example, I have no idea what ohci1394 is. Firewire. If you don't know that you need it, you probably don't. OK, thanks. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Which chipset for USB?
On 3/22/10, brown wrap gra...@yahoo.com wrote: Today I booted up the LFS 6.3 DVD and its works as well. I found its .config and tried to use it to build a kernal: make mrproper Copied it to .config make oldconfig make make modules_install and then copied everything to its place in the /boot directory. I had previuously done the same thing with the CentOS .config. Both end up in a 'panic'. In order to try that method, After you do the make oldconfig, you need to do make menuconfig and select to build into the kernel Y the few things that are totally necessary at boot time. This would include at the very least ext2 ext3 hard drive (I saw CONFIG_SATA_AHCI=y in your pastebin) The rule is that if the kernel must have it at boot time in order to access the hard drive and filesystem (before the filesystem has been accessed), then it must be built into the kernel or made available via initrd. Centos uses initrd, so it can have those essential things as modules, but if not using initrd, if those essential things are modules, it will panic. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: my lsmod versus LFS DVD lsmod
brown wrap wrote: The system boots, I can log into it remotely, it mounts my disks, I just can't use any keyboard or mouse. The filesystems and such are not modules, they are just included in the kernel. Ah, ok. That wasn't clear to me. Those are the only two loadable modules. Mike -- p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I speak only for myself, and I am unanimous in that! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page