Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Instaling Gentoo with kernel-2.4.37...?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Huk
n00b
n00b


Joined: 03 Apr 2009
Posts: 4

PostPosted: Fri Apr 03, 2009 3:19 pm    Post subject: Instaling Gentoo with kernel-2.4.37...? Reply with quote

Hello everybody.

I'm trying to install Gentoo... with kernel-2.4 (Yes, I need it for specific hardware that doesn't work with 2.6). I'm trying to follow standard stage3 installation guide. I emerged gcc-3.4 and was even able to compile kernel-2.4.37. However, after I tried to boot my system, after few seconds of booting process I got:

Code:

FATAL: Kernel too old
Kernel Panic: Attempted to kill init!


So... my question is simple – is there a way to compile and use Gentoo with kernel-2.4 ? Maybe using stage1 installation??

Thanks in advance.

P.S
Sorry for my English, it is not my native language.
Back to top
View user's profile Send private message
Simba7
l33t
l33t


Joined: 22 Jan 2007
Posts: 706
Location: Billings, MT, USA

PostPosted: Fri Apr 03, 2009 3:50 pm    Post subject: Reply with quote

What is the hardware that doesn't like 2.6?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Fri Apr 03, 2009 4:51 pm    Post subject: Reply with quote

Huk,

Kernel 2.4 does not support udev or nptl, which are central to Gentoo today.
You can use devfs or a static /dev to get around udev but nptl is more of an issue.
You will need an old glibc.

In effect, your are stuck with old software, much of which will not be in portage any more.

It may be better to migrate the driver you need to the 2.6 kernel, rather than adapt the install to the hardware.

Code:
FATAL: Kernel too old
looks like an old kernel and a new glibc.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Huk
n00b
n00b


Joined: 03 Apr 2009
Posts: 4

PostPosted: Fri Apr 03, 2009 5:48 pm    Post subject: Reply with quote

@Simba7:
Kyro graphic card, there are drivers for kernel-2.4 only (except vesa but this can hardly by called “driver” ;] )

@NeddySeagoon:
I see... ok, so maybe one more question, if I install older distro with kernel 2.4 (Debian Sarge or Slackware 11 or something), will I be able to compile and use new glibc? In other words, can I compile new glibc (glibc-2.9) with kernel 2.4 or do I have to use kernel 2.6?

Thanks in advance.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Fri Apr 03, 2009 6:28 pm    Post subject: Reply with quote

Huk,

I think you must use glibc-2.2.

What does lspci show your hardware to be ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Simba7
l33t
l33t


Joined: 22 Jan 2007
Posts: 706
Location: Billings, MT, USA

PostPosted: Fri Apr 03, 2009 9:55 pm    Post subject: Reply with quote

Huk wrote:
@Simba7:
Kyro graphic card, there are drivers for kernel-2.4 only (except vesa but this can hardly by called “driver” ;] )

Ouch.. This card is on par with a GeForce2.

Plus, it looks like the driver is a BLOB. It will only work with 2.4 (which blows chunks) and the support bites.

The problem with Kernel 2.4 is getting everything working correctly. Most require 2.6 lately and getting it to compile on 2.4 will make it throw a tantrum.
Back to top
View user's profile Send private message
Carnildo
Guru
Guru


Joined: 17 Jun 2004
Posts: 594

PostPosted: Fri Apr 03, 2009 10:04 pm    Post subject: Reply with quote

I haven't installed any 2.4 systems with recent Gentoo, but I've got an older system that's still running it. I've found the following packages to be incompatible with the 2.4-series kernels:

Code:
>=sys-devel/gcc-4.0
>=sys-libs/glibc-2.6
>=sys-kernel/linux-headers-2.6
>sys-apps/net-tools-1.60-r13


Possibly problematic:
Code:
>=sys-apps/busybox-1.7
>=sys-apps/baselayout-2


You can paste these lists directly into /etc/portage/package.mask to keep Portage from installing them.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sat Apr 04, 2009 2:00 am    Post subject: Reply with quote

this may be a silly question/observation, but...does the driver included with the minimal CD actually give you video?

cant get my head around that - if youre booting from the CD with a 2.6 kernel and getting video....see where im going with this?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sat Apr 04, 2009 11:18 am    Post subject: Reply with quote

cach0rr0,

The minimal CD uses the framebuffer driver, which works by drawing in the graphics card pixel buffer itself.
The CPU does all the work, pixel by pixel. Any hardware acceleration features the graphics card may have are just ignored.

In Xorg, with the correct driver, the CPU workload can be much reduced by offloading the low level drawing to the GPU. The CPU then describes to the GPU, what it wants done ... e.g. draw a rectangle and fill it with a colour. This is 2D acceleration.

Its not a question of no drivers, its no acceleration at all.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Huk
n00b
n00b


Joined: 03 Apr 2009
Posts: 4

PostPosted: Sat Apr 04, 2009 5:26 pm    Post subject: Reply with quote

Heh to be honest – I have other cards for this PC - currently I work on C2D and Geforce 9800 GT, the “other” PC (one with Kyro) is Duron 1200 384 MB Ram, Via KT333 chipset (ECS K7VTA3B Motherboard) I use it for hardware testing, to see if it works under Linux – I was curious to find out if Kyro would work with newer distro... but from what I read here and on other forums – there are no “new” distros that ships with kernel-2.4 :] (with few exceptions like DSL – but even it uses old Debian packages).

Of course I could use frame buffer but it is very slow (and I guess directFB won't work with Kyro either...), also vesa seams to work fine, so that is another possibility.

Thanks for your help... one more request if you don't mind.

Here is current (?? I don't think we can call this driver “current” ;]) driver:

http://www.imgtec.com/powervr/insider/powervr-drivers.asp

From this site:

Quote:

Linux kernel 2.6 introduced major structural changes to the way driver modules are built and loaded. As a result, existing KYRO drivers are not compatible with any Linux kernel whose version is 2.6 or above. To keep using KYRO drivers, users are requested to use the latest available 2.4 Linux kernel version. We have currently no plans of providing drivers supporting updated kernels.


From what I see powervr driver is similar to nvidia package (so only driver “wrapper” is being compiled), assuming that the real driver (thing that is not being compiled) is still compatible with new DRI (driver is DRI based) and Xorg (this thing was written for XFree86... so this may be a problem)... would it be possible to patch “wrapper” for kernel-2.6 and use it?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sat Apr 04, 2009 6:26 pm    Post subject: Reply with quote

Huk,

You are correct as far as you go.

There is a kernel part with a wrapper. There is also a binary part which interfaces to Xorg.
Xorg started out as a fork of XFree86 but it has been under continuous development since.

Its unlikely that the Xorg part will work with a modern Xorg, so fixing the kernel part is not enough.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Huk
n00b
n00b


Joined: 03 Apr 2009
Posts: 4

PostPosted: Sat Apr 04, 2009 7:07 pm    Post subject: Reply with quote

I see... well I can always try to write new driver from scratch... hmmm would be nice project for my studies :lol: Thanks for all your help.

Best regards.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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