Skip to contentSkip to conversation

May I ask some questions?

DISCUSSION vencent2006 3 participants 3 messages May 28, 2008 – May 29, 2008

lore
Share & tools
lore
#0 lore raw

I am Michael from China.A few days ago, I was supposed to debug executable.elf with xmd while some problems happened.It said like that:
xmd% dow executable.elf
Failed to download ELF file

ERROR(1053):UNABLE TO READ ELF FILE.THE ELF FILE
MAYBE CORRUPTED
:executable.elf

I wanna ask u to point out what causes this problem.

There is another question about "xparameters.h" and
"xparameters_ml300.h". When I have generated BSP, there are two "xparameters.h" files in project which
have the same name while different size(eg: one is 22k ,the other is 4k). Which one is the proper?
And when I add "xparameters.h" and "xparameters_ml300.h" to the kernel, some compiling
error occurs.
eg:
arch/ppc/syslib/virtex_devices.c:116: error: 'XPAR_UARTNS550_0_CLOCK_FREQ_HZ' undeclared here (not in a function) arch/ppc/syslib/virtex_devices.c:119: error: 'XPAR_UARTNS550_1_CLOCK_FREQ_HZ' undeclared here (not in a function)
I don't understand where to define them and whether i need them or not.
my eldk is:eldk/4.2/ppc-linux-x86
using Xilinx EDK/ISE 9.1
Linux 2.6.24

--

#1 lore raw
Quoted 6 lines · vencent2006 wrote:

I am Michael from China.A few days ago, I was supposed to debug executable.elf with xmd while some problems happened.It said like that:
xmd% dow executable.elf
Failed to download ELF file
ERROR(1053):UNABLE TO READ ELF FILE.THE ELF FILE
MAYBE CORRUPTED
:executable.elf

You need to install updates for EDK. xmd 9.1 without updates is known to have broken ELF loader

Quoted 5 lines

I wanna ask u to point out what causes this problem.
There is another question about "xparameters.h" and
"xparameters_ml300.h". When I have generated BSP, there are two "xparameters.h" files in project which have the same name while different size(eg: one is 22k ,the other is 4k). Which one is the proper? And when I add "xparameters.h" and "xparameters_ml300.h" to the kernel, some compiling

Quoted 8 lines

error occurs.
eg:
arch/ppc/syslib/virtex_devices.c:116: error: 'XPAR_UARTNS550_0_CLOCK_FREQ_HZ' undeclared here (not in a function) arch/ppc/syslib/virtex_devices.c:119: error: 'XPAR_UARTNS550_1_CLOCK_FREQ_HZ' undeclared here (not in a function) I don't understand where to define them and whether i need them or not.
my eldk is:eldk/4.2/ppc-linux-x86
using Xilinx EDK/ISE 9.1
Linux 2.6.24

These macros must be defined in xparameters_ml300.h. You need them as they define base frequency for UARTNS550 and proper configuration of baud rates depends on it

Quoted 12 lines

--

------------------------------------------------------------------------
眼睛干涩?润洁一下!清凉配方,多重营养,缓解眼疲劳 <http://popme.163.com/link/004304_0515_8953.html>
------------------------------------------------------------------------

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev

#2 lore raw

xparameters.h will #include the other xparameters_mlxxx.h file. When using XPS in the EDK, you can use the 'software platforms settings' dialog box to specify the peripherals to use, the size of memory to use, and other parameters. When this is done, you can select 'generate libraries and bsps' which will generate an xparameters_mlxxx.h file, where xxx is a board number. e.g. xparameters_ml40x.h, or xparameters_ml507.h

The generated xparameters_mlxxx.h file will include the XPAR_xxx values you need.

- John

Quoted 18 lines
Quoted 10 lines

I wanna ask u to point out what causes this problem. There is another question about "xparameters.h" and "xparameters_ml300.h". When I have generated BSP, there are two "xparameters.h" files in project which
have the same name while different size(eg: one is 22k ,the other is 4k). Which one is the proper?
And when I add "xparameters.h" and "xparameters_ml300.h" to the kernel, some compiling
error occurs.
eg:

Quoted 8 lines

arch/ppc/syslib/virtex_devices.c:116: error:
'XPAR_UARTNS550_0_CLOCK_FREQ_HZ' undeclared here (not in a function) arch/ppc/syslib/virtex_devices.c:119: error:
'XPAR_UARTNS550_1_CLOCK_FREQ_HZ' undeclared here (not in a function) I don't understand where to define them and whether i need them or not. my eldk is:eldk/4.2/ppc-linux-x86
using Xilinx EDK/ISE 9.1
Linux 2.6.24

Quoted 3 lines

These macros must be defined in xparameters_ml300.h. You need them as they define base frequency for UARTNS550 and proper configuration of baud rates depends on it

________________________________________________________________________

John Bonesio
Commercial Linux Solutions
[email protected]
(408) 879-5569

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.