Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Magical Missing Modules, PPC Style!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
pfinlay
n00b
n00b


Joined: 26 May 2004
Posts: 21

PostPosted: Thu May 27, 2004 5:10 pm    Post subject: Magical Missing Modules, PPC Style! Reply with quote

Yeah, i read through the topic about network cards being missing and all (mine is)

I'm trying to install the PPC ver of Gentoo 2004.1 on a G4 and I can't modprobe anything - there are only 2 network modules that even exist (this is the universal liveCD) - ppp something.ko and slhc.ko

I need de4x5 for my DECchip 21142/43

With no network, what can i do?


Last edited by pfinlay on Thu May 27, 2004 6:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Thu May 27, 2004 6:20 pm    Post subject: Reply with quote

Two options:
1. Do a stage3 install. That can be done without networking.
2. Try another bootcd that does include the driver you need and follow Alternative Installation Guide.
_________________
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
Back to top
View user's profile Send private message
pfinlay
n00b
n00b


Joined: 26 May 2004
Posts: 21

PostPosted: Thu May 27, 2004 6:25 pm    Post subject: Reply with quote

I can't even get to stage3 because i have to emerge the sources and i can't emerge without networking..........or what am i missing?

thanks for the reply
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Thu May 27, 2004 6:31 pm    Post subject: Reply with quote

pfinlay wrote:
I can't even get to stage3 because i have to emerge the sources and i can't emerge without networking..........or what am i missing?
thanks for the reply
Stage3 does not build from sources. All the packages are available prebuild on the universal livecd. Read chapter 2 of the handbook.
_________________
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
Back to top
View user's profile Send private message
pfinlay
n00b
n00b


Joined: 26 May 2004
Posts: 21

PostPosted: Thu May 27, 2004 6:38 pm    Post subject: Reply with quote

yeah I was reading the handbook..........I guess since http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#book_part1_chap7

suggests otherwise, I am confused......
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Thu May 27, 2004 6:45 pm    Post subject: Reply with quote

Did you read this too?
Quote:
If you are performing a network-less install you can't pick any of the available kernels as we only provide sources for a few of them. If this is the case, you are restricted to using gentoo-sources, vanilla-sources, development-sources or gentoo-dev-sources.

This means that with a networkless stage3 install you can only install kernel sources that are on the cd. The handbook mentions for different flavors, but I'm not sure these four are actually all on the cd. After you've copied over the packages from the cd to /usr/portage/distfiles you can check which sources are really available.
_________________
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
Back to top
View user's profile Send private message
pfinlay
n00b
n00b


Joined: 26 May 2004
Posts: 21

PostPosted: Thu May 27, 2004 6:49 pm    Post subject: Reply with quote

nixnut wrote:
Did you read this too?
Quote:
If you are performing a network-less install you can't pick any of the available kernels as we only provide sources for a few of them. If this is the case, you are restricted to using gentoo-sources, vanilla-sources, development-sources or gentoo-dev-sources.

This means that with a networkless stage3 install you can only install kernel sources that are on the cd. The handbook mentions for different flavors, but I'm not sure these four are actually all on the cd. After you've copied over the packages from the cd to /usr/portage/distfiles you can check which sources are really available.


will gentoo-sources work on ppc tho?
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Thu May 27, 2004 6:59 pm    Post subject: Reply with quote

pfinlay wrote:
nixnut wrote:
Did you read this too?
Quote:
If you are performing a network-less install you can't pick any of the available kernels as we only provide sources for a few of them. If this is the case, you are restricted to using gentoo-sources, vanilla-sources, development-sources or gentoo-dev-sources.

This means that with a networkless stage3 install you can only install kernel sources that are on the cd. The handbook mentions for different flavors, but I'm not sure these four are actually all on the cd. After you've copied over the packages from the cd to /usr/portage/distfiles you can check which sources are really available.


will gentoo-sources work on ppc tho?
Yes, you need to select the right processor in the kernel config to compile a kernel that'll work on ppc.
_________________
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
Back to top
View user's profile Send private message
pfinlay
n00b
n00b


Joined: 26 May 2004
Posts: 21

PostPosted: Thu May 27, 2004 7:01 pm    Post subject: Reply with quote

thanks I'm gonna try it

I think i'm stuck on the livecd........i chrooted to /mnt/gentoo /bin/bash but it still says livecd in red on the leftmost part of the current bash line

i cd'ed to /usr/portage/distfiles and the following stuff is inside:
Code:
cvs-srv   module-init-tools   pcmcia-cs    vixis-cron
linux  orinoco    ssmptp    yaboot   metalog


i didn't put all the versions but that's the stuff in /usr/portage/distfiles

again, I don' tknow if i've chrooted successfully

i tried emerge gentoo-sources and it returns a gazillion versions of gentoo, all 2.4.2x in various releases....i've tried doing emerge on a specific one (say sys-kernel/gentoo-sources-2.4.25) but it says (Specific key requires an operator - try adding an '=') <-- whatever that means

thx for the help so far
Back to top
View user's profile Send private message
pfinlay
n00b
n00b


Joined: 26 May 2004
Posts: 21

PostPosted: Thu May 27, 2004 7:58 pm    Post subject: Reply with quote

bump (edited above post w/ current problems)
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Thu May 27, 2004 8:12 pm    Post subject: Reply with quote

I think you did extract the tarballs, but haven't copied the packages over yet. Btw building the kernel comes after emerging the system.
Did you do the following before chrooting:
# tar -xvjpf /mnt/cdrom/stages/stage3-<subarch>-20040412.tar.bz2
# tar -xvjf /mnt/cdrom/snapshots/portage-20040413.tar.bz2 -C /mnt/gentoo/usr
# mkdir /mnt/gentoo/usr/portage/distfiles
# cp /mnt/cdrom/distfiles/* /mnt/gentoo/usr/portage/distfiles/

Set compile settings
# nano -w /mnt/gentoo/etc/make.conf

Then chroot
# chroot /mnt/gentoo /bin/bash
# env-update
# source /etc/profile
_________________
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
Back to top
View user's profile Send private message
LeTene
Guru
Guru


Joined: 02 Mar 2004
Posts: 348
Location: Ah'll glass ye!

PostPosted: Thu May 27, 2004 8:26 pm    Post subject: Reply with quote

This will get the kernel sources after you've installed the distfiles as above, at least it does on x86:

Code:
emerge =vanilla-sources-2.4.24

_________________
Docs, Tips & Tricks at the Gentoo Wiki page.
Back to top
View user's profile Send private message
pfinlay
n00b
n00b


Joined: 26 May 2004
Posts: 21

PostPosted: Thu May 27, 2004 8:36 pm    Post subject: Reply with quote

nixnut wrote:
I think you did extract the tarballs, but haven't copied the packages over yet. Btw building the kernel comes after emerging the system.
Did you do the following before chrooting:
# tar -xvjpf /mnt/cdrom/stages/stage3-<subarch>-20040412.tar.bz2
# tar -xvjf /mnt/cdrom/snapshots/portage-20040413.tar.bz2 -C /mnt/gentoo/usr
# mkdir /mnt/gentoo/usr/portage/distfiles
# cp /mnt/cdrom/distfiles/* /mnt/gentoo/usr/portage/distfiles/

Set compile settings
# nano -w /mnt/gentoo/etc/make.conf

Then chroot
# chroot /mnt/gentoo /bin/bash
# env-update
# source /etc/profile


Yeah I ran the cp /mnt/cdrom/distfiles/* /mnt/gentoo/usr/portage/distfiles command again and it started asking if i wanted to overwrite existing files (so I'm assuming the files were copied already)

My make.conf ...........was perfect and then i stupidly rebooted and lost all my USE flags (i had manually typed in every USE flag and specified whether it was to be used or not)...........that's gone now by my make.conf is 'minimal' enough to work, according to the guide

Regarding the chroot thing, i'm not sure i understand what is happening. When i chroot it looks like this:
Code:
livecd root # chroot /mnt/gentoo /bin/bash
livecd / #


I don't know if that did anything....
Back to top
View user's profile Send private message
pfinlay
n00b
n00b


Joined: 26 May 2004
Posts: 21

PostPosted: Thu May 27, 2004 8:36 pm    Post subject: Reply with quote

LeTene wrote:
This will get the kernel sources after you've installed the distfiles as above, at least it does on x86:

Code:
emerge =vanilla-sources-2.4.24


Get it from where?

It keeps trying to get the internet but i have no network modules....
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Thu May 27, 2004 8:47 pm    Post subject: Reply with quote

pfinlay wrote:
LeTene wrote:
This will get the kernel sources after you've installed the distfiles as above, at least it does on x86:

Code:
emerge =vanilla-sources-2.4.24


Get it from where?

It keeps trying to get the internet but i have no network modules....

try emerge -k =sys-kernel/vanilla-sources-2.4.24
_________________
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
Back to top
View user's profile Send private message
pfinlay
n00b
n00b


Joined: 26 May 2004
Posts: 21

PostPosted: Thu May 27, 2004 8:51 pm    Post subject: Reply with quote

nixnut wrote:
pfinlay wrote:
LeTene wrote:
This will get the kernel sources after you've installed the distfiles as above, at least it does on x86:

Code:
emerge =vanilla-sources-2.4.24


Get it from where?

It keeps trying to get the internet but i have no network modules....

try emerge -k =sys-kernel/vanilla-sources-2.4.24


tried that but it tries to download :/

i have no network
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Thu May 27, 2004 9:00 pm    Post subject: Reply with quote

Dang, what kernel sources are in /usr/portage/distfiles?
Try some of those.
_________________
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
Back to top
View user's profile Send private message
pfinlay
n00b
n00b


Joined: 26 May 2004
Posts: 21

PostPosted: Thu May 27, 2004 9:03 pm    Post subject: Reply with quote

nixnut wrote:
Dang, what kernel sources are in /usr/portage/distfiles?
Try some of those.


linux-2.6.1.tar.bz2

i tried tar -xvf linux-2.6.1.tar.bz2 but it complains that it's not a valid tar file? wtf?

:(
Back to top
View user's profile Send private message
pfinlay
n00b
n00b


Joined: 26 May 2004
Posts: 21

PostPosted: Thu May 27, 2004 9:32 pm    Post subject: Reply with quote

maybe this will help (list of things i've done)

1) booted livecd
2) made proper partitions/file systems
3) rebooted to recognize partitions + initialized swap (hda3)
4) mounted /dev/hda2 to boot and /dev/hda5 to root (hda1 is apple's partition map; hda4 is a partition i made for logs)
5) mounted proc, dev, etc
6) fixed the date
7) cd /mnt/gentoo
8) tar -xvjpf /mnt/cdrom/stages/stage3-20040412.tar.bz2 (for me it has stage-3-ppc-20040412.tar.bz2)
9) tar -xvjf /mnt/cdrom/snapshots/portage-20040413.tar.bz2 -C /mnt/gentoo/usr
10) mkdir /mnt/gentoo/usr/portage/distfiles
11) cp /mnt/cdrom/distfiles/* /mnt/gentoo/usr/portage/distfiles/
12) nano -w /mnt/gentoo/etc/make.conf
13) chroot /mnt/gentoo /bin/bash
14) env-update
15) source /etc/profile
16) fixed timezone
17) emerge gentoo-sources, ppc-sources, ppc-sources-dev, and countless other variants........they all either try to download from the internet or claim to be missing.........and they are missing from /usr/portage (or i'm blind)

the only thing i can see in there that might be a kernel is linux-2.6.1.tar.bz2 but when i try to extract it it says it's not a valid tar file

i've done this process half a dozen times..........please help :(
Back to top
View user's profile Send private message
pfinlay
n00b
n00b


Joined: 26 May 2004
Posts: 21

PostPosted: Thu May 27, 2004 9:47 pm    Post subject: Reply with quote

Alright a little light of success to keep me afloat here

I navigated to /usr/portage/sys-kernel and found a ton of different 'sources' but i nano-ed a few of them and they seem to be pointing to remote download locations :( :( :( :(
Back to top
View user's profile Send private message
pfinlay
n00b
n00b


Joined: 26 May 2004
Posts: 21

PostPosted: Thu May 27, 2004 9:55 pm    Post subject: Reply with quote

another small success i managed to get linux-2.6.1.tar.bz2 to extract

guess i have to compile it myself or something 8O
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Thu May 27, 2004 9:56 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
Back to top
View user's profile Send private message
pfinlay
n00b
n00b


Joined: 26 May 2004
Posts: 21

PostPosted: Thu May 27, 2004 10:01 pm    Post subject: Reply with quote

another i found in linux-2.6.1 the source code for tulip

how can i compile it? it'll give me ethernet :)
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri May 28, 2004 7:44 pm    Post subject: Reply with quote

pfinlay wrote:
another i found in linux-2.6.1 the source code for tulip

how can i compile it? it'll give me ethernet :)


Read chapter 7 of the handbook carefully:
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#book_part1_chap7
In /usr/src/ there should now be a directory with a kernel source. Something like linux-2.6.1-r1. You need to create a link to this directory: ln -s /usr/src/linux-2.6.1-r1 /usr/src/linux. After that you need to create a kernel config: make menuconfig. This is when you select the options and drivers you want in your kernel. For most options there's a little help text available. If your not sure if you need something or not, choose to include it as a module. Include drivers for filesystems you created (ext2, ext3, reiser3) in the kernel, not as modules.
Since you're still using the livecd, you can do lsmod to find out which modules the cd loaded. After finishing the configuration it's time to compile the kernel and the modules: make && make modules_install.
After that make sure your boot partition is mounted and copy the kernel image and the map file there:
cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel-2.6.1-r1
cp /usr/src/linux/System.map /boot/System.map-2.6.1-r1
Then edit your grub.conf to include an entry for your kernel.
Since you did not build an initrd you need only two lines like:
title Gentoo 2.6.1-r1
kernel (hd0,0)/kernel-2.6.1-r1 root=/dev/hda3
_________________
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
Back to top
View user's profile Send private message
pvdabeel
Retired Dev
Retired Dev


Joined: 25 Mar 2003
Posts: 188
Location: Belgium

PostPosted: Mon May 31, 2004 1:42 am    Post subject: Re: Magical Missing Modules, PPC Style! Reply with quote

pfinlay wrote:
I need de4x5 for my DECchip 21142/43


I'll make sure it's added for 2004.2 - if something else is missing, just file me a bugreport, I can often just recompile the kernel and push out an updated livecd version in a few minutes.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum