Skip to contentSkip to conversation

FPGA detection failure on Cyclone V soc development kit

U-Boot Måns Rullgård 8 participants 22 messages Jan 20, 2016 – Apr 12, 2016

lore
Share & tools
lore
#0 lore raw

I'm having a problem with u-boot 2016.01 failing to detect the FPGA on my Altera Cyclone V SoC Development Kit. On startup, it simply prints "FPGA: Not Altera chip ID" (the ID having been read as all-zero). No amount of messing with jumpers or switches makes a difference. The software on the SD card included in the box appears to work, so on a whim I took the SPL pre-loader from this card and combined it with the main 2016.01 u-boot. This makes the detection succeed, despite Marek baulking at this idea. The "good" SPL identifies as "U-Boot SPL 2013.01.01 (Dec 04 2014 - 08:59:41)" which is a different build date than the main u-boot on the same SD card, so which source code version it was built from is anyone's guess.

What's interesting is that Marek's board works with u-boot 2016.01 while mine fails even with the very same binary. The boards are different revisions (his 100-0321003-C1, mine -E1), and the main Cyclone V chips are also different (his 5CSXFC6D6F31C8NES, mine 5CSXFC6D6F31C6N).

Any suggestions for what to try next?

Signature · 1 line
M?ns Rullg?rd
#1 lore raw
Quoted 12 lines · M?ns Rullg?rd

I'm having a problem with u-boot 2016.01 failing to detect the FPGA on my Altera Cyclone V SoC Development Kit. On startup, it simply prints "FPGA: Not Altera chip ID" (the ID having been read as all-zero). No amount of messing with jumpers or switches makes a difference. The software on the SD card included in the box appears to work, so on a whim I took the SPL pre-loader from this card and combined it with the main 2016.01 u-boot. This makes the detection succeed, despite Marek baulking at this idea. The "good" SPL identifies as "U-Boot SPL 2013.01.01 (Dec 04 2014 - 08:59:41)" which is a different build date than the main u-boot on the same SD card, so which source code version it was built from is anyone's guess.

Quoted 6 lines

What's interesting is that Marek's board works with u-boot 2016.01 while mine fails even with the very same binary. The boards are different revisions (his 100-0321003-C1, mine -E1), and the main Cyclone V chips are also different (his 5CSXFC6D6F31C8NES, mine 5CSXFC6D6F31C6N).

Any suggestions for what to try next?

v2016.01 release or to of tree? If top of tree, try
http://patchwork.ozlabs.org/patch/570009/

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160121/0d20c8a2/attachment.sig>
#2 lore raw
Quoted 19 lines · Tom Rini
Quoted 17 lines · M?ns Rullg?rd

I'm having a problem with u-boot 2016.01 failing to detect the FPGA on my Altera Cyclone V SoC Development Kit. On startup, it simply prints "FPGA: Not Altera chip ID" (the ID having been read as all-zero). No amount of messing with jumpers or switches makes a difference. The software on the SD card included in the box appears to work, so on a whim I took the SPL pre-loader from this card and combined it with the main 2016.01 u-boot. This makes the detection succeed, despite Marek baulking at this idea. The "good" SPL identifies as "U-Boot SPL 2013.01.01 (Dec 04 2014 - 08:59:41)" which is a different build date than the main u-boot on the same SD card, so which source code version it was built from is anyone's guess.

What's interesting is that Marek's board works with u-boot 2016.01 while mine fails even with the very same binary. The boards are different revisions (his 100-0321003-C1, mine -E1), and the main Cyclone V chips are also different (his 5CSXFC6D6F31C8NES, mine 5CSXFC6D6F31C6N).

Quoted 4 lines
Quoted 1 line

Any suggestions for what to try next?

v2016.01 release or to of tree? If top of tree, try
http://patchwork.ozlabs.org/patch/570009/

Tried release, top of tree, and top of tree with that patch. Nothing works.

Signature · 1 line
M?ns Rullg?rd
#3 lore raw
Quoted 19 lines · M?ns Rullg?rd
Quoted 18 lines · Tom Rini
Quoted 17 lines · M?ns Rullg?rd

