View previous topic :: View next topic |
Author |
Message |
Ligthert n00b
Joined: 05 Apr 2005 Posts: 2
|
Posted: Tue Apr 05, 2005 4:27 pm Post subject: Compiling kernel fails on Sparc64/Ultra5 |
|
|
Hi forum,
I have followed the manual to the letter to install Gentoo on my Ultra 5 , but...
The make of the kernel gives errors as it exits
Quote: | /usr/src/linux-2.49-spark/arch/sparc64/math-emu |
Once it starts the "ld -m elf64_sparc -T etcetc" command it errors and reveals the following error.
Quote: |
drivers/net/net.o(.text+0x31dd4): In Function 'hp100_start_xmit';
: undefined reference to 'isa_memcpy_toio'
drivers/net/net.o(.text+0x31dfc): In Function 'hp100_start_xmit';
: undefined reference to 'isa_memset_io'
drivers/net/net.o(.text+0x32244): In Function 'hp100_rx';
: undefined reference to 'isa_memcpy_fromio'
drivers/net/net.o(.text+0x32290): In Function 'hp100_rx';
: undefined reference to 'isa_readl'
|
(I am sorry I can't copy'n paste it all for you, my typing skills is the best I have got.)
But did anybody of you had similar experiances and do you have any hints and/or suggestions how to fix this error?
Thanks,
Sacha Ligthert |
|
Back to top |
|
|
Ligthert n00b
Joined: 05 Apr 2005 Posts: 2
|
Posted: Tue Apr 05, 2005 8:43 pm Post subject: |
|
|
Removing the HP* drivers from compiling seemed to have fixed it. |
|
Back to top |
|
|
ciaranm Retired Dev
Joined: 19 Jul 2003 Posts: 1719 Location: In Hiding
|
Posted: Tue Apr 05, 2005 8:54 pm Post subject: |
|
|
Various weird "won't work in sparcs anyway" drivers will give you issues. Turn off anything you're not using. |
|
Back to top |
|
|
GenTimJS Guru
Joined: 03 May 2003 Posts: 406 Location: NH, USA
|
Posted: Wed Apr 06, 2005 1:13 pm Post subject: |
|
|
A good general rule when compiling for a sparc box is to "start from scratch" somewhat with the kernel ...
overlooking seemingly innocent drivers, like some of the you-wont-need-it network stuff or firewire drivers or whatever, can cause a sparc kernel to fail compilation very quickly.
When I got my first sparc and threw gentoo at it, it took me about 5 or 6 passes through make menuconfig to finally get all the trash out and make the kernel build ok. _________________ -Tim Smith |
|
Back to top |
|
|
oldan Tux's lil' helper
Joined: 11 Dec 2003 Posts: 137 Location: Atlanta, Georgia, USA
|
Posted: Thu Apr 07, 2005 3:17 pm Post subject: |
|
|
GenTimJS wrote: | A good general rule when compiling for a sparc box is to "start from scratch" somewhat with the kernel ...
overlooking seemingly innocent drivers, like some of the you-wont-need-it network stuff or firewire drivers or whatever, can cause a sparc kernel to fail compilation very quickly.
When I got my first sparc and threw gentoo at it, it took me about 5 or 6 passes through make menuconfig to finally get all the trash out and make the kernel build ok. |
I want to second that, Ligthert, and suggest that you fall back and punt (if you're a football kind of guy) and use the sparc kernel sources first. I know they're 2.4.x but they work much more gooderly out of the box than trying to sparc-ize the 2.6 kernels. After getting my Ultra10 up and running 2.4.29, I spent three days going through the 2.6 menuconfig (well, not really three WHOLE days, but three evenings - as much as my lovely wife would allow) making sure I had deleted everything I didn't need and adding in only what I did need to get the first 2.6 kernel boot. Once I got it to boot the first time (what a pleasant surprise THAT was!), I went back through and added drivers and framebuffers one at a time so i could back out quickly if I made a teensy tiny mistake.
--Oldan |
|
Back to top |
|
|
|