[meta-xilinx] Bitstream/Boot.bin/etc - Providers/Virtual targets

Michal Simek monstr at monstr.eu
Wed Feb 19 07:07:25 PST 2014


On 02/19/2014 03:58 PM, Mike Looijmans wrote:
> Just one thing about u-boot SPL that I don't understand. It outputs this on the serial port:
> 
> U-Boot SPL 2014.01 (Feb 19 2014 - 15:40:14)
> mmc boot
> reading u-boot.img
> reading u-boot.img
> 
> 
> Weird, it is reading the same file twice, or just logging it twice? I haven't even found the spot where it logs this text.

It is not weird. It is exactly what it is written in the code.
Read just header and then full file if this is valid image.

M

int spl_load_image_fat(block_dev_desc_t *block_dev,
						int partition,
						const char *filename)
{
	int err;
	struct image_header *header;

	err = spl_register_fat_device(block_dev, partition);
	if (err)
		goto end;

	header = (struct image_header *)(CONFIG_SYS_TEXT_BASE -
						sizeof(struct image_header));

	err = file_fat_read(filename, header, sizeof(struct image_header));
	if (err <= 0)
		goto end;

	spl_parse_image_header(header);

	err = file_fat_read(filename, (u8 *)spl_image.load_addr, 0);

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20140219/e8e5d6a4/attachment.pgp>


More information about the meta-xilinx mailing list