From: Ian Abbott <abbotti@mev.co.uk>
To: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: Terasic DE0 Nano SoC / SoCkit confusion
Date: Wed, 18 Oct 2017 17:51:44 +0100 [thread overview]
Message-ID: <3f726d4d-d6b8-e89b-805b-6a0ebfa5227a@mev.co.uk> (raw)
Hi,
I have a Terasic DE0-Nano-SoC Kit / Atlas-SoC Kit board:
http://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&CategoryNo=205&No=941
https://rocketboards.org/foswiki/Documentation/AtlasSoCDevelopmentPlatform
In the barebox menuconfig, if I select "Terasic DE0-NANO-SoC aka Atlas"
(MACH_SOCFPGA_TERASIC_DE0_NANO_SOC) for the preloader configuration, the
preloader image boot fails at the SDRAM calibration stage. I need to
select "Terasic SoCKit" (MACH_SOCFPGA_TERASIC_SOCKIT) instead, which
seems to work fine. Indeed, when using the
"scripts/socfpga_import_preloader" script to import settings from
Terasic's FPGA handoff files for DE0-Nano-SoC, the results are a much
better match to barebox's "arch/arm/boards/terasic-sockit/" than they
are to "arch/arm/boards/terasic-de0-nano-soc/". I got the handoff files
from Terasic's CD-ROM zip files at
http://www.terasic.com/downloads/cd-rom/de0-nano-soc/ .
There are two CD-ROM zip files for different board revisions, but the
handoff files are all the same across both CD-ROM zip files.
I'm currently using "Terasic SoCKit" for the preloader and "Terasic
DE0-NANO-SoC aka Atlas" for the main barebox.
My other problem is that there are differences in the "compatible"
strings that Linux devicetrees use compared to barebox, which causes the
blspec loader to fail to load entries containing devicetree files with
different "compatible" strings for what should be the same board.
For MACH_SOCFPGA_TERASIC_DE0_NANO_SOC:
barebox:
compatible = "terasic,de0-nano-soc","altr,socfpga-cyclone5",
"altr,socfpga";
(closest match in) Linux:
compatible = "terasic,de0-atlas", "altr,socfpga-cyclone5", "altr,socfpga";
For MACH_SOCFPGA_TERASIC_SOCKIT:
barebox:
compatible = "terasic,sockit", "altr,socfpga";
Linux:
compatible = "terasic,socfpga-cyclone5-sockit",
"altr,socfpga-cyclone5", "altr,socfpga";
For MACH_SOCFPGA_ALTERA_SOCDK:
barebox:
compatible = "altr,socdk", "altr,socfpga-cyclone5", "altr,socfpga";
Linux:
compatible = "altr,socfpga-cyclone5-socdk", "altr,socfpga-cyclone5",
"altr,socfpga";
Would the best fix for those be to replace the existing compatible
strings, or use a union between the current barebox and Linux strings?
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=-
-=( Web: http://www.mev.co.uk/ )=-
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2017-10-18 16:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-18 16:51 Ian Abbott [this message]
2017-10-20 8:04 ` Steffen Trumtrar
2017-10-20 12:29 ` Ian Abbott
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3f726d4d-d6b8-e89b-805b-6a0ebfa5227a@mev.co.uk \
--to=abbotti@mev.co.uk \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox