UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Participant qvbsx
Participant
4,693 Views
Registered: ‎02-24-2009

Ethernet does not work

Jump to solution

Hi,everyone,

My ethernet can not work. My kernel version is 2.6.29-rc5

 

if I use command:

#ifconfig -a eth0 141.89.52.137 netmask 255.255.255.0 up

then ,it turn out to be: 

ifconfig: SIOCSIFADDR: No such device

 

and John advised that:(Thank you ,John!)

 It looks like you don't have the driver in your kernel configuration or you don't have the device in the device tree for the system to find at boot.  You should see console messages indicating it found the device and initialized the driver like you see early in this thread.

 

I have  chosen mavell driver for lltema(I don‘t know if I had done right),and I have but it still cannot work.

Here are some contents in My .config file:

 560 # MII PHY device drivers
 561 #
 562 CONFIG_MARVELL_PHY=y

 

 617 # CONFIG_XILINX_TEMAC is not set
 618 # CONFIG_ATL1E is not set
 619 CONFIG_XILINX_LLTEMAC=y
 620 # CONFIG_XILINX_LLTEMAC_MARVELL_88E1111_RGMII is not set
 621 CONFIG_XILINX_LLTEMAC_MARVELL_88E1111_GMII=y
 622 # CONFIG_XILINX_LLTEMAC_MARVELL_88E1111_MII is not set
 623 # CONFIG_JME is not set
 624 # CONFIG_NETDEV_10000 is not set
 625 # CONFIG_TR is not set

and here are the info in my dts file:

 256                 Hard_Ethernet_MAC: xps-ll-temac@81c00000 {
257                         #address-cells = <1>;
258                         #size-cells = <1>;
259                         compatible = "xlnx,compound";
260                         ethernet@81c00000 {
261                                 compatible = "xlnx,xps-ll-temac-1.01.b";
262                                 device_type = "network";
263                                 llink-connected = <&Hard_Ethernet_MAC_fifo>;
264                                 local-mac-address = [ 02 00 00 00 00 00 ];
265                                 reg = < 0x81c00000 0x40 >;
266                                 xlnx,bus2core-clk-ratio = <0x1>;
267                                 xlnx,phy-type = <0x1>;
268                                 xlnx,phyaddr = <0x1>;
269                                 xlnx,rxcsum = <0x0>;
270                                 xlnx,rxfifo = <0x1000>;
271                                 xlnx,temac-type = <0x0>;
272                                 xlnx,txcsum = <0x0>;
273                                 xlnx,txfifo = <0x1000>;
274                         } ;

276                 Hard_Ethernet_MAC_fifo: xps-ll-fifo@81a00000 {
277                         compatible = "xlnx,xps-ll-fifo-1.01.a";
278                         interrupt-parent = <&xps_intc_0>;
279                         interrupts = < 0 2 >;
280                         reg = < 0x81a00000 0x10000 >;
281                         xlnx,family = "virtex5";
282                 } ;


and the booting console info is as follows:

   Using Xilinx Virtex440 machine description
Linux version 2.6.29-rc5 (root@localhost.localdomain) (gcc version 4.2.2) #19 PREEMPT Thu May 7 11:23:25 CST 2009
Found initrd at 0xc05a2000:0xc0711f20
Zone PFN ranges:
  DMA      0x00000000 -> 0x00010000
  Normal   0x00010000 -> 0x00010000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00010000
MMU: Allocated 1088 bytes of context maps for 255 contexts
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttyS0 root=/dev/xsa2 rw init=/sbin/init ip=192.168.10.204
Xilinx intc at 0x81800000 mapped to 0xfdfff000
PID hash table entries: 1024 (order: 10, 4096 bytes)
clocksource: timebase mult[d55555] shift[22] registered
Console: colour dummy device 80x25
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 254592k/262144k available (3280k kernel code, 7344k reserved, 128k data, 134k bss, 168k init)
Calibrating delay loop... 598.01 BogoMIPS (lpj=1196032)
Mount-cache hash table entries: 512
net_namespace: 880 bytes
NET: Registered protocol family 16
PCI: Probing PCI hardware
bio: create slab <bio-0> at 0
XGpio: /plb@0/gpio@81460000: registered
XGpio: /plb@0/gpio@81400000: registered
XGpio: /plb@0/gpio@81420000: registered
XGpio: /plb@0/gpio@81440000: registered
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 1471k freed
msgmni has been set to 500
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
83e00000.serial: ttyS0 at MMIO 0x83e01003 (irq = 16) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
xsysace 83600000.sysace: Xilinx SystemACE revision 1.0.12
xsysace 83600000.sysace: capacity: 1000944 sectors
 xsa: xsa1 xsa2
Xilinx SystemACE device driver, major=254
Device Tree Probing 'ethernet'
xilinx_lltemac 81c00000.ethernet: no IRQ found.

mice: PS/2 mouse device common for all mice
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
IP-Config: No network devices available.
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
### Application running ...

#       

when building the BSB,I didn't choose interrupt for  lltemac,Is this that cause the problem?

If not ,how should i do?

Thanks

--Bingle

 

 

0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
5,398 Views
Registered: ‎09-10-2008

Re: Ethernet does not work

Jump to solution

Yes you need the interrupt and you need DMA also.  You should review our device trees from the kernel tree (arch/powerpc/boot/dts/virtex4*.dts) to verify the device tree that you generate matches for the devices you're trying to use.

 

If you're using an ML507 board from Xilinx or an Avnet board there are prebuilt systems that you can use.

 

Thanks,

John

0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
5,399 Views
Registered: ‎09-10-2008

Re: Ethernet does not work

Jump to solution

Yes you need the interrupt and you need DMA also.  You should review our device trees from the kernel tree (arch/powerpc/boot/dts/virtex4*.dts) to verify the device tree that you generate matches for the devices you're trying to use.

 

If you're using an ML507 board from Xilinx or an Avnet board there are prebuilt systems that you can use.

 

Thanks,

John

0 Kudos
Participant qvbsx
Participant
4,637 Views
Registered: ‎02-24-2009

Re: Ethernet does not work

Jump to solution

Thank you very much ,John

I modified the dts file and mhs file ,then rebuilded the kernel and updated  the dowload.bit, and It wotrks!

 

Thankyou again John.

 

--Bingle 

0 Kudos