Skip to content
This repository was archived by the owner on Jun 8, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 50 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,54 @@ sopc2dts
Tool to create a devicetree from a sopcinfo file generated by Altera

More info available at:
http://www.alterawiki.com/wiki/Sopc2dts
http://www.alterawiki.com/wiki/Sopc2dts [R.I.P. alterawiki]
http://rocketboards.org/foswiki/Documentation/DeviceTreeGenerator140


Build
=====

Build the sopc2dts tool:

```
$ git clone http<git remote>/sopc2dts.git
$ cd sopc2dts
$ make
```

Test the sopc2dts tool: test with `--gui`, in case fix typical errors.

```
$ java -jar sopc2dts.jar --gui
```


Usage
=====

```
$ java -jar ./sopc2dts.jar --force-altr -i ./<my project name>.sopcinfo -o <my project name>.dts
```


Issues
======

* Installation verification fails as follows

```
$ java -jar sopc2dts.jar --gui
Refusing to load . It does not exist
```

Fix typical sopc2dts errors: in case configure another java version

```
$ sudo update-alternatives --config java
```

* `Component sdram_pll of class altera_pll is unknown`
alt_pll changed name to altera_pll -> in case may fix it in the java, or setup pll section yourself

* addresses in DTS are decimal -> may edit the addresses to hex yourself

4 changes: 4 additions & 0 deletions sopc_components_altera.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@
compatDevice="pll">
<CompatibleVersion value="1.0"></CompatibleVersion>
</S2DComponent>
<S2DComponent classname="altera_pll" group="clock"
compatDevice="pll">
<CompatibleVersion value="1.0"></CompatibleVersion>
</S2DComponent>
<S2DComponent classname="altera_avalon_timer" group="timer"
compatDevice="timer">
<parameter dtsName="clock-frequency"></parameter>
Expand Down