public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] u-boot 2016.07-rc0 does not seem to compile for me
@ 2016-05-27 19:57 Pavel Machek
  2016-05-27 21:05 ` [U-Boot] u-boot 2016.07-rc0: socfpga SPL too big in default configuration Pavel Machek
  0 siblings, 1 reply; 5+ messages in thread
From: Pavel Machek @ 2016-05-27 19:57 UTC (permalink / raw)
  To: u-boot


I did the following to fix it up. It still might be problem with some
of my local changes, but you might want to test compile.

Thanks,
								Pavel



diff --git a/drivers/mmc/socfpga_dw_mmc.c b/drivers/mmc/socfpga_dw_mmc.c
index 6a0e971..197c4ee 100644
--- a/drivers/mmc/socfpga_dw_mmc.c
+++ b/drivers/mmc/socfpga_dw_mmc.c
@@ -108,7 +108,7 @@ static int socfpga_dwmmc_probe(struct udevice *dev)
 		return ret;
 
 	upriv->mmc = host->mmc;
-	host->mmc->dev = dev;
+	//	host->mmc->dev = dev;
 
 	return 0;
 }

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] u-boot 2016.07-rc0: socfpga SPL too big in default configuration
  2016-05-27 19:57 [U-Boot] u-boot 2016.07-rc0 does not seem to compile for me Pavel Machek
@ 2016-05-27 21:05 ` Pavel Machek
  2016-05-30  9:44   ` Anatolij Gustschin
  0 siblings, 1 reply; 5+ messages in thread
From: Pavel Machek @ 2016-05-27 21:05 UTC (permalink / raw)
  To: u-boot

Hi!

If I do "make socfpga_cyclone5_config" and then build u-boot-SPL, it
results in SPL that is way too big (49K is biggest image that works in
my testing).

pavel at amd:~/stahl/u-boot$ ls -al spl/u-boot-spl*
-rwxr-xr-x 1 pavel pavel 888587 May 27 23:03 spl/u-boot-spl
-rw-r--r-- 1 pavel pavel  55486 May 27 23:03 spl/u-boot-spl.bin
-rw-r--r-- 1 pavel pavel  26073 May 27 23:03 spl/u-boot-spl.cfg
-rw-r--r-- 1 pavel pavel   1646 May 27 23:03 spl/u-boot-spl.dtb
-rw-r--r-- 1 pavel pavel  55486 May 27 23:03 spl/u-boot-spl-dtb.bin
-rw-r--r-- 1 pavel pavel   1073 May 27 23:03 spl/u-boot-spl.lds
-rw-r--r-- 1 pavel pavel 137656 May 27 23:03 spl/u-boot-spl.map
-rwxr-xr-x 1 pavel pavel  53648 May 27 23:03 spl/u-boot-spl-nodtb.bin
-rw-r--r-- 1 pavel pavel    192 May 27 23:03 spl/u-boot-spl-pad.bin
-rw-r--r-- 1 pavel pavel  65536 May 27 23:03 spl/u-boot-spl.sfp

(Based on commit 6523dbf7cce8d8c903346f756e0e41e46ce6d6b9).

gcc based on eldk 5.6. Is there some trick for smaller images?

Thanks and best regards,
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] u-boot 2016.07-rc0: socfpga SPL too big in default configuration
  2016-05-27 21:05 ` [U-Boot] u-boot 2016.07-rc0: socfpga SPL too big in default configuration Pavel Machek
@ 2016-05-30  9:44   ` Anatolij Gustschin
  2016-05-30 10:43     ` Marek Vasut
  0 siblings, 1 reply; 5+ messages in thread
From: Anatolij Gustschin @ 2016-05-30  9:44 UTC (permalink / raw)
  To: u-boot

Hi Pavel,

On Fri, 27 May 2016 23:05:44 +0200
Pavel Machek pavel at denx.de wrote:
...
> (Based on commit 6523dbf7cce8d8c903346f756e0e41e46ce6d6b9).
> 
> gcc based on eldk 5.6. Is there some trick for smaller images?

please try enabling CONFIG_USE_TINY_PRINTF if not already done.
It helped me with socfpga SPL issues in v2016.05.

--
Anatolij

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] u-boot 2016.07-rc0: socfpga SPL too big in default configuration
  2016-05-30  9:44   ` Anatolij Gustschin
@ 2016-05-30 10:43     ` Marek Vasut
  2016-05-30 20:12       ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Marek Vasut @ 2016-05-30 10:43 UTC (permalink / raw)
  To: u-boot

On 05/30/2016 11:44 AM, Anatolij Gustschin wrote:
> Hi Pavel,
> 
> On Fri, 27 May 2016 23:05:44 +0200
> Pavel Machek pavel at denx.de wrote:
> ...
>> (Based on commit 6523dbf7cce8d8c903346f756e0e41e46ce6d6b9).
>>
>> gcc based on eldk 5.6. Is there some trick for smaller images?
> 
> please try enabling CONFIG_USE_TINY_PRINTF if not already done.
> It helped me with socfpga SPL issues in v2016.05.

That's a start, otherwise it boils down the readelf and analyzing what
is taking space and where to save space.

-- 
Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] u-boot 2016.07-rc0: socfpga SPL too big in default configuration
  2016-05-30 10:43     ` Marek Vasut
@ 2016-05-30 20:12       ` Wolfgang Denk
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2016-05-30 20:12 UTC (permalink / raw)
  To: u-boot

Dear Marek,

In message <574C1963.8000907@denx.de> you wrote:
>
> That's a start, otherwise it boils down the readelf and analyzing what
> is taking space and where to save space.

Does not the .map file provide exactly this type of information?

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
When in doubt, mumble;   when in trouble, delegate;  when in  charge,
ponder.                                             -- James H. Boren

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-05-30 20:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-27 19:57 [U-Boot] u-boot 2016.07-rc0 does not seem to compile for me Pavel Machek
2016-05-27 21:05 ` [U-Boot] u-boot 2016.07-rc0: socfpga SPL too big in default configuration Pavel Machek
2016-05-30  9:44   ` Anatolij Gustschin
2016-05-30 10:43     ` Marek Vasut
2016-05-30 20:12       ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox