[U-Boot] [PATCH v4] pico-imx7d: Increase the CONFIG_ENV_OFFSET size

Wolfgang Denk wd at denx.de
Mon Dec 3 15:52:05 UTC 2018


Dear Fabio,

In message <CAOMZO5CEeErzL2MMpktmgoV5TyXGyMZB954fNhAMBSP60scD7g at mail.gmail.com> you wrote:
>
> > Can you please try somthing like this (only minimally tested):
>
> I tried it, thanks, but unfortunately It does not work for me.
>
> Here is the complete patch I used, which consists of your proposal
> plus my changes:
> http://dark-code.bulix.org/nhg8l0-515675
>
> Then when I build the pico-imx7d_defconfig target I get the following error:
>
> /bin/sh: 1: printf: CONFIG_ENV_OFFSET - (69 * 1024): expected numeric value

I see -yes, this does not work as you are referencing a CPP macro
here which does not get resolved.  I don't see a trivial way around
this, though - for the Makefile we would need $(CONFIG_ENV_OFFSET),
but CPP would barf on this...

Can you live with something like this:

#define CONFIG_ENV_OFFSET		(768 * 1024)
#define CONFIG_BOARD_SIZE_LIMIT 	((768 * 1024) - (69 * 1024))


[or maybe even  ((768 - 69) * 1024)  ?]


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
He had quite a powerful intellect, but it  was  as  powerful  like  a
locomotive,  and  ran on rails and was therefore almost impossible to
steer.                          - Terry Pratchett, _Lords and Ladies_


More information about the U-Boot mailing list