Skip to contentSkip to conversation

u-boot 2016.07-rc0 does not seem to compile for me

U-Boot Pavel Machek 4 participants 5 messages May 27, 2016 – May 30, 2016 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

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

drivers/mmc/socfpga_dw_mmc.c +1 -1
index 6a0e971..197c4ee 100644
@@ -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;
 }
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#1 lore raw

[U-Boot] u-boot 2016.07-rc0: socfpga SPL too big in default configuration

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

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#2 lore raw

[U-Boot] u-boot 2016.07-rc0: socfpga SPL too big in default configuration

Hi Pavel,

On Fri, 27 May 2016 23:05:44 +0200
Pavel Machek pavel at denx.de wrote:
...

Quoted 3 lines

(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

#3 lore raw

[U-Boot] u-boot 2016.07-rc0: socfpga SPL too big in default configuration

Quoted 11 lines · Anatolij Gustschin

Hi Pavel,

On Fri, 27 May 2016 23:05:44 +0200
Pavel Machek pavel at denx.de wrote:
...

Quoted 3 lines

(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.

Signature · 2 lines
Best regards,
Marek Vasut
#4 lore raw

[U-Boot] u-boot 2016.07-rc0: socfpga SPL too big in default configuration

Dear Marek,

Quoted 3 lines · In message <[email protected]> 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

Signature · 5 lines
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