Skip to content

Correct variable name used in imx93, imx6ull, and imx8mm configs, properly create partition table if required#5

Open
mdeneen wants to merge 2 commits intoNXP:mainfrom
mdeneen:main
Open

Correct variable name used in imx93, imx6ull, and imx8mm configs, properly create partition table if required#5
mdeneen wants to merge 2 commits intoNXP:mainfrom
mdeneen:main

Conversation

@mdeneen
Copy link
Copy Markdown

@mdeneen mdeneen commented Mar 5, 2024

The board definitions in this repo do not work with imx93, imx6ull, or imx8mm as the variable in those board configs was defined as IMAGE_PT_TABLE_STRUCT, while utils.sh expects IMAGE_PT_TBL_STRUCT.

Additionally, attempting to use parted on the file created with "truncate -s" does not work as parted fails immediately because it does not recognize the disk label. If the partition type is "MBR", parted is called to create a new msdos disk label before attempting to create any partitions.

I also do not believe that sudo is required to make these images, as the disk image being manipulated is owned by the user running the script.

This fixes some of the problems that I was having with #4, but I am still digging into this. I'm not entirely sure what to do with the host tools being older than the tools built in Yocto other than creating the swupdate image within Yocto and only using this repo as a reference.

mdeneen added 2 commits March 5, 2024 10:59
Additionally, I do not believe that root permissions are required to use
parted since we are not accessing a block device.
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

Successfully merging this pull request may close these issues.

1 participant