Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ppc-sources-2.4.26-r1
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
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Mon Jun 07, 2004 6:17 am    Post subject: ppc-sources-2.4.26-r1 Reply with quote

Hi,

I am still using a kernel 2.4 on my iMac G4 (I had problem with the OF
framebuffer driver so I'll stick with 2.4 while rivafb is broken in 2.6).
There has been 2 close updates to the kernel source in the last week.
One to 2.4.26 and then to 2.4.26-r1. I installed 2.4.26 and it worked like
a charm. However 2.4.26-r1 is troublesome....
I have my OSX partition which is hfs+ in my fstab and it should be
mounted on boot. The kernel 2.4.26-r1 refuse to mount it, to be precise
the message is the following:
Code:
insmod: /lib/modules/2.4.26-ppc-r1/kernel/fs/hfsplus/hfsplus.o: couldn't find the kernel version the module was compiled for
insmod: /lib/modules/2.4.26-ppc-r1/kernel/fs/hfsplus/hfsplus.o: insmod hfsplus failed

I have exactly the same failure for the alsa driver as well. The kernel
2.4.26 doesn't have that problem. A diff between the configuration
files for the 2 kernel reveal that they are identical. I am a bit puzzled
by all this. the only real difference I can think of between the 2 kernels is
the fact that between the release of those 2 kernels, new versions of
gcc and glibc appeared in the ppc tree (I said ppc not ~ppc) and the two
kernels have been compiled with 2 different compilers (gcc3.2.3 and
gcc3.3.3_pre20040408-r1 and I put -fno-strict-aliasing in my CFLAGS).

If I don't have any suggestion about it between now and tomorrow I
will fill a bug report. I will probably try to compile the kernel 2.4.26
with the new gcc beforehand to see if it is a compiler problem rather
than a kernel problem.

For completeness here is my emerge info:
Code:
Portage 2.0.50-r7 (default-ppc-2004.1, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.26-ppc-r1)
=================================================================
System uname: 2.4.26-ppc-r1 ppc 7450, altivec supported
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=7450 -pipe -maltivec -mabi=altivec -fno-strict-aliasing"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=7450 -pipe -maltivec -mabi=altivec -fno-strict-aliasing"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache"
GENTOO_MIRRORS="ftp://ftp.vic.keypoint.com.au http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo http://mirror.tucdemonic.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa arts berkdb cdr cups dvd dvdr esd fbcon foomaticdb gdbm gif gpm gtk2 imlib jpeg kde libwww mitshm motif mozilla ncurses nls oggvorbis opengl oss pam perl png ppc ppds python qt readline sdl sheep slang ssl tcpd tetex truetype xml xml2 xv"


Cheers,
Francois
Back to top
View user's profile Send private message
ralph
Advocate
Advocate


Joined: 02 Mar 2003
Posts: 2001
Location: Hamburg

PostPosted: Mon Jun 07, 2004 7:01 am    Post subject: Reply with quote

Did you do a make modules modules_install?

If that alone doesn't help, copying your .config to some place safe, then doing an make mrproper and then copying it back and compiling the kernel and the modules again should help.
_________________
The computer can't tell you the emotional story. It can give you the exact mathematical design, but what's missing is the eyebrows.
- Frank Zappa
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Mon Jun 07, 2004 10:38 pm    Post subject: Reply with quote

ralph wrote:
Did you do a make modules modules_install?

If that alone doesn't help, copying your .config to some place safe, then doing an make mrproper and then copying it back and compiling the kernel and the modules again should help.


Yes I did "make modules modules_install". I even checked that the directory
was created and that the modules in question were there. I also did have a
go at mrproper and all that kind of thing. Twice. I can tell you it doesn't come
from that. In fact I should look if I can load any modules at all, when I
remember the command to use to list all the loaded modules.
Back to top
View user's profile Send private message
genfoo
Apprentice
Apprentice


Joined: 17 Apr 2003
Posts: 192

PostPosted: Tue Jun 08, 2004 5:54 am    Post subject: Reply with quote

There was another post somewhere in here recently about uname segfaulting ... you might look for that one as it sounds like that might be the problem (I suspect it uses uname to find the kernel version). Maybe try uname -a and see if it spits out right info and/or rebuild the ebuild that uname comes in.
Back to top
View user's profile Send private message
ralph
Advocate
Advocate


Joined: 02 Mar 2003
Posts: 2001
Location: Hamburg

PostPosted: Tue Jun 08, 2004 7:09 am    Post subject: Reply with quote

That's really strange.
I think the command you are looking for is lsmod btw.
_________________
The computer can't tell you the emotional story. It can give you the exact mathematical design, but what's missing is the eyebrows.
- Frank Zappa
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Tue Jun 08, 2004 11:09 pm    Post subject: Reply with quote

Thanks to both of you genfoo and ralph. I will investigate the uname
issue as well as looking if I can load any module at all with lsmod.
If that is not related to uname I will try to recompile 2.4.26 with my
newer gcc as I wonder if it somewhat related to this bug https://bugs.gentoo.org/show_bug.cgi?id=42689.
Both gcc and kernel versions have changed but there may be some strange problems leftover.

I'll deal with this has soon as I can go back to my linux side.

Cheers,
Francois
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Wed Jun 09, 2004 1:43 am    Post subject: Reply with quote

Hi,

I looked at uname and it worked but to be on the safe side I re-emerged
coreutils which is the package including uname to no avail. Using
lsmod show that the kernel doesn't load any modules, by comparison
on my kernel 2.4.26 I have
Code:
bash-2.05b$ lsmod
Module                  Size  Used by    Not tainted
sg                     29732   0 (autoclean) (unused)
sr_mod                 15668   0 (autoclean) (unused)
sd_mod                 13084   0 (autoclean) (unused)
scsi_mod               83936   3 (autoclean) [sg sr_mod sd_mod]
serial                 50712   0 (autoclean) (unused)
hfsplus                41536   1 (autoclean)
i2c-keywest             7488   0 (autoclean) (unused)
snd-powermac           33796   0
snd-pcm                67088   0 [snd-powermac]
snd-timer              17232   0 [snd-pcm]
snd                    38292   0 [snd-powermac snd-pcm snd-timer]
soundcore               4488   0 [snd]
snd-page-alloc          6468   0 [snd-pcm]
i2c-core               14752   0 [i2c-keywest snd-powermac]


I recompiled the kernel 2.4.26 with the gcc3.3.3_pre to check if
it was a gcc problem rather than a kernel problem. And sure enougth
after recompiling 2.4.26 with gcc3.3.3_pre it started showing the
same symptoms. I will therefore attach this as a gcc bug.
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