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: 
Visitor akzare
Visitor
10,235 Views
Registered: ‎01-22-2009

Network problem with Linux version 2.6.29-rc5

Hi everybody,

I am trying to boot up our designed hardware platform (PICSY) based on Virtex 4 FX20 with the open source Linux project from Xilinx. For your information, I am using 2.6.28-rc6 and 2.6.29-rc5 versions from GIT. In XPS project I have used xlnx,xps-ethernetlite-2.00.b, but inside the virtex405-ml405.dts, I changed the compatible = "xlnx,xps-ethernetlite-2.00.b"; to compatible = "xlnx,xps-ethernetlite-2.00.a"; (because of lack of device driver in Kernel). As far as I use

version 2.6.28-rc6, everything is cool and whenever I ping it, packet loss is 0%!

 


 zImage starting: loaded at 0x00400000 (sp: 0x006d8eb0)
 Allocating 0x30961d bytes for kernel ...
 gunzipping (0x00000000 <- 0x0040c000:0x005675aa)...done 0x2e9e44 bytes
 Attached initrd image at 0x00568000-0x006d7f20
 initrd head: 0x1f8b0808
 
 Linux/PowerPC load: console=ttyUL0 root=/dev/ram rw
 Finalizing device tree... flat tree at 0x6e5300
 Using Xilinx Virtex machine description
Linux version 2.6.28-rc6 (mmetzner@ariadne) (gcc version 4.2.2) #14 PREEMPT Fri Feb 6 12:03:37 CET 2009
Found initrd at 0xc0568000:0xc06d7f20
Zone PFN ranges:
  DMA      0x00000000 -> 0x00008000
  Normal   0x00008000 -> 0x00008000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00008000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttyUL0 root=/dev/ram rw
Xilinx intc at 0x81800000 mapped to 0xfdfff000
PID hash table entries: 512 (order: 9, 2048 bytes)
clocksource: timebase mult[d55555] shift[22] registered
Console: colour dummy device 80x25
console [ttyUL0] enabled
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 125180k/131072k available (2824k kernel code, 5736k reserved, 132k data, 125k bss, 148k init)
Calibrating delay loop... 598.01 BogoMIPS (lpj=1196032)
Mount-cache hash table entries: 512
net_namespace: 636 bytes
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
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 247
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver4 ports, IRQ sharing disabled
84000000.serial: ttyUL0 at MMIO 0x84000003 (irq = 16) is a uartlite
brd: module loaded
loop: module loaded
nbd: registered device at major 43
xilinx_emaclite 81000000.ethernet: Device Tree Probing 'ethernet'
xilinx_emaclite 81000000.ethernet: MAC address is now  2: 0: 0: 0: 0: 0
xilinx_emaclite 81000000.ethernet: using fifo mode.
xilinx_emaclite 81000000.ethernet: Xilinx EMACLite at 0x81000000 mapped to 0xC9020000, irq=17
Linux video capture interface: v2.00
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
TCP cubic registered
NET: Registered protocol family 17
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 148k init
### Application running ...
root:~> ifconfig -a eth0 141.89.52.137 netmask 255.255.255.0 up
root:~> route add default gw 141.89.52.254
root:~> ping 141.89.52.43
PING 141.89.52.43 (141.89.52.43): 56 data bytes
64 bytes from 141.89.52.43: icmp_seq=0 ttl=64 time=561.0 ms
64 bytes from 141.89.52.43: icmp_seq=1 ttl=64 time=0.8 ms
64 bytes from 141.89.52.43: icmp_seq=2 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=3 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=4 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=5 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=6 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=7 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=8 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=9 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=10 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=11 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=12 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=13 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=14 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=15 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=16 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=17 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=18 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=19 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=20 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=21 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=22 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=23 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=24 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=25 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=26 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=27 ttl=64 time=0.7 ms
^C
--- 141.89.52.43 ping statistics ---
28 packets transmitted, 28 packets received, 0% packet loss
round-trip min/avg/max = 0.7/20.7/561.0 ms
root:~> 

 

