cancel
Showing results for 
Search instead for 
Did you mean: 

cannot install build-essential pkg

younghan
Associate III

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

8 REPLIES 8
PatrickF
ST Employee

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.

https://community.st.com/t5/stm32-mpus-products/what-is-the-simplest-way-to-install-3rd-party-util-on-the/m-p/276127/highlight/true#M8133

 

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Jean-Marc B
ST Employee

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

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.

 

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

Hello, @Jean-Marc B 

Okay Thanks, I installed this pkg.

younghan_0-1716280611628.png

 

and how can I accept from stm32mp1 to PC?

@younghan 

I am glad you succeeded in installing the x-linux-aws package.

 

What do you mean when you wrote:


@younghan wrote:

and how can I accept from stm32mp1 to PC?


X-LINUX-AWS enables the STM32MP13 to connect to the AWS Cloud (AWS IoT Core).

Best regards,

--JM

Yes, I want to STM32MP13 to connect to the AWS Cloud (AWS IoT Core).

AMARSTM
ST Employee

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,