LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Anyone help me i have problem on LFS 6.3 !!!! (https://www.linuxquestions.org/questions/linux-from-scratch-13/anyone-help-me-i-have-problem-on-lfs-6-3-a-4175445366/)

dpak.verma.maa@gmail.com 01-13-2013 02:36 AM

Anyone help me i have problem on LFS 6.3 !!!!
 
HI,
this is my first thread so forgive me for my mistakes ,
i was copying file on the boot directory , it says
The path to the kernel image may vary depending on the platform being used. The following command assumes an
x86 architecture:

cp -v arch/i386/boot/bzImage /boot/lfskernel-2.6.22.5

what is the path i am little confused with it , this is on the chapter 8.3.1 can any one please help me
thank you in advance :)

wigry 01-13-2013 03:47 AM

What guide/book are you using? Link please! Also as I understand you are trying to do a custom kernel compilation? What distro are you using and why you need the custom kernel? Also what does that LFS 6.3 mean? And finally WHY are you dealing with 2.6.22 kernel, that is a VERY old kernel, first it is 2.6 series (we have 3.7 already) and second, the most current 2.6 series is 2.6.39 if I remember correctly and even that is more than a year old.

druuna 01-13-2013 03:58 AM

@wigry: This is Linux From Scratch related (LFS)

@dpak.verma.maa@gmail.com: Depending on your architecture (32/i386 or 64/x86_64) the kernel image is either created in arch/i386/boot/ or arch/x86_64/boot/ for this kernel (things have changed for the new 3.x kernels ).

BTW: wigry is correct in stating that all this is very old. Why didn't you build the current stable LFS?

PS: I've asked a moderator to move this thread to the LFS sub-forum.

wigry 01-13-2013 04:18 AM

LFS is quite interesting choice for a apparently relatively new Linux user. Too many ways to get your fingers burned but provides massive amount of experience and unfortunately frustration and disappointment but eventually pays off I guess.

dpak.verma.maa@gmail.com 01-13-2013 10:24 AM

Thank you every one for the reply,
Can we skip the following command before starting GRUB
dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1
dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1

dpak.verma.maa@gmail.com 01-13-2013 10:34 AM

GRUB uses its own naming structure for drives and partitions in the form of (hdn,m)
i have 2 partition e.g sda1 which is swap and sda2 is lfs partition
> is this command "root (hd0,1) " correct ?

colucix 01-13-2013 10:35 AM

Moved: This thread is more suitable in Linux From Scratch forum and has been moved accordingly to help your thread/question get the exposure it deserves.

spiky0011 01-13-2013 10:40 AM

Hi

You should have root=(hd0,2)

hd0 is the 1st hard drive ,2 is the 2nd partition

Quote:

Can we skip the following command before starting GRUB
dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1
dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1
where dose this come from

sorry found it that command is for making a bootable floppy disc

dpak.verma.maa@gmail.com 01-13-2013 12:34 PM

@spiky0011
On which dir am i supposed to run the grub command.

spiky0011 01-13-2013 12:37 PM

Hi

It dosn't matter where you are running the command

dpak.verma.maa@gmail.com 01-13-2013 12:53 PM

HI,
It says Bash: grub command not found.
i tried on root and sources .

spiky0011 01-13-2013 12:59 PM

What is inside lfs boot dir

dpak.verma.maa@gmail.com 01-13-2013 01:04 PM

lfskernal, system.map, config.

spiky0011 01-13-2013 01:10 PM

Did you install grub???

There should be a dir called grub in there.

The only problem is I dont have any old lfs systems about so cant help to much, I would go back and maybe reinstall grub.

There should also be a grub folder in usr/lib/grub just check for that as well

dpak.verma.maa@gmail.com 01-13-2013 01:44 PM

usr/lib/grub is not there , i think i missed installing it.

spiky0011 01-13-2013 01:47 PM

Reinstall it I hope you have not missed anything else

dpak.verma.maa@gmail.com 01-13-2013 02:01 PM

it is not getting compiled , it says c compiler cannot create executable , check in config.log

spiky0011 01-13-2013 02:08 PM

Are you in the chroot enviroment

I would reboot then log back in as described in chapter 6.2.2 and 6.2.3. Make sure lfs is mounted at $LFS dont forget that lfs has to be in the root path

dpak.verma.maa@gmail.com 01-13-2013 02:18 PM

i am in root:/ , can you please instruct me

spiky0011 01-13-2013 02:22 PM

Have you ever rebooted lfs while you have been building it

dpak.verma.maa@gmail.com 01-13-2013 02:30 PM

no i have never rebooted

spiky0011 01-13-2013 02:36 PM

Did you build grub the same as you built the other packages untar grub cd into grub dir applied patch then run ./configure --prefix=usr make

dpak.verma.maa@gmail.com 01-13-2013 02:39 PM

on running the command ./configure --prefix=usr make , it shows an error that c compiler cannot create executable

druuna 01-13-2013 02:45 PM

Assuming LFS 6.3: Did you do these steps in the order shown?

