On 17-08-2023 15:53, Michał Fita via lists.yoctoproject.org wrote:
Created two partions: One is ROOT_FS ext4 type and the other one is ZED_BOOT 
FAT16 type

In that particular order?

The boot partition has to be first and should have a bootable flag enabled. If 
your boot.bin is correct you should at least see a message from FSBL. I suggest 
you byteclone your reference card to yours (if your is the same size or bigger) 
to start with the correct partition table in the first place. You can then wipe 
out contents before trying with yours from the build.

Actually, the only REAL requirement is that the first partition is FAT  (16 or 
32, doesn't matter) because that is what the ROM needs. It need not be marked 
bootable at all. This partition only needs to hold boot.bin (and u-boot.img if 
you use SPL) so it could be only a few megabytes in size.

U-boot (after the ROM started it) will locate the bootable partition and look for a boot 
script named "/boot/boot.scr". If found, it executes whatever is in there.

You can mark the ext4 partition as bootable for example, provided that you put 
the bootscript (and kernel and devicetree which it will probably want to load) 
in it.

This allows you to have multiple partitions on the SD card (or eMMC). That in turn allows 
you to update a partition that you aren't using, and then mark it bootable, thus 
performing a "live" upgrade. No more walking around with SD cards!

Xilinx' default strategy is to have no partition marked bootable at all, which 
causes u-boot to hunt for the bootscript on the first partition. Also works.


...



--
Mike Looijmans
System Expert

TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: [email protected]<mailto:[email protected]>
W: www.topic.nl<http://www.topic.nl>


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5261): 
https://lists.yoctoproject.org/g/meta-xilinx/message/5261
Mute This Topic: https://lists.yoctoproject.org/mt/100619140/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to