Generated xilinx linux 2.6 image sections
Hi all,
I'm trying to boot the 2.6 xilinx kernel downloaded from their git server in the XUPV2P board I'm really having troubles (I can't see anything in the minicom console terminal). I'm not seeing anything, neither the ucompressing kernel string nor the prompt with the memory addresses that kernel prompt at first time, so I have started to distrust of anything.
When I download the kernel using xmd, I see:
XMD% dow imagen_UART16550_ml300.elf
section, .text: 0x00400000-0x0040387b
section, .data: 0x00404000-0x004e6fff
section, .bss: 0x004e7000-0x004e919fDownloaded Program imagen_UART16550_ml300.elf
Setting PC with Program Start Address 0x00400000
and when I download some of the TestApp generated by EDK I see:
XMD% dow perif.elf
section, .vectors: 0xfffe0000-0xfffe20c3
section, .text: 0x10000000-0x10003b7b
section, .init: 0x10003b7c-0x10003b9f
section, .fini: 0x10003ba0-0x10003bbf
section, .boot0: 0xfffe20c4-0xfffe20d3
section, .boot: 0xfffffffc-0xffffffff
section, .rodata: 0x10003bc0-0x10004111
section, .sdata2: 0x10004114-0x10004113
section, .sbss2: 0x10004114-0x10004113
section, .data: 0x10004114-0x10004243
section, .got: 0x10004244-0x10004243
section, .got1: 0x10004244-0x10004243
section, .got2: 0x10004244-0x1000425f
section, .ctors: 0x10004260-0x10004267
section, .dtors: 0x10004268-0x1000426f
section, .fixup: 0x10004270-0x1000426f
section, .eh_frame: 0x10004270-0x10004277
section, .jcr: 0x10004278-0x1000427b
section, .gcc_except_table: 0x1000427c-0x100042
section, .sdata: 0x1000427c-0x10004293
section, .sbss: 0x10004294-0x100042a3
section, .bss: 0x100042a4-0x10004473
section, .stack: 0x10004474-0x1000647f
section, .heap: 0x10006480-0x1000847fDownloaded Program perif.elf
Setting PC with Program Start Address 0xfffffffc
Does anybody know why the kernel elf don't have a boot section like the TestApp generated by EDK?
I suppossed this is because the image kernel is compressed, but despite beeing compressed it should have a boot section or something similar ??? It's right that the kernel start address is set to the 0x00400000??
Or does the section .text contains all the kernel code to uncompresse the code of the kernel??
Signature · 2 lines
View this message in context: http://www.nabble.com/Generated-xilinx-linux-2.6--image-sections-tp14997109p14997109.html Sent from the linuxppc-embedded mailing list archive at Nabble.com.
Quoted 18 lines · greenlean
Hi all,
I'm trying to boot the 2.6 xilinx kernel downloaded from their git server in the XUPV2P board I'm really having troubles (I can't see anything in the minicom console terminal). I'm not seeing anything, neither the ucompressing kernel string nor the prompt with the memory addresses that kernel prompt at first time, so I have started to distrust of anything.
When I download the kernel using xmd, I see:
XMD% dow imagen_UART16550_ml300.elf
section, .text: 0x00400000-0x0040387b section, .data: 0x00404000-0x004e6fff section, .bss: 0x004e7000-0x004e919fDownloaded Program imagen_UART16550_ml300.elf
Setting PC with Program Start Address0x00400000
<snip>
Quoted 6 lines
I suppossed this is because the image kernel is compressed, but despite beeing compressed it should have a boot section or something similar ??? It's right that the kernel start address is set to the
0x00400000??Or does the section .text contains all the kernel code to uncompresse the code of the kernel??
Yes; what you're seeing is the sections for the boot wrapper; not for the kernel itself. The bootwrapper carries a compressed kernel image as it's payload (notice how large the .data section is?). To see the sections on the kernel proper, use readelf on the vmlinux file in the kernel tree.
Cheers,
g.
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.
The testapps are generated using a different linker script.
Based on what you sent out, it looks like your EDK design has a memory at 0x10000000, but this is
not reflected in the linux image you've generated. This makes me suspect that you haven't generated the BSP and copied the appropriate xparameters file over xparameters_xup.h (assuming you are using CONFIG_XILINX_XUPV2P).
Steve
Quoted 2 lines
-----Original Message-----
From: [email protected]
[mailto:linuxppc-embedded-
Quoted 9 lines
[email protected]] On Behalf Of greenlean
Sent: Monday, January 21, 2008 5:06 AM
To: [email protected]
Subject: Generated xilinx linux 2.6 image sections
=20
=20
Hi all,
=20
I'm trying to boot the 2.6 xilinx kernel downloaded from their git
server in
Quoted 1 line
the XUPV2P board I'm really having troubles (I can't see anything in
the
Quoted 1 line
minicom console terminal). I'm not seeing anything, neither the
ucompressing
Quoted 1 line
kernel string nor the prompt with the memory addresses that kernel
prompt at
Quoted 38 lines
first time, so I have started to distrust of anything. =20
When I download the kernel using xmd, I see:
=20
XMD% dow imagen_UART16550_ml300.elfsection, .text: 0x00400000-0x0040387b section, .data: 0x00404000-0x004e6fff section, .bss: 0x004e7000-0x004e919fDownloaded Program imagen_UART16550_ml300.elf
Setting PC with Program Start Address0x00400000
=20
and when I download some of the TestApp generated by EDK I see:
=20
XMD% dow perif.elfsection, .vectors: 0xfffe0000-0xfffe20c3 section, .text: 0x10000000-0x10003b7b section, .init: 0x10003b7c-0x10003b9f section, .fini: 0x10003ba0-0x10003bbf section, .boot0: 0xfffe20c4-0xfffe20d3 section, .boot: 0xfffffffc-0xffffffff section, .rodata: 0x10003bc0-0x10004111 section, .sdata2: 0x10004114-0x10004113 section, .sbss2: 0x10004114-0x10004113 section, .data: 0x10004114-0x10004243 section, .got: 0x10004244-0x10004243 section, .got1: 0x10004244-0x10004243 section, .got2: 0x10004244-0x1000425f section, .ctors: 0x10004260-0x10004267 section, .dtors: 0x10004268-0x1000426f section, .fixup: 0x10004270-0x1000426f section, .eh_frame: 0x10004270-0x10004277 section, .jcr: 0x10004278-0x1000427b section, .gcc_except_table: 0x1000427c-0x100042 section, .sdata: 0x1000427c-0x10004293 section, .sbss: 0x10004294-0x100042a3 section, .bss: 0x100042a4-0x10004473 section, .stack: 0x10004474-0x1000647f section, .heap: 0x10006480-0x1000847f
Quoted 4 lines
Downloaded Program perif.elf
Setting PC with Program Start Address0xfffffffc
=20
Does anybody know why the kernel elf don't have a boot section like
the
Quoted 3 lines
TestApp generated by EDK?
=20
I suppossed this is because the image kernel is compressed, but
despite
Quoted 1 line
beeing compressed it should have a boot section or something similar
???
Quoted 3 lines
It's right that the kernel start address is set to the
0x00400000?? =20
Or does the section .text contains all the kernel code to uncompresse
the
Quoted 6 lines
code of the kernel??
=20
=20
=20
--
View this message in context:
http://www.nabble.com/Generated-xilinx-linux-2.6--image-sections-
Quoted 7 lines
tp14997109p14997109.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com. =20
_______________________________________________
Linuxppc-embedded mailing list [email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
I've got two DDR memories declared on my EDK xparameters_ml300.h file
/* Definitions for driver DDR */
#define XPAR_XDDR_NUM_INSTANCES 1
/* Definitions for peripheral DDR_512MB_64MX64_RANK2_ROW13_COL10_CL2_5 */ #define XPAR_DDR_512MB_64MX64_RANK2_ROW13_COL10_CL2_5_ECC_BASEADDR 0xFFFFFFFF
#define XPAR_DDR_512MB_64MX64_RANK2_ROW13_COL10_CL2_5_ECC_HIGHADDR 0x00000000
#define XPAR_DDR_512MB_64MX64_RANK2_ROW13_COL10_CL2_5_DEVICE_ID 0 #define XPAR_DDR_512MB_64MX64_RANK2_ROW13_COL10_CL2_5_INCLUDE_ECC_INTR 0
/******************************************************************/
/* Definitions for peripheral DDR_512MB_64MX64_RANK2_ROW13_COL10_CL2_5 */ #define XPAR_DDR_512MB_64MX64_RANK2_ROW13_COL10_CL2_5_MEM0_BASEADDR 0x00000000
#define XPAR_DDR_512MB_64MX64_RANK2_ROW13_COL10_CL2_5_MEM0_HIGHADDR 0x0FFFFFFF
#define XPAR_DDR_512MB_64MX64_RANK2_ROW13_COL10_CL2_5_MEM1_BASEADDR 0x10000000
#define XPAR_DDR_512MB_64MX64_RANK2_ROW13_COL10_CL2_5_MEM1_HIGHADDR 0x1FFFFFFF /******************************************************************/
/* Definitions for peripheral PLB_BRAM_IF_CNTLR_1 */ #define XPAR_PLB_BRAM_IF_CNTLR_1_BASEADDR 0xfffe0000 #define XPAR_PLB_BRAM_IF_CNTLR_1_HIGHADDR 0xffffffff
/******************************************************************/
And my .config file is using this configuration for the memory:
CONFIG_HIGHMEM_START=0xfe000000CONFIG_LOWMEM_SIZE=0x30000000CONFIG_KERNEL_START=0xc0000000CONFIG_TASK_SIZE=0x80000000CONFIG_CONSISTENT_START=0xff100000CONFIG_CONSISTENT_SIZE=0x00200000CONFIG_BOOT_LOAD=0x00400000
Should I change this options to make the kernel CONFIG_BOOT_LOAD start in the seccond MEM1?, or is the problem caused by CONFIG_CONSISTENT_START?? How are used this variables?? Is the kernel start address out of the memory (( 0xC0000000 > 0x1FFFFFFF??
I'm using a DDR 256 from Kingston KVR266X64C25/256 and when I run the TestApp_Memory it fails at
-- Entering main() --
Starting MemoryTest for DDR_512MB_64Mx64_rank2_row13_col10_cl2_5:
Running 32-bit test...FAILED!
Running 16-bit test...FAILED!
Running 8-bit test...FAILED!
Starting MemoryTest for DDR_512MB_64Mx64_rank2_row13_col10_cl2_5:
Running 32-bit test...PASSED!
Running 16-bit test...PASSED!
Running 8-bit test...PASSED!
-- Exiting main() --
I thought that this didn't mind but the first test is form Mem0 (XUtil_MemoryTest32((Xuint32*)XPAR_DDR_512MB_64MX64_RANK2_ROW13_COL10_CL2_5_MEM0_BASEADDR)
and the second one is for mem1 ( XUtil_MemoryTest32((Xuint32*)XPAR_DDR_512MB_64MX64_RANK2_ROW13_COL10_CL2_5_MEM1_BASEADDR, 1024, 0xAAAA5555, XUT_ALLMEMTESTS);)
and the first one is failing so if the kernel is trying to boot from mem0 (CONFIG_BOOT_LOAD=0x00400000) i shouldn't boot, or should it?
Please, can someone confirm me this, while I try myself... I'm not sure how this addresses works!!!
Quoted 106 lines · Stephen Neuendorffer
The testapps are generated using a different linker script.
Based on what you sent out, it looks like your EDK design has a memory at
0x10000000, but this is
not reflected in the linux image you've generated. This makes me suspect that you haven't generated the BSP and copied the appropriate xparameters file overxparameters_xup.h(assuming you are usingCONFIG_XILINX_XUPV2P).Steve
Quoted 2 lines
-----Original Message-----
From: [email protected][mailto:linuxppc-embedded-
Quoted 9 lines
[email protected]] On Behalf Of greenlean
Sent: Monday, January 21, 2008 5:06 AM
To: [email protected]
Subject: Generated xilinx linux 2.6 image sectionsHi all,
I'm trying to boot the 2.6 xilinx kernel downloaded from their git
server in
Quoted 1 line
the XUPV2P board I'm really having troubles (I can't see anything in
the
Quoted 1 line
minicom console terminal). I'm not seeing anything, neither the
ucompressing
Quoted 1 line
kernel string nor the prompt with the memory addresses that kernel
prompt at
Quoted 38 lines
first time, so I have started to distrust of anything.
When I download the kernel using xmd, I see:
XMD% dow imagen_UART16550_ml300.elf
section, .text: 0x00400000-0x0040387b section, .data: 0x00404000-0x004e6fff section, .bss: 0x004e7000-0x004e919fDownloaded Program imagen_UART16550_ml300.elf
Setting PC with Program Start Address0x00400000and when I download some of the TestApp generated by EDK I see:
XMD% dow perif.elf
section, .vectors: 0xfffe0000-0xfffe20c3 section, .text: 0x10000000-0x10003b7b section, .init: 0x10003b7c-0x10003b9f section, .fini: 0x10003ba0-0x10003bbf section, .boot0: 0xfffe20c4-0xfffe20d3 section, .boot: 0xfffffffc-0xffffffff section, .rodata: 0x10003bc0-0x10004111 section, .sdata2: 0x10004114-0x10004113 section, .sbss2: 0x10004114-0x10004113 section, .data: 0x10004114-0x10004243 section, .got: 0x10004244-0x10004243 section, .got1: 0x10004244-0x10004243 section, .got2: 0x10004244-0x1000425f section, .ctors: 0x10004260-0x10004267 section, .dtors: 0x10004268-0x1000426f section, .fixup: 0x10004270-0x1000426f section, .eh_frame: 0x10004270-0x10004277 section, .jcr: 0x10004278-0x1000427b section, .gcc_except_table: 0x1000427c-0x100042 section, .sdata: 0x1000427c-0x10004293 section, .sbss: 0x10004294-0x100042a3 section, .bss: 0x100042a4-0x10004473 section, .stack: 0x10004474-0x1000647f section, .heap: 0x10006480-0x1000847fQuoted 4 lines
Downloaded Program perif.elf
Setting PC with Program Start Address0xfffffffcDoes anybody know why the kernel elf don't have a boot section like
the
Quoted 3 lines
TestApp generated by EDK?
I suppossed this is because the image kernel is compressed, but
despite
Quoted 1 line
beeing compressed it should have a boot section or something similar
???
Quoted 3 lines
It's right that the kernel start address is set to the
0x00400000??Or does the section .text contains all the kernel code to uncompresse
the
Quoted 6 lines
code of the kernel??
--
View this message in context:http://www.nabble.com/Generated-xilinx-linux-2.6--image-sections-
Quoted 7 lines
tp14997109p14997109.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com._______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Signature · 2 lines
View this message in context: http://www.nabble.com/Generated-xilinx-linux-2.6--image-sections-tp14997109p15015244.html Sent from the linuxppc-embedded mailing list archive at Nabble.com.
Now It's running the problem was the DDR controller I was including the 512 one but I'm working with a 256 DDR module .......
Thanks for the orientation, really usefull.
Bye.
Quoted 44 lines · Stephen Neuendorffer
The testapps are generated using a different linker script.
Based on what you sent out, it looks like your EDK design has a memory at
0x10000000, but this is
not reflected in the linux image you've generated. This makes me suspect that you haven't generated the BSP and copied the appropriate xparameters file overxparameters_xup.h(assuming you are usingCONFIG_XILINX_XUPV2P).Steve
Quoted 2 lines
-----Original Message-----
From: [email protected][mailto:linuxppc-embedded-
Quoted 9 lines
[email protected]] On Behalf Of greenlean
Sent: Monday, January 21, 2008 5:06 AM
To: [email protected]
Subject: Generated xilinx linux 2.6 image sectionsHi all,
I'm trying to boot the 2.6 xilinx kernel downloaded from their git
server in
Quoted 1 line
the XUPV2P board I'm really having troubles (I can't see anything in
the
Quoted 1 line
minicom console terminal). I'm not seeing anything, neither the
ucompressing
Quoted 1 line
kernel string nor the prompt with the memory addresses that kernel
prompt at
Quoted 5 lines
first time, so I have started to distrust of anything.
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Signature · 2 lines
View this message in context: http://www.nabble.com/Generated-xilinx-linux-2.6--image-sections-tp14997109p15018508.html Sent from the linuxppc-embedded mailing list archive at Nabble.com.
That would do it!
What's strange is that the testapps linked into the second bank by default, which *happened* to work.
Steve
Quoted 2 lines
-----Original Message-----
From: [email protected]
[mailto:linuxppc-embedded-
Quoted 7 lines
[email protected]] On Behalf Of greenlean
Sent: Tuesday, January 22, 2008 5:29 AM
To: [email protected]
Subject: RE: Generated xilinx linux 2.6 image sections
=20
=20
Now It's running the problem was the DDR controller I was including
the 512
Quoted 12 lines
one but I'm working with a 256 DDR module .......
=20
Thanks for the orientation, really usefull.
=20
Bye.
=20
=20Quoted 4 lines · Stephen Neuendorffer
The testapps are generated using a different linker script.
Based on what you sent out, it looks like your EDK design has a
memory
Quoted 3 lines
Quoted 3 lines
at
0x10000000, but this is
not reflected in the linux image you've generated. This makes me suspect that you haven't generated the BSP and copied the
appropriate
Quoted 7 lines
Quoted 7 lines
xparameters file over
xparameters_xup.h(assuming you are usingCONFIG_XILINX_XUPV2P).Steve
Quoted 2 lines
-----Original Message-----
From:
Quoted 2 lines
Quoted 2 lines
[mailto:linuxppc-embedded-
Quoted 1 line
[email protected]] On Behalf Of
greenlean
Quoted 10 lines
Quoted 10 lines
Quoted 8 lines
Sent: Monday, January 21, 2008 5:06 AM
To: [email protected]
Subject: Generated xilinx linux 2.6 image sectionsHi all,
I'm trying to boot the 2.6 xilinx kernel downloaded from their git
server in
Quoted 1 line
the XUPV2P board I'm really having troubles (I can't see anything
in
Quoted 18 lines
Quoted 8 lines
the
Quoted 1 line
minicom console terminal). I'm not seeing anything, neither the
ucompressing
Quoted 1 line
kernel string nor the prompt with the memory addresses that kernel
prompt at
Quoted 3 lines
first time, so I have started to distrust of anything.
Quoted 10 lines
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Quoted 5 lines
=20
=20
=20
--
View this message in context:
http://www.nabble.com/Generated-xilinx-linux-2.6--image-sections-
Quoted 7 lines
tp14997109p15018508.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com. =20
_______________________________________________
Linuxppc-embedded mailing list [email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded