You are not logged in.

#1 2005-11-25 23:18:37

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 625
Website

How to add support for ULi M5263 10/100M Ethernet [SOLVED]

It seems the more I'm on Arch, the more questions I have wink

The 4th PC i'm installing Arch on is a athlon 64 3200 on Asrock 939 Dual Sata mobo with ULi M5263 10/100M Ethernet Controller.

A post I've read before on a Linux related forum said one had to add ULi drivers (from ULi/Ali website) to the kernel, until mid-October when the same guy added that the module had been included to the kernel smile

I installed Arch on the A64 box with latest kernel-2.6.13 from current repo, and it can't recognize the Ethernet controller yet.

So I downloaded latest ULi's driver for Linux, who ask to

Make sure your kernel version number is 2.6.x.

Copy uli526x.c to /usr/src/linux-2.6.x/drivers/net/tulip/, and modify the
following file in this directory. (Make a backup of them.)

1.Kconfig.in
(...)

2.Makefile
add the following lines to Makefile.(refer to the Makefile we provide to you)

#
# Makefile for the Linux "Tulip" family network device drivers.
#

obj-$(CONFIG_PCMCIA_XIRTULIP)   += xircom_tulip_cb.o
obj-$(CONFIG_PCMCIA_XIRCOM)     += xircom_cb.o
obj-$(CONFIG_DM9102)            += dmfe.o
obj-$(CONFIG_WINBOND_840)       += winbond-840.o
obj-$(CONFIG_DE2104X)           += de2104x.o
obj-$(CONFIG_TULIP)             += tulip.o
obj-$(CONFIG_DE4X5)             += de4x5.o
obj-$(CONFIG_ULI526X)           += uli526x.o

# Declare multi-part drivers.

tulip-objs                      := eeprom.o interrupt.o media.o 
                                   timer.o tulip_core.o         
                                   21142.o pnic.o pnic2.

But I couldn't find where is that Makefile located :cry:

What would you guys say the next step can be ?


PGP Key: 1C2A554EFF0157D9
Core i3 @3.30GHz | 4GB RAM | Arch linux-ck
Atom N450 2 gig RAM, Arch linux 4.6.0rc3 i686 (5+H battery smile) | ARM Tegra K1 4 gig RAM, Chrome OS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16.0-0.bpo.4-586 on SDHC

Offline

#2 2005-11-25 23:57:20

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,837

Re: How to add support for ULi M5263 10/100M Ethernet [SOLVED]

kozaki wrote:

....until mid-October when the same guy added that the module had been included to the kernel smile

And he's absolutely right - it's been added to kernel 2.6.14.

kozaki wrote:

But I couldn't find where is that Makefile located :cry:

Arch installs the kernel headers to /usr/src/linux*, not the full kernel source - that's why you can't find the Makefile.

kozaki wrote:

What would you guys say the next step can be ?

Least painful, I think, would be to upgrade to the Arch 2.6.14 kernel package - just watch out for the initrd changes. This package includes the uli526x module.

The alternative is to follow the instructions from the website, but first download the 2.6.13.4 kernel source code from kernel.org.

Either way, have fun. big_smile

Offline

#3 2005-11-26 14:52:11

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 625
Website

Re: How to add support for ULi M5263 10/100M Ethernet [SOLVED]

tomk > Amazing answers ! whatever I choose, you cleared me the way big_smile


PGP Key: 1C2A554EFF0157D9
Core i3 @3.30GHz | 4GB RAM | Arch linux-ck
Atom N450 2 gig RAM, Arch linux 4.6.0rc3 i686 (5+H battery smile) | ARM Tegra K1 4 gig RAM, Chrome OS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16.0-0.bpo.4-586 on SDHC

Offline

#4 2005-11-26 17:54:59

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,837

Re: How to add support for ULi M5263 10/100M Ethernet [SOLVED]

My pleasure - glad it was useful. smile

Offline

#5 2005-11-27 21:02:54

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,637

Re: How to add support for ULi M5263 10/100M Ethernet [SOLVED]

My Asrock board runs fine here with the stock kernel in testing. In the archck kernel they forgot to include the modul :-(

Offline

#6 2005-11-28 14:07:07

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 625
Website

Re: How to add support for ULi M5263 10/100M Ethernet [SOLVED]

Thank you for the tip on stock & archck kernels  smile

I'm mirroring Arch's current, extra & testing repositories on an external HDD (+ checked it before).

Tried to add ULi module with the 2.6.13.4 kernel,
I strictly followed "Kernel_Compilation_From_Source" howto, but got that message whatever I rm -Rf /usr/src/kernel-2.6.13.4/ and try again & again  :? :

[root@llewellyn linux]# make oldconfig
  HOSTCC  scripts/basic/split-include
Dans le fichier inclus à partir de /usr/include/linux/errno.h:4,
          à partir de /usr/include/bits/errno.h:25,
          à partir de /usr/include/errno.h:36,
          à partir de scripts/basic/split-include.c:26:
/usr/include/asm/errno.h:4:31: erreur: asm-generic/errno.h : Aucun fichier ou répertoire de ce type
make[1]: *** [scripts/basic/split-include] Erreur 1
make: *** [scripts_basic] Erreur 2

# make gconfig
  HOSTCC  scripts/basic/split-include
Dans le fichier inclus à partir de /usr/include/linux/errno.h:4,
          à partir de /usr/include/bits/errno.h:25,
          à partir de /usr/include/errno.h:36,
          à partir de scripts/basic/split-include.c:26:
/usr/include/asm/errno.h:4:31: erreur: asm-generic/errno.h : Aucun fichier ou répertoire de ce type
make[1]: *** [scripts/basic/split-include] Erreur 1
make: *** [scripts_basic] Erreur 2

# make kconfig
  HOSTCC  scripts/basic/split-include
Dans le fichier inclus à partir de /usr/include/linux/errno.h:4,
          à partir de /usr/include/bits/errno.h:25,
          à partir de /usr/include/errno.h:36,
          à partir de scripts/basic/split-include.c:26:
/usr/include/asm/errno.h:4:31: erreur: asm-generic/errno.h : Aucun fichier ou répertoire de ce type
make[1]: *** [scripts/basic/split-include] Erreur 1

Do you know why is that  :?:
I'd like to know especially in the case I'd give archck kernel a try then will have to add ULi mudule to it

(EDIT) Found some relevant hack to this problem at "Problem compiling ipsec-tools [SOLVED (kind of..)]".
Here's what the guy did :

I downloaded the source tarball (v0.5.1) and did a quick ./configure && make . Same error you had. But I have a custom build kernel and a full vanilla 2.6.11.7 source on my disk , so I tried to use that instead of the AL headers.
Code:
- I renamed the /usr/include/asm to asm-arch, same applies for /usr/include/linux
- I linked the /usr/include/asm and linux to the kernel source (/usr/src/linux-2.6.11-7/include/asm and linux)
- I created a link /usr/include/asm-generic which pointed to the kernel source dir as well ...../include/asm-generic )

After that the software compiled beautifully Smile
But it could be it will not work 100% but I didn't notice this when doing this in Slackware.

After installing the software delete the links and rename the asm-arch and linux-arch back to their original names again.

It is dirty but most of the times it worked for me Very Happy

So I'll try his hack this evening if no one comes here and say there's some better (cleaner) way
(/EDIT)


PGP Key: 1C2A554EFF0157D9
Core i3 @3.30GHz | 4GB RAM | Arch linux-ck
Atom N450 2 gig RAM, Arch linux 4.6.0rc3 i686 (5+H battery smile) | ARM Tegra K1 4 gig RAM, Chrome OS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16.0-0.bpo.4-586 on SDHC

Offline

#7 2005-11-28 15:13:19

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,837

Re: How to add support for ULi M5263 10/100M Ethernet [SOLVED]

Well, I think I did say that the easier option would be to install the Arch package for 2.6.14.... wink

I have to admit I made an assumption earlier that the instructions you quoted would add the required module to your existing kernel, not compile a whole new one. If you're doing a whole new kernel, you should use the 2.6.14 source and forget about hacking Makefiles etc.

Offline

#8 2005-11-29 19:20:14

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 625
Website

Re: How to add support for ULi M5263 10/100M Ethernet [SOLVED]

Allright everithing's running fine after installed kernel-2.6.14 from mirrorred extra repo, then figuring out what was the ULi chipset driver (BTW it's uli526xbig_smile
Thank you tomk & same for AndyRTR.

PS : got the same message /usr/include/asm/errno.h:4:31: erreur: asm-generic/errno.h when I runned makepkg -bc on Snowman's gimpshop PKGBUILD.

I found that creating a symlink from /usr/src/vanilla-kernel/include/asm-generic to /usr/include/asm-generic is sufficient to be able to bypass this error & compile the softwares needed by gimpshop.
Hope this hack will work whenever i encouter this error while compiling on another kernel.

BTH, where's that hack on asm-generic documented for Arch linux :?:
& may I leave this symlink for now (as i didn't moved/edited anything else) ?


PGP Key: 1C2A554EFF0157D9
Core i3 @3.30GHz | 4GB RAM | Arch linux-ck
Atom N450 2 gig RAM, Arch linux 4.6.0rc3 i686 (5+H battery smile) | ARM Tegra K1 4 gig RAM, Chrome OS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16.0-0.bpo.4-586 on SDHC

Offline

#9 2005-11-29 20:13:50

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,837

Re: How to add support for ULi M5263 10/100M Ethernet [SOLVED]

kozaki wrote:

then figuring out what was the ULi chipset driver (BTW it's uli526x)

By "figuring out", do you mean "rereading tomk's post?" tongue

tomk wrote:

This package includes the uli526x module.

I don't have any advice to offer about your include problem, because it shouldn't be necessary - I've certainly never had to do it. You might be better off starting a new thread about it, as it's a fair bit off-topic here.

Offline

#10 2005-11-29 23:20:44

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 625
Website

Re: How to add support for ULi M5263 10/100M Ethernet [SOLVED]

tomk > uh, just forgot to save this post on mu usbstick before I booted back in to the still-without-working-nic computer lol

the dirty hack seems to have worked fine, so far Gimp didn't cause any trouble to me.


PGP Key: 1C2A554EFF0157D9
Core i3 @3.30GHz | 4GB RAM | Arch linux-ck
Atom N450 2 gig RAM, Arch linux 4.6.0rc3 i686 (5+H battery smile) | ARM Tegra K1 4 gig RAM, Chrome OS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16.0-0.bpo.4-586 on SDHC

Offline

#11 2005-11-30 00:29:57

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: How to add support for ULi M5263 10/100M Ethernet [SOLVED]

The stock kernel PKGBUILD has:

  for i in acpi asm-generic asm-i386 config linux math-emu media net pcmcia scsi sound video; do
    cp -a include/$i $startdir/pkg/usr/src/linux-${_kernver}/include/
  done

to install the include files.  Check your custom kernel PKGBUILD to see if you have something similar.

Offline

#12 2005-11-30 11:03:55

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 625
Website

Re: How to add support for ULi M5263 10/100M Ethernet [SOLVED]

Still, I have the stock Arch kernel (2.6.13, then 2.6.14), so i do not get the point here.

Yet thank you for that, every little info on kernel PKGBUILD is clearing my head a bit further than it is after re-reading the whole wiki lol


PGP Key: 1C2A554EFF0157D9
Core i3 @3.30GHz | 4GB RAM | Arch linux-ck
Atom N450 2 gig RAM, Arch linux 4.6.0rc3 i686 (5+H battery smile) | ARM Tegra K1 4 gig RAM, Chrome OS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16.0-0.bpo.4-586 on SDHC

Offline

#13 2005-11-30 16:24:46

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: How to add support for ULi M5263 10/100M Ethernet [SOLVED]

kozaki wrote:

Still, I have the stock Arch kernel (2.6.13, then 2.6.14), so i do not get the point here.

Sorry, I didn't realized that you finally installed the stock kernel from testing. :oops:

Does the file /usr/src/linux-2.6.14-ARCH/include/asm-generic/errno.h exist?  If it does, maybe reinstalling glibc will fix the problem (as /usr/include/asm/errno.h, which errors out,  is owned by glibc).

Offline

#14 2006-01-06 18:40:23

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 625
Website

Re: How to add support for ULi M5263 10/100M Ethernet [SOLVED]

kozaki wrote:

Thank you tomk & same for AndyRTR.

I found that creating a symlink from /usr/src/vanilla-kernel/include/asm-generic to /usr/include/asm-generic is sufficient to be able to bypass this error & compile the softwares needed by gimpshop.
Hope this hack will work whenever i encouter this error while compiling on another kernel.

BTH, may I leave this symlink for now (as i didn't moved/edited anything else) ?

Well I just runned makepkg -bc on 'live' PKGBUILD. All I had to do for this hack to work was to DL 2.6.15 source, untar it in /usr/src & edit /usr/include/asm-generic symlink


PGP Key: 1C2A554EFF0157D9
Core i3 @3.30GHz | 4GB RAM | Arch linux-ck
Atom N450 2 gig RAM, Arch linux 4.6.0rc3 i686 (5+H battery smile) | ARM Tegra K1 4 gig RAM, Chrome OS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16.0-0.bpo.4-586 on SDHC

Offline

Board footer

Powered by FluxBB