Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on Sparc
  • Search

No /usr/src/linux as described in Installation Handbook.

Have a Sparc system? Post here.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
chris_andrew
Apprentice
Apprentice
User avatar
Posts: 291
Joined: Sun Sep 19, 2004 6:52 pm
Location: Wiltshire, UK

No /usr/src/linux as described in Installation Handbook.

  • Quote

Post by chris_andrew » Sat Sep 18, 2010 9:28 pm

Hi, all!

I'm doing an installation on an Ultra 5 and have got as far as section 7b.

I need to do

Code: Select all

ls -l /usr/src/linux
to check that it all looks good.

Unfortunately, under /usr/src all I have that looks relevant is linux-2.6.34-gentoo-r6. I asked on the gentoo-sparc IRC channel and was advised not to worry about it.

When I cd to /usr/src/linux-2.6.34-gentoo-r6 and try to do

Code: Select all

make menuconfig
I get:
No such file or directory. No rule to make target.....Stop.
Can anyone tell me how to proceed, as I don't want to mess things up, at this stage.

Many thanks,

Chris.
http://www.whylinuxisbetter.net/
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Sat Sep 18, 2010 9:32 pm

boot cd mount gentoo partitions, enter chroot

Code: Select all

cd /usr/src/
ln -s linux-2.6.34-gentoo-r6 linux
to make the symbolic link
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56264
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Sep 18, 2010 9:42 pm

chris_andrew,

The /usr/src/linux symlink is used by external kernel modules to find the kernel to build against.
Building in /usr/src/linux-2.6.34-gentoo-r6 is fine.

Does your /usr/src/linux-2.6.34-gentoo-r6 contain a file called Makefile ?
If not, your kernel source is damaged.

Code: Select all

emerge gentoo-sources
again.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
chris_andrew
Apprentice
Apprentice
User avatar
Posts: 291
Joined: Sun Sep 19, 2004 6:52 pm
Location: Wiltshire, UK

  • Quote

Post by chris_andrew » Sat Sep 18, 2010 10:07 pm

Hi, guys!
Does your /usr/src/linux-2.6.34-gentoo-r6 contain a file called Makefile ?
Yes it does, and other files such as kbuild, arch, crypto.

Does this mean I can do the ln -s linux-2.6.34-gentoo-r6 linux?

Cheers,

Chris.
http://www.whylinuxisbetter.net/
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56264
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Sep 18, 2010 10:27 pm

chris_andrew,

Yes. When you run make, it looks in Makefile for the target you specify. I this case menuconfig
Its a test file, so you can read it if you want.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Sat Sep 18, 2010 11:11 pm

i would say
USE="symlink" emerge =gentoo-sources-2.6.34-gentoo-r6

add the version to world, create the symlink auto

then "make help" will gave you options you can use to build your config (under Configuration Targets, paragraph of help output)
Top
chris_andrew
Apprentice
Apprentice
User avatar
Posts: 291
Joined: Sun Sep 19, 2004 6:52 pm
Location: Wiltshire, UK

  • Quote

Post by chris_andrew » Sun Sep 19, 2010 7:03 am

Well, having slept on it, I want to take your advice, but for some reason, I'm now being told I haven't any space left on my device. I can't even do a df-h! Something isn't happy (apart from me :-) ).

Not looking good.

Chris.
http://www.whylinuxisbetter.net/
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Sun Sep 19, 2010 2:16 pm

that usually means you are not in the chroot and are trying to manipulate the cd/ramdisk system.
boot cd, mount gentoo partitions (use your /dev names), enter chroot

Code: Select all

mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
cd /usr/src/linux
make menuconfig
df -h BTW
Top
chris_andrew
Apprentice
Apprentice
User avatar
Posts: 291
Joined: Sun Sep 19, 2004 6:52 pm
Location: Wiltshire, UK

  • Quote

Post by chris_andrew » Sun Sep 19, 2010 2:22 pm

My typo, I meant df -h. I carried-out the steps you outlined, a couple of hours ago. As I need to get the box built in the next few hours, I've installed Debian on it. I intend to try the install again when I have the time (hopefully this week).

Thanks to all that helped.

Chris.
http://www.whylinuxisbetter.net/
Top
Post Reply

9 posts • Page 1 of 1

Return to “Gentoo on Sparc”

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 Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy