LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-28-2003, 09:37 PM   #1
mdlnx
Member
 
Registered: Sep 2003
Location: San Diego
Distribution: Mandrake 9.1
Posts: 35

Rep: Reputation: 15
HPNA on Knoppix 3.3 ?


Hey, im just wondering if theres someone out there that has
gotten an HPNA lan connection to work with knoppix 3.3

Also, will HPNA work with mandrake 9.2?
 
Old 09-29-2003, 01:09 AM   #2
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
I just installed Knoppix 3.3, and I got the HomePNA 2.0 il.o module to compile and load. Connected with my internet gateway server, got internet.

Some tips:

* if you use the knoppix-installer script instead of knx-hdinstall, install Knoppix 3.3 as a "Debian install", NOT as a "Knoppix install"

* after installation, but before you compile the il.o module, create a symlink like this: ln -s /usr/src/linux-2.4.22 /usr/src/linux-2.4.22-xfs

I have been intending to write a mini-howto on the subject of HomePNA 2.0 for Knoppix, but I don't have time now (bedtime, got my daughter to sleep). Meanwhile, here are my earlier posts on this issue:

http://www.linuxquestions.org/questi...threadid=55454
http://www.linuxquestions.org/questi...threadid=87447
 
Old 09-29-2003, 01:35 AM   #3
mdlnx
Member
 
Registered: Sep 2003
Location: San Diego
Distribution: Mandrake 9.1
Posts: 35

Original Poster
Rep: Reputation: 15
so... do i type in

-s /usr/src/linux-2.4.22 /usr/src/linux-2.4.22-xfs

or -s /usr/src/linux-2.4.22

/usr/src/linux-2.4.22-xfs

after i su and get into root


i am a tad confused on the actualy command

because i was about to just get cat5 installed but i wanna do whatever i can to avoid costs. i.e. find a solution to this problem.

Also, it looks here like knoppix is a text based installation and needs 256mb for swap partition. Im currently using only 7 because of my dual boot and another reason i couldnt figure out. So i have a dual boot with XP goin, currently running mandrake 9.1 on linux side. Will it auto detect the linux partition, and will i easily be able to install over mandrake?

Last edited by mdlnx; 09-29-2003 at 01:41 AM.
 
Old 09-30-2003, 03:27 AM   #4
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
Knoppix will NOT autodetect any partition; you need to edit /etc/lilo.conf manually after installation, and run lilo (as root, of course). See this thread -- http://www.linuxquestions.org/questi...threadid=97847

Regarding HomePNA 2.0:

For more information about HomePNA 2.0, see the AnandTech review: http://anandtech.com/IT/showdoc.html?i=1568.

I adapted the instructions on http://www.homepna.org. Note that the instructions on www.homepna.org apply to Red Hat 7.x and Mandrake 8.x; later versions of these distros apparently refuse to load the hpna2 linux module. Also, the module is intended for the 2.2.x and 2.4.x series of kernels; it will not work with the 2.6 kernel.

You will need the linux kernel source headers, which are usually found in a sub-directory under /usr/src/linux-2.4.xx where 2.4.xx is your distro's kernel version. You can determine your kernel version with the bash command:

root# uname -r
2.4.20


Unfortunately, HomePNA 2.0 is not open source, unlike the prior HomePNA 1.0 technology. Broadcom owns HomePNA 2.0, and licenses it to other vendors such as D-Link, Linksys, Diamond etc. A binary-only HomePNA 2.0 module does exist for Linux, however, and is available by as an unsupported driver from Linksys. While this driver is provided by Linksys, it will work on all HomePNA 2.0 devices, as they are all based on the Broadcom spec.

As root, verify that the HomePNA 2.0 pci card is properly installed and detected by your system. At bash prompt, execute:

bash# lspci

There will be several lines of output and one should be similar to:

01:0d.0 Ethernet controller: BROADCOM Corporation: Unknown device 4210

Download the hpna2 driver from ftp://ftp.linksys.com/beta/linux_hpna2_0_v2_34_0_2.exe.

You will note that, ironically, the driver is a Windows executable archive; you must open it up under Windows (or WINE, I suppose). The archive will unpack with three directories filled with both source and object files; we will be dealing with the one called "iL_hybrid".

Assume for the sake of this article that you save iL_hybrid to /home/iL_hybrid. You will need to compile the hpna2 module "il.o" from the source and object files therein.

root# cd /home/iL_hybrid
root# make clean; make LINUXVER=`uname -r`

To manually bring up the module and start the network connection:

root# insmod -f /home/iL_hybrid/il.o

Try pinging your gateway (in this case it's 192.168.0.1):

root# ping -c4 192.168.0.1

If you have to manually bring up your network (where the workstation HomePNA 2.0 NIC is eth1 with IP 192.168.0.2), then do:

root# ifconfig eth1 192.168.0.2
root# route add default gw 192.168.0.1

or if you have DHCP: root# dhcpcd eth1

You can add the above to your system's startup script (Debian: /etc/init.d/bootmisc.sh, or in Slackware: /etc/rc.d/rc.local). It's an ugly hack, but it works. I found that trying to add the il.o module properly the Debian way with my Knoppix install resulted in failure.

And if you haven't set up your DNS nameserver addresses (eg. ISP DNS server is 123.345.678.254), then do:
root# echo 'nameserver 123.345.678.254' >> /etc/resolv.conf





Last edited by spurious; 06-08-2004 at 04:14 AM.
 
Old 09-30-2003, 02:22 PM   #5
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
n/t

Last edited by spurious; 10-01-2003 at 08:05 PM.
 
Old 10-01-2003, 01:26 AM   #6
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
n/t

Last edited by spurious; 10-01-2003 at 08:05 PM.
 
Old 05-30-2004, 11:37 PM   #7
jak
LQ Newbie
 
Registered: Apr 2002
Posts: 7

Rep: Reputation: 0
hpna2 on xandros

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!
 
Old 05-31-2004, 05:09 PM   #8
jak
LQ Newbie
 
Registered: Apr 2002
Posts: 7

Rep: Reputation: 0
please help!

give me just an idea, a tip!



THX!!
 
Old 06-08-2004, 03:57 AM   #9
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
There is a helpful thread on the Gentoo forum where someone helpfully posted hpna2 driver with the modversions.h hacked out.

The hacked hpna2 driver is intended for Kernel 2.6, but it doesn't work because the 2.6 kernel uses a completely different way of compiling modules. However, I've used the hacked hpna2 driver successfully with the patched 2.4.26 kernel in Kanotix (Knoppix variant that installs Debian Sid to the hard-drive).

BTW, 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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HPNA 2.0 and Ndiswrapper hll32 Linux - Wireless Networking 2 09-13-2005 05:52 PM
mandrake 8.1 with hpna again! uscatu090 Linux - Networking 0 11-26-2004 09:28 AM
hpna on knoppix 3.3-really simple plain english instructions coreymon77 Linux - Networking 0 05-09-2004 09:55 AM
HPNA modules Forbidden Linux - Hardware 0 11-21-2003 05:52 PM
HPNA driver - gcc 3 dhirajb Linux - Hardware 0 09-03-2003 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration