PINE64
U-Boot env save error - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PineNote (https://forum.pine64.org/forumdisplay.php?fid=171)
+--- Forum: PineNote Hardware (https://forum.pine64.org/forumdisplay.php?fid=174)
+--- Thread: U-Boot env save error (/showthread.php?tid=20025)



U-Boot env save error - r4ms - 10-03-2025

There seems to be a hard coded mistake in uboot. "env save" uses parition 4 (Logo) instead of 3:

=> env save                             
Saving Environment to FAT...

** Unable to use mmc 0:4 for saveenv **


I haven't found any way to change the partition. Is there any?


RE: U-Boot env save error - r4ms - 10-03-2025

I did find the problem and made a PR request to the main repository

https://github.com/m-weigand/u-boot-pinenote

After patching we get

> env save
Saving Environment to FAT...
writing uboot.env
FAT: Misaligned buffer address (00000000eb9eed70)
done

Despite the error, saving the environment and restoring on boot seems to work.