Unfortunately, when I use  2.6.29-rc5 version, the network is not stable and normally I face huge amount of packet loss.

 


 zImage starting: loaded at 0x00400000 (sp: 0x006e1eb0)
 Allocating 0x319901 bytes for kernel ...
 gunzipping (0x00000000 <- 0x0040c000:0x00570580)...done 0x2fdd48 bytes
 Attached initrd image at 0x00571000-0x006e0f20
 initrd head: 0x1f8b0808
 
 Linux/PowerPC load: console=ttyUL0 root=/dev/ram rw
 Finalizing device tree... flat tree at 0x6ee300
 Using Xilinx Virtex machine description
Linux version 2.6.29-rc5 (akzare@orest) (gcc version 4.2.2) #9 PREEMPT Thu Mar 12 19:11:18 CET 2009
Found initrd at 0xc0571000:0xc06e0f20
Zone PFN ranges:
  DMA      0x00000000 -> 0x00008000
  Normal   0x00008000 -> 0x00008000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00008000
MMU: Allocated 1088 bytes of context maps for 255 contexts
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttyUL0 root=/dev/ram rw
Xilinx intc at 0x81800000 mapped to 0xfdfff000
PID hash table entries: 512 (order: 9, 2048 bytes)
clocksource: timebase mult[d55555] shift[22] registered
Console: colour dummy device 80x25
console [ttyUL0] enabled
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 125124k/131072k available (2900k kernel code, 5800k reserved, 136k data, 110k bss, 148k init)
Calibrating delay loop... 598.01 BogoMIPS (lpj=1196032)
Mount-cache hash table entries: 512
net_namespace: 880 bytes
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
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 247
alg: No test for stdrng (krng)
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
84000000.serial: ttyUL0 at MMIO 0x84000003 (irq = 16) is a uartlite
brd: module loaded
loop: module loaded
nbd: registered device at major 43
xilinx_emaclite 81000000.ethernet: Device Tree Probing 'ethernet'
xilinx_emaclite 81000000.ethernet: MAC address is now  2: 0: 0: 0: 0: 0
xilinx_emaclite 81000000.ethernet: using fifo mode.
eth0 (): not using net_device_ops yet
xilinx_emaclite 81000000.ethernet: Xilinx EMACLite at 0x81000000 mapped to 0xC9020000, irq=17
Linux video capture interface: v2.00
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
TCP cubic registered
NET: Registered protocol family 17
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
Freeing unused kernel memory: 148k init
### Application running ...
root:~> ifconfig -a eth0 141.89.52.137 netmask 255.255.255.0 up
root:~> route add default gw 141.89.52.254
root:~> ping 141.89.52.43
PING 141.89.52.43 (141.89.52.43): 56 data bytes
64 bytes from 141.89.52.43: icmp_seq=37 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=38 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=39 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=41 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=42 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=43 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=44 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=46 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=48 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=50 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=52 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=79 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=81 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=83 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=85 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=87 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=89 ttl=64 time=0.7 ms
64 bytes from 141.89.52.43: icmp_seq=91 ttl=64 time=0.7 ms
^C
--- 141.89.52.43 ping statistics ---
92 packets transmitted, 18 packets received, 80% packet loss
round-trip min/avg/max = 0.7/0.7/0.7 ms
root:~> 
 

I discovered the only difference in the boot up log is "eth0 (): not using net_device_ops yet".  As I took a look at internet, maybe it is because the linux network section uses net_device_ops, and it only works with network drivers that publish their device operations trough net_device_ops.

 

I would be grateful, if somebody gives me nice and perfect hints to get rid of this bothering problem. I have stoped several days cause of this huge packet loss.

Cheers,
Ali

0 Kudos
13 Replies
Xilinx Employee
Xilinx Employee
10,231 Views
Registered: ‎09-10-2008

Re: Network problem with Linux version 2.6.29-rc5

Hi Ali,

 

For now I would say use the old version until this is looked into more.  

 

We don't really support EMAC lite thru the Git tree as our standard testing is with the LL TEMAC.  I realize it's confusing for it to be in the tree when we don't support it well.

 

