Broadcom HPNA 2.0 - Compile 2.9x source with 3.x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, i see your question about:
"I need help in compiling a HPNA2 (Home Phoneline
Networking adapter) driver using GCC 3.X. "

I have similar problem, you can help me?

thanks
Bogdan Bordea <bogdan@xxxxxxxxxxx>

------------
http://gcc.gnu.org/ml/gcc-help/2004-07/msg00144.html

*I'm going to edit my earlier post on Knoppix 3.3 as the original post doesn't
work with the later releases of 3.3 and 3.4 (using 2.4.26 kernel). The only way
to get it to work now is to compile the module, then force load it with insmod
-f /path_to_hpna2/il.o in the /etc/init.d/bootmisc.sh script.

*Code:
/usr/src/linux-2.4.22/include/linux/modversions.h:4:36:
linux/modules/53c700.ver: No such file or directory

*Got the module compiled thanks to your help. Now I just gotta get it loaded
since it apparently was compiled initially under gcc 2.x and we're all running
3.x. I've found some other info on these forums dating back to the beginning of
the year.

*I can't explain how it happened but it did. Here's what I did.
downloaded kernel 2.4.XX from www.kernel.org
ln -s /usr/src/linux-version/include/linux /usr/include
ln -s /usr/src/linux-version/include/asm-i386 /usr/include/asm
cd dir/with/il_hybriddata
gmake LINUXVER=linuxversion
ignore warnings
mv il.o /lib/modules/kernel/net
insmod -f il.o (the source is compiled with gcc 2.x most of us are using 3.x)
ifconfig eth0 (still working on getting it to auto config itself on boot)
route add default gw (if it applies)
enjoy internet.

As an aside, after attempting gmake, an error may pop up about malloc.h being
old and the current system using slab.h. To fix open il_linux.c with your
favorite text editor and change line 54 to #include <linux/slab.h>.

*Hi,
I´ve read all of your posts about HPNA, spurious, and they have been very
useful.
But I still have a problem when installing the module, or perhaps the problem is
in
the compile process. I´m a newbie , tried diferent distros but switched to
xandros2
to start with ans easy one, just to know I can access internet becouse xandros
doesn´t
have a driver for the bc4210.

I would really appreciate help! from anybody! apologies for such a long post,
and for my poor english.



The first error was when compiling, the header modversions.h
was not there, I tried reinstalling the source code, and numerous libraries from
the cd,
but It dind´t work:

jaks:/disks/E/downloads/bc/iL_hybrid# make LINUXVER=2.4.22-x1
cc -O2 -DMODULE -DMODVERSIONS -D__KERNEL__ -DLINUX -I. -Iinclude
-I/usr/src/linux-2.4.22-x1/include -Wall -Wcast-align -Wstrict-prototypes
-Wpointer-arith -DIL_CERT -DDMA -DBINOSL -DIL_PROTOS -c -o il_linux.o
il_linux.c
In file included from il_linux.c:46:
include/linuxver.h:51:31: linux/modversions.h: No such file or directory
make: *** [il_linux.o] Error 1

But I found a header named modsetver.h, in the same dir, so I edited il_linux.c
and changed it to modsetver.h.
I know that this is just crazy, but I could find any other way, so I just
tried.

After that I could make il.o, but when trying to install it I get this errors:

jaks:/disks/E/downloads/bc/iL_hybrid# insmod il
Using /lib/modules/2.4.22-x1/net/il.o
/lib/modules/2.4.22-x1/net/il.o: unresolved symbol eth_type_trans
/lib/modules/2.4.22-x1/net/il.o: unresolved symbol __kfree_skb
/lib/modules/2.4.22-x1/net/il.o: unresolved symbol alloc_skb
/lib/modules/2.4.22-x1/net/il.o: unresolved symbol init_etherdev
/lib/modules/2.4.22-x1/net/il.o: unresolved symbol __udelay
/lib/modules/2.4.22-x1/net/il.o: unresolved symbol vsprintf
/lib/modules/2.4.22-x1/net/il.o: unresolved symbol skb_under_panic
/lib/modules/2.4.22-x1/net/il.o: unresolved symbol kmalloc
/lib/modules/2.4.22-x1/net/il.o: unresolved symbol skb_realloc_headroom
/lib/modules/2.4.22-x1/net/il.o: unresolved symbol pci_free_consistent
/lib/modules/2.4.22-x1/net/il.o: unresolved symbol pci_find_class
/lib/modules/2.4.22-x1/net/il.o: unresolved symbol cpu_raise_softirq
/lib/modules/2.4.22-x1/net/il.o: unresolved symbol pcibios_present
/lib/modules/2.4.22-x1/net/il.o: unresolved symbol free_irq
/lib/modules/2.4.22-x1/net/il.o: unresolved symbol unregister_netdev
/lib/modules/2.4.22-x1/net/il.o: unresolved symbol __out_of_line_bug
/lib/modules/2.4.22-x1/net/il.o: unresolved symbol panic

In fact, the was coulpe more lines, looking the same as the above.
whats wrong? the missing modversions header?
I installed every library that seemed relevant, from both CDs.
Thanks for your time, please help!

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux