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 bleinweber
Visitor
1,709 Views
Registered: ‎07-06-2011

U-Boot Network Issues

As I said in a previous post, I have U-boot up and running on the ML405 board.

 

However, I am unable to use any of the network functions.  As soon as I do I get a kernel panic:

 

U-Boot 1.3.4-00327-ge094f24-dirty (Jul 12 2011 - 14:14:57)


### No HW ID - assuming Virtex-4 FX12 or FX20
DRAM:  32 MB
*** Warning - bad CRC, using default environment

MAC address valid from I2C EEPROM
MAC address: 00:0a:35:02:37:a9
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
=> setenv ipaddr 192.168.10.101
=> setenv serverip 192.168.10.1
=> ping 192.168.10.1
Machine Check Exception.
Caused by (from msr): regs 01ea3530 Data machine check.
**bleep**: 00000000 XER: 00000000 LR: 01FBA5D0 REGS: 01ea3530 TRAP: 0200 DEAR: 00000000
MSR: 00000000 EE: 0 PR: 0 FP: 0 ME: 0 IR/DR: 00

GPR00: 00000000 01EA3620 01EA3B50 01FCB980 00000000 00000000 01FCBA18 4DD781F3
GPR08: 01FA79F4 84600100 4800FFEE 00000203 28000028 FFFFDE00 01FD0400 01FC3A58
GPR16: 01FC3A7C 01FC3A88 01EA3984 01EA3884 01EA3795 00000001 01EA3740 00000000
GPR24: 00000000 00000000 00000000 01EA3B88 84600100 01FCB984 01FD0F70 01FCB9D0
Call backtrace:
01EA3660 01FBA5D0 01FB8B24 01FA8F40 01FB3D8C 01FABB90 01FAC150
01FA7550 01FA6598
machine check

 

Comparing the original xparameters.h file with the xparameters.h from my project I noticed this difference.

 

Original:

/* Canonical LocalLink parameters for TRIMODE_MAC_GMII */
#define XPAR_LLTEMAC_0_LLINK_CONNECTED_TYPE XPAR_LL_DMA
#define XPAR_LLTEMAC_0_LLINK_CONNECTED_BASEADDR 0x84600100
#define XPAR_LLTEMAC_0_LLINK_CONNECTED_FIFO_INTR 0xFF
#define XPAR_LLTEMAC_0_LLINK_CONNECTED_DMARX_INTR 1
#define XPAR_LLTEMAC_0_LLINK_CONNECTED_DMATX_INTR 0

 

Mine:

/* Canonical LocalLink parameters for TRIMODE_MAC_GMII */
#define XPAR_LLTEMAC_0_LLINK_CONNECTED_TYPE XPAR_LL_FIFO
#define XPAR_LLTEMAC_0_LLINK_CONNECTED_BASEADDR 0x81a00000
#define XPAR_LLTEMAC_0_LLINK_CONNECTED_FIFO_INTR 3
#define XPAR_LLTEMAC_0_LLINK_CONNECTED_DMARX_INTR 0xFF
#define XPAR_LLTEMAC_0_LLINK_CONNECTED_DMATX_INTR 0xFF

/******************************************************************/

/* Definitions for driver LLFIFO */
#define XPAR_XLLFIFO_NUM_INSTANCES 1

/* Definitions for peripheral TRIMODE_MAC_GMII_FIFO */
#define XPAR_TRIMODE_MAC_GMII_FIFO_DEVICE_ID 0
#define XPAR_TRIMODE_MAC_GMII_FIFO_BASEADDR 0x81A00000
#define XPAR_TRIMODE_MAC_GMII_FIFO_HIGHADDR 0x81A0FFFF

/******************************************************************/

/* Canonical definitions for peripheral TRIMODE_MAC_GMII_FIFO */
#define XPAR_LLFIFO_0_DEVICE_ID XPAR_TRIMODE_MAC_GMII_FIFO_DEVICE_ID
#define XPAR_LLFIFO_0_BASEADDR 0x81A00000
#define XPAR_LLFIFO_0_HIGHADDR 0x81A0FFFF

 

 

 

Looks like the original was set up for DMA Type and mine for FIFO type.  Is it possible that the software will only support DMA type connections?

0 Kudos