logged in as root user, then:
- Mounting and Populating /dev as shown in 6.2.2
- Mounting Virtual Kernel File Systems as shown in 6.2.3
- chroot as shown in 6.60
- redo 6.34. GRUB-0.97

spiky0011 01-13-2013 02:47 PM

Thks druuna you beat me to it

dpak.verma.maa@gmail.com 01-13-2013 03:00 PM

yes, i did in the same order @dunna

spiky0011 01-13-2013 03:01 PM

Did it build this time?

dpak.verma.maa@gmail.com 01-13-2013 03:08 PM

do i have to build the whole process again from chapter 6.2 for installing grub ?

dpak.verma.maa@gmail.com 01-13-2013 03:11 PM

NO again same error

druuna 01-13-2013 03:18 PM

Looks like something is wrong with your build.

Are you able to run this when inside the chrooted environment:
Code:

echo 'main(){}' > dummy.c
cc dummy.c -v -Wl,--verbose &> dummy.log
readelf -l a.out | grep ': /lib'

If not then your LFS system isn't build in the correct way.

Btw: It's d r u u n a (druuna).

dpak.verma.maa@gmail.com 01-13-2013 03:28 PM

@Druuna
i am so sorry about that , and yes i had run that command and i got [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]

dpak.verma.maa@gmail.com 01-13-2013 03:32 PM

when i was building lfs 6.3 using live cd , on that livecd, the book which was there by default had skipped the grub , i just matched the lfs 6.3 book and the book which was there by default the grub was skipped

druuna 01-13-2013 03:33 PM

Quote:

Originally Posted by dpak.verma.maa@gmail.com (Post 4869211)
yes i had run that command and i got [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]

It isn't important if you could run that command before, can you run it now?

dpak.verma.maa@gmail.com 01-13-2013 03:36 PM

yes i can run the command

dpak.verma.maa@gmail.com 01-14-2013 05:48 AM

Can anyone send me built lfs 7.1/7.2(ISO) without GUI i wanna test how it works

druuna 01-14-2013 09:08 AM

Quote:

Originally Posted by dpak.verma.maa@gmail.com (Post 4869572)
Can anyone send me built lfs 7.1/7.2(ISO) without GUI i wanna test how it works

Have a look at this thread: https://www.linuxquestions.org/quest...em-4175433173/

PS: None of the LFS versions come with a GUI. LFS is a very basic linux installation that needs to be expanded to make it "workable" (that's what the BLFS project is all about).

dpak.verma.maa@gmail.com 01-14-2013 10:12 AM

@druuna,
Thank you for providing link, i wanted to ask that if i get this LFS( which link you gave )and can i build BLFS on it

druuna 01-14-2013 10:20 AM

Quote:

Originally Posted by dpak.verma.maa@gmail.com (Post 4869733)
i wanted to ask that if i get this LFS( which link you gave )and can i build BLFS on it

I guess so, this from the web page:
Quote:

This is a lfs system with some blfs packages, can be used for lfs building.

dpak.verma.maa@gmail.com 01-14-2013 12:06 PM

@drunna,
i have downloaded it. there are 3 files
BOOT
I386
X86_64
can you help me on installing in my local drive, i don't know how to install the already built LFS on system. I'll be thank full to you.

druuna 01-15-2013 01:45 AM

Quote:

Originally Posted by dpak.verma.maa@gmail.com (Post 4869813)
@drunna,
i have downloaded it. there are 3 files
BOOT
I386
X86_64
can you help me on installing in my local drive, i don't know how to install the already built LFS on system. I'll be thank full to you.

It might be a better idea if you ask the maker (xinglp), s/he knows all the ins and outs and is thus better equipped to help you with issue's related to this.

And again: It's d r u u n a (druuna).

dpak.verma.maa@gmail.com 01-15-2013 04:46 AM

@druuna ,
i am such a stupid please forgive me for your name really sorry. and i asked him but he is not replying , i think the thread is too old , do you have another link which can provide me LFS ISO i am dying to use it .

druuna 01-15-2013 05:34 AM

Quote:

Originally Posted by dpak.verma.maa@gmail.com (Post 4870413)
i asked him but he is not replying , i think the thread is too old

Maybe you need to be patient. The thread isn't that old and xinglp is an active member.

Quote:

do you have another link which can provide me LFS ISO i am dying to use it .
Nope, I don't.

You mention that you are dying to use it, but what are you actually planning on doing with it? As I mentioned before (post #36) LFS itself isn't very useful, only after doing parts of the BLFS project it becomes a useful system.

One can look at LFS in 2 ways:
1) A learning experience. Most of the people in this category will not bother with BLFS, they are interested in how Linux works.
2) Building a lean and mean Linux system. LFS needs to be completely done and those parts that are specific for ones needs from the BLFS project must be done (and maybe some extra packages not present in either LFS or BLFS).

dpak.verma.maa@gmail.com 01-15-2013 09:15 AM

@druuna
Thank you for replying every questions ,
Actually i want to check how LFS works then i'll implement BLFS that's why i asked weather i can do BLFS part on that LFS or not.


All times are GMT -5. The time now is 05:03 PM.