Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
resources:tools-software:linuxdsp:docs:quickstartguide:quickstart_sc598 [05 Dec 2022 16:26] – WIP - Added photos and logs of booting with EV-SOMCRR-EZLITE Vasileios Bimpikasresources:tools-software:linuxdsp:docs:quickstartguide:quickstart_sc598 [21 Dec 2022 12:06] – Enriched the NFS section with status check before proceeding Vasileios Bimpikas
Line 1: Line 1:
-===== Yocto Linux 2.2.0 Quickstart Guide for ADSP-SC598 =====+===== Yocto Linux 2.1.0 Quickstart Guide for ADSP-SC598 =====
  
-<note important>The following instructions are for the ADSP-SC598-EZKIT development board (the EV-SC598-SOM System-on-Module (SOM) board attached to the EV-SOMCRR-EZKIT or the EV-SOMCRR-EZLITE carrier board). For instructions for other processors and development boards please refer to [[resources:tools-software:linuxdsp:releaselandingpages:2.2.0|Linux for ADSP-SC5xx Processors 2.2.0]]</note>+<note important>The following instructions are for the ADSP-SC598-EZKIT development board (the EV-SC598-SOM System-on-Module (SOM) board attached to the EV-SOMCRR-EZKIT carrier board). For instructions for other processors and development boards please refer to [[resources:tools-software:linuxdsp:releaselandingpages:2.1.0|Linux for ADSP-SC5xx Processors 2.1.0]]</note>
  
 ===== Setting Up Your Host PC ===== ===== Setting Up Your Host PC =====
Line 93: Line 93:
 $ ./bin/repo init \ $ ./bin/repo init \
    -u https://github.com/analogdevicesinc/lnxdsp-repo-manifest.git \    -u https://github.com/analogdevicesinc/lnxdsp-repo-manifest.git \
-   -b develop/yocto-2.2.0 \ +   -b release/yocto-2.1.0 \ 
-   -m develop-yocto-2.2.0.xml+   -m release-yocto-2.1.0.xml
 $ ./bin/repo sync $ ./bin/repo sync
 </code> </code>
Line 139: Line 139:
   * ICE is also connected to host PC via USB mini cable   * ICE is also connected to host PC via USB mini cable
  
-{{:resources:tools-software:linuxdsp:docs:quickstartguide:adsp-sc598-som-ezkit_overview-4.png?400|}} SOMCRR-EZKIT+{{:resources:tools-software:linuxdsp:docs:quickstartguide:adsp-sc598-som-ezkit_overview-4.png?400|}}
  
-{{:resources:tools-software:linuxdsp:docs:quickstartguide:EZLITE_SC598_overview_SOM.jpg?400|}} SOMCRR-EZLITE bottom 
-{{:resources:tools-software:linuxdsp:docs:quickstartguide:EZLITE_SC598_overview_top.jpg?400|}} SOMCRR-EZLITE top 
  
  
-  * On the carrier board (SOMCRR-EZKIT or SOMCRR-EZLITE) is a set of micro switches labelled SW1.  These should all be set to the OFF position before continuing.+  * On the SOMCRR-EZKIT is a set of micro switches labelled SW1.  These should all be set to the OFF position before continuing.
  
-{{:resources:tools-software:linuxdsp:docs:quickstartguide:adsp-sc594-som-ezkit-switches.jpg?400|}} SOMCRR-EZKIT +{{:resources:tools-software:linuxdsp:docs:quickstartguide:adsp-sc594-som-ezkit-switches.jpg?400|}}
-{{:resources:tools-software:linuxdsp:docs:quickstartguide:EZLITE_dipswitches_off.jpg?400|}} SOMCRR-EZLITE+
  
   * The Power jumper JP1 on the EV-SC598-SOM board should be fitted so that it shorts the two pins closest to the edge.  This will enable the routing of power from the SOMCRR-EZKIT.   * The Power jumper JP1 on the EV-SC598-SOM board should be fitted so that it shorts the two pins closest to the edge.  This will enable the routing of power from the SOMCRR-EZKIT.
Line 166: Line 163:
   :<code>   :<code>
 $ cd /opt/analog/cces/2.11.0/ARM/openocd/share/openocd/scripts  $ cd /opt/analog/cces/2.11.0/ARM/openocd/share/openocd/scripts 
-$ sudo /opt/analog/cces/2.11.0/ARM/openocd/bin/openocd -f interface/<ICE>.cfg -f target/adspsc59x.cfg</code>+$ sudo /opt/analog/cces/2.11.0/ARM/openocd/bin/openocd -f interface/<ICE>.cfg -f board/ev-sc598-som.cfg</code>
 Where ''<ICE>'' should be replaced with ''ice1000'' or ''ice2000'' depending on your hardware. Where ''<ICE>'' should be replaced with ''ice1000'' or ''ice2000'' depending on your hardware.
 When successful you should see a message similar to the console output below When successful you should see a message similar to the console output below
Line 177: Line 174:
  
 Info : halt and restart using CTI Info : halt and restart using CTI
 +adspsc59x_a55_init
 Info : Listening on port 6666 for tcl connections Info : Listening on port 6666 for tcl connections
 Info : Listening on port 4444 for telnet connections Info : Listening on port 4444 for telnet connections
 Info : ICE-1000 firmware version is 1.0.2 Info : ICE-1000 firmware version is 1.0.2
 Info : clock speed 5000 kHz Info : clock speed 5000 kHz
-Info : JTAG tap: adspsc59x.adjc tap/device found: 0x028240cb (mfg: 0x065 (Analog Devices), part: 0x2824, ver: 0x0) +Info : JTAG tap: adspsc598.adjc tap/device found: 0x0282e0cb (mfg: 0x065 (Analog Devices), part: 0x282e, ver: 0x0) 
-Info : JTAG tap: adspsc59x.cpu enabled +Info : JTAG tap: adspsc598.cpu enabled 
-Info : DAP adspsc59x.cpu DPIDR indicates ADIv5 protocol is being used +Info : DAP adspsc598.cpu DPIDR indicates ADIv6 protocol is being used 
-Info : starting gdb server for adspsc59x.cpu on 3333+Info : adspsc598.cpu: hardware has 6 breakpoints, 4 watchpoints 
 +Info : starting gdb server for adspsc598.cpu on 3333
 Info : Listening on port 3333 for gdb connections Info : Listening on port 3333 for gdb connections
 </code> </code>
Line 192: Line 191:
   : <code>   : <code>
 $ cd /tftpboot $ cd /tftpboot
-$ /opt/analog/cces/2.11.0/ARM/aarch64-none-elf/bin/aarch64-none-elf-gdb u-boot-proper-sc598-som-ezkit.elf+$ /opt/analog/cces/2.11.0/ARM/aarch64-none-elf/bin/aarch64-none-elf-gdb u-boot-proper-sc598-som-ezkit.elf 
 ... ...
 (gdb) target extended-remote :3333 (gdb) target extended-remote :3333
 Remote debugging using :3333 Remote debugging using :3333
 0x000000000000352c in ?? () 0x000000000000352c in ?? ()
-(gdb) load+(gdb) load u-boot-proper-sc598-som-ezkit.elf
 Loading section .text, size 0x150 lma 0x96000000 Loading section .text, size 0x150 lma 0x96000000
 Loading section .efi_runtime, size 0xfb0 lma 0x96000150 Loading section .efi_runtime, size 0xfb0 lma 0x96000150
