This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:linux-software:sigmadsp_genfirmware [01 Aug 2012 17:26] – Approved Lars-Peter Clausen | resources:tools-software:linux-software:sigmadsp_genfirmware [01 Jul 2014 09:48] (current) – remove outdated fw loader documentation Lars-Peter Clausen | ||
---|---|---|---|
Line 3: | Line 3: | ||
The SigmaDSP Firmware Utility for Linux allows to generate a firmware file which can be loaded by the Linux SigmaDSP device drivers. | The SigmaDSP Firmware Utility for Linux allows to generate a firmware file which can be loaded by the Linux SigmaDSP device drivers. | ||
- | ===== Download the SigmaDSP Firmware Utility ====== | + | ===== Export XML firmware file from SigmaStudio |
- | The source code for the SigmaDSP Firmware Utility can be downloaded from the wiki. | + | 1) Open your design in SigmaStudio and click the "Link Compile Connect" |
- | {{: | + | {{: |
- | ===== Build and install | + | 2) Click the " |
- | Download the SigmaDSP Firmware Utility and extract the tar archive. To build the tool run //make//. | + | {{: |
- | <box green 100%> | + | {{:resources:tools-software:linux-software: |
- | < | + | |
- | > wget http:// | + | |
- | > tar -xjf sigma-firmware-util.tar.bz | + | |
- | > cd sigma-firmware-util | + | |
- | > make | + | |
- | </ | + | |
- | </ | + | |
- | ===== Export raw firmware | + | 3) Open up the location where you stored the exported system |
- | 1) Open your design in SigmaStudio and click the "Link Compile Download" | + | {{: |
+ | ===== Generate | ||
- | {{ :resources: | + | Currently the SigmaDSP Firmware Utility for Linux only runs on a Linux system and can be downloaded from [[https:// |
- | 2) Scroll down to the Capture window and locate the writes for " | + | < |
+ | > wget %%https:// | ||
+ | > chmod +x sigmadsp_fwgen | ||
+ | </ | ||
- | {{ : | + | The next step is to copy the XML file from the previous instructions to a Linux machine. |
- | 3) Now right-click each of them and select "Save as Raw > Address + Data ..." | + | The fwgen utility expects at least 3 parameters. The first parameter is the filename of the XML file exported |
- | Save " | + | |
- | {{ : | + | < |
- | + | > ./ | |
- | The saved files should be of exactly two bytes larger as the number in the " | + | </ |
- | ===== Generate | + | If you want to support multiple samplerates with your firmware |
- | Copy the parameter.bin and program.bin files to the Linux system on which the // | + | E.g. |
- | <box green 100%|Generate firmware file> | ||
< | < | ||
- | > ./gen_firmware parameter.bin program.bin adau1761.bin | + | > ./sigmadsp_fwgen design_48000.xml 48000 design_32000.xml 32000 design_16000.xml 16000 ... adau1761.bin |
</ | </ | ||
- | </ | ||
+ | When such a firmware file with support for multiple samplerates is loaded the kernel driver will automatically take care of programming the correct design for the currently selected samplerate to the SigmaDSP. | ||
===== Load the firmware on the target system ===== | ===== Load the firmware on the target system ===== | ||
Line 86: | Line 81: | ||
==== Installed on the root filesystem ==== | ==== Installed on the root filesystem ==== | ||
- | It is also possible to install the firmware file on the root filesystem. This allows to update it without having to update the whole kernel. To install it on the root file system copy it in the **"/ | + | It is also possible to install the firmware file on the root filesystem. This allows to update it without having to update the whole kernel. To install it on the root file system copy it to the **"/ |
- | <note important> | + | <WRAP important> |
===== More information ===== | ===== More information ===== |