Question about u-boot.hex for Microchip PIC32MZ DA
Waldemar Brodkorb
wbx at openadk.org
Mon Feb 2 06:34:49 CET 2026
Hi,
Waldemar Brodkorb wrote,
> Hi U-Boot developers and users,
>
> I successfully flashed u-boot.hex from Github Linux-LTS-for-PIC32 on
> my device. Next step I try is to flash my own cross-compiled U-Boot
> hexfile from 2026.01 release. It cross-compiled fine and then I used
> following command to convert it to hex:
> $(CROSS_COMPILE)-objcopy -O ihex -R .note -R .comment -R .debug_* u-boot u-boot.hex
>
> After flashing it with MPLAB X IDE 6.2.0 nothing is output via
> serial and the orange LED is no longer blinking.
>
> What might be the reason for this behaviour? What I am doing wrong?
Me again. Found this URL in the meanwhile:
https://www.reddit.com/r/chipKIT/comments/dtmg4h/installing_debian_on_pic32/
And indeed such a hex file can be flashed, but U-Boot does not
start:
U-Boot 2026.01 (Feb 02 2026 - 02:46:10 +0100)
Model: Microchip PIC32MZDASK
Core: PIC32MZ[DA]
CPU Speed: 200 MHz
DRAM: 128 MiB
Mis-aligned relocation
How to fix "Mis-aligned relocation"?
I am using gcc 15.2.0 and binutils 2.45.1 to compile U-Boot.
best regards
Waldemar
More information about the U-Boot
mailing list