Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with BIF Attribute [bootimage] #18

Open
cubex108 opened this issue Dec 18, 2021 · 2 comments
Open

Problems with BIF Attribute [bootimage] #18

cubex108 opened this issue Dec 18, 2021 · 2 comments

Comments

@cubex108
Copy link

The [bootimage] attribute seems to modify the state of the original partition in the input image, especially the partition with the [offset] attribute specified.

The test process is as follows:

  1. I used the following bif file to generate an image called BASE_BOOT.BIN
the_loader_image:  
{                                         
	[bootloader] ./images/linux/zynq_fsbl.elf
	./images/linux/system.bit
	./images/linux/u-boot.elf
	[load=0x00100000] ./images/linux/system.dtb
	[offset=0x440000, partition_owner=uboot] ./images/linux/boot.scr
} 

2.Then I used the following bif file to generate another image called RE_BASE_BOOT.BIN

the_ROM_image:
{
    [bootimage] ./images/linux/BASE_BOOT.BIN
}

3.BASE_BOOT.BIN and RE_BASE_BOOT.BIN are not the same size, so I compared the binary content of the two files. I found that the address of the ./images/linux/boot.scr partition has changed, Its starting address becomes the address immediately following the ./images/linux/system.dtb partition,In other words, the [offset] attribute of the ./images/linux/boot.scr partition is invalid

I don’t know if this is a bug, and I want to know how to avoid this problem: do not modify the original state of the input partition when using the [bootimage] attribute

@RamyaDarapuneni
Copy link
Collaborator

Hi @cubex108
Ideally this is never supported, so I am not sure if we should call this a bug.
But for my understanding, Can you please explain the use case you are trying this for?

Thanks
Ramya Darapuneni

@jcatsong
Copy link

Resurrecting a very old issue.

@RamyaDarapuneni can you provide the expected use case for the [bootimage] attribute? I don't know what @cubex108's original use case was, but I was investigating if this could be used to take a pre-existing .bin file and re-generate dual_qspi_mode files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants