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: 
Explorer
Explorer
9,290 Views
Registered: ‎08-17-2015

boot linux with SD card

Jump to solution

Hi all

I have tried to boot linux with SD card on Zynq (ZC706)

 

I have made BOOT.bin by using "create zynq boot image" (FSBL.elf / xxxx.bit / u-boot.elf )

 

Booting linux with QSPI Flash was successfully done.

 

However, using SD card was not able to boot linux on zynq.

 

There were two file on SD card

BOOT.bin that I have generated from "create zynq boot image"

image.ub that I have downloaded from Xilinx website

 

I have set SW11 for SD mode.

However, it showed 

ERROR: can't get kernel image!

 

I have to use XSDB console to download image.ub through JTAG.

Then, booting linux could be successful.

 

Do you think I can boot linux by using SD card as standalone?

In other words, Can I boot linux without downloading image.ub through XSDB console?

I want the system to boot linux when I just power on withouth any command.

 

I appreciate any comment or help

 

Thank you

 

 

 

0 Kudos
1 Solution

Accepted Solutions
Scholar sampatd
Scholar
17,893 Views
Registered: ‎09-05-2011

Re: boot linux with SD card

Jump to solution
Try this:

1. Download the ZC706 BSP from the link below:
http://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools/2015-4.html

2. Install the BSP. Check the following guide for installing petalinux BSP
http://www.xilinx.com/support/documentation/sw_manuals/petalinux2015_4/ug1144-petalinux-tools-reference-guide.pdf

3. Build the image using petalinux-build command.

Now, use the petalinux-package command to make BOOT.bin (check page 29 of the above guide)

Use the image.ub and BOOT.bin files to boot from SD card.

Let me know if you get the same error
6 Replies
Scholar sampatd
Scholar
17,894 Views
Registered: ‎09-05-2011

Re: boot linux with SD card

Jump to solution
Try this:

1. Download the ZC706 BSP from the link below:
http://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools/2015-4.html

2. Install the BSP. Check the following guide for installing petalinux BSP
http://www.xilinx.com/support/documentation/sw_manuals/petalinux2015_4/ug1144-petalinux-tools-reference-guide.pdf

3. Build the image using petalinux-build command.

Now, use the petalinux-package command to make BOOT.bin (check page 29 of the above guide)

Use the image.ub and BOOT.bin files to boot from SD card.

Let me know if you get the same error
Explorer
Explorer
9,276 Views
Registered: ‎08-17-2015

Re: boot linux with SD card

Jump to solution

Thank you @sampatd

 

Since booting linux was successfully done when I download image.ub through JTAG,

then I don't think image.ub / BOOT.bin have problem.

 

I just read the link that you sent and I got more confused.

My goal is just run linux on ZYNQ as standalone.

Actually I am new to linux (embedded). I am currently RTL engineer.

 

Anyway, I think this issue is very simple, since I am following tutorial (UG1195)

Since using QSPI flash for booting linux works fine (but not on SD card), there is no problem on the files (image.ub / BOOT.bin)

 

I think there is a very small thing that I have missed or I need to fix.

 

Anyway thanks for comment.

I will read the link again

 

Thank you

0 Kudos
Scholar sampatd
Scholar
9,272 Views
Registered: ‎09-05-2011

Re: boot linux with SD card

Jump to solution

To quickly check if your SD card is working properly, you can use the files attached (BOOT.bin and image.ub).

 

Check if you can boot with these files. If yes, then there is an issue with your files.

Explorer
Explorer
9,265 Views
Registered: ‎08-17-2015

Re: boot linux with SD card

Jump to solution

Oh my god.

it works.

 

Thanks @sampatd

 

So, the conclusion of this issue is that BOOT.bin has some problem.

Backward, BOOT.bin consist of three files (u-boot.elf / xxx.bit / FSBL.elf)

As long as your files works fine on this board, it means that u-boot.elf has some problem.

I have used download file from xilinx website.

 

So, I have to make my own u-boot.elf from my PC (linux)

Now, I have to install petalinux on my PC.

Is it correct?

 

Also, I have to install bsp on linux. right? or do i have to install on window (currently using) ?

Do you have any link or document to make u-boot.elf ?

 

I really appreciate your help

 

0 Kudos
Scholar sampatd
Scholar
9,260 Views
Registered: ‎09-05-2011

Re: boot linux with SD card

Jump to solution
PetaLinux tools automatically generate the required files. You can follow the guide I mentioned above.
Explorer
Explorer
9,221 Views
Registered: ‎08-17-2015

Re: boot linux with SD card

Jump to solution

Hi @sampatd

I have two more questions

 

one is that what is the role of Image.ub ?

 

Another question is what is the difference between generating u-boot in SDK and in petalinux tools?

I think the result should be the same from both cases.

 

There might be some minor different things such as enviornment setting.

I asked my co-worker (good at linux) to fix the issue.

He compared the environment set-up for both BOOT.bin files (the one you generated in petalinux tools / the one I generated in SDK)

 

He said that Image.ub was set to be downloaded from flash memory, not from SD-card.

 

BOOT.bin generated in SDK should work as tutorial in general. right? (but i had some issue somehow)

So, I just want to confirm that generating BOOT.bin in SDK shouldn't have any problem in general.

 

Thank you

 

 

 

 

0 Kudos