[tulip] Tulip and PowerPC endian issue?

Jim Rowe rowejames@acmsystems.com
Wed Jan 29 17:46:01 2003


Hello,

I'm using a Netgear FA511 CardBus PC Card with a Ricoh RL5c476 PCI to
Cardbus bridge on a PPC platform.

The MAC address of my card is 00:10:7A:69:F0:79, however ifconfig and
/var/log/messages report it to be 69:7A:10:00:79:F0. Has anyone else run
into this problem?

I'm using the tulip.o driver from the 2.4.19 kernel, along with the
kernel based card services.

Here is my /var/log/messages:
 
Nov 30 00:28:40 eth0 kernel: Linux Kernel Card Services 3.1.22 
Nov 30 00:28:40 eth0 kernel:   options:  [pci] [cardbus] 
Nov 30 00:28:44 eth0 kernel: Yenta IRQ list 0000, PCI irq30 
Nov 30 00:28:44 eth0 kernel: Socket status: 30000006 
Nov 30 00:28:44 eth0 kernel: Yenta IRQ list 0000, PCI irq30 
Nov 30 00:28:44 eth0 kernel: Socket status: 30000820 
Nov 30 00:28:49 eth0 kernel: cs: cb_alloc(bus 2): vendor 0x1317, device
0x1985 
Nov 30 00:28:49 eth0 kernel: PCI: moved device 02:00.0 resource 0 (101)
to 8000 
Nov 30 00:28:49 eth0 kernel: PCI: moved device 02:00.0 resource 1 (200)
to 80400000 
Nov 30 00:28:49 eth0 kernel: PCI: moved device 02:00.0 resource 6 (7201)
to bf800000 
Nov 30 00:28:49 eth0 kernel: PCI: Enabling device 02:00.0 (0000 -> 0003)
Nov 30 00:28:56 eth0 kernel: Linux Tulip driver version 0.9.15-pre11
(May 11, 2002) 
Nov 30 00:28:56 eth0 kernel: eth1: ADMtek Comet rev 17 at 0x8000,
69:7A:10:00:79:F0, IRQ 30

My lspci -v:
root@eth0:/usr/src/linux/drivers/net/tulip# lspci -v
00:07.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev 80)
	Flags: bus master, medium devsel, latency 168, IRQ 30
	Memory at bfff6000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=176
	Memory window 0: bfbf6000-bfff5000 (prefetchable)
	Memory window 1: 80000000-803ff000
	I/O window 0: 0000bfd0-0000ffcf
	I/O window 1: 00004000-000040ff
	16-bit legacy interface ports at 0001

00:07.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev 80)
	Flags: bus master, medium devsel, latency 168, IRQ 30
	Memory at bfbf5000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=176
	Memory window 0: bf7f5000-bfbf4000 (prefetchable)
	Memory window 1: 80400000-807ff000
	I/O window 0: 00007fd0-0000bfcf
	I/O window 1: 00004400-000044ff
	16-bit legacy interface ports at 0001

02:00.0 Ethernet controller: Bridgecom, Inc: Unknown device 1985 (rev
11)
	Subsystem: Netgear: Unknown device 511a
	Flags: bus master, medium devsel, latency 0, IRQ 30
	I/O ports at 8000 [size=256]
	Memory at 80400000 (32-bit, non-prefetchable) [size=1K]
	Expansion ROM at bf800000 [size=128K]
	Capabilities: [c0] Power Management version 2


lsmod:

root@eth0:/usr/src/linux/drivers/net/tulip# lsmod
Module                  Size  Used by
tulip                  44000   0 
ds                      8688   0 
yenta_socket           11792   2 
pcmcia_core            42656   0  [ds yenta_socket]


root@eth0:/usr/src/linux/drivers/net/tulip# cat /proc/iomem
80000000-bfffffff : PCI Memory
  80000000-803fffff : PCI CardBus #01
  80400000-807fffff : PCI CardBus #02
    80400000-804003ff : PCI device 1317:1985
      80400000-804003ff : tulip
  bf7f5000-bfbf4fff : PCI CardBus #02
    bf800000-bf81ffff : PCI device 1317:1985
  bfbf5000-bfbf5fff : Ricoh Co Ltd RL5c476 II (#2)
  bfbf6000-bfff5fff : PCI CardBus #01
  bfff6000-bfff6fff : Ricoh Co Ltd RL5c476 II
  bfff7f00-bfff7fff : CMD Technology Inc PCI0680
  bfff8000-bfffbfff : Texas Instruments TSB12LV26 IEEE-1394 Controller
(Link)
  bffff800-bfffffff : Texas Instruments TSB12LV26 IEEE-1394 Controller
(Link)


My ifconfig -a:

root@eth0:/usr/src/linux/drivers/net/tulip# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:04:AC:E3:15:D6  
          inet addr:172.16.200.34  Bcast:172.16.255.255 
Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18811 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11680 errors:0 dropped:0 overruns:0 carrier:0
          collisions:6 txqueuelen:100 
          Interrupt:15 

eth1      Link encap:Ethernet  HWaddr 69:7A:10:00:79:F0  
          inet addr:10.12.11.105  Bcast:10.255.255.255 
Mask:255.255.255.0
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          Interrupt:30 Base address:0x8000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:66 errors:0 dropped:0 overruns:0 frame:0
          TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 


Thanks for any help,
Jim

-- 
Jim Rowe
Advanced CounterMeasure Systems
Email: jrowe@acmsystems.com