Wiki

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
resources:tools-software:linuxdsp:docs:quickstartguide:quickstart_sc573_3_0_0 [24 May 2023 10:54] Vasileios Bimpikasresources:tools-software:linuxdsp:docs:quickstartguide:quickstart_sc573_3_0_0 [25 May 2023 11:31] Vasileios Bimpikas
Line 135: Line 135:
 <code bash> <code bash>
 $ ls tmp/deploy/sdk $ ls tmp/deploy/sdk
-adi-distro-musl-x86_64-adsp-sc5xx-minimal-cortexa5t2hf-neon-adsp-sc573-ezkit-toolchain-3.0.0.host.manifest +adi-distro-glibc-glibc-x86_64-adsp-sc5xx-minimal-cortexa5t2hf-neon-adsp-sc573-ezkit-toolchain-3.0.0.host.manifest 
-adi-distro-musl-x86_64-adsp-sc5xx-minimal-cortexa5t2hf-neon-adsp-sc573-ezkit-toolchain-3.0.0.sh +adi-distro-glibc-glibc-x86_64-adsp-sc5xx-minimal-cortexa5t2hf-neon-adsp-sc573-ezkit-toolchain-3.0.0.sh 
-adi-distro-musl-x86_64-adsp-sc5xx-minimal-cortexa5t2hf-neon-adsp-sc573-ezkit-toolchain-3.0.0.target.manifest +adi-distro-glibc-glibc-x86_64-adsp-sc5xx-minimal-cortexa5t2hf-neon-adsp-sc573-ezkit-toolchain-3.0.0.target.manifest 
-adi-distro-musl-x86_64-adsp-sc5xx-minimal-cortexa5t2hf-neon-adsp-sc573-ezkit-toolchain-3.0.0.testdata.json+adi-distro-glibc-glibc-x86_64-adsp-sc5xx-minimal-cortexa5t2hf-neon-adsp-sc573-ezkit-toolchain-3.0.0.testdata.json
 </code> </code>
  
-The ''adi-distro-musl-x86_64-adsp-sc5xx-minimal-cortexa5t2hf-neon-adsp-sc573-ezkit-toolchain-3.0.0.sh'' is a self-extracting archive containing the SDK.+The ''adi-distro-glibc-glibc-x86_64-adsp-sc5xx-minimal-cortexa5t2hf-neon-adsp-sc573-ezkit-toolchain-3.0.0.sh'' is a self-extracting archive containing the SDK.
  
 === Installing the SDK === === Installing the SDK ===
Line 148: Line 148:
 For the minimal image on SC573 For the minimal image on SC573
 <code bash> <code bash>
-$ ./adi-distro-musl-x86_64-adsp-sc5xx-minimal-cortexa5t2hf-neon-adsp-sc573-ezkit-toolchain-3.0.0.sh +$ ./adi-distro-glibc-glibc-x86_64-adsp-sc5xx-minimal-cortexa5t2hf-neon-adsp-sc573-ezkit-toolchain-3.0.0.sh 
-Analog Devices Inc Reference Distro SDK installer version 3.0.0 +Analog Devices Inc Reference Distro (glibc) SDK installer version 3.0.0 
-=============================================================== +======================================================================= 
-Enter target directory for SDK (default: /opt/adi-distro/3.0.0): +Enter target directory for SDK (default: /opt/adi-distro-glibc/3.0.0): 
-You are about to install the SDK to "/opt/adi-distro/3.0.0". Proceed [Y/n]? y +You are about to install the SDK to "/opt/adi-distro-glibc/3.0.0". Proceed [Y/n]? y 
-Extracting SDK........................................................................done+Extracting SDK................................................................................................................done
 Setting it up...done Setting it up...done
 SDK has been successfully set up and is ready to be used. SDK has been successfully set up and is ready to be used.
 Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g. Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
- $ . /opt/adi-distro/3.0.0/environment-setup-cortexa5t2hf-neon-adi-linux-musleabi+ $ . /opt/adi-distro-glibc/3.0.0/environment-setup-cortexa5t2hf-neon-adi_glibc-linux-gnueabi
 </code> </code>
  
Line 198: Line 198:
   ;''**Terminal2: OpenOCD**''   ;''**Terminal2: OpenOCD**''
   :<code bash>   :<code bash>
-$ sdk_usr=/opt/adi-distro/3.0.0/sysroots/x86_64-adisdk-linux/usr/+$ sdk_usr=/opt/adi-distro-glibc/3.0.0/sysroots/x86_64-adi_glibc_sdk-linux/usr/
 $ $sdk_usr/bin/openocd -f $sdk_usr/share/openocd/scripts/interface/<ICE>.cfg -f $sdk_usr/share/openocd/scripts/target/adspsc57x.cfg $ $sdk_usr/bin/openocd -f $sdk_usr/share/openocd/scripts/interface/<ICE>.cfg -f $sdk_usr/share/openocd/scripts/target/adspsc57x.cfg
 </code> </code>
Line 230: Line 230:
   : <code bash>   : <code bash>
 $ cd /tftpboot $ cd /tftpboot
-$ /opt/adi-distro/3.0.0/sysroots/x86_64-adisdk-linux/usr/bin/arm-adi-linux-gnueabi/arm-adi-linux-gnueabi-gdb u-boot-spl-sc573-ezkit.elf+$ /opt/adi-distro-glibc/3.0.0/sysroots/x86_64-adi_glibc_sdk-linux/usr/bin/arm-adi_glibc-linux-gnueabi/arm-adi_glibc-linux-gnueabi-gdb u-boot-spl-sc573-ezkit.elf
 ... ...
 (gdb) target extended-remote :3333 (gdb) target extended-remote :3333
Line 377: Line 377:
 ====== Booting Linux ====== ====== Booting Linux ======
 ==== Booting Linux from SPI Flash ==== ==== Booting Linux from SPI Flash ====
