Skip to content

Conversation

@dmascord
Copy link

@dmascord dmascord commented Oct 4, 2024

For the TPLink Deco X20 v3, there is a tag_kernel file which contains kernel and filesystem information, the mktag_kernel utility creates the necessary binary file that uboot reads during boot.

This is a dependency of openwrt/openwrt#16581


typedef struct __attribute__((scalar_storage_order("little-endian"))) _LINUX_FILE_TAG
{
int32_t rootfsLen;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This tool just writes the root fs length into the first 4 bytes and nulls the rest. I think we can do this better in a shell script.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will have a look into it, are there any endianess helpers so that the struct is written the correct way?

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.

2 participants