Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

problem installing gentoo by command-line

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Locked
Advanced search
7 posts • Page 1 of 1
Author
Message
maartenlambrecht
n00b
n00b
Posts: 52
Joined: Thu Jun 28, 2007 12:20 pm
Location: Dentergem (Belgium)

problem installing gentoo by command-line

Post by maartenlambrecht » Sat Aug 04, 2007 12:17 pm

Hi
I'm trying to install gentoo by commandline. When I reach this line of code in the handbook, it gives an error.

Code: Select all

livecd linux # cp arch/x86_64/boot/bzImage /boot/kernel-2.6.19-gentoo-r5
The error: cp: cannot stat 'arch/x86_64/boot/bzImage': No such file or directory
After this I tryed using the genkernel but it doesn't want to do "genkernel all"

What do I have to do?
Top
nixnut
Bodhisattva
Bodhisattva
User avatar
Posts: 10974
Joined: Fri Apr 09, 2004 1:43 pm
Location: the dutch mountains

Post by nixnut » Sat Aug 04, 2007 12:22 pm

Looks like you didn't build a kernel yet. Did you install genkernel? What is the error message you get?
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56088
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

Post by NeddySeagoon » Sat Aug 04, 2007 12:27 pm

maartenlambrecht,

This command copies your kernel binary to /boot, where grub expects to find it. Your error says the file cannot be found
To get a kernel binary (the bzImage) you must first have run the commands

Code: Select all

cd /usr/src/linux
make menuconfig   (and set the options you want)
make
This last command compile the kernel.

However, notice that

Code: Select all

cp arch/x86_64/boot/bzImage /boot/kernel-2.6.19-gentoo-r5
the source path name does not start with a /
That means its relative to the directory you happen to be in. Normally that would be /usr/src/linux. If you have stopped and come back it need not be, so the command will fail.
code]cp /usr/src/linux/arch/x86_64/boot/bzImage /boot/kernel-2.6.19-gentoo-r5[/code]Will work from anywhere. Notice the /usr/src/linux on the front of the source file name.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
maartenlambrecht
n00b
n00b
Posts: 52
Joined: Thu Jun 28, 2007 12:20 pm
Location: Dentergem (Belgium)

Post by maartenlambrecht » Sat Aug 04, 2007 12:28 pm

I first tryed to compile my own kernel. But when I had to coppy it, it said the error(see above).
Then I tryed emerging the genkernel this went ok, but then I had to typ

Code: Select all

genkernel all.
This should take some minutes but I ccould see some warnings running over the screen.
One of the errors is: ERROR: Failed to compile the "prepare" target

Code: Select all

make
gives a lot of errors.

How can I use the genkernel and use it?
Thanks a lot for the replies!
I'm waiting in front of my computer to test your sollutions!
Top
maartenlambrecht
n00b
n00b
Posts: 52
Joined: Thu Jun 28, 2007 12:20 pm
Location: Dentergem (Belgium)

Post by maartenlambrecht » Sat Aug 04, 2007 1:21 pm

Found something in the log. All the warnings are starting with .config

In the x86 manual you have to coppy the config but in the x64 you don't have to do this. Is this ok?

The errors look like this:
.config:47:warning: trying to assign nonexistent symbol GART.IOMMU
... ....................

How can I coppy the config file of genkernel??
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56088
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

Post by NeddySeagoon » Sat Aug 04, 2007 3:33 pm

maartenlambrecht,

Errors such as your sample happen when you try to configure a kernel for one sort of CPU on a different system.
They are harmless, if thats what you intended.

It appears as if you are trying to build a kernel for some CPU other than than the host system you want to build on.

What does

Code: Select all

less /proc/cpuinfo
show ?
Show us your

Code: Select all

emerge --info output
too please.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
maartenlambrecht
n00b
n00b
Posts: 52
Joined: Thu Jun 28, 2007 12:20 pm
Location: Dentergem (Belgium)

Post by maartenlambrecht » Sat Aug 04, 2007 7:53 pm

I found the solution for my problem here: http://forums.gentoo.org/viewtopic-p-4168783.html

But now I still have a serious problem.

When rebooting I have to wait a minute and then there appears a screen that a file couldn't be found.
After this I have to push a button and afterwards the dual boot menu of GRUB appears but without collor. When I select XP it shows me the screen to enter safe mode or to start normal... When I choose Gentoo it doesn't start. File not found.

I use GRUB-static (64bit) and my partition table looks like this:

Code: Select all

sda1      xp
sda2      boot
sda3      swap
sda4      extended
sda5      root
my grub.conf file looks like this:

Code: Select all

default 0
timeout 30
splashimage=(hd0,1)/boot/grub/splash.xpm.gz

title=Gentoo Linux 2.6.21-r4
root (hd0,4)
kernel /boot/kernel-genkernel-x86_64-2.6.21-gentoo-r4 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda5 udev
initrd /boot/initramfs-genkernel-x86_64-2.6.21-gentoo-r4

# Only in case you want to dual-boot
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1

Mod edit by NeddySeagoon
Thread continued in the Grub Sticky
Top
Locked

7 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic