After installing the support package for Raspberry Pi™ hardware, use Support Package Installer to replace the firmware on the Raspberry Pi hardware.
This process replaces the current firmware with a customized version of Raspbian Wheezy Linux® that can run Simulink® models, as described in the following topics:
To replace the firmware on your Raspberry Pi hardware:
Open the Update firmware screen in Support Package Installer:
Click Continue in the Install/update complete screen of Support Package Installer.
In a model, select Tools > Run on Target Hardware > Update firmware.
In a MATLAB® Command Window, enter targetupdater.
Local area or home network — Confirm that the Raspberry Pi hardware is connected to your host computer using a local area network (LAN) or home network similar to the ones displayed by Support Package Installer. Then, click Next. This option automatically applies dynamic network settings provided by a DNS service on the network.
Direct connection to host computer — Confirm that the Raspberry Pi hardware is connected to your host computer using a direct connection similar to the one displayed by Support Package Installer. Then, click Next. This option automatically applies static network settings based upon the network settings of the host computer.
Manually enter network settings — To manually configure the network settings, select this option.
Selecting Manually enter network settings displays the following options:
Host name — This parameter displays an automatically-generated network host name that will be assigned to the Raspberry Pi hardware. If multiple boards are connected to the network, edit the host name to make it unique.
Automatically get IP address — Like Local area or home network, this option automatically applies dynamic network settings provided by a DNS service on the network.
Manually enter IP address — Use this option to edit the IP address, Network mask, and Default gateway settings.
Guidelines for manually entering IP settings on the Raspberry Pi hardware:
The value of the IP address must be unique for each device on the network.
The value of the Network mask must be the same for all devices on the network. This value is also known as Subnet mask.
The value of the Default gateway is usually the same for all devices on the network.
For example, to manually configure IP settings, enter ipconfig on the command line of your host computer. This command displays network settings of Ethernet adapters on the host computer. Suppose that, for the Ethernet adapter on the host computer that is connected to the Raspberry Pi hardware, the values are:
IPv4 Address. . . . . . . . . . . : 192.168.1.2 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.1.1
In that case, for the Raspberry Pi hardware:
Set IP address to an unused IP address, between 192.168.1.3 and 192.168.1.254
Set Network mask to use the same network mask value, 255.255.255.0
For more information, see Get IP Address of Raspberry Pi Hardware and Configure Network Settings on Raspberry Pi Hardware.
Click Refresh, and select the drive letter of the SD card and click Next.
Tip If multiple drive letters are available, identify the drive letter of the media card reader. Open the Windows Start menu, choose Computer, and review the list of Devices with Removable Storage
Support Package Installer uses SSH to create a test connection to the board using the host name, user name, and password shown.
If the test fails, the software displays a message that it cannot connect to the hardware, and includes the error reported by PuTTY. You can click Back or use the targetupdater function to revisit the network settings. Also see Configure Network Settings on Raspberry Pi Hardware.
If the test succeeds, the software displays a "Connection successful" message on the progress bar for a few moments before closing the progress bar.
Make a note of the host name, user name, and password so you can log in to the board later on. Then, click Next.
If the IP address of the Raspberry Pi hardware changes, the board can send you email notification of the new IP address. For more information, see Configure Raspberry Pi Hardware to Mail IP Address Changes.
If you leave Show support package examples enabled, Support Package Installer opens the example page for Raspberry Pi hardware.
For hands-on experience using Simulink models with Raspberry Pi hardware, complete the examples.
To reopen these examples later on, see Open Examples for This Support Package.