I'm having a problem with u-boot 2016.01 failing to detect the FPGA on my Altera Cyclone V SoC Development Kit. On startup, it simply prints "FPGA: Not Altera chip ID" (the ID having been read as all-zero). No amount of messing with jumpers or switches makes a difference. The software on the SD card included in the box appears to work, so on a whim I took the SPL pre-loader from this card and combined it with the main 2016.01 u-boot. This makes the detection succeed, despite Marek baulking at this idea. The "good" SPL identifies as "U-Boot SPL 2013.01.01 (Dec 04 2014 - 08:59:41)" which is a different build date than the main u-boot on the same SD card, so which source code version it was built from is anyone's guess.

What's interesting is that Marek's board works with u-boot 2016.01 while mine fails even with the very same binary. The boards are different revisions (his 100-0321003-C1, mine -E1), and the main Cyclone V chips are also different (his 5CSXFC6D6F31C8NES, mine 5CSXFC6D6F31C6N).

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Any suggestions for what to try next?

v2016.01 release or to of tree? If top of tree, try
http://patchwork.ozlabs.org/patch/570009/

Tried release, top of tree, and top of tree with that patch. Nothing works.

btw. you dropped Dinh from the CC .

Best regards,
Marek Vasut

#4 lore raw
Quoted 22 lines · Marek Vasut
Quoted 21 lines · M?ns Rullg?rd
Quoted 20 lines · Tom Rini
Quoted 18 lines · M?ns Rullg?rd

I'm having a problem with u-boot 2016.01 failing to detect the FPGA on my Altera Cyclone V SoC Development Kit. On startup, it simply prints "FPGA: Not Altera chip ID" (the ID having been read as all-zero). No amount of messing with jumpers or switches makes a difference. The software on the SD card included in the box appears to work, so on a whim I took the SPL pre-loader from this card and combined it with the main 2016.01 u-boot. This makes the detection succeed, despite Marek baulking at this idea. The "good" SPL identifies as "U-Boot SPL 2013.01.01 (Dec 04 2014 - 08:59:41)" which is a different build date than the main u-boot on the same SD card, so which source code version it was built from is anyone's guess.

What's interesting is that Marek's board works with u-boot 2016.01 while mine fails even with the very same binary. The boards are different revisions (his 100-0321003-C1, mine -E1), and the main Cyclone V chips are also different (his 5CSXFC6D6F31C8NES, mine 5CSXFC6D6F31C6N).

Any suggestions for what to try next?

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

v2016.01 release or to of tree? If top of tree, try
http://patchwork.ozlabs.org/patch/570009/

Tried release, top of tree, and top of tree with that patch. Nothing works.

btw. you dropped Dinh from the CC .

Sorry, but I haven't had a chance to take a look at this. I'll try to looking this in the following week.

Dinh

#5 lore raw
Quoted 35 lines · Dinh Nguyen
Quoted 34 lines · Marek Vasut
Quoted 33 lines · M?ns Rullg?rd
Quoted 32 lines · Tom Rini
Quoted 31 lines · M?ns Rullg?rd

I'm having a problem with u-boot 2016.01 failing to detect the FPGA on
my Altera Cyclone V SoC Development Kit. On startup, it simply prints
"FPGA: Not Altera chip ID" (the ID having been read as all -zero). No
amount of messing with jumpers or switches makes a difference. The
software on the SD card included in the box appears to work, so on a
whim I took the SPL pre-loader from this card and combined it with the
main 2016.01 u-boot. This makes the detection succeed, despite Marek
baulking at this idea. The "good" SPL identifies as "U-Boot SPL
2013.01.01 (Dec 04 2014 - 08:59:41)" which is a different build date
than the main u-boot on the same SD card, so which source code version
it was built from is anyone's guess.

What's interesting is that Marek's board works with u-boot 2016.01 while
mine fails even with the very same binary. The boards are different
revisions (his 100-0321003-C1, mine -E1), and the main Cyclone V chips
are also different (his 5CSXFC6D6F31C8NES, mine 5CSXFC6D6F31C6N).

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Any suggestions for what to try next?

v2016.01 release or to of tree? If top of tree, try
http://patchwork.ozlabs.org/patch/570009/

Tried release, top of tree, and top of tree with that patch.
Nothing
works.

Both part number is different in speed grade. This is first time I heard about this issue. A quick suspect might due to clock. Can you try to copy pll_config.h that is passing (from 2013.01.01) and replace the one in 2016?

Thanks
Chin Liang

Quoted 9 lines
Quoted 3 lines

btw. you dropped Dinh from the CC .

Sorry, but I haven't had a chance to take a look at this. I'll try to looking this in the following week.

Dinh

#6 lore raw
Quoted 28 lines · Chin Liang See
Quoted 27 lines · Dinh Nguyen
Quoted 26 lines · Marek Vasut
Quoted 25 lines · M?ns Rullg?rd
Quoted 24 lines · Tom Rini
Quoted 14 lines · M?ns Rullg?rd

I'm having a problem with u-boot 2016.01 failing to detect the FPGA on my Altera Cyclone V SoC Development Kit. On startup, it simply prints "FPGA: Not Altera chip ID" (the ID having been read as all -zero). No amount of messing with jumpers or switches makes a difference. The software on the SD card included in the box appears to work, so on a whim I took the SPL pre-loader from this card and combined it with the main 2016.01 u-boot. This makes the detection succeed, despite Marek baulking at this idea. The "good" SPL identifies as "U-Boot SPL 2013.01.01 (Dec 04 2014 - 08:59:41)" which is a different build date than the main u-boot on the same SD card, so which source code version it was built from is anyone's guess.

Quoted 7 lines

What's interesting is that Marek's board works with u-boot 2016.01 while mine fails even with the very same binary. The boards are different revisions (his 100-0321003-C1, mine -E1), and the main Cyclone V chips are also different (his 5CSXFC6D6F31C8NES, mine 5CSXFC6D6F31C6N).

Any suggestions for what to try next?

v2016.01 release or to of tree? If top of tree, try
http://patchwork.ozlabs.org/patch/570009/

Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Tried release, top of tree, and top of tree with that patch.
Nothing works.

Both part number is different in speed grade. This is first time I heard about this issue. A quick suspect might due to clock. Can you try to copy pll_config.h that is passing (from 2013.01.01) and replace the one in 2016?

That doesn't work at all. Now it fails to detect the FPGA, then hangs after printing the amount of DRAM.

Signature · 1 line
M?ns Rullg?rd
#7 lore raw
Quoted 52 lines · M?ns Rullg?rd
Quoted 41 lines · Chin Liang See
Quoted 40 lines · Dinh Nguyen
Quoted 39 lines · Marek Vasut
Quoted 37 lines · M?ns Rullg?rd
Quoted 36 lines · Tom Rini
Quoted 31 lines · M?ns Rullg?rd

I'm having a problem with u-boot 2016.01 failing to detect
the FPGA on my Altera Cyclone V SoC Development Kit. On startup, it simply prints "FPGA: Not Altera chip ID" (the ID
having been read as all -zero). No amount of messing with
jumpers or switches makes a difference. The software on the
SD card included in the box appears to work, so on a whim I
took the SPL pre-loader from this card and combined it with
the main 2016.01 u-boot. This makes the detection succeed,
despite Marek baulking at this idea. The "good" SPL identifies as "U-Boot SPL 2013.01.01 (Dec 04 2014 - 08:59:41)" which is a different build date than the main u-boot on the same SD card, so which source code version it
was built from is anyone's guess.

What's interesting is that Marek's board works with u -boot
2016.01 while mine fails even with the very same binary. The boards are different revisions (his 100-0321003-C1, mine
-E1), and the main Cyclone V chips are also different (his
5CSXFC6D6F31C8NES, mine 5CSXFC6D6F31C6N).

Quoted 1 line

Any suggestions for what to try next?

v2016.01 release or to of tree? If top of tree, try
http://patchwork.ozlabs.org/patch/570009/

Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Tried release, top of tree, and top of tree with that patch.
Nothing works.

Both part number is different in speed grade. This is first time I heard about this issue. A quick suspect might due to clock. Can you try to copy pll_config.h that is passing (from 2013.01.01) and replace
the one in 2016?

Quoted 3 lines

That doesn't work at all. Now it fails to detect the FPGA, then hangs
after printing the amount of DRAM.

Can you share with me the pll_config for 2013.01.01 that is working for you? We would want to lower down the clock supplied to Scan Manager which spi_m_clk and see whether that helps.

Thanks
Chin Liang

Quoted 1 line
#8 lore raw
Quoted 44 lines · Chin Liang See
Quoted 43 lines · M?ns Rullg?rd
Quoted 40 lines · Chin Liang See
Quoted 28 lines · Dinh Nguyen
Quoted 27 lines · Marek Vasut
Quoted 25 lines · M?ns Rullg?rd
Quoted 24 lines · Tom Rini
Quoted 22 lines · M?ns Rullg?rd

