Newbie and linux on virtex-II ppc

6 messages, 3 authors, 2007-08-28 · open the first message on its own page

Newbie and linux on virtex-II ppc

From: schardt <hidden>
Date: 2007-08-27 13:01:32

Hello,

im a student from germany and i try to run linux on a virtex-II with
integrated powerpc.
i use the developer board DS-DB-2VP4/7-FG456 from Memec ( i think its
now avnet)

i hope my questions are not too stupid :-)

what is running :

  - Xilinx EDK project (standalone program running fine, and BSP files
are generated)
    the project has only one UARTLITE, 82MB SDRAM and a few kByte
blockram, and the systemace interface
 
  - crosscompiler toolchain works

  - after modified some defines in the xparameters.h i got a linux 2.4.
kernel (linuxppc) without compiler errors
    and yes, the uartlite driver is enabled :)


but, when downloading the zImage.elf via XMD to the SDRAM and starting
it with the run command nothing happens , or  i think that nothings
happens because the serial port is quiet.

is it possible to run a kernel that way ? or need i some kind of
bootloader ?
or is this complete the wrong way ?

Regards
Georg



 
 





-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Forschungszentrum Jülich GmbH
52425 Jülich

Sitz der Gesellschaft: Jülich
Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in Bärbel Brumme-Bothe
Vorstand: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv. 
Vorsitzender)
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------

Re: Newbie and linux on virtex-II ppc

From: Grant Likely <hidden>
Date: 2007-08-27 13:09:47

On 8/27/07, schardt [off-list ref] wrote:
im a student from germany and i try to run linux on a virtex-II with
integrated powerpc.
i use the developer board DS-DB-2VP4/7-FG456 from Memec ( i think its
now avnet)

what is running :

  - Xilinx EDK project (standalone program running fine, and BSP files
are generated)
    the project has only one UARTLITE, 82MB SDRAM and a few kByte
blockram, and the systemace interface

  - crosscompiler toolchain works

  - after modified some defines in the xparameters.h i got a linux 2.4.
kernel (linuxppc) without compiler errors
I strongly recommend trying to bring up a 2.6 kernel, it's much easier.
    and yes, the uartlite driver is enabled :)
Don't modify xparams by hand; it's not worth the trouble.  Go into
software setting in your EDK project and select 'linux-2.6' as the OS.
 Generate the libraries and copy the generated xparameters_ml40x.h
into your kernel tree.

but, when downloading the zImage.elf via XMD to the SDRAM and starting
it with the run command nothing happens , or  i think that nothings
happens because the serial port is quiet.
You can always use System.map in the kernel tree to find out where
__log_buf was linked to.  Look at that location with the debugger to
see if there is a crash message that didn't get printed out.
is it possible to run a kernel that way ? or need i some kind of
bootloader ?
or is this complete the wrong way ?
Yes, I use this same method to bring up a kernel on Virtex boards
which don't have a bootloader.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

RE: Newbie and linux on virtex-II ppc

From: Ming Liu <hidden>
Date: 2007-08-27 13:54:52

Dear Georg,
is it possible to run a kernel that way ? or need i some kind of
bootloader ?
or is this complete the wrong way ?
Yes, you can. Actually what I did is to include a bootloop in the hardware 
bitstream and that will keep your CPU waiting until the kernel's running.

BR
Ming

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  

Re: Newbie and linux on virtex-II ppc

From: schardt <hidden>
Date: 2007-08-27 14:18:02

Grant Likely wrote:
On 8/27/07, schardt [off-list ref] wrote:
  
quoted
im a student from germany and i try to run linux on a virtex-II with
integrated powerpc.
i use the developer board DS-DB-2VP4/7-FG456 from Memec ( i think its
now avnet)

what is running :

  - Xilinx EDK project (standalone program running fine, and BSP files
are generated)
    the project has only one UARTLITE, 82MB SDRAM and a few kByte
blockram, and the systemace interface

  - crosscompiler toolchain works

  - after modified some defines in the xparameters.h i got a linux 2.4.
kernel (linuxppc) without compiler errors
    
I strongly recommend trying to bring up a 2.6 kernel, it's much easier.
  
okay, i'll try it :)
  
quoted
    and yes, the uartlite driver is enabled :)
    
Don't modify xparams by hand; it's not worth the trouble.  Go into
software setting in your EDK project and select 'linux-2.6' as the OS.
 Generate the libraries and copy the generated xparameters_ml40x.h
into your kernel tree.

  
i dont have this option. do i need a update  ?


G





-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Forschungszentrum Jülich GmbH
52425 Jülich

Sitz der Gesellschaft: Jülich
Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in Bärbel Brumme-Bothe
Vorstand: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv. 
Vorsitzender)
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------

Re: Newbie and linux on virtex-II ppc

From: Grant Likely <hidden>
Date: 2007-08-27 14:21:21

On 8/27/07, schardt [off-list ref] wrote:
quoted
Don't modify xparams by hand; it's not worth the trouble.  Go into
software setting in your EDK project and select 'linux-2.6' as the OS.
 Generate the libraries and copy the generated xparameters_ml40x.h
into your kernel tree.
i dont have this option. do i need a update  ?
Probably, but you can use the montavista 2.4 option also.  You're only
interested in the xparameters.h file, not the whole BSP.  (Letting EDK
generate files into your kernel tree is scary)

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

Re: Newbie and linux on virtex-II ppc

From: schardt <hidden>
Date: 2007-08-28 06:52:27

Good morning,

last night i got a 2.6. kernel ready and ive got a "Now booting the
kernel" message on the serial port *yeah* :)

... but nothing more :(

the __log_buffer says something like "Linux version ..."
is there a more useable way to read out the buffer ?  i use the xmd
debugger and the mrd command

Regards
Georg

Grant Likely wrote:
On 8/27/07, schardt [off-list ref] wrote:
  
quoted
im a student from germany and i try to run linux on a virtex-II with
integrated powerpc.
i use the developer board DS-DB-2VP4/7-FG456 from Memec ( i think its
now avnet)

what is running :

  - Xilinx EDK project (standalone program running fine, and BSP files
are generated)
    the project has only one UARTLITE, 82MB SDRAM and a few kByte
blockram, and the systemace interface

  - crosscompiler toolchain works

  - after modified some defines in the xparameters.h i got a linux 2.4.
kernel (linuxppc) without compiler errors
    
I strongly recommend trying to bring up a 2.6 kernel, it's much easier.

  
quoted
    and yes, the uartlite driver is enabled :)
    
Don't modify xparams by hand; it's not worth the trouble.  Go into
software setting in your EDK project and select 'linux-2.6' as the OS.
 Generate the libraries and copy the generated xparameters_ml40x.h
into your kernel tree.

  
quoted
but, when downloading the zImage.elf via XMD to the SDRAM and starting
it with the run command nothing happens , or  i think that nothings
happens because the serial port is quiet.
    
You can always use System.map in the kernel tree to find out where
__log_buf was linked to.  Look at that location with the debugger to
see if there is a crash message that didn't get printed out.

  
quoted
is it possible to run a kernel that way ? or need i some kind of
bootloader ?
or is this complete the wrong way ?
    
Yes, I use this same method to bring up a kernel on Virtex boards
which don't have a bootloader.

  


-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Forschungszentrum Jülich GmbH
52425 Jülich

Sitz der Gesellschaft: Jülich
Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in Bärbel Brumme-Bothe
Vorstand: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv. 
Vorsitzender)
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help