Re: LFS grub start error
Bruce Dubbs bruce.dubbs at gmail.com writes: -- Bruce I haven't got /dev/sda4, my /dev/sda has got only two (sda1 e sda2) brw-rw 1 root daemon 8, 0 Jan 2 18:31 /dev/sda brw-rw 1 root daemon 8, 1 Jan 2 18:31 /dev/sda1 brw-rw 1 root daemon 8, 2 Jan 2 18:31 /dev/sda2 brw-rw 1 root daemon 8, 16 Jan 2 18:31 /dev/sdb brw-rw 1 root daemon 8, 17 Jan 2 18:31 /dev/sdb1 brw-rw 1 root daemon 8, 18 Jan 2 18:31 /dev/sdb2 brw-rw 1 root daemon 8, 19 Jan 2 18:31 /dev/sdb3 brw-rw 1 root daemon 8, 20 Jan 2 18:31 /dev/sdb4 So i have modified grub.cfg with set root=(hd0,1) and root=/dev/sda2 with boot on /dev/sda1 In fstab i have done the same /dev/sda1 /boot ext3 ... /dev/sda2 / ext3 Now i obtain this error: .. (i cannot read all because is very speed ... How can read all? Is there alog?) list of all partions: 0800 sda 0801 sda1 0802 sda2 0803 sda3 0804 sda4 0b00 sr0 driver No filesystem could mount root, tried: ext3 vfat msdos iso9660 Kernel panic: not syncing: VFS: Unable to mount root fs on unknown block(8,2) I am blocked. Then i cannot use 8.4.3 Testing teh configuration with Fedora 14, because /sbin/reboot restarts all and doesn't show prompt grub -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: tools directory question
On Wed, 5 Jan 2011 14:19:48 -0800 Brian Winfrey bwcod...@gmail.com wrote: After completing the pre chroot steps I find I have /tools/i686-pc-linux-gnu and /tools/i686-lfs-linux-gnu directories (some libs too). Is this correct, or did I miss something along the way. I guess they have to do with first and second passes of binutils/gcc, but I want to be sure before I proceed. Yes, for a 32 bit build it's normal to have /tools/i686-pc-linux-gnu and /tools/i686-lfs-linux-gnu because we pass the option --target=$LFS_TGT to the configure scripts of binutils and gcc the first time around but not the second time. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: LFS grub start error
On Thu, 6 Jan 2011 10:56:23 + (UTC) Rosario Turco rosario_tu...@virgilio.it wrote: Bruce Dubbs bruce.dubbs at gmail.com writes: -- Bruce I haven't got /dev/sda4, my /dev/sda has got only two (sda1 e sda2) brw-rw 1 root daemon 8, 0 Jan 2 18:31 /dev/sda brw-rw 1 root daemon 8, 1 Jan 2 18:31 /dev/sda1 brw-rw 1 root daemon 8, 2 Jan 2 18:31 /dev/sda2 brw-rw 1 root daemon 8, 16 Jan 2 18:31 /dev/sdb brw-rw 1 root daemon 8, 17 Jan 2 18:31 /dev/sdb1 brw-rw 1 root daemon 8, 18 Jan 2 18:31 /dev/sdb2 brw-rw 1 root daemon 8, 19 Jan 2 18:31 /dev/sdb3 brw-rw 1 root daemon 8, 20 Jan 2 18:31 /dev/sdb4 So i have modified grub.cfg with set root=(hd0,1) and root=/dev/sda2 with boot on /dev/sda1 In fstab i have done the same /dev/sda1 /boot ext3 ... /dev/sda2 / ext3 Now i obtain this error: .. (i cannot read all because is very speed ... How can read all? Is there alog?) list of all partions: 0800 sda 0801 sda1 0802 sda2 0803 sda3 0804 sda4 The kernel sees 4 partitions on /dev/sda. 0b00 sr0 driver No filesystem could mount root, tried: ext3 vfat msdos iso9660 Kernel panic: not syncing: VFS: Unable to mount root fs on unknown block(8,2) Clearly, what your host Fedora system sees as /dev/sdb your LFS kernel sees as /dev/sda. Try altering your grub.cfg to pass your LFS kernel the option root=/dev/sdb2 linux /boot/vmlinux-lfs root=/dev/sdb2 Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: jhalfs not work with xz-utils
It looks like the jhalfs use the below section instead of filename. lfs/{chapter05,chapter06}/xz.xml line 9 ?dbhtml filename=xz-utils.html? 2011/1/6 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: I patched the jhalfs. Maybe I should patch the lfs book instead. BTW: Is there any tools for editing the lfs book in a easier way, other than vim. No, that's how we've always done it. diff -Naur jhalfs.orig/LFS/master.sh jhalfs/LFS/master.sh --- jhalfs.orig/LFS/master.sh +++ jhalfs/LFS/master.sh @@ -100,7 +100,7 @@ # Grab the name of the target (minus the -pass1 or -pass2 in the case of gcc # and binutils in chapter 5) - name=`echo ${this_script} | sed -e 's...@[0-9]\{3\}-@@' -e 's...@-pass[0-9]\{1\}@@'` + name=`echo ${this_script} | sed -e 's...@[0-9]\{3\}-@@' -e 's...@-pass[0-9]\{1\}@@' -e 's...@-utils@@'` # Set the dependency for the first target. if [ -z $PREV ] ; then PREV=022-settingenvironment ; fi @@ -195,7 +195,7 @@ esac # Grab the name of the target. - name=`echo ${this_script} | sed -e 's...@[0-9]\{3\}-@@' -e 's,'$N',,'` + name=`echo ${this_script} | sed -e 's...@[0-9]\{3\}-@@' -e 's,'$N',,' -e 's...@-utils@@'` # Find the version of the command files, if it corresponds with the building of # a specific package. We need this here to can skip scripts not needed for It appears that 'this_script' is taken from the xml filename. I can easily change that. The problem is that the home page calls it 'XZ Utils', but the package is named xz-version. I went ahead and made the change in rev 9438. It shouldn't make any changes to rendered book. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: tools directory question
On Thu, Jan 6, 2011 at 6:28 AM, Andrew Benton b3n...@gmail.com wrote: On Wed, 5 Jan 2011 14:19:48 -0800 Brian Winfrey bwcod...@gmail.com wrote: After completing the pre chroot steps I find I have /tools/i686-pc-linux-gnu and /tools/i686-lfs-linux-gnu directories (some libs too). Is this correct, or did I miss something along the way. I guess they have to do with first and second passes of binutils/gcc, but I want to be sure before I proceed. Yes, for a 32 bit build it's normal to have /tools/i686-pc-linux-gnu and /tools/i686-lfs-linux-gnu because we pass the option --target=$LFS_TGT to the configure scripts of binutils and gcc the first time around but not the second time. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page I thought that was the case. Thanks, I can continue now. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Error in 6.7. Linux-2.6.35.4 API Headers
Muruganand Karthikeyan muruthegun at gmail.com writes: Hi All, I'm facing an error in 6.7 linux API headers specifically the step ...snip... There are a whole lot of previous posts with the exact same error. But a resolution was not posted. I've checked my GCC/Binutils compile logs and they seem to be alright. The sanity tests passed as well. So I've kind of hit a dead end here. Any help is much appreciated. Thanks, Anand I am experiencing the exact same issue. A directory listing indicates that all the files exist; however attempting to execute them results in the No such file or directory, which leads me to believe it is missing a dependency. A ldd file results in the same error. Guidance anyone? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: LFS grub start error
Rosario Turco wrote: I haven't got /dev/sda4, my /dev/sda has got only two (sda1 e sda2) brw-rw 1 root daemon 8, 0 Jan 2 18:31 /dev/sda brw-rw 1 root daemon 8, 1 Jan 2 18:31 /dev/sda1 brw-rw 1 root daemon 8, 2 Jan 2 18:31 /dev/sda2 brw-rw 1 root daemon 8, 16 Jan 2 18:31 /dev/sdb brw-rw 1 root daemon 8, 17 Jan 2 18:31 /dev/sdb1 brw-rw 1 root daemon 8, 18 Jan 2 18:31 /dev/sdb2 brw-rw 1 root daemon 8, 19 Jan 2 18:31 /dev/sdb3 brw-rw 1 root daemon 8, 20 Jan 2 18:31 /dev/sdb4 So i have modified grub.cfg with set root=(hd0,1) and root=/dev/sda2 with boot on /dev/sda1 In fstab i have done the same /dev/sda1 /boot ext3 ... /dev/sda2 / ext3 Now i obtain this error: .. (i cannot read all because is very speed ... How can read all? Is there alog?) list of all partions: 0800 sda 0801 sda1 0802 sda2 0803 sda3 0804 sda4 0b00 sr0 driver No filesystem could mount root, tried: ext3 vfat msdos iso9660 Kernel panic: not syncing: VFS: Unable to mount root fs on unknown block(8,2) I am blocked. Then i cannot use 8.4.3 Testing teh configuration with Fedora 14, because /sbin/reboot restarts all and doesn't show prompt grub Do you get a menu before it starts to build? If so type 'c' when it comes up and enter commands there. I'd also recommend cutting down the grub.cfg file to the minimum and posting it here, You really only need something like this to start: insmod ext2 set root=(hd0,1) menuentry Linux 2.6.36.2-lfs { linux /linux-2.6.36.2-lfs root=/dev/sda1 ro But it really sounds like you are booting, but there is a problem with the parameters. Note that the 'set root=(hd0,1)' is for grub and 'root=/dev/sda1' is for the linux kernel. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: LFS grub start error
Bruce Dubbs bruce.dubbs at gmail.com writes: Rosario Turco wrote: I haven't got /dev/sda4, my /dev/sda has got only two (sda1 e sda2) brw-rw 1 root daemon 8, 0 Jan 2 18:31 /dev/sda brw-rw 1 root daemon 8, 1 Jan 2 18:31 /dev/sda1 brw-rw 1 root daemon 8, 2 Jan 2 18:31 /dev/sda2 brw-rw 1 root daemon 8, 16 Jan 2 18:31 /dev/sdb brw-rw 1 root daemon 8, 17 Jan 2 18:31 /dev/sdb1 brw-rw 1 root daemon 8, 18 Jan 2 18:31 /dev/sdb2 brw-rw 1 root daemon 8, 19 Jan 2 18:31 /dev/sdb3 brw-rw 1 root daemon 8, 20 Jan 2 18:31 /dev/sdb4 So i have modified grub.cfg with set root=(hd0,1) and root=/dev/sda2 with boot on /dev/sda1 In fstab i have done the same /dev/sda1 /boot ext3 ... /dev/sda2 / ext3 Now i obtain this error: .. (i cannot read all because is very speed ... How can read all? Is there alog?) list of all partions: 0800 sda 0801 sda1 0802 sda2 0803 sda3 0804 sda4 0b00 sr0 driver No filesystem could mount root, tried: ext3 vfat msdos iso9660 Kernel panic: not syncing: VFS: Unable to mount root fs on unknown block(8,2) I am blocked. Then i cannot use 8.4.3 Testing teh configuration with Fedora 14, because /sbin/reboot restarts all and doesn't show prompt grub Do you get a menu before it starts to build? If so type 'c' when it comes up and enter commands there. I'd also recommend cutting down the grub.cfg file to the minimum and posting it here, You really only need something like this to start: insmod ext2 set root=(hd0,1) menuentry Linux 2.6.36.2-lfs { linux /linux-2.6.36.2-lfs root=/dev/sda1 ro But it really sounds like you are booting, but there is a problem with the parameters. Note that the 'set root=(hd0,1)' is for grub and 'root=/dev/sda1' is for the linux kernel. -- Bruce I have reduced grub.cfg at minimum as your suggest. Now the error is: xxx] md: ... autorun DONE. VFS: Cannot open root device sda1 or un-known block(8,1) Please append a correct root= boot options. Here are the available partitions: 0800 n sda driver: sd 0802 sda2 0803 sda3 0804 sda4 0b00 sr0 driver: sr No filesystem could mount root, tried: ext3 vfat msdos iso9660 Kernel panic: not syncing: VFS: Unable to mount root fs on unknown block(8,1) GRUB.CFG ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then load_env fi set default=0 if [ ${prev_saved_entry} ]; then set saved_entry=${prev_saved_entry} save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z ${boot_once} ]; then saved_entry=${chosen} save_env saved_entry fi } insmod ext2 set root='(hd1,1)' set timeout=5 ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/10_linux ### menuentry GNU/Linux, with Linux 2.6.36-lfs-6.7 --class gnu-linux --class gnu --class os { insmod ext2 set root='(hd1,1)' search --no-floppy --fs-uuid --set c544afb8-6417-4d14-89e0-5aa35173c3c3 echoLoading Linux 2.6.36-lfs-6.7 ... linux /boot/vmlinux-2.6.36-lfs-6.7 root=/dev/sda1 ro } ### END /etc/grub.d/10_linux ### FSTAB /dev/sdb1 / ext3 defaults 1 1 /dev/sdb2 /home ext3 defaults 1 1 /dev/sdb3 swap swap pri=1 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 devpts /dev/pts devpts gid=4,mode=620 0 0 tmpfs /dev/shm tmpfs defaults 0 0 My /dev now is: /dev/sda /dev/sda1 /dev/sda2 /dev/sdb /dev/sdb1 /dev/sdb2 /dev/sdb3 Is it possible to see a log of the complete error? For example the output of dmesg ... -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Error in 6.7. Linux-2.6.35.4 API Headers
On Thu, Jan 06, 2011 at 04:25:06PM +, Andrew Burns wrote: Muruganand Karthikeyan muruthegun at gmail.com writes: Hi All, I'm facing an error in 6.7 linux API headers specifically the step ...snip... There are a whole lot of previous posts with the exact same error. But a resolution was not posted. I've checked my GCC/Binutils compile logs and they seem to be alright. The sanity tests passed as well. So I've kind of hit a dead end here. Any help is much appreciated. Thanks, Anand I am experiencing the exact same issue. A directory listing indicates that all the files exist; however attempting to execute them results in the No such file or directory, which leads me to believe it is missing a dependency. A ldd file results in the same error. Guidance anyone? If a binary program file created in chapter 5 exists, but you cannot execute it after you have entered chroot, then it must be linked to the host's files. If ldd is linked to the host's files, you have a major problem - either you didn't run 'adjusting the toolchain', or it didn't work. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: LFS grub start error
Rosario Turco wrote: Is it possible to see a log of the complete error? For example the output of dmesg ... Until you get it to boot, no. If it can't mount /, where would it write to? I don't think you understand. Make a grub.cfg file that is exactly 5 lines long: insmod ext2 set root='(hd0,1)' menuentry LFS { linux /boot/vmlinux-2.6.36-lfs-6.7 root=/dev/sda1 ro } What partition did you use for LFS? /dev/sdb1? Try all variations of root=/dev/sd??. fstab at this point doesn't matter. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Udev-165 (apparently) System Crash
On Thu, 2011-01-06 at 02:08:45 AM, Simon Geard wrote ... if the system is completely frozen, it may be hardware related ...Hi Simon,Very good points, overall.When it crashes it's frozen all right (i.e. a crash crash).No hardware changes as of late.Seems some old hardware the latest Udev iteration started disagreeing with.I have a software-"mirror" system, more modern, SATA based, which still boots verysmoothly.If I correctly read the frozen screen, and taking into account the Udev stepwhere the crash occurs, seems an IRQ conflict of some sort.I'll dig into it.The important thing for me is you appear to support me, even if indirectly,in my attempt to avoid kdump in my troubleshoot, if at all possible :)Thank you very much,Best Wishes,-- Alex -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: jhalfs not work with xz-utils
On Jan 6, 2011, at 11:18 AM, xinglp wrote: It looks like the jhalfs use the below section instead of filename. lfs/{chapter05,chapter06}/xz.xml line 9 ?dbhtml filename=xz-utils.html? Yes, right it does ignore my previous email. Bruce if you would like I'll fix this in jhalfs, rather than making more changes to the book. Thomas -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: jhalfs not work with xz-utils
Thomas Pegg wrote: On Jan 6, 2011, at 11:18 AM, xinglp wrote: It looks like the jhalfs use the below section instead of filename. lfs/{chapter05,chapter06}/xz.xml line 9 ?dbhtml filename=xz-utils.html? Yes, right it does ignore my previous email. Bruce if you would like I'll fix this in jhalfs, rather than making more changes to the book. Yes, that would be great Thomas. Thanks. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Udev-165 (apparently) System Crash
On Thu, Jan 6, 2011 at 6:36 PM, al...@verizon.net wrote: If I correctly read the frozen screen, and taking into account the Udev step where the crash occurs, seems an IRQ conflict of some sort. I'll dig into it. Intriguing. This is something that you should report to both LKML and linux-hotplug (the Udev list). Also, be sure to provide the kdump of that kernel, the log, and the hardware that you think is causing the Udev issue. -- William Immendorf The ultimate in free computing. Messages in plain text, please, no HTML. GPG key ID: 1697BE98 If it's not signed, it's not from me. -- Every nonfree program has a lord, a master -- and if you use the program, he is your master. Richard Stallman -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Error in 6.7. Linux-2.6.35.4 API Headers
I'm facing an error in 6.7 linux API headers specifically the step ...snip... Thanks, Anand I am experiencing the exact same issue. A directory listing indicates that all the files exist; however attempting to execute them results in the No such file or directory, which leads me to believe it is missing a dependency. A ldd file results in the same error. Guidance anyone? Make sure you delete all the source directories that you untar, before adjusting the tool chain. Have you run the script for checking the host system requirements? I noticed that on my ubuntu host /bin/sh was linked to dash. I changed this to point to bash. Also I used the following cflags: -march=native, -pipe, -O2, -fomit-frame-pointer. Not sure if they have any bearing on the outcome, but, since its a change that I made since my last unsuccessful attempt at LFS , i thought i might add it here anyways. Anand -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Udev-165 (apparently) System Crash
On Thu, 2011-01-06 at 18:36 -0600, al...@verizon.net wrote: The important thing for me is you appear to support me, even if indirectly, in my attempt to avoid kdump in my troubleshoot, if at all possible :) Happy to help. 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: Error in 6.7. Linux-2.6.35.4 API Headers
2010/12/24 Muruganand Karthikeyan muruthe...@gmail.com Hi All, I'm facing an error in 6.7 linux API headers specifically the step make headers_check I get the following error: CHK include/linux/version.h UPD include/linux/version.h HOSTCC scripts/basic/fixdep gcc: error trying to exec '/tools/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../i686-pc-linux-gnu/bin/as': execv: No such file or directory make[1]: *** [scripts/basic/fixdep] Error 1 make: *** [scripts_basic] Error 2 There are a whole lot of previous posts with the exact same error. But a resolution was not posted. I've checked my GCC/Binutils compile logs and they seem to be alright. The sanity tests passed as well. So I've kind of hit a dead end here. Any help is much appreciated. Thanks, Anand -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page I've passed this step perfectly.in my experience ,you should uncompress the linux in source directory,and then cd into linux subdirectory,then do all following the book. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page