Skip to content

nxboot: enhance the access to flash device #3136

New issue

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

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

Already on GitHub? # to your account

Merged
merged 2 commits into from
Jul 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion boot/nxboot/loader/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ static int copy_partition(int from, int where, struct nxboot_state *state,
#ifdef CONFIG_NXBOOT_PRINTF_PROGRESS_PERCENT
total_size = remain * 100;
#endif
blocksize = MAX(info_from.blocksize, info_where.blocksize);
blocksize = info_where.blocksize;

buf = malloc(blocksize);
if (!buf)
Expand Down
2 changes: 1 addition & 1 deletion boot/nxboot/loader/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ int flash_partition_open(const char *path)
{
int fd;

fd = open(path, O_RDWR);
fd = open(path, O_RDWR | O_DIRECT);
if (fd < 0)
{
syslog(LOG_ERR, "Could not open %s partition: %s\n",
Expand Down
Loading