cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
raviphulsundar
Visitor
Visitor
8,079 Views
Registered: ‎02-23-2011

Booting Linux

 

 

 

Dear All,

First time I am porting linux on ML507.

I could able to compile the kernel successfully, and generated kernel image.

I have then downloaded image on ML507 with XMD,  But after run command I'm not able to see anything on Hyperterminal

which I set for 9600 baudrate, following are the output I got after downloading image on board

 

Connected to "ppc" target. id = 0

Starting GDB server for "ppc" target (id = 0) at TCP port no 1234

XMD% dow simpleImage.virtex440-ml507.elf

System Reset .... DONE

Downloading Program -- simpleImage.virtex440-ml507.elf

section, .text: 0x00800000-0x00808d5f

section, .data: 0x00809000-0x0080abef

section, __builtin_cmdline: 0x0080abf0-0x0080adef

section, .kernel:dtb: 0x0080adf0-0x0080dd7c

section, .kernel:vmlinux.strip: 0x0080e000-0x009c8492

section, .bss: 0x009c9000-0x009d5ddb

Setting PC with Program Start Address 0x00800000

 

XMD% run

Info:Processor started. Type "stop" to stop processor

 

RUNNING> XMD%

 

0 Kudos
9 Replies
Anonymous
Not applicable
8,063 Views

Did you follow the steps at xilinx.wikidot.com? Sorry, have to ask..

 

Terry

 

0 Kudos
raviphulsundar
Visitor
Visitor
8,016 Views
Registered: ‎02-23-2011

Thanx for reply,

 

I have followed the step as per http://xilinx.wikidot.com/powerpc-linux document

 

But no result

 

0 Kudos
linnj
Xilinx Employee
Xilinx Employee
8,000 Views
Registered: ‎09-10-2008

You don't provide much detail. You may have to use the kernel debug page on the wiki to debug the problem.

 

If you're using the Xilinx provided reference design then you should be able to get there pretty easy.  If not, then you should be using everything we give you before you do anything on your own.

 

Thanks.

0 Kudos
raviphulsundar
Visitor
Visitor
7,979 Views
Registered: ‎02-23-2011

As per your suggesstion I'm trying to follow the step given in "Debugging Kernel Boot Problems"

 

Where I should search for device tree file ?

 

As per few document on web I searched the device tree file in project/ppc440_0/libsrc/  but I could not get the device tree file

over there.

 

Where I should search, Is there anything I need to do in EDK after compiling kernel and before downloading it using XMD ?

 

 

 

0 Kudos
Anonymous
Not applicable
7,945 Views

Did you look here? http://xilinx.wikidot.com/powerpc-linux

 

Or here? http://xilinx.wikidot.com/device-tree-generator

 

Did you follow the process for pulling down the device-tree bsp and adding it to your XPS or SDK project?

 

 

Terry

 

0 Kudos
Anonymous
Not applicable
7,911 Views

Hi raviphulsundar,

 

I have created some slides at:

http://fusion.phys.tue.nl/fpga/doku.php?id=fpgaworkshop2011#workshop_slides

 

You may find some some answers to why no output is being displayed in the slides.

 

Ensure you kernel dts file matches your baud rate

Ensure as shown in the slides your SDK output is set to your uart or perhaps you want output to display on XMD, in which case leave it as is (see slides).

 

 

Best regards and good luck!

 

Billy.

0 Kudos
raviphulsundar
Visitor
Visitor
7,873 Views
Registered: ‎02-23-2011

Dear sir, thanx for reply,

 

I was trying to pull device tree bsp folder through EDK, to XPS

 

But whatever procedure I got from http://xilinx.wikidot.com/device-tree-generator

 

I could not able to complete, because I have EDK 10.1 where as the procedure was give for EDK 12

 

like there is one step given  'Export Hardware Design to SDK' from project submenu

 

but I could not find any such submenu

 

What shall I do

 

Ravi

 

 

 

 

0 Kudos
linnj
Xilinx Employee
Xilinx Employee
7,853 Views
Registered: ‎09-10-2008

Here's what the wiki says....

 

Starting in EDK 12.4, it's not possible to generate the device tree from the EDK. It must be generated in the SDK which can be launched from the EDK (or other ways).

 

The menu you can't find is in the SDK, not the EDK.  The other information should work as shown below...

 

EDK Setup

After getting the device tree generator from git://git.xilinx.com/device-tree.git, you will need to copy the 'bsp' directory and contents so that it can be used by XPS. The simplest approach is to copy the 'bsp' directory to the top of your project directory.2
NOTE: Under Centos 5 or Ubuntu, you have to softlink the libdb library. In Centos 5, run "ln -s /lib/libdb-4.3.so /lib/libdb-4.1.so" to get the dts generator to finish under certain circumstances.

cp -r bsp <path to project>/


If your project is currently open in XPS, you will need to close and re-open the project for XPS to notice the changes.

0 Kudos
raviphulsundar
Visitor
Visitor
7,762 Views
Registered: ‎02-23-2011

Dear Sir,

 

for device tree generation

 

I followed following steps before getting stuck again

 

1.Export Hardware Design to SDK', completed

2.added $PROJECT/bsptop directory to repository

3. 'Rescan Repositories'

4. created 'Xilinx Board Support Package" by selecting  "device tree" in board support package OS without any error.

 

 

After that it is written as bellow 
 

To use the device tree generator, select 'device-tree' in the pull down menu labeled 'OS' in the Software Platform Settings dialog box in XPS.

 

But I could not able to find out device-tree option Software Platform Settings->Software PLatform-> OS.

 

waiting for reply

 

thanx in advance

 

 

 

 

0 Kudos