OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Ubuntu => Topic started by: Jockie on July 03, 2009, 03:16:12 am

Title: Buffalo Lpc-cf-clt Lan Card Connection
Post by: Jockie on July 03, 2009, 03:16:12 am
Hi,

Has anyone got a buffalo LPC-CF-CLT LAN card connected while running Zubuntu? (HINT: It's not a wifi card, it's a wired one).
It works without any tinkering under Cacko. It couldn't be as ludicrously simple as just copying over drivers from Cacko to a driver folder in Zubuntu, could it?

Should I do a "dmesg" as suggested in a previous post on connectivity today (https://www.oesf.org/forum/index.php?showtopic=26574) and post the last 10 lines over here?
Title: Buffalo Lpc-cf-clt Lan Card Connection
Post by: duo on July 03, 2009, 08:09:22 am
do an lsmod and see if pxa2xx_cs is loaded. this module controls the CF slot.

if not loaded then modprobe pxa2xx_cs.

and yes, listing a dmesg result after inserting the card wouldn't hurt.
Title: Buffalo Lpc-cf-clt Lan Card Connection
Post by: Jockie on July 03, 2009, 10:49:11 am
Many thanks for your assistance duo.

Code: [Select]
root@Zubuntu:~# lsmodmakes no mention of pxa2xx_cs

Code: [Select]
root@Zubuntu:~# modeprobe pxa2xx_csgets the ACT light on, then plugging in the LAN gets the LINK light on.

Is there a further command to complete the connection? Currently firefox just displays "Address Not Found".
Title: Buffalo Lpc-cf-clt Lan Card Connection
Post by: duo on July 03, 2009, 11:37:04 am
you need to setup your /etc/network/interfaces file.

you will probably want something like this for dhcp:

auto eth0
iface eth0 inet dhcp

or this for static ip:

auto eth0
iface eth0 inet static
   address 123.123.123.123
   netmask 123.123.123.123
   gateway 123.123.123.123

if you are using dhcp, then you also need to edit your /etc/passwd file.
find the line that has
dhcp:x:10n:10n::something and change the 10n (where n is a number) to 0.
mine looks like this:
dhcp:x:0:0::/nonexistent:/bin/false

if you are using static ips, then you will need to edit /etc/resolv.conf
and add your dns server addresses in this format:
nameserver 111.111.111.111
nameserver 222.222.222.222
Title: Buffalo Lpc-cf-clt Lan Card Connection
Post by: Jockie on July 03, 2009, 11:50:40 am
I have tried:
Code: [Select]
root@Zubuntu:~# ifup eth0A few lines of text about Internet Systems Consortium appear followed by these lines:
Code: [Select]
No support for INET on this system.
Can't create addrlist socket
Failed to bring up eth0.
I tried:
Code: [Select]
root@Zubuntu:~# ifup eth1....but that resulted in this:
Code: [Select]
Ignoring unknown interface eth1=eth1.What next?

EDIT: Spent too long composing this message and missed duo's message posted before it. Will try duo's suggestion.
Title: Buffalo Lpc-cf-clt Lan Card Connection
Post by: Jockie on July 03, 2009, 12:14:59 pm
My /etc/network/interfaces file looked liked this:

Code: [Select]
auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp

I altered it to look like this:
Code: [Select]
auto eth0
iface eth0 inet dhcp
Rebooted.
Modeprobed.
Ran:
Code: [Select]
ifup eth0...and again got this message:
Code: [Select]
No support for INET on this system.
Can't create addrlist socket
Failed to bring up eth0.

Anything else I should try?
Title: Buffalo Lpc-cf-clt Lan Card Connection
Post by: Jockie on July 07, 2009, 03:07:39 am
Anyone?
Anything?
Title: Buffalo Lpc-cf-clt Lan Card Connection
Post by: zbeckerd on July 07, 2009, 11:59:49 am
A few thoughts

Have you run pccardctl ident to see what your system is seeing?

Also what is ifconfig showing?  Your card may not be eth0 and this will show you that.  
Netstat -rn  can also be helpful in seeing if you are routed

Since you can get the lights up on your card it looks to me like a config issue and I would try static instead of dhcp to see if that is the problem.

Steps for Static IP
modprobe pxa2xx_cs
ifconfig eth0 up
ifconfig eth0 xxx.xxx.xxx.xxx broadcast xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx
route add default gw xxx.xxx.xxx.xxx eth0

You can find the numbers for the x inputs on a machine on your network with

ifconfig -a or ipconfig /all     depending on OS
netstat -rn

This is just my method and others may have better methods.

Good luck
Title: Buffalo Lpc-cf-clt Lan Card Connection
Post by: speculatrix on July 18, 2009, 06:33:30 pm
is there still a problem with zubuntu not running dhcp client as root? try running it at command line as root, e.g. dhclient eth0, or dhcpcd eth0.