Matlab support for Raspberry Pi 4

Hey,
I'm making a robotics project for my BSc and was wandering when could we expect support for Raspberry Pi 4? This page said that RPi's are currently supported only up to 3B+, 4 being quite new is not even mentioned.
On the other hand, are there some better or equal SoC for robotics projects that are supported by matlab?
Thanks in advance!

2 件のコメント

Alessio Gagliardi
Alessio Gagliardi 2019 年 9 月 5 日
I am interested as well,
There is a plan for releasing the Raspberry Pi 4 Support Toolbox? Thanks in advance.
Alessio
Rik
Rik 2019 年 9 月 5 日
Even if sometimes staff members look on this forum and post from time to time, the help on this forum is mostly provided by people who are doing this as a volunteer. You can contact Mathworks support directly with the Contact Us button at the top of the page if you want an official answer.

サインインしてコメントする。

回答 (4 件)

Prasanth Sunkara
Prasanth Sunkara 2019 年 9 月 17 日
編集済み: Prasanth Sunkara 2023 年 11 月 20 日

3 投票

Hello Pawel,
Raspberry Pi 4B is a significant upgrade over earlier versions. As of today(Sept 2019), the latest release, MATLAB R2019b supports upto 3B+. The development team is actively looking into the request for 4B support and it will be made available in one of the future releases.
UPDATE: It is supported from R2020a
Thanks,
Prasanth

9 件のコメント

Florian Bayer
Florian Bayer 2020 年 1 月 2 日
Hello Prasanth,
is there any update regarding the support of Raspberry Pi 4B ? Will the Raspberry Pi be supported in the next Release 2020a ?
Thanks,
Florian
Prasanth Sunkara
Prasanth Sunkara 2020 年 1 月 3 日
編集済み: Prasanth Sunkara 2020 年 1 月 3 日
Hello Florian,
There is a workaround for supporting 4B on R2019b.
It is based on "OS customization" during "Hardware Setup" process.
Steps:
1) Flash the SD card with latest Raspbian Buster image from https://www.raspberrypi.org/downloads/raspbian/. (The shipping Raspbian image with R2019b Raspberry Pi support package is based on Debian Stretch, for Pi4 Debian Buster is required. )
2) Install a fresh Raspberry Pi support package
3) Run the Hardware Setup wizard. Please see the below link for more info on starting hardware setup.
4) In the hardware setup screens, select "Raspberry Pi 3B+" and then select “OS Customization Workflow". Please see the below image.
5) Click 'Next' and follow the instructions provided on the screen. In the OS customization workflow, the linux libraries and packages required by the support packages are installed.
6) Once the process is done, execute the below line on MATLAB to ensure the installation is successful.
>> r=raspi('IP_ADDRESS','username','password')
Note that you may see that the above command may not return the board name as Raspberry Pi 4B. If you are using simulink blocks of raspberry pi, please select the board as "Raspberry Pi3/3B" as a workaround.
We need to wait till March 2020 for an update on the official support for 4B. Until then, I hope this workaround helps.
Feel free to comment, if you face any issues in this process.
Thanks,
Prasanth
Florian Bayer
Florian Bayer 2020 年 1 月 7 日
Hello Prasanth,
thank you very much for your fast reply. I will try it with these information.
Thanks,
Florian
takamitsu hatakeyama
takamitsu hatakeyama 2020 年 1 月 9 日
Hello Prasanth
I want to ask in case of using MATLAB2018b.
counter measure you mensioned above is still effective in case of using MATLAB2018b?
Thanks,
Takamitsu
Pawel Gakan
Pawel Gakan 2020 年 1 月 11 日
Hello Prasanth,
thanks for answering my question! I got around those limitations by running ROS network on my RPi with nodes generated from simulink.
However, what my solution lacks is real time support. Will using your solution guarantee RT?
Thanks,
Paweł
Prasanth Sunkara
Prasanth Sunkara 2020 年 1 月 13 日
Hello @Takamitsu,
The above suggested OS customization workflow would work for versions from R2018b - R2019b. Please try it out and let us know if you face any issues.
Hello @Pawel,
ROS nodes, to put it in a simpler way, are event driven. However if you deploy a simulink model with non-ros blocks on to Raspberry Pi, thery are scheduled to run at the sample time Simulink allots during the compilation of the model.
But since Raspberry pi runs a non real-time OS, the OS may not always guarantee the Simulink generated executable runs at the specified sample time. But in most cases the OS is likely to respect the specified sample time. It varies based on factors like, the block's algorithm computational complexity vs sample time specifed for that block, other programs running on the board etc.
Hope this helps!
Thanks,
Prasanth
Pawel Gakan
Pawel Gakan 2020 年 1 月 13 日
Hello @Prasanth,
Yes, this the exact behaviour I've encountered.
I've compiled and successfully installed preemptive kernel on RPi. Do you think, that this is something I can take advantage of by using MATLAB/Simulink?
Thanks,
Paweł
takamitsu hatakeyama
takamitsu hatakeyama 2020 年 1 月 16 日
Hello @Prasanth
Thank you for your repry.
I have try raspbery pi4 on MATLAB2018b.
It work well for now.
If I found any informative issue, I'll share infomation.
Thanks,
Takamitsu
taha sadeq
taha sadeq 2022 年 1 月 10 日
Hello,
Could you share how u connected raspbery pi4 on MATLAB2018b.
tq

サインインしてコメントする。

Tohru Kikawada
Tohru Kikawada 2020 年 5 月 29 日

2 投票

Now MATLAB and Simulink supports Raspberry Pi 4 Model B from R2020a.

1 件のコメント

Christopher Hamilton
Christopher Hamilton 2020 年 6 月 7 日
Looks like the package installer calls for an older version of libgnutls-openssl. Version 10u4 is the only one on the repo. Kinda new to linux, is there a way I can download/install the older version?
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/g/gnutls28/libgnutls-openssl27_3.6.7-4+deb10u3_armhf.deb 404 Not Found [IP: 93.93.128.193 80]

サインインしてコメントする。

Laalitya Acharya
Laalitya Acharya 2020 年 1 月 16 日

1 投票

Prasanth Sunkara - I have pi3 and pi4 and both of them are getting errors of
$sudo apt-get install matlab-rpi
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package matlab-rpi
I am trying to do this for matlab online.

2 件のコメント

Christopher Hamilton
Christopher Hamilton 2020 年 6 月 7 日
Looks like the package installer calls for an older version of libgnutls-openssl. Version 10u4 is the only one on the repo. Kinda new to linux, is there a way I can download/install the older version?
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/g/gnutls28/libgnutls-openssl27_3.6.7-4+deb10u3_armhf.deb 404 Not Found [IP: 93.93.128.193 80]
Prasanth Sunkara
Prasanth Sunkara 2021 年 3 月 25 日
If you are using Desktop MATLAB software(not MATLAB Online), then please use either MathWorks Customized image or Customize your existing Raspberry Pi OS with the additional requirements.
Please do not use "matlab-rpi" linux package installation for Desktop MATLAB. It is only applicable for Online MATLAB.

サインインしてコメントする。

R SRIRANJANI RAMAKRISHNAN
R SRIRANJANI RAMAKRISHNAN 2021 年 9 月 23 日
編集済み: R SRIRANJANI RAMAKRISHNAN 2021 年 9 月 23 日

0 投票

MATLAB 2021a I have installed and downloaded MATLAB Raspberry PI support package and Simulink support package.
During Raspbian OS installation, Connected Raspberry pi 4B with my mobile wifi hotspot. But it was not detected.
Then I checked the Raspberrypi.org website.
I got the solution
After Installing Raspbian OS, In SD card Create two txt file.
Rename file name as
  1. wpa_supplicant.conf.txt
  2. ssh.txt
Open wpa_supplicant.conf.txt file and write the below commands
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
country=IN
update_config=1
network={
ssid="<Name of your wireless LAN>"
psk="<Password for your wireless LAN>"
}
Save it.
Follow these steps:
Delete the extension of wpa_supplicant.conf and ssh
place the sd card in Raspberry pi and proceed

カテゴリ

ヘルプ センター および File ExchangeMATLAB Support Package for Raspberry Pi Hardware についてさらに検索

製品

リリース

R2019a

質問済み:

2019 年 7 月 12 日

編集済み:

2023 年 11 月 20 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by