* [U-Boot] Fixing dfu_alt_info field after DM conversion
@ 2019-03-23 14:09 Fabio Estevam
2019-03-23 21:29 ` Lukasz Majewski
0 siblings, 1 reply; 3+ messages in thread
From: Fabio Estevam @ 2019-03-23 14:09 UTC (permalink / raw)
To: u-boot
Hi Lukasz,
Myself and Joris have been working on DM conversion of pico-mx7 and
the the latest patches are available at:
https://github.com/jorisoffouga/u-boot/commits/pico-imx7d/convert-dm
Things are working well so far, except eMMC flashing via DFU.
The following error is seen we flash u-boot-dtb.img:
=> dfu 0 mmc 0
Request would exceed designated area!
#Deferred dfu_flush() failed!=>
Joris found a way to fix this problem by doing:
#define CONFIG_DFU_ENV_SETTINGS \
"dfu_alt_info=" \
"spl raw 0x2 0x400;" \
- "u-boot raw 0x8a 0x400;" \
+ "u-boot raw 0x8a 0x1000;" \
"/boot/zImage ext4 0 1;" \
"/boot/imx7d-pico-hobbit.dtb ext4 0 1;" \
"/boot/imx7d-pico-pi.dtb ext4 0 1;" \
Is this an acceptable fix?
What does the last field in dfu_alt_info mean?
Thanks,
Fabio Estevam
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] Fixing dfu_alt_info field after DM conversion
2019-03-23 14:09 [U-Boot] Fixing dfu_alt_info field after DM conversion Fabio Estevam
@ 2019-03-23 21:29 ` Lukasz Majewski
2019-03-23 22:04 ` Fabio Estevam
0 siblings, 1 reply; 3+ messages in thread
From: Lukasz Majewski @ 2019-03-23 21:29 UTC (permalink / raw)
To: u-boot
Hi Fabio,
> Hi Lukasz,
>
> Myself and Joris have been working on DM conversion of pico-mx7 and
> the the latest patches are available at:
> https://github.com/jorisoffouga/u-boot/commits/pico-imx7d/convert-dm
>
> Things are working well so far, except eMMC flashing via DFU.
>
> The following error is seen we flash u-boot-dtb.img:
>
> => dfu 0 mmc 0
> Request would exceed designated area!
> #Deferred dfu_flush() failed!=>
>
> Joris found a way to fix this problem by doing:
>
> #define CONFIG_DFU_ENV_SETTINGS \
> "dfu_alt_info=" \
> "spl raw 0x2 0x400;" \
> - "u-boot raw 0x8a 0x400;" \
> + "u-boot raw 0x8a 0x1000;" \
The change is as follows:
It defines the DFU alt setting "u-boot" to be "raw" (LBA addressed) -
starting from 0x8a LBA and with 0x400 * 512B = 512 KiB.
Probably your u-boot is larger than 512 KiB, so you need to increase
the "size" of the alt setting to be written to eMMC.
In short - yes this is an acceptable fix.
> "/boot/zImage ext4 0 1;" \
> "/boot/imx7d-pico-hobbit.dtb ext4 0 1;" \
> "/boot/imx7d-pico-pi.dtb ext4 0 1;" \
>
> Is this an acceptable fix?
>
> What does the last field in dfu_alt_info mean?
>
> Thanks,
>
> Fabio Estevam
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190323/20df994a/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] Fixing dfu_alt_info field after DM conversion
2019-03-23 21:29 ` Lukasz Majewski
@ 2019-03-23 22:04 ` Fabio Estevam
0 siblings, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2019-03-23 22:04 UTC (permalink / raw)
To: u-boot
Hi Lukasz,
On Sat, Mar 23, 2019 at 6:29 PM Lukasz Majewski <lukma@denx.de> wrote:
> > #define CONFIG_DFU_ENV_SETTINGS \
> > "dfu_alt_info=" \
> > "spl raw 0x2 0x400;" \
> > - "u-boot raw 0x8a 0x400;" \
> > + "u-boot raw 0x8a 0x1000;" \
>
> The change is as follows:
>
> It defines the DFU alt setting "u-boot" to be "raw" (LBA addressed) -
> starting from 0x8a LBA and with 0x400 * 512B = 512 KiB.
>
> Probably your u-boot is larger than 512 KiB, so you need to increase
> the "size" of the alt setting to be written to eMMC.
>
> In short - yes this is an acceptable fix.
Yes, the new u-boot-dtb.img is 557 kiB.
Thanks for your explanation. Things are clear now.
Thanks,
Fabio Estevam
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-03-23 22:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-23 14:09 [U-Boot] Fixing dfu_alt_info field after DM conversion Fabio Estevam
2019-03-23 21:29 ` Lukasz Majewski
2019-03-23 22:04 ` Fabio Estevam
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.