-The ADSP-SC573-EZKIT comes equipped with 16 MiB of SPI Flash. The ''adsp-sc5xx-tiny'' image can be stored into it and used to boot Linux from it. You can do this from the U-Boot prompt. Following the guide so faryou'll have U-Boot installed into SPI Flash and getting the U-Boot prompt when powering up the board with the boot selector set to '1'+The ADSP-SC573-EZKIT comes equipped with 16 MiB of SPI Flash. There's the option of building the ''adsp-sc5xx-tiny'' image, after changing the Libc implementation from the default GNU to musl, to further reduce the image's size. Follow the guide in [[resources:tools-software:linuxdsp:docs:quickstartguide:boot-flash-sc58x-573|Boot from SPI Flash on the SC58x & SC573]]
- +
-You'd first need to copy the fitImage and the ''tiny'' root filesystem on the TFTP server directory of the Host machine: +
- +
-<code bash> +
-$ cp tmp/deploy/images/adsp-sc573-ezkit/fitImage /tftpboot/ +
-$ cp tmp/deploy/images/adsp-sc573-ezkit/adsp-sc5xx-tiny-adsp-sc573-ezkit.jffs2 /tftpboot/ +
-</code> +
- +
-In order to flash the kernel on the flash, run the below command and observe a similar output: +
- +
-<code bash> +
-=> run update_spi_fit +
-Speed: 1000, full duplex +
-Using eth0 device +
-TFTP from server 10.37.33.116; our IP address is 10.37.33.113 +
-Filename 'fitImage'+
-Load address: 0x89000000 +
-Loading: ################################################################# +
-         ################################################################# +
-         ################################################################# +
-         ################################################################# +
-         ################################################################# +
-         ################################################################# +
-         ################################ +
-         2.2 MiB/s +
-done +
-Bytes transferred = 6192194 (5e7c42 hex) +
-SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB +
-device 0 offset 0xe0000, size 0x5e7c42 +
-SF: 6192194 bytes @ 0xe0000 Written: OK +
-</code> +
- +
-Now run the following command to also flash the root filesystem: +
-<code bash> +
-=> run update_spi_rfs +
-Speed: 1000, full duplex +
-Using eth0 device +
-TFTP from server 10.37.33.116; our IP address is 10.37.33.113 +
-Filename 'adsp-sc5xx-tiny-adsp-sc573-ezkit.jffs2'+
-Load address0x89000000 +
-Loading################################################################# +
-         ################################################################# +
-         ################################################################# +
-         ################################################################# +
-         ################################################################# +
-         ################################################################# +
-         ################################################################# +
-         ################################################################# +
-         ################################################################# +
-         ################################################################# +
-         ## +
-         2.1 MiB/s +
-done +
-Bytes transferred = 9568256 (920000 hex) +
-SFDetected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB +
-device 0 offset 0x6e0000, size 0x920000 +
-SF9568256 bytes @ 0x6e0000 Written: OK +
-</code> +
- +
-You are now ready to boot into Linux, by entering ''run spiboot'' on the U-Boot prompt: +
- +
-<code bash> +
-=> run spiboot +
-SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB +
-device 0 offset 0xe0000, size 0x5e7c42 +
-SF: 6192194 bytes @ 0xe0000 Read: OK +
-## Loading kernel from FIT Image at 89000000 ... +
-   Using 'conf-1' configuration +
-   Verifying Hash Integrity ... OK +
-   Trying 'kernel-1' kernel subimage +
-     Description:  Linux kernel +
-     Type:         Kernel Image +
-     Compression:  uncompressed +
-     Data Start:   0x890000dc +
-     Data Size:    4774688 Bytes = 4.6 MiB +
-     Architecture: ARM +
-     OS:           Linux +
-     Load Address: 0x80008000 +
-     Entry Point:  0x80008000 +
-     Hash algo:    sha1 +
-     Hash value:   0bddc73f1c3fbbd1777023e676edbf51f8cd663f +
-     Sign algo:    sha1,rsa2048: +
-     Sign value:   unavailable +
-   Verifying Hash Integrity ... sha1+ sha1,rsa2048:- OK +
- +
-... +
- +
-[  OK  Reached target Host and Network Name Lookups. +
-[  OK  Started D-Bus System Message Bus. +
-[  OK  ] Started User Login Management. +
-[  OK  ] Reached target Multi-User System. +
- +
- +
-     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ +
-     @@@@@@@@  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ +
-     @@@@@@@@     @@@@@@@@@@@@@@@@@@@@@@@@@@ +
-     @@@@@@@@        @@@@@@@@@@@@@@@@@@@@@@@ +
-     @@@@@@@@            @@@@@@@@@@@@@@@@@@@ +
-     @@@@@@@@               @@@@@@@@@@@@@@@@ +
-     @@@@@@@@                   @@@@@@@@@@@@ +
-     @@@@@@@@                     @@@@@@@@@@ +
-     @@@@@@@@                        @@@@@@@ +
-     @@@@@@@@                     @@@@@@@@@@ +
-     @@@@@@@@                   @@@@@@@@@@@@ +
-     @@@@@@@@               @@@@@@@@@@@@@@@@ +
-     @@@@@@@@            @@@@@@@@@@@@@@@@@@@ +
-     @@@@@@@@        @@@@@@@@@@@@@@@@@@@@@@@ +
-     @@@@@@@@     @@@@@@@@@@@@@@@@@@@@@@@@@@ +
-     @@@@@@@@  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ +
-     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ +
- +
-        Analog Devices Yocto Distribution +
-                 www.analog.com +
-              www.yoctoproject.org +
- +
-adsp-sc573-ezkit login: root +
-Password: adi +
-root@adsp-sc573-ezkit:~#+
  
 </code> </code>
resources/tools-software/linuxdsp/docs/quickstartguide/quickstart_sc573_3_0_0.txt · Last modified: 10 Jul 2023 15:22 by Vasileios Bimpikas