I have watch for this as I do some Emac Lite work but it's definitely not main stream as there's not too much demand.

 

It sounds like something changed in the kernel as I don't think the driver has changed.

 

Thanks,

John

0 Kudos
Contributor
Contributor
9,465 Views
Registered: ‎05-14-2008

Re: Network problem with Linux version 2.6.29-rc5

Has'nt this been solved yet? I have encountered this problem too. I need ethernetlite because I don't have enough space. Should I go back to2.6.28?

And what if I need 2.6.29 for xps_ll_temac FIFO mode in another project?

Message Edited by sajjadi on 05-04-2009 12:34 AM
0 Kudos
Xilinx Employee
Xilinx Employee
9,449 Views
Registered: ‎09-10-2008

Re: Network problem with Linux version 2.6.29-rc5

2.6.29 has some network issues, I would say to stay at 2.6.28 for EmacLite for now.

 

When we update the tree to 2.6.30 the problems should be fixed as they are not our problems, but problems in the mainline tree.

 

Thanks,

John

0 Kudos
Participant qvbsx
Participant
9,426 Views
Registered: ‎02-24-2009

Re: Network problem with Linux version 2.6.29-rc5

Hello,Ali 

how do you make it to configure your IP addr,?

when I try to configure my IP by using the 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

 

the following are the booting pro:

Using Xilinx Virtex440 machine description                                         
Linux version 2.6.29-rc5 (
root@localhost.localdomain) (gcc version 4.2.2) #16 PR                                                                               
EEMPT Fri Apr 3 21:51:22 CST 2009                                
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                                                                   
Xilinx intc at 0x81800000 mapped to 0xfdfff000                                             
PID hash table entries: 1024 (order: 10,                                     
clocksource: timebase mult[d55555] shift[22] registered                    
00:00:33:692 sec: 5             
Console: colour dummy device 80x25        
       32 kB           
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) No HW ID - assumi                                     
00:00:
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)           
FLASH: 32 MB           
00:00:33:693 sec: 5ing
Memory: 256128k/262144k available (3264k kernel code, 5856k reserved, 128k data,            
00:00:33:694 sec: 5                  

MAC add      
00:00:33:69
 134k bss, 168k init)                
00:
Calibrating delay loop... 598.01 BogoMIPS (lpj=1196032)               
00:00:33:694 sec: 5                  
Mount-cache hash table entries: 512  
Out:   s       
00:00:33:695 s
net_namespace: 880 bytes00:00:33:695 sec: 5ddr 1
NET: Registered protocol family 16              
00:00:33:696 fatal
PCI: Probing PCI hardwares: Connecti             
bio: create slab <bi                 
io scheduler deadline registered                               
io scheduler cfq registered (default)es: 1024 (order: 10, 4096 bytes)ho ar
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled                         
era  
clocksource: timebase
83e00000.serial: ttyS0 at MMIO 0x83e01003 (irq = 16) is a 16550Afilesystem                                                     
console [ttyS0] enabled                  
Con
brd: module loadeddevice 80x25load -
loop: module loadedom a dos          
xsysace 83600000.sysace: Xilinx SystemACE revision 1.0.12flinfo  - print FLASH memory information                
xsysace 83600000.sysace: capacity: 1000944 sectorsilable (3264k kernel code, 5856k reserved, 128k da
 xsa: xsa1 xsa2              
Xilinx SystemACE device driver, major=254         
getidcr - Get a register value
Device Tree Probing 'ethernet'                           
TCP cubic registereds: 512             
NET: Registered protocol family 17cks               
net_namespace:
RPC: Registered udp transport module.o   
NET: Registered protocol family
RPC: Registered tcp transport module.
PCI: Probing PCI hardwarery display
kjournald starting.  Commit interval 5 seconds slab <bio-0> at 0header information for appli
EXT3-fs warning: mounting unchecked fs, running e2fsck is
recommendedb@0/gpio@81460000: registered                                      

EXT3 FS on xsa2, internal journal@0/gpio@81400000:               
Starting system...
mounting /proc:
done.
brining up loopback interface:
done.
Mounting /tmp:
done.
Starting syslogd:
done.
Starting klogd:
done.
Starting inetd:
done.
Seting env
done
Start dbus-daemon
unix:path=/opt/crosslib/dbus4ppc/var/run/dbus/system_bus_socket,guid=8671cb49436
fc99ba695ce4900000005
791
done
Starting shell
# ifconfig -a eth0 141.89.52.137 netmask 255.255.255.0 up
ifconfig: SIOCSIFADDR: No such device

 

so,Is anything missing in my system and what is wrong?

 

Thanks

--Bingle

0 Kudos
Xilinx Employee
Xilinx Employee
9,423 Views
Registered: ‎09-10-2008

Re: Network problem with Linux version 2.6.29-rc5

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.

 

-- John

0 Kudos
Contributor
Contributor
9,364 Views
Registered: ‎05-14-2008

Re: Network problem with Linux version 2.6.29-rc5

I downloaded the snapshot tagged 2.6.28, but it didn't include xilinx net drivers. What snapshot should I use?
0 Kudos
Xilinx Employee
Xilinx Employee
9,321 Views
Registered: ‎09-10-2008

Re: Network problem with Linux version 2.6.29-rc5

Sorry for the slow response here.  You need the tag xilinx_v2.6.28 to get our stuff also.

 

-- John

0 Kudos
Contributor
Contributor
9,309 Views
Registered: ‎05-14-2008

Re: Network problem with Linux version 2.6.29-rc5

Thanks john

 

In the meanwhile I managed to get my linux up and running using 2.6.28 -rc5 and buildroot. Everything seemed to work fine in the kernel, till I ran some applications.

I can ping the board and vice versa. Also I have used tftp and run a simple client program to connect to my pc. 

 

But when I want to connect to the board as a server, ARPs aren't answered. I have tested it with telnet (running telnetd) and another application of mine. Don't know if this is to be asked here or not, but I'm really confused!

 

S. M. Sajjadi

0 Kudos
Contributor
Contributor
9,306 Views
Registered: ‎05-14-2008

Re: Network problem with Linux version 2.6.29-rc5

I found the error. In fact arp wasn't working at all. Pings I had tested where done after a ping from the board. The problem was reported here and solved.

 

Thanks and sorry.

 

0 Kudos
Visitor milindur
Visitor
5,133 Views
Registered: ‎05-19-2009

Re: Network problem with Linux version 2.6.29-rc5


linnj wrote:

Sorry for the slow response here.  You need the tag xilinx_v2.6.28 to get our stuff also.

 

-- John


Where can I find this tag? On git.xilinx.com I do not see this.

 

What is the status of emaclite in 2.6.29? I am trying to build a XUPV2P system with Linux 2.6.29, the emaclite device is found, but I am unable to ping (to/from the board) or mount a nfs-rootfs.

 

Thanks in advance,

Christian

0 Kudos
Xilinx Employee
Xilinx Employee
5,117 Views
Registered: ‎09-10-2008

Re: Network problem with Linux version 2.6.29-rc5

The tag is in the git tree such that you can reset the tree to that tag or pull based on that tag.  Using tags is pretty simple in git but I don't do it a lot so i usually don't remember and have to look it up.

 

My fault, now I see I forgot to push the tags public, they are not there, sorry for that.

 

I would not use 2.6.29, but I would use 2.6.28.  I saw a network issue with Emaclite in 2.6.29 that was related to brokenness in the kernel, not the driver.

 

-- John

0 Kudos
Xilinx Employee
Xilinx Employee
5,116 Views
Registered: ‎09-10-2008

Re: Network problem with Linux version 2.6.29-rc5

I wasn't very clear, I now pushed the tags public.

 

-- John

0 Kudos
Visitor milindur
Visitor
5,113 Views
Registered: ‎05-19-2009

Re: Network problem with Linux version 2.6.29-rc5


linnj wrote:

I wasn't very clear, I now pushed the tags public.

 

-- John


Thank you very much for pushing the tags and your advice regarding 2.6.28, we will try this.

 

Regards,

Christian

0 Kudos