-Loading section .text_rest, size 0x5d480 lma 0x96001800 +Loading section .text_rest, size 0x5ad94 lma 0x96001800 
-Loading section .rodata, size 0x13b7d lma 0x9605ec80 +Loading section .rodata, size 0x12f1c lma 0x9605c598 
-Loading section .hash, size 0x18 lma 0x96072800 +Loading section .hash, size 0x18 lma 0x9606f4b8 
-Loading section .dtb.init.rodata, size 0x2260 lma 0x96072820 +Loading section .dtb.init.rodata, size 0xac0 lma 0x9606f4d0 
-Loading section .data, size 0x41b0 lma 0x96074a80 +Loading section .data, size 0x47e8 lma 0x9606ff90 
-Loading section .got, size 0x8 lma 0x96078c30 +Loading section .got, size 0x8 lma 0x96074778 
-Loading section .got.plt, size 0x18 lma 0x96078c38 +Loading section .got.plt, size 0x18 lma 0x96074780 
-Loading section .u_boot_list, size 0x3318 lma 0x96078c50 +Loading section .u_boot_list, size 0x2800 lma 0x96074798 
-Loading section .efi_runtime_rel, size 0x1b0 lma 0x9607bf68 +Loading section .efi_runtime_rel, size 0x1b0 lma 0x96076f98 
-Loading section .rela.dyn, size 0xbf28 lma 0x9607c118 +Loading section .rela.dyn, size 0xb700 lma 0x96077148 
-Start address 0x96000000, load size 555317 +Start address 0x96000000, load size 532800 
-Transfer rate: 29 KB/sec, 13221 bytes/write.+Transfer rate: 29 KB/sec, 12685 bytes/write.
 (gdb) c (gdb) c
 Continuing. Continuing.
Line 219: Line 218:
   ;''**Terminal1: minicom**''   ;''**Terminal1: minicom**''
   :  <code>   :  <code>
-U-Boot 2020.10 (Nov 04 2022 - 18:07:17 +0000)+U-Boot 2020.10 (Aug 23 2022 - 13:09:23 +0000)
  
-CPU:   ADSP ADSP-SC598-0.0 (spi slave boot) 
 Model: ADI sc598-som-ezkit Model: ADI sc598-som-ezkit
 +       Watchdog enabled
 +I2C:   ready
 DRAM:  224 MiB DRAM:  224 MiB
-WDT:   Started with servicing (30s timeout) 
 MMC:   mmc@310C7000: 0 MMC:   mmc@310C7000: 0
-Loading Environment from SPIFlash... SF: Detected is25lp512 with page size 256 Bytes, erase size 64 +Loading Environment from SPIFlash... 
-*** Warning - bad CRCusing default environment +SF: Detected is25lp512 with page size 256 Bytes, erase size 64 KiBtotal 64 MiB 
 +OK
 In:    serial@0x31003000 In:    serial@0x31003000
 Out:   serial@0x31003000 Out:   serial@0x31003000
 Err:   serial@0x31003000 Err:   serial@0x31003000
-Net:   eth0: eth0+Net:   eth0: eth@0x31040000
 Hit any key to stop autoboot:  0 Hit any key to stop autoboot:  0
 => =>
Line 445: Line 444:
 $ sudo service nfs-kernel-server start $ sudo service nfs-kernel-server start
 </code> </code>
 +We can verify that the NFS service is running by executing
 +<code>
 +$ sudo service nfs-kernel-server status
 +</code>
 +The output will indicate that the server is active, i.e.
 +<code>
 +● nfs-server.service - NFS server and services
 +     Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled)
 +    Drop-In: /run/systemd/generator/nfs-server.service.d
 +             └─order-with-mounts.conf
 +     Active: active (exited) since Tue 2022-09-06 14:38:31 BST; 3 months 14 days ago
 +   Main PID: 953 (code=exited, status=0/SUCCESS)
 +      Tasks: 0 (limit: 18797)
 +     Memory: 0B
 +     CGroup: /system.slice/nfs-server.service
 +
 +Sep 06 14:38:29 $YOUR_HOSTNAME systemd[1]: Starting NFS server and services...
 +Sep 06 14:38:31 $YOUR_HOSTNAME systemd[1]: Finished NFS server and services.
 +</code>
 +
 +If it's reported as inactive, wait a few moments and check the status again.
 +
 The root filesystem should then be copied to /romfs. The root filesystem should then be copied to /romfs.
 <code> <code>
resources/tools-software/linuxdsp/docs/quickstartguide/quickstart_sc598.txt · Last modified: 14 Sep 2023 10:12 by Vasileios Bimpikas