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

Implement partition type selection for upload and download #5

Open
Juul opened this issue May 18, 2019 · 0 comments
Open

Implement partition type selection for upload and download #5

Juul opened this issue May 18, 2019 · 0 comments
Assignees

Comments

@Juul
Copy link
Member

Juul commented May 18, 2019

There are two layers of partitions handled in u-boot. The partitions are specified at the top of /include/asm-arm/arch-mx50/mx50_yoshi_board.h in the boards[] array:

static const struct board_type boards[] = ...

Each entry looks like e.g:

.name = "userdata",
.address = CONFIG_MMC_USERDATA_ADDR,
.size = CONFIG_MMC_USERDATA_SIZE,  /* 5 KiB */
.partition = 1,

Not only does the partition have an address, it also has a partition number. This number refers to one of three meta-partitions (0, 1 or 2) that are selected using MMC commands.

The upload and download commands need a feature to specify which of the three to select.

@Juul Juul self-assigned this May 18, 2019
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

1 participant