[U-Boot] [PATCH 00/51] arm: socfpga: Usability fixes

Marek Vasut marex at denx.de
Wed Oct 1 13:13:15 CEST 2014


On Wednesday, October 01, 2014 at 08:18:58 AM, Chin Liang See wrote:
> On Sun, 2014-09-21 at 14:58 +0200, marex at denx.de wrote:
> > This entire series is the second stab at making SoCFPGA usable with
> > mainline U-Boot again. There are much fewer bits missing than in the
> > last series, more cleanup happened and bugs were fixed. This allows
> > me to use mainline U-Boot on my SoCFPGA systems.
> > 
> > The big missing part is the SPL generation, which still needs a lot
> > of additional work. We also miss the Cadence QSPI controller driver.
> > 
> > This set contains patches for a few subsystems, which are utilized
> > by the SoCFPGA, but the most part is the SoCFPGA chip support. This
> > series now contains cleanup for the mayhem in drivers/fpga/altera.c
> > code, which was terrible, but is now much better.
> 
> Thanks Marek, I tested this series of patches and here are the outcome I
> have.
> 
> SDMMC - Working as I can read and write to SDMMC
> Boot  - Working as I can boot till Linux
> Ethernet - Seems not working for me.

I suspect that's because the ethernet support in the originally upstreamed 
SoCFPGA code never worked on the SoCDK in the first place. I think the SoCDK
uses EMAC1, but the mainline code uses EMAC0 for whatever reason.

Edit include/configs/socfpga_cyclone5.h and change:
-#define CONFIG_EMAC_BASE                SOCFPGA_EMAC0_ADDRESS
+#define CONFIG_EMAC_BASE                SOCFPGA_EMAC1_ADDRESS

Does this work ?

> FPGA programming - Seems not working for me too.

I zap'd the "run bridge_enable_handoff" thing and replaced it with "bridge 
enable" command. Could that be the case ?

> I will help to look into those features which are not working for me.
> But this series of patches serves as a good start.

Please let me know if some of the above help first. The network part should and 
if it does, then I will add a patch. The FPGA part should as well

Also, I separated the patches into smaller groups, which I will resubmit one 
more time, but you can find a merge of all of them at [1], so you don't have
to apply them by hand. Please be advised, that those branches will be replaced 
with a never ones, that's why there's the timestamp at the end of the name (so 
check the repository if there is no new topic/arm/socfpga-yyyymmdd). Also, I 
will likely garbage collect the old ones at some point.

[1] http://git.denx.de/?p=u-boot/u-boot-
socfpga.git;a=shortlog;h=refs/heads/topic/arm/socfpga-20140930

Best regards,
Marek Vasut


More information about the U-Boot mailing list