2024-05-20 12:28 AM
I want to connect AWS IoT on STM32mp135f-dk board.
so, I install pkg
sudo apt-get install git
sudo apt-get install cmake
sudo apt-get install build-essential
but, can't auto install build-essential, so dpkg manual install.(build-essential_12.10_armhf.deb)
gcc pakage already installed, but occured error
error)
root@stm32mp1:/usr/local/pkg# dpkg -i build-essential_12.10_armhf.deb
(Reading database ... 29989 files and directories currently installed.)
Preparing to unpack build-essential_12.10_armhf.deb ...
Unpacking build-essential (12.10) over (12.10) ...
dpkg: dependency problems prevent configuration of build-essential:
build-essential depends on gcc (>= 4:12.3); however:
Package gcc is not configured yet.
dpkg: error processing package build-essential (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
build-essential
root@stm32mp1:/usr/local/pkg#
how can I fix it?
Solved! Go to Solution.
2024-05-21 12:36 AM
Hi @younghan
Hum, that's ssuper strange!
I just flashed a mp135f-dk board with OpenSTLinux 5.0 and followed the wiki instructions without reproducing your problem. My commands:
root@stm32mp1:~# date
root@stm32mp1:~# apt-get update
root@stm32mp1:~# apt-cache policy optee-client optee-os-stm32mp
optee-client:
Installed: 3.19.0+git0+140bf46304-r0
Candidate: 3.19.0+git0+140bf46304-r0
Version table:
*** 3.19.0+git0+140bf46304-r0 100
100 /var/lib/dpkg/status
optee-os-stm32mp:
Installed: 3.19.0-stm32mp-r1-r0
Candidate: 3.19.0-stm32mp-r1-r0
Version table:
*** 3.19.0-stm32mp-r1-r0 100
100 /var/lib/dpkg/status
root@stm32mp1:~# wget http://extra.packages.openstlinux.st.com/AWS/5.0/pool/config/a/apt-
openstlinux-aws/apt-openstlinux-aws_1.0_armhf.deb
root@stm32mp1:~# mv apt-openstlinux-aws_1.0_armhf.deb /var/cache/apt/archives/.
root@stm32mp1:~# apt-get install /var/cache/apt/archives/apt-openstlinux-aws_1.0_armhf.de
b
root@stm32mp1:~# apt-get update
root@stm32mp1:~# apt-cache policy optee-client optee-os-stm32mp
optee-client:
Installed: 3.19.0+git0+140bf46304-r0
Candidate: 3.19.0+git0+140bf46304-r1
Version table:
3.19.0+git0+140bf46304-r1 500
500 http://extra.packages.openstlinux.st.com/AWS/5.0 mickledore/main armhf Packages
*** 3.19.0+git0+140bf46304-r0 100
100 /var/lib/dpkg/status
optee-os-stm32mp:
Installed: 3.19.0-stm32mp-r1-r0
Candidate: 3.19.0-stm32mp-r1-r1
Version table:
3.19.0-stm32mp-r1-r1 500
500 http://extra.packages.openstlinux.st.com/AWS/5.0 mickledore/main armhf Packages
*** 3.19.0-stm32mp-r1-r0 100
100 /var/lib/dpkg/status
root@stm32mp1:~# apt-get install packagegroup-x-linux-aws --assume-yes
Would it be possible to make a new attempt from a fresh installation please?
Best regards,
--JM
2024-05-20 02:42 AM
Hi @younghan
I'm not expert on this, but you cannot compile packages on the target (that's would be too heavy), you should use Yocto Distribution Package to add the AWS layer. I guess it could be that one you are looking for:
http://layers.openembedded.org/layerindex/branch/master/layer/meta-aws/
See this other post.
Regards.
2024-05-20 03:07 AM
Hi @younghan
As Patrick exactly wrote, gcc toolchain is not provided in the Starter Package.
However, you can install AWS packages on MP135F board from the Starter Package by following this wiki page: https://wiki.st.com/stm32mpu/wiki/X-LINUX-AWS_Starter_package
Best regards,
--JM
2024-05-20 06:18 PM
Hello, @Jean-Marc B
I try to your guide. X-LINUX-AWS_Starter_package
<Command>
cd /var/cache/apt/archives
wget http://extra.packages.openstlinux.st.com/AWS/5.0/pool/config/a/apt-openstlinux-aws/apt-openstlinux-aws_1.0_armhf.deb
apt-get install ./apt-openstlinux-aws_1.0_armhf.deb
<Install error>
packagegroup-x-linux-aws : Depends: demo-application-aws but it is not going to be installed
Depends: opensc but it is not going to be installed
Depends: optee-client (>= 3.19.0+git0+140bf46304-r1) but 3.19.0+git0+140bf46304-r0 is to bed
Depends: optee-os-stm32mp (>= 3.19.0-stm32mp-r1-r1) but 3.19.0-stm32mp-r1-r0 is to be instad
Depends: pcsc-lite but it is not going to be installed
Depends: pkcs11-provider but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
how can I fix it? thanks.
2024-05-21 12:36 AM
Hi @younghan
Hum, that's ssuper strange!
I just flashed a mp135f-dk board with OpenSTLinux 5.0 and followed the wiki instructions without reproducing your problem. My commands:
root@stm32mp1:~# date
root@stm32mp1:~# apt-get update
root@stm32mp1:~# apt-cache policy optee-client optee-os-stm32mp
optee-client:
Installed: 3.19.0+git0+140bf46304-r0
Candidate: 3.19.0+git0+140bf46304-r0
Version table:
*** 3.19.0+git0+140bf46304-r0 100
100 /var/lib/dpkg/status
optee-os-stm32mp:
Installed: 3.19.0-stm32mp-r1-r0
Candidate: 3.19.0-stm32mp-r1-r0
Version table:
*** 3.19.0-stm32mp-r1-r0 100
100 /var/lib/dpkg/status
root@stm32mp1:~# wget http://extra.packages.openstlinux.st.com/AWS/5.0/pool/config/a/apt-
openstlinux-aws/apt-openstlinux-aws_1.0_armhf.deb
root@stm32mp1:~# mv apt-openstlinux-aws_1.0_armhf.deb /var/cache/apt/archives/.
root@stm32mp1:~# apt-get install /var/cache/apt/archives/apt-openstlinux-aws_1.0_armhf.de
b
root@stm32mp1:~# apt-get update
root@stm32mp1:~# apt-cache policy optee-client optee-os-stm32mp
optee-client:
Installed: 3.19.0+git0+140bf46304-r0
Candidate: 3.19.0+git0+140bf46304-r1
Version table:
3.19.0+git0+140bf46304-r1 500
500 http://extra.packages.openstlinux.st.com/AWS/5.0 mickledore/main armhf Packages
*** 3.19.0+git0+140bf46304-r0 100
100 /var/lib/dpkg/status
optee-os-stm32mp:
Installed: 3.19.0-stm32mp-r1-r0
Candidate: 3.19.0-stm32mp-r1-r1
Version table:
3.19.0-stm32mp-r1-r1 500
500 http://extra.packages.openstlinux.st.com/AWS/5.0 mickledore/main armhf Packages
*** 3.19.0-stm32mp-r1-r0 100
100 /var/lib/dpkg/status
root@stm32mp1:~# apt-get install packagegroup-x-linux-aws --assume-yes
Would it be possible to make a new attempt from a fresh installation please?
Best regards,
--JM
2024-05-21 01:37 AM
2024-05-21 01:56 AM
2024-05-21 02:12 AM
Yes, I want to STM32MP13 to connect to the AWS Cloud (AWS IoT Core).
2024-05-21 02:21 AM
Hello @younghan,
Thank you for your interest to the X-LINUX-AWS expansion package.
You can find the documentation entry point of this package here: https://wiki.st.com/stm32mpu/wiki/Category:X-LINUX-AWS_expansion_package
Because you have already installed the package, you can go to the configuration step: https://wiki.st.com/stm32mpu/wiki/X-LINUX-AWS_Expansion_Package#X-LINUX-AWS_Expansion_Package_software_setup
Best regards,