I'm having a problem with u-boot 2016.01 failing to detect the FPGA on my Altera Cyclone V SoC Development Kit. On startup, it simply prints "FPGA: Not Altera chip ID" (the ID having been read as all -zero). No amount of messing with jumpers or switches makes a difference. The software on the SD card included in the box appears to work, so on a whim I took the SPL pre-loader from this card and combined it with the main 2016.01 u-boot. This makes the detection succeed, despite Marek baulking at this idea. The "good" SPL identifies as "U-Boot SPL 2013.01.01 (Dec 04 2014 - 08:59:41)" which is a different build date than the main u-boot on the same SD card, so which source code version it was built from is anyone's guess.

What's interesting is that Marek's board works with u -boot 2016.01 while mine fails even with the very same binary. The boards are different revisions (his 100-0321003-C1, mine -E1), and the main Cyclone V chips are also different (his 5CSXFC6D6F31C8NES, mine 5CSXFC6D6F31C6N).

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Any suggestions for what to try next?

v2016.01 release or to of tree? If top of tree, try
http://patchwork.ozlabs.org/patch/570009/

Tried release, top of tree, and top of tree with that patch.
Nothing works.

Both part number is different in speed grade. This is first time I heard about this issue. A quick suspect might due to clock. Can you try to copy pll_config.h that is passing (from 2013.01.01) and replace
the one in 2016?

Quoted 5 lines
Quoted 2 lines

That doesn't work at all. Now it fails to detect the FPGA, then hangs after printing the amount of DRAM.

Can you share with me the pll_config for 2013.01.01 that is working for you?

I don't know that it is. The only thing I've found to work is the unidentified SPL on the SD card that came with the dev kit.

Signature · 1 line
M?ns Rullg?rd
#9 lore raw
Quoted 65 lines · M?ns Rullg?rd
Quoted 63 lines · Chin Liang See
Quoted 61 lines · M?ns Rullg?rd
Quoted 49 lines · Chin Liang See
Quoted 41 lines · Dinh Nguyen
Quoted 40 lines · Marek Vasut
Quoted 38 lines · M?ns Rullg?rd
Quoted 37 lines · Tom Rini
Quoted 35 lines · M?ns Rullg?rd

I'm having a problem with u-boot 2016.01 failing to detect the FPGA on my Altera Cyclone V SoC Development
Kit. On startup, it simply prints "FPGA: Not Altera chip
ID" (the ID having been read as all -zero). No amount of
messing with jumpers or switches makes a difference.
The
software on the SD card included in the box appears to
work, so on a whim I took the SPL pre-loader from this
card and combined it with the main 2016.01 u-boot.
This
makes the detection succeed, despite Marek baulking at
this idea. The "good" SPL identifies as "U-Boot SPL 2013.01.01 (Dec 04 2014 - 08:59:41)" which is a different
build date than the main u-boot on the same SD card, so
which source code version it was built from is anyone's
guess.

What's interesting is that Marek's board works with u -boot 2016.01 while mine fails even with the very same
binary. The boards are different revisions (his 100-0321003-C1, mine -E1), and the main Cyclone V chips
are also different (his 5CSXFC6D6F31C8NES, mine 5CSXFC6D6F31C6N).

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Any suggestions for what to try next?

v2016.01 release or to of tree? If top of tree, try
http://patchwork.ozlabs.org/patch/570009/

Tried release, top of tree, and top of tree with that
patch.
Nothing works.

Quoted 7 lines

Both part number is different in speed grade. This is first time I
heard about this issue. A quick suspect might due to clock. Can you
try to copy pll_config.h that is passing (from 2013.01.01) and replace
the one in 2016?

That doesn't work at all. Now it fails to detect the FPGA, then hangs after printing the amount of DRAM.

Quoted 6 lines
Quoted 3 lines

Can you share with me the pll_config for 2013.01.01 that is working for
you?

I don't know that it is. The only thing I've found to work is the unidentified SPL on the SD card that came with the dev kit.

Oh ok, that mean no modification from your side. Let me take a look then on the pll_config.

Quoted 1 line
#10 lore raw
In reply to Måns Rullgård
Quoted 46 lines · M?ns Rullg?rd
Quoted 44 lines · Chin Liang See
Quoted 43 lines · M?ns Rullg?rd
Quoted 40 lines · Chin Liang See
Quoted 28 lines · Dinh Nguyen
Quoted 27 lines · Marek Vasut
Quoted 25 lines · M?ns Rullg?rd
Quoted 24 lines · Tom Rini
Quoted 22 lines · M?ns Rullg?rd

I'm having a problem with u-boot 2016.01 failing to detect the FPGA on my Altera Cyclone V SoC Development Kit. On startup, it simply prints "FPGA: Not Altera chip ID" (the ID having been read as all -zero). No amount of messing with jumpers or switches makes a difference. The software on the SD card included in the box appears to work, so on a whim I took the SPL pre-loader from this card and combined it with the main 2016.01 u-boot. This makes the detection succeed, despite Marek baulking at this idea. The "good" SPL identifies as "U-Boot SPL 2013.01.01 (Dec 04 2014 - 08:59:41)" which is a different build date than the main u-boot on the same SD card, so which source code version it was built from is anyone's guess.

What's interesting is that Marek's board works with u -boot 2016.01 while mine fails even with the very same binary. The boards are different revisions (his 100-0321003-C1, mine -E1), and the main Cyclone V chips are also different (his 5CSXFC6D6F31C8NES, mine 5CSXFC6D6F31C6N).

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Any suggestions for what to try next?

v2016.01 release or to of tree? If top of tree, try
http://patchwork.ozlabs.org/patch/570009/

Tried release, top of tree, and top of tree with that patch.
Nothing works.

Both part number is different in speed grade. This is first time I heard about this issue. A quick suspect might due to clock. Can you try to copy pll_config.h that is passing (from 2013.01.01) and replace
the one in 2016?

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

That doesn't work at all. Now it fails to detect the FPGA, then hangs after printing the amount of DRAM.

Can you share with me the pll_config for 2013.01.01 that is working for you?

I don't know that it is. The only thing I've found to work is the unidentified SPL on the SD card that came with the dev kit.

I pushed some DDR fixes into u-boot-socfpga/ddr branch [1], which fixed DDR calibration issue on a board I have in here. Can you try them ? Thanks

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

Signature · 2 lines
Best regards,
Marek Vasut
#12 lore raw
Quoted 10 lines · Dinh Nguyen
Quoted 7 lines · Marek Vasut

I pushed some DDR fixes into u-boot-socfpga/ddr branch [1], which fixed DDR calibration issue on a board I have in here. Can you try them ? Thanks

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

I'll do it first thing when I get back from ELC.

Cool. I will do proper submission by then. I think Mans had a CV SoCDK which didn't boot with the mainline SPL, so it'd be cool if he could try.

btw. I regret not being able to go to ELC quite a lot :'-(

Signature · 2 lines
Best regards,
Marek Vasut
#13 lore raw
Quoted 6 lines · Marek Vasut
Quoted 5 lines · Dinh Nguyen
Quoted 4 lines · Marek Vasut

I pushed some DDR fixes into u-boot-socfpga/ddr branch [1], which fixed DDR calibration issue on a board I have in here. Can you try them ? Thanks

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

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

I'll do it first thing when I get back from ELC.

Cool. I will do proper submission by then. I think Mans had a CV SoCDK which didn't boot with the mainline SPL, so it'd be cool if he could try.

I will when I get back from ELC.

Signature · 1 line
M?ns Rullg?rd
#14 lore raw
Quoted 12 lines · M?ns Rullg?rd
Quoted 10 lines · Marek Vasut
Quoted 9 lines · Dinh Nguyen
Quoted 7 lines · Marek Vasut

I pushed some DDR fixes into u-boot-socfpga/ddr branch [1], which fixed DDR calibration issue on a board I have in here. Can you try them ? Thanks

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

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

I'll do it first thing when I get back from ELC.

Cool. I will do proper submission by then. I think Mans had a CV SoCDK which didn't boot with the mainline SPL, so it'd be cool if he could try.

I will when I get back from ELC.

Thanks

Signature · 2 lines
Best regards,
Marek Vasut
#15 lore raw
Quoted 13 lines · Marek Vasut
Quoted 12 lines · M?ns Rullg?rd
Quoted 10 lines · Marek Vasut
Quoted 9 lines · Dinh Nguyen
Quoted 7 lines · Marek Vasut

I pushed some DDR fixes into u-boot-socfpga/ddr branch [1], which fixed DDR calibration issue on a board I have in here. Can you try them ? Thanks

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

Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

I'll do it first thing when I get back from ELC.

Cool. I will do proper submission by then. I think Mans had a CV SoCDK which didn't boot with the mainline SPL, so it'd be cool if he could try.

I will when I get back from ELC.

I tested your branch on an DE0-NANO(Atlas) board, and everything looks great!

Dinh

#16 lore raw
Quoted 18 lines · Dinh Nguyen
Quoted 15 lines · Marek Vasut
Quoted 14 lines · M?ns Rullg?rd
Quoted 12 lines · Marek Vasut
Quoted 10 lines · Dinh Nguyen
Quoted 7 lines · Marek Vasut

I pushed some DDR fixes into u-boot-socfpga/ddr branch [1], which fixed DDR calibration issue on a board I have in here. Can you try them ? Thanks

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

I'll do it first thing when I get back from ELC.

Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

Cool. I will do proper submission by then. I think Mans had a CV SoCDK which didn't boot with the mainline SPL, so it'd be cool if he could try.

I will when I get back from ELC.

I tested your branch on an DE0-NANO(Atlas) board, and everything looks great!

High-five ! I'm applying those patches then ? :)

Signature · 2 lines
Best regards,
Marek Vasut
#17 lore raw
Quoted 6 lines · Marek Vasut
Quoted 3 lines

I tested your branch on an DE0-NANO(Atlas) board, and everything looks great!

High-five ! I'm applying those patches then ? :)

Sure. Thanks,

Dinh

#18 lore raw
Quoted 11 lines · Dinh Nguyen
Quoted 6 lines · Marek Vasut
Quoted 3 lines

I tested your branch on an DE0-NANO(Atlas) board, and everything looks great!

High-five ! I'm applying those patches then ? :)

Sure. Thanks,

OK, done, thanks! The fixes will land in 2016.05-rc2 .

Signature · 2 lines
Best regards,
Marek Vasut
#19 lore raw
In reply to Marek Vasut
Quoted 41 lines · Marek Vasut
Quoted 40 lines · M?ns Rullg?rd
Quoted 38 lines · Chin Liang See
Quoted 37 lines · M?ns Rullg?rd
Quoted 35 lines · Chin Liang See
Quoted 33 lines · Dinh Nguyen
Quoted 32 lines · Marek Vasut
Quoted 30 lines · M?ns Rullg?rd
Quoted 24 lines · Tom Rini
Quoted 22 lines · M?ns Rullg?rd

I'm having a problem with u-boot 2016.01 failing to detect the FPGA on my Altera Cyclone V SoC Development Kit. On startup, it simply prints "FPGA: Not Altera chip ID" (the ID having been read as all -zero). No amount of messing with jumpers or switches makes a difference. The software on the SD card included in the box appears to work, so on a whim I took the SPL pre-loader from this card and combined it with the main 2016.01 u-boot. This makes the detection succeed, despite Marek baulking at this idea. The "good" SPL identifies as "U-Boot SPL 2013.01.01 (Dec 04 2014 - 08:59:41)" which is a different build date than the main u-boot on the same SD card, so which source code version it was built from is anyone's guess.

What's interesting is that Marek's board works with u -boot 2016.01 while mine fails even with the very same binary. The boards are different revisions (his 100-0321003-C1, mine -E1), and the main Cyclone V chips are also different (his 5CSXFC6D6F31C8NES, mine 5CSXFC6D6F31C6N).

Quoted 3 lines
Quoted 1 line

Any suggestions for what to try next?

v2016.01 release or to of tree? If top of tree, try
http://patchwork.ozlabs.org/patch/570009/

Tried release, top of tree, and top of tree with that patch.
Nothing works.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines

Both part number is different in speed grade. This is first time I heard about this issue. A quick suspect might due to clock. Can you try to copy pll_config.h that is passing (from 2013.01.01) and replace
the one in 2016?

That doesn't work at all. Now it fails to detect the FPGA, then hangs after printing the amount of DRAM.

This is sorta similar to what I see with my SocDK occasionally. Sometimes rints ram and then hangs, other timmes fails to find mmc. As I mentioned in other email.

Quoted 13 lines
Quoted 6 lines
Quoted 3 lines

Can you share with me the pll_config for 2013.01.01 that is working for you?

I don't know that it is. The only thing I've found to work is the unidentified SPL on the SD card that came with the dev kit.

