cancel
Showing results for 
Search instead for 
Did you mean: 

Support for mongodb , mariadb and sql

NPal.2
Senior

HI ,

How can i install

mongodb , mariadb and postgresql on stm32mp1?

Is there support for databases provided for stm32mp1?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @NPal.2​ 

I am sorry for the trouble.

The package mongodb really exists in our OpenSTLinux distribution available from internet:

root@stm32mp1:~# uname -a
Linux stm32mp1 5.10.10 #1 SMP PREEMPT Sat Jan 23 15:04:06 UTC 2021 armv7l armv7l armv7l GNU/Linux
root@stm32mp1:~# apt-cache policy mongodb
mongodb:
  Installed: (none)
  Candidate: 4.2.2-r0
  Version table:
     4.2.2-r0 500
        500 http://packages.openstlinux.st.com/3.0 dunfell/untested armhf Packages

Could you copy and paste the output of the following command please?

root@stm32mp1:~# apt-get update

You should see something similar to this output:

root@stm32mp1:~# apt-get update
 
The software package is provided AS IS, and by downloading it, you agree to be
bound to the terms of the software license agreement (SLA).
The detailed content licenses can be found at
https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses.
 
Get:1 http://packages.openstlinux.st.com/3.0 dunfell InRelease [3458 B]
Get:2 http://packages.openstlinux.st.com/3.0 dunfell/main armhf Packages [1005 kB]
Get:3 http://packages.openstlinux.st.com/3.0 dunfell/updates armhf Packages [29.0 kB]
Get:4 http://packages.openstlinux.st.com/3.0 dunfell/untested armhf Packages [1439 kB]
Fetched 2477 kB in 7s (340 kB/s)
Reading package lists... Done

Thank you for your patience.

Best regards,

--JM

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

View solution in original post

6 REPLIES 6
Jean-Marc B
ST Employee

Hi @NPal.2​ 

All packages are available from the OpenSTLinux repository:

#board> apt-get update
#board> apt-get install mongodb mariadb postgresql

Best regards

--JM

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

Thanks @Jean-Marc B​ for your response. I tried above commands and the result it shows up package not found. I am running latest OpenSTLinux dunfell 5.10

unable to locate package mongodb

Kindly advice what i can do in order to get these installed on STM32MP1.

Hi @NPal.2​ 

I am sorry for the trouble.

The package mongodb really exists in our OpenSTLinux distribution available from internet:

root@stm32mp1:~# uname -a
Linux stm32mp1 5.10.10 #1 SMP PREEMPT Sat Jan 23 15:04:06 UTC 2021 armv7l armv7l armv7l GNU/Linux
root@stm32mp1:~# apt-cache policy mongodb
mongodb:
  Installed: (none)
  Candidate: 4.2.2-r0
  Version table:
     4.2.2-r0 500
        500 http://packages.openstlinux.st.com/3.0 dunfell/untested armhf Packages

Could you copy and paste the output of the following command please?

root@stm32mp1:~# apt-get update

You should see something similar to this output:

root@stm32mp1:~# apt-get update
 
The software package is provided AS IS, and by downloading it, you agree to be
bound to the terms of the software license agreement (SLA).
The detailed content licenses can be found at
https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses.
 
Get:1 http://packages.openstlinux.st.com/3.0 dunfell InRelease [3458 B]
Get:2 http://packages.openstlinux.st.com/3.0 dunfell/main armhf Packages [1005 kB]
Get:3 http://packages.openstlinux.st.com/3.0 dunfell/updates armhf Packages [29.0 kB]
Get:4 http://packages.openstlinux.st.com/3.0 dunfell/untested armhf Packages [1439 kB]
Fetched 2477 kB in 7s (340 kB/s)
Reading package lists... Done

Thank you for your patience.

Best regards,

--JM

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

Hi @Jean-Marc B​ ,

I apologize for confusion from my end. I tried it and it is working now. I might be doing something wrong while doing such simple things. But works well now. Thanks a ton..!!! .

However upon running mongodb i am running into error which looks something like this

Bus error (core dumped) 

Is it because of memory constraints RAM or sdCard capacity??

Hello @NPal.2​ 

I am glad you solved your first issue!

For the problem related to the bus error while running mongodb, could you open another post please so it would be easier for other customers to split the first problem with this new one?

By the way, I am going to check it now and keep you posted.

Best regards

--JM

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

I really appreciate all the support @Jean-Marc B​ . I will open up a query right away.