[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Ethernet problem whith FX12MM from Memec



I have turned off the DMA on the Ethernet inside Xilinx Platform
Studio, do the method of editing the firmware have any relevance here?
at least now the communication seams to work, I can ping in both
directions and use ftp and telnet from my host, thanks for the help!

What needs to be done to make DMA work correctly?

i post the Ethernet part of my auto-config.in here in case it might help
# Definitions for ETHERNET_0
define_string CONFIG_XILINX_ETHERNET_0_INSTANCE Ethernet_MAC
define_int CONFIG_XILINX_ETHERNET_0_DEV_BLK_ID 1
define_int CONFIG_XILINX_ETHERNET_0_DEV_MIR_ENABLE 1
define_hex CONFIG_XILINX_ETHERNET_0_BASEADDR 0x40C00000
define_hex CONFIG_XILINX_ETHERNET_0_HIGHADDR 0x40C0FFFF
define_int CONFIG_XILINX_ETHERNET_0_RESET_PRESENT 1
define_int CONFIG_XILINX_ETHERNET_0_INCLUDE_DEV_PENCODER 1
define_int CONFIG_XILINX_ETHERNET_0_DMA_PRESENT 1
define_int CONFIG_XILINX_ETHERNET_0_DMA_INTR_COALESCE 1
define_int CONFIG_XILINX_ETHERNET_0_OPB_AWIDTH 32
define_int CONFIG_XILINX_ETHERNET_0_OPB_DWIDTH 32
define_int CONFIG_XILINX_ETHERNET_0_OPB_CLK_PERIOD_PS 13333
define_string CONFIG_XILINX_ETHERNET_0_FAMILY virtex4
define_int CONFIG_XILINX_ETHERNET_0_IPIF_RDFIFO_DEPTH 32768
define_int CONFIG_XILINX_ETHERNET_0_IPIF_WRFIFO_DEPTH 32768
define_hex CONFIG_XILINX_ETHERNET_0_MIIM_CLKDVD 0x0000001F
define_int CONFIG_XILINX_ETHERNET_0_SOURCE_ADDR_INSERT_EXIST 1
define_int CONFIG_XILINX_ETHERNET_0_PAD_INSERT_EXIST 1
define_int CONFIG_XILINX_ETHERNET_0_FCS_INSERT_EXIST 1
define_int CONFIG_XILINX_ETHERNET_0_MAC_FIFO_DEPTH 64
define_int CONFIG_XILINX_ETHERNET_0_MAC_FIFO_BRAM_1_SRL_0 0
define_int CONFIG_XILINX_ETHERNET_0_HALF_DUPLEX_EXIST 1
define_int CONFIG_XILINX_ETHERNET_0_ERR_COUNT_EXIST 1
define_int CONFIG_XILINX_ETHERNET_0_CAM_EXIST 0
define_int CONFIG_XILINX_ETHERNET_0_CAM_BRAM_0_SRL_1 1
define_int CONFIG_XILINX_ETHERNET_0_JUMBO_EXIST 0
define_int CONFIG_XILINX_ETHERNET_0_MII_EXIST 1
define_string CONFIG_XILINX_ETHERNET_0_INSTANCE Ethernet_MAC
define_string CONFIG_XILINX_ETHERNET_0_HW_VER 1.02.a
define_int CONFIG_XILINX_ETHERNET_0_IRQ 1



On 4/10/07, John Williams <jwilliams@xxxxxxxxxxxxxx> wrote:

Rasmus Mattsson wrote:

> the petalinux is configured to connet to a DHCP server but right now i
> don't use any server for the PI address. the ip address is defined
> with ipconfig (see the txt file for more info)
>
> info in /proc/net/arp on petalinux:
> IP address       HW type     Flags       HW address            Mask
> Device
> 192.168.11.5     0x1         0x2         00:00:1C:B5:EB:4B     *
> eth0

So, it looks like the microblaze is receiving ARP packets OK (it knows
the MAC address of the host)

> info in /proc/net/arp on the server:
> IP address       HW type     Flags       HW address            Mask
> Device
> 192.168.11.99     0x1         0x2        00:00:C0:A3:E5:44    *        eth0

and your switch is working - the host knows the MAC address of the
microblaze board.

So the  low level ARP packaets are being received fine, it's ICMP, UDP
and TCP that's not working.

Try disabling SGDMA mode on the ethernet controller.  Edit your
auto-config.in file, look for the CONFIG_XILINX_ETHERNET_DMA_MODE
parameter, and change it from 3 (DMA) to 1 (FIFO) mode.

run "make oldconfig", then rebuild the kernel.

> I have Attached a txt file with the bootup info and all commands that
> I execute in petalinux. When i look closer to this boot process i see
> a strange message on line 6:
> Kernel command line: 'J}0$\$XH$,Q|'Kp,    is this expected? (i have to
> admit that I'm new to Linux)

It just means that the bootloader is providing a garbage command line to
the kernel.  Are you using u-boot, or something else?  Anyway it's
something to fix for completeness, but won't be doing any harm.

Regards,

John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/