I pushed some DDR fixes into u-boot-socfpga/ddr branch [1], which fixed DDR calibration issue on a board I have in here. Can you try them ? Thanks

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

Signature · 2 lines
Regards
Phil Reid
#20 lore raw
In reply to Dinh Nguyen
Quoted 26 lines · Dinh Nguyen
Quoted 25 lines · Marek Vasut
Quoted 24 lines · M?ns Rullg?rd
Quoted 22 lines · Tom Rini
Quoted 12 lines · M?ns Rullg?rd

I'm having a problem with u-boot 2016.01 failing to detect the FPGA on my Altera Cyclone V SoC Development Kit. On startup, it simply prints "FPGA: Not Altera chip ID" (the ID having been read as all-zero). No amount of messing with jumpers or switches makes a difference. The software on the SD card included in the box appears to work, so on a whim I took the SPL pre-loader from this card and combined it with the main 2016.01 u-boot. This makes the detection succeed, despite Marek baulking at this idea. The "good" SPL identifies as "U-Boot SPL 2013.01.01 (Dec 04 2014 - 08:59:41)" which is a different build date than the main u-boot on the same SD card, so which source code version it was built from is anyone's guess.

Quoted 6 lines

What's interesting is that Marek's board works with u-boot 2016.01 while mine fails even with the very same binary. The boards are different revisions (his 100-0321003-C1, mine -E1), and the main Cyclone V chips are also different (his 5CSXFC6D6F31C8NES, mine 5CSXFC6D6F31C6N).

Any suggestions for what to try next?

v2016.01 release or to of tree? If top of tree, try
http://patchwork.ozlabs.org/patch/570009/

Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

Tried release, top of tree, and top of tree with that patch. Nothing works.

btw. you dropped Dinh from the CC .

Sorry, but I haven't had a chance to take a look at this. I'll try to looking this in the following week.

It seems to work on older Cyclone V chips. I have the latest devkit, which has the 5CSXFC6D6F31C6N chip, and I cannot get an FPGA ID. My older devkit has a 5CSXFC6D6F31C8NES chip, and I can get the FPGA's ID.

I'll have ask around on what changes were done with the later Cyclone V chips.

Dinh

#21 lore raw
Quoted 31 lines · Dinh Nguyen
Quoted 30 lines · Dinh Nguyen
Quoted 29 lines · Marek Vasut
Quoted 27 lines · M?ns Rullg?rd
Quoted 19 lines · Tom Rini
Quoted 18 lines · M?ns Rullg?rd

I'm having a problem with u-boot 2016.01 failing to detect the FPGA on my Altera Cyclone V SoC Development Kit. On startup, it simply prints "FPGA: Not Altera chip ID" (the ID having been read as all-zero). No amount of messing with jumpers or switches makes a difference. The software on the SD card included in the box appears to work, so on a whim I took the SPL pre-loader from this card and combined it with the main 2016.01 u-boot. This makes the detection succeed, despite Marek baulking at this idea. The "good" SPL identifies as "U-Boot SPL 2013.01.01 (Dec 04 2014 - 08:59:41)" which is a different build date than the main u-boot on the same SD card, so which source code version it was built from is anyone's guess.

What's interesting is that Marek's board works with u-boot 2016.01 while mine fails even with the very same binary. The boards are different revisions (his 100-0321003-C1, mine -E1), and the main Cyclone V chips are also different (his 5CSXFC6D6F31C8NES, mine 5CSXFC6D6F31C6N).

Quoted 4 lines
Quoted 1 line

Any suggestions for what to try next?

v2016.01 release or to of tree? If top of tree, try
http://patchwork.ozlabs.org/patch/570009/

Tried release, top of tree, and top of tree with that patch. Nothing works.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

btw. you dropped Dinh from the CC .

Sorry, but I haven't had a chance to take a look at this. I'll try to looking this in the following week.

It seems to work on older Cyclone V chips. I have the latest devkit, which has the 5CSXFC6D6F31C6N chip, and I cannot get an FPGA ID. My older devkit has a 5CSXFC6D6F31C8NES chip, and I can get the FPGA's ID.

This indeed matches my observations. My CV SoCDK also has an older chip, ES even, and I can detect the FPGA ID.

Quoted 2 lines

I'll have ask around on what changes were done with the later Cyclone V chips.

Thanks!

Best regards,
Marek Vasut