Led_output Cortex-m4

Hi @henrique.tx

This is the process on Ubuntu and the yaml file:

tcbuild.yaml (4.7 KB)

mehrdad@GB-IRUL051:~/tcbdir$ torizoncore-builder build
Building image as per configuration file 'tcbuild.yaml'...

=>> Handling input section
Unpacking Toradex Easy Installer image.
Copying Toradex Easy Installer image.
Unpacking TorizonCore Toradex Easy Installer image.
Importing OSTree revision 8fcecdceae5e7e70f0d852eea6d97f940ea0196849d6461cbd665312ca43a3ba from local repository...
957 metadata, 9227 content objects imported; 579.3 MB content written
Unpacked OSTree from Toradex Easy Installer image:
  Commit checksum: 8fcecdceae5e7e70f0d852eea6d97f940ea0196849d6461cbd665312ca43a3ba
  TorizonCore Version: 6.2.0+build.2

=>> Handling customization section

=> Handling device-tree subsection

=> Selecting custom device-tree 'images/linux/arch/arm64/boot/dts/freescale/imx8mm-verdin-wifi-dev.dts'
'imx8mm-verdin-wifi-dev.dts' compiles successfully.
warning: removing currently applied device tree overlays
Device tree imx8mm-verdin-wifi-dev.dtb successfully applied.

=> Adding device-tree overlay 'images/device-trees/overlays/verdin-imx8mm_hmp_overlay.dts'
'verdin-imx8mm_hmp_overlay.dts' compiles successfully.
/tmp/tmpy1ilbkh5: Device Tree Blob version 17, size=68562, boot CPU=0, string block size=5770, DT structure block size=62736
'verdin-imx8mm_hmp_overlay.dtbo' can successfully modify the device tree 'imx8mm-verdin-wifi-dev.dtb'.
Overlay verdin-imx8mm_hmp_overlay.dtbo successfully applied.

=> Adding device-tree overlay 'images/device-trees/overlays/verdin-imx8mm_spidev_overlay.dts'
'verdin-imx8mm_spidev_overlay.dts' compiles successfully.
/tmp/tmpp2zk1fqy: Device Tree Blob version 17, size=68815, boot CPU=0, string block size=5779, DT structure block size=62980
'verdin-imx8mm_spidev_overlay.dtbo' can successfully modify the device tree 'imx8mm-verdin-wifi-dev.dtb'.
Overlay verdin-imx8mm_spidev_overlay.dtbo successfully applied.

=>> Handling output section
Applying changes from STORAGE/dt.
Commit 8defc7a2d69d1fbceaeebfd8ddf6b07311b9ac8b966371c31ef76c497e98043c has been generated for changes and is ready to be deployed.
Deploying commit ref: tcbuilder-20230612120342
Pulling OSTree with ref tcbuilder-20230612120342 from local archive repository...
  Commit checksum: 8defc7a2d69d1fbceaeebfd8ddf6b07311b9ac8b966371c31ef76c497e98043c
  TorizonCore Version: 6.2.0+build.2-tcbuilder.20230612120342
  Default kernel arguments: quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3

957 metadata, 9227 content objects imported; 579.3 MB content written
Pulling done.
Deploying OSTree with checksum 8defc7a2d69d1fbceaeebfd8ddf6b07311b9ac8b966371c31ef76c497e98043c
Deploying done.
Copy files not under OSTree control from original deployment.
Packing rootfs...
Packing rootfs done.
Updating TorizonCore image in place.

=>> Build command successfully executed!
mehrdad@GB-IRUL051:~/tcbdir$ cd output_directory/
mehrdad@GB-IRUL051:~/tcbdir/output_directory$ torizoncore-builder images unpack torizon-core-docker-evaluation-verdin-imx8mm-Tezi_6.1.0.8.CUSTOM
Storage not empty. Delete current image before continuing? [y/N] y
Copying Toradex Easy Installer image.
Unpacking TorizonCore Toradex Easy Installer image.
Importing OSTree revision 8defc7a2d69d1fbceaeebfd8ddf6b07311b9ac8b966371c31ef76c497e98043c from local repository...
957 metadata, 9227 content objects imported; 579.3 MB content written
Unpacked OSTree from Toradex Easy Installer image:
  Commit checksum: 8defc7a2d69d1fbceaeebfd8ddf6b07311b9ac8b966371c31ef76c497e98043c
  TorizonCore Version: 6.2.0+build.2-tcbuilder.20230612120342
mehrdad@GB-IRUL051:~/tcbdir/output_directory$ torizoncore-builder deploy --remote-host 10.50.49.147 --remote-username torizon --remote-password 1 --reboot
Pulling OSTree with ref base (checksum 8defc7a2d69d1fbceaeebfd8ddf6b07311b9ac8b966371c31ef76c497e98043c) from local archive repository...
Starting http server to serve OSTree.
OSTree server listening on "localhost:46285".
Starting OSTree pull on the device...
Deploying new OSTree on the device...
Deploying successfully finished.
Device reboot initiated...
mehrdad@GB-IRUL051:~/tcbdir/output_directory$

this is before depoloy the new DT:

login as: torizon
torizon@verdin-imx8mm-07201697's password:
torizon@verdin-imx8mm-07201697:~$ ls
torizon@verdin-imx8mm-07201697:~$ cd /dev
torizon@verdin-imx8mm-07201697:/dev$ ls
autofs           mmcblk0boot1   rtc1       tty47     vcs1
block            mmcblk0p1      shm        tty48     vcs2
btrfs-control    mmcblk0rpmb    snd        tty49     vcs3
bus              mqueue         spidev1.0  tty5      vcs4
caam-keygen      mxc_hantro     stderr     tty50     vcs5
char             mxc_hantro_h1  stdin      tty51     vcs6
console          net            stdout     tty52     vcs7
cpu_dma_latency  null           tty        tty53     vcsa
cuse             port           tty0       tty54     vcsa1
disk             ppp            tty1       tty55     vcsa2
dma_heap         pps0           tty10      tty56     vcsa3
dri              ptmx           tty11      tty57     vcsa4
emmc             ptp0           tty12      tty58     vcsa5
emmc-boot0       pts            tty13      tty59     vcsa6
emmc-boot1       ptyp0          tty14      tty6      vcsa7
emmc-part1       ptyp1          tty15      tty60     vcsu
fd               ptyp2          tty16      tty61     vcsu1
full             ptyp3          tty17      tty62     vcsu2
fuse             ptyp4          tty18      tty63     vcsu3
galcore          ptyp5          tty19      tty7      vcsu4
gpiochip0        ptyp6          tty2       tty8      vcsu5
gpiochip1        ptyp7          tty20      tty9      vcsu6
gpiochip2        ptyp8          tty21      ttyS0     vcsu7
gpiochip3        ptyp9          tty22      ttyS1     verdin-adc1
gpiochip4        ptypa          tty23      ttyS2     verdin-adc2
hugepages        ptypb          tty24      ttyS3     verdin-adc3
hwrng            ptypc          tty25      ttymxc0   verdin-adc4
i2c-0            ptypd          tty26      ttymxc1   verdin-i2c-on-module
i2c-1            ptype          tty27      ttymxc2   verdin-i2c1
i2c-2            ptypf          tty28      ttyp0     verdin-i2c2
i2c-3            ram0           tty29      ttyp1     verdin-i2c4
iio:device0      ram1           tty3       ttyp2     verdin-spi-cs0
initctl          ram10          tty30      ttyp3     verdin-uart1
input            ram11          tty31      ttyp4     verdin-uart2
kmsg             ram12          tty32      ttyp5     verdin-uart3
kvm              ram13          tty33      ttyp6     verdin-watchdog
log              ram14          tty34      ttyp7     verdin-watchdog-soc
loop-control     ram15          tty35      ttyp8     vfio
loop0            ram2           tty36      ttyp9     vga_arbiter
loop1            ram3           tty37      ttypa     vhci
loop2            ram4           tty38      ttypb     video0
loop3            ram5           tty39      ttypc     video1
loop4            ram6           tty4       ttypd     vsi_daemon_ctrl
loop5            ram7           tty40      ttype     watchdog
loop6            ram8           tty41      ttypf     watchdog0
loop7            ram9           tty42      ubi_ctrl  zero
mapper           random         tty43      uinput    zram0
mem              rfkill         tty44      urandom
mmcblk0          rtc            tty45      v4l
mmcblk0boot0     rtc0           tty46      vcs
torizon@verdin-imx8mm-07201697:/dev$ sudo ostree admin status
Password:
  torizon 45eb289dc71b87d163da0edede2e1c493bac4844dd69f79c36cf2550ef46f6ab.0 (pending)
    Version: 6.2.0+build.2-tcbuilder.20230602092901
    origin refspec: tcbuilder:45eb289dc71b87d163da0edede2e1c493bac4844dd69f79c36cf2550ef46f6ab
* torizon 47a0ef4bfec4a8407b7f4244829fd35380a033560bdd83f24a369b9c0c2e77e4.0
    Version: 6.2.0+build.2-tcbuilder.20230419205206
    origin refspec: torizon
torizon@verdin-imx8mm-07201697:/dev$ ifconfig
br-79de83bab851: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.18.0.1  netmask 255.255.0.0  broadcast 172.18.255.255
        inet6 fe80::42:b8ff:fe8a:f3cc  prefixlen 64  scopeid 0x20<link>
        ether 02:42:b8:8a:f3:cc  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 30  bytes 4321 (4.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:1a:e7:00:1a  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 00:80:0f:78:50:01  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ethernet0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.50.49.147  netmask 255.255.255.0  broadcast 10.50.49.255
        inet6 fe80::4871:c5e8:157a:957  prefixlen 64  scopeid 0x20<link>
        ether 00:14:2d:6d:e3:a1  txqueuelen 1000  (Ethernet)
        RX packets 749  bytes 77632 (75.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 112  bytes 23832 (23.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 90  bytes 7794 (7.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 90  bytes 7794 (7.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

mlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 66:15:b6:c6:f3:58  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

uap0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether b2:ef:b7:f7:ae:b7  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth01fd8bf: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::2077:cbff:fe79:e5aa  prefixlen 64  scopeid 0x20<link>
        ether 22:77:cb:79:e5:aa  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 23  bytes 3302 (3.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth0752a09: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::d8a6:f1ff:fea7:f799  prefixlen 64  scopeid 0x20<link>
        ether da:a6:f1:a7:f7:99  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 48  bytes 6649 (6.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

torizon@verdin-imx8mm-07201697:/dev$

after deploy the image:

login as: torizon
torizon@verdin-imx8mm-07201697's password:
torizon@verdin-imx8mm-07201697:~$ cd /dev
torizon@verdin-imx8mm-07201697:/dev$ ls
autofs           mmcblk0boot1   rtc1       tty47     vcs1
block            mmcblk0p1      shm        tty48     vcs2
btrfs-control    mmcblk0rpmb    snd        tty49     vcs3
bus              mqueue         spidev1.0  tty5      vcs4
caam-keygen      mxc_hantro     stderr     tty50     vcs5
char             mxc_hantro_h1  stdin      tty51     vcs6
console          net            stdout     tty52     vcs7
cpu_dma_latency  null           tty        tty53     vcsa
cuse             port           tty0       tty54     vcsa1
disk             ppp            tty1       tty55     vcsa2
dma_heap         pps0           tty10      tty56     vcsa3
dri              ptmx           tty11      tty57     vcsa4
emmc             ptp0           tty12      tty58     vcsa5
emmc-boot0       pts            tty13      tty59     vcsa6
emmc-boot1       ptyp0          tty14      tty6      vcsa7
emmc-part1       ptyp1          tty15      tty60     vcsu
fd               ptyp2          tty16      tty61     vcsu1
full             ptyp3          tty17      tty62     vcsu2
fuse             ptyp4          tty18      tty63     vcsu3
galcore          ptyp5          tty19      tty7      vcsu4
gpiochip0        ptyp6          tty2       tty8      vcsu5
gpiochip1        ptyp7          tty20      tty9      vcsu6
gpiochip2        ptyp8          tty21      ttyS0     vcsu7
gpiochip3        ptyp9          tty22      ttyS1     verdin-adc1
gpiochip4        ptypa          tty23      ttyS2     verdin-adc2
hugepages        ptypb          tty24      ttyS3     verdin-adc3
hwrng            ptypc          tty25      ttymxc0   verdin-adc4
i2c-0            ptypd          tty26      ttymxc1   verdin-i2c-on-module
i2c-1            ptype          tty27      ttymxc2   verdin-i2c1
i2c-2            ptypf          tty28      ttyp0     verdin-i2c2
i2c-3            ram0           tty29      ttyp1     verdin-i2c4
iio:device0      ram1           tty3       ttyp2     verdin-spi-cs0
initctl          ram10          tty30      ttyp3     verdin-uart1
input            ram11          tty31      ttyp4     verdin-uart2
kmsg             ram12          tty32      ttyp5     verdin-uart3
kvm              ram13          tty33      ttyp6     verdin-watchdog
log              ram14          tty34      ttyp7     verdin-watchdog-soc
loop-control     ram15          tty35      ttyp8     vfio
loop0            ram2           tty36      ttyp9     vga_arbiter
loop1            ram3           tty37      ttypa     vhci
loop2            ram4           tty38      ttypb     video0
loop3            ram5           tty39      ttypc     video1
loop4            ram6           tty4       ttypd     vsi_daemon_ctrl
loop5            ram7           tty40      ttype     watchdog
loop6            ram8           tty41      ttypf     watchdog0
loop7            ram9           tty42      ubi_ctrl  zero
mapper           random         tty43      uinput    zram0
mem              rfkill         tty44      urandom
mmcblk0          rtc            tty45      v4l
mmcblk0boot0     rtc0           tty46      vcs
torizon@verdin-imx8mm-07201697:/dev$ sudo ostree admin status
Password:
  torizon 8defc7a2d69d1fbceaeebfd8ddf6b07311b9ac8b966371c31ef76c497e98043c.0 (pending)
    Version: 6.2.0+build.2-tcbuilder.20230612120342
    origin refspec: tcbuilder:8defc7a2d69d1fbceaeebfd8ddf6b07311b9ac8b966371c31ef76c497e98043c
* torizon 47a0ef4bfec4a8407b7f4244829fd35380a033560bdd83f24a369b9c0c2e77e4.0
    Version: 6.2.0+build.2-tcbuilder.20230419205206
    origin refspec: torizon


still, SPI is there

Best regards,
Mehrdad