cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
imppn
Visitor
Visitor
2,433 Views
Registered: ‎06-22-2018

unable to Boot Petalinux from SD card

Hello,

 

I struggle in this problem and I don't know how can I figure it out.

I installed Petalinux successfully,

then I create my project using the bsp file from Github  .using this command

petalinux-create -t project -s <path to .bsp file>

my project was  built successfully in my directory

I copy  the 2 files boot.bin and image.ub in my sd card

but nothing display in the terminal

Im sure that my hardware configuration is good

my board is zybo -zynq 7010.

 

Please any help

0 Kudos
Reply
10 Replies
jmcclusk
Mentor
Mentor
2,410 Views
Registered: ‎02-24-2014

did you also copy the device tree file?    the   .dtb file?

Don't forget to close a thread when possible by accepting a post as a solution.
0 Kudos
Reply
imppn
Visitor
Visitor
2,405 Views
Registered: ‎06-22-2018

Thank you for your help

yeaah I did

there is an attachement of my sd card.

I just I wanna be sure if I download  the bsp from github ,

it contains a ZYBO-Z7010 project .I dont need to create a new project right?

I just copy the files of the project

Screenshot from 2018-06-22 15-06-07.png
Screenshot from 2018-06-22 15-03-08.png
0 Kudos
Reply
jmcclusk
Mentor
Mentor
2,403 Views
Registered: ‎02-24-2014

normally an SD card has 2 partitions..   a FAT32 (W95) formatted partition named "boot" with type 0xB  of about 100 to 200 Mbytes as the first partition, and an EXT4 formatted partition named "rootfs" as the second (usually multiple GBytes).  

 

your boot files and linux image go in the first partition, and your linux file system goes in the 2nd partition.    Is this how you have it set up?

Don't forget to close a thread when possible by accepting a post as a solution.
0 Kudos
Reply
imppn
Visitor
Visitor
2,392 Views
Registered: ‎06-22-2018

I cant thank you enough for your help 

but this is my first time I work on sd Card 

how can I resolve this problem ?

I dont know if I put all files in two differents partition,I just copy all files and put it in sd card

0 Kudos
Reply
smarell
Community Manager
Community Manager
2,337 Views
Registered: ‎07-23-2012

Do you see any prints on serial terminal? If not, please follow the instructions in https://www.xilinx.com/support/answers/59476.html to narrow down the issue.
-----------------------------------------------------------------------------------------------
Please mark the post as "Accept as solution" if the information provided answers your query/resolves your issue.

Give Kudos to a post which you think is helpful.
0 Kudos
Reply
terryo
Xilinx Employee
Xilinx Employee
2,317 Views
Registered: ‎01-21-2014

DId you actually run a bare-metal "hello world" test to make sure you have the serial port setup correctly on your PC?

 

Every Petalinux  BSP I've come across by default uses a ramdisk for the rootfs, and a FIT image to package up the kernel + initramfs +  device tree.   So unless you changed the rootfs to something other than initramfs, you should be able to boot with boot.bin and image.ub (the FIT image) in the FAT partition.  That said, I'm not familiar with the Zybo BSP, so you'll need to take a look in the configuration GUI and see how it's setup. 

 

Another thing you should try first is to load the pre-built images packaged in the BSP. Once you see those working, then you know your hardware is good, and the serial port is operational. 

 

Regards, 

Terry

 

0 Kudos
Reply
kanzali
Visitor
Visitor
2,260 Views
Registered: ‎05-31-2018

To be honest I didnt underestand what are you explain.

I'm sorry can you explain more please because.

I didnt found a solution and I didnt unterstand what happen exactly but when   I short the two pin QSPI I see linux booting in the terminal as shown in attachement.

but When I SHORT the pin labeled SD nothing happened.

i FOLLOW it also this link https://www.youtube.com/watch?v=FMCfn0zwhaQ to copy the files on sd card but nothing happened.

in this link there is a file Env .txt did have any relation ?

Screenshot from 2018-07-02 21-08-29.png
0 Kudos
Reply
smellor
Contributor
Contributor
2,241 Views
Registered: ‎05-14-2018

Details of how to create the two partitions on the SD Card can be found here:

http://www.wiki.xilinx.com/Prepare%20Boot%20Medium

 

I'm new to PetaLinux myself but from the examples I've been working with formatting the SD Card as described in the link seems to be a requirement. This link really needs to be included in the example design documentation.

 

In the instructions it allocates 200MB for the boot partition:

Last sector, +sectors or +size{K,M,G} (2048-15759359, default 15759359): +200M

One of the pre-built examples required more space in the boot partition. So if you have a large enough SD Card (8G or more) then I would make the boot partition 1GB. So in the example above where they have entered '+200M' as the size enter '+1G' instead. Use the default value for the root partition and it will be sized to use the remaining space on the SD Card. 

0 Kudos
Reply
ijazbalti898
Visitor
Visitor
1,423 Views
Registered: ‎07-14-2019

0 Kudos
Reply
1,132 Views
Registered: ‎04-10-2019

hi

i have this problem too

what is interesting is that  i tried install petalinux on zturn board before

(using BOOT.bin & image.ub) and it worked!!

but now in zybo i can't fix the problem!

0 Kudos
Reply