1 - Tested with 2013-02-09-wheezy. 2 - On Mac, dd to image did not work, but SD Card Builder did. Wheezy read and write right at about 20MBps. After booting, I installed several packages - all fine. After that, I installed RetroPie. That took about 15 hours to download and compile - zero errors. 1 - Zambon 9 Mar 2013, 2 - RicM July 17 2013 nok. To create your own SD Card for the Raspberry Pi you will need access to another machine, or a friend with one. Mac; Download and install the SD Association's Formatting tools from https. RPi-sd card builder The RPi-sd card builder utility is a app which will walk you through the process of installing to SD card. Note: This is a closed. Download RPi SD Card Builder from here. Unzip the Lakka zip file. Open RPi SD Card Builder and select the extracted.img file. Click Continue when asked if the SD card is connected. Select your SD card and enter your password for your user account. If the SD card ejected from the desktop, click Continue when asked by the prompt window.
This chapter describes installing the Oracle Java ME Embedded 8.1 software on the Raspberry Pi board, installing and using the Developer Agent program on the desktop host, configuring the Oracle Java ME Embedded system, connecting to the Raspberry Pi using a secure shell, and installing and running an Oracle Java ME Embedded application.
The following items are required for developing on the Raspberry Pi board:
Downloading and Installing the PuTTY Terminal Emulator Program
Download the PuTTY terminal emulator program (
putty.exe ) from the following site:
The terminal emulator executable file is directly downloadable as putty.exe . The terminal emulator is used to connect to the AMS command-line interface (CLI) that sends commands to the board.
Rpi Sd Card Builder Mac Download VersionPreparing the Raspberry Pi Board
To develop applications on the Raspberry Pi board, you must first download and install the Wheezy variant of Raspbian Debian Linux on the Raspbian Pi board. To do this, follow these steps:
Installing the Oracle Java ME Embedded Software
Starting from version 8, the Oracle Java ME Embedded software contains a different architecture than previous versions. With version 8, the user has the option to run a Developer Agent program on the desktop under Windows. Commands that are sent to the board from the Windows desktop are no longer sent directly across the network. Instead, they are sent to the Developer Agent program, which transmits all communication to and from the Oracle Java ME Embedded executable file on the Raspberry Pi board.
The Oracle Java ME Embedded ZIP archive consists of the following directories:
You must make two copies of the Oracle Java ME Embedded ZIP archive file. The first remains on the Windows desktop, while the second must be transferred to the Raspberry Pi board.
Adding an HTTP Proxy for Network Connections on Raspberry Pi
If an HTTP proxy server is required for the Java IMlets on Raspberry Pi to make network connections (such as for HTTP or
apt-get ), then Oracle Java ME Embedded on Raspberry Pi can be configured by adding the following lines to the end of the bin/jwc_properties.ini file:
Beta Draft: 2014-03-25
This chapter describes installing the Oracle Java ME Embedded 8 software on the Raspberry Pi board, installing and using the Developer Agent on the desktop host, configuring the Java ME Embedded system, connecting to the Raspberry Pi using a secure shell, and installing and running an Oracle Java ME Embedded application.
The following items are required for developing on the Raspberry Pi board:
Downloading and Installing the PuTTY Terminal Emulator Program
First, download the PuTTY Terminal Emulator Program (
putty.exe ) from the following site:
The terminal emulator executable is directly downloadable as putty.exe . The terminal emulator is used to connect to the AMS command-line interface (CLI) that issues commands to the board.
Preparing the Raspberry Pi Board
To develop on the Raspberry Pi board, you must first download and install the Wheezy variant of Raspbian Debian Linux on the Pi board. If you have not already done this, use the following steps:
Installing the Java ME Embedded Software
Version 8 of the Oracle Java ME Embedded contains a different architecture than previous versions. With version 8, the user has the option to run a Developer agent on the desktop side under Windows. Commands that are sent to the board from the Windows desktop are no longer sent directly across the network. Instead, they are sent to the Developer Agent, which transmits all communication to and from the Oracle Java ME Embedded executable on the Raspberry Pi board.
The Oracle Java ME Embedded ZIP archive consists of four directories:
You will need to make two copies of the Oracle Java ME Embedded ZIP archive file. The first remains on the Windows desktop, while the second must be transferred to the Raspberry Pi.
First, use an
sftp client or scp command to transfer once copy of the Oracle Java ME Embedded ZIP archive to the Raspberry Pi. For example, on a Unix or Mac system, you can transfer the ZIP file using a command similar to the following:
$sftp pi@[IP address of board]
Windows users can download the
psftp.exe to obtain a free SFTP client; it is available from the same address as the PuTTY executable:
Once the ZIP archive is transferred, either go directly to the keyboard and the mouse connected to the Raspberry Pi, or start a secure shell script on your desktop to connect to the board using the following command:
$ssh -l pi [IP address of board]
Unzip the archive on the Pi and perform the following command:
$ chmod -R 777 appdb bin
Next,
cd to the bin directory. The contents of the bin directory are shown in Figure 1-1.
Figure 1-1 Raspberry Pi Bin Directory
Description of 'Figure 1-1 Raspberry Pi Bin Directory' Adding an HTTP Proxy for Network Connections on the Pi
If an HTTP proxy server is required for the Java IMlets on the Pi to make network connections (such as for HTTP or
apt-get ), the Oracle Java ME Embedded on the Pi can be configured by adding the following lines to the end of the bin/jwc_properties.ini file.
Using the Java Runtime on the Raspberry Pi
There are several ways to use the Oracle Java ME Embedded platform on the Raspberry Pi.
Running IMlets on the Raspberry Pi Using the Command Shell
If you wish to run IMlets directly on the Raspberry Pi board without a Developer Agent, you can use the commands shown in Table 1-1.
Table 1-1 Raspberry Pi Shell Commands
The following is a typical example of using the commands to install, list, run, and remove a Java ME Embedded application on the Raspberry Pi board. Note that the
runSuite.sh shell command is preceded by the sudo request to ensure that the command can run with superuser privileges and access all the peripherals on the board. Most commands can be terminated with the Ctrl-C key combination if they become unresponsive.
First, install the application using the
installMidlet.sh command, specifying its location on the local filesystem.
Once an IMlet is installed, note its ID: in this case, it is 2. Next, verify it using the
listMidlets.sh command.
The
sudo runSuite.sh command can be used to execute any installed IMlet. This command will execute the IMlet that was just installed, passing any logging information to the stdout of this command. Note that you can press the Ctrl-C key to exit from this command, which will terminate the app.
The
removeMidlet.sh command can be used to remove any installed IMlet.
The results can again be verified with the
listMidlets.sh command.
Starting the Developer Agent on the Desktop
If you wish to use the Developer Agent, extract files from the copy of the Oracle Java ME Embedded ZIP archive on the Windows desktop and delete the
/appdb and the /bin directory. The Developer Agent program is found as a JAR file inside the lib directory of the Oracle Java ME Embedded distribution, named proxy.jar. You can start the Developer Agent on the desktop host computer either in a server or a client mode as described below. After the Developer Agent is started, use the AMS CLI.
Server Mode Connection
A Server mode is used by default. In this mode, the Developer Agent must be started after the Java runtime is started on the Raspberry Pi board. You must start the Application Management System (AMS) on the Raspberry Pi board with the
usertest.sh command in the command-line shell interface. The command must be run using sudo to obtain superuser privileges to access all the peripherals on the board
Client Mode Connection
To switch to a client mode connection, perform the following steps.
Running IMlets on the Raspberry Pi Using the AMS CLI
The next step is to make a raw connection to the AMS CLI. Note, however, that first the Developer Agent must be running on the desktop host and the Application Management System (AMS) - on the Raspberry Pi as described in the previous sections.
At this point, you can start a PuTTY executable on your desktop computer. Use this to create raw socket connections to the IP address of the host running the Developer Agent, and port 65002. For example, a connection to
localhost and the port 65002 is shown in Figure 1-2.
Figure 1-2 Using PuTTY to Connect to the Command-Line Interface
Rpi Sd Card FormatDescription of 'Figure 1-2 Using PuTTY to Connect to the Command-Line Interface'
The window from port 65002 provides a command-line interface (CLI), and is shown in Figure 1-3:
Figure 1-3 Command-Line Interface to the Raspberry Pi
Description of 'Figure 1-3 Command-Line Interface to the Raspberry Pi'
You can use the command-line interface to run the AMS commands shown in Table 1-2.
Table 1-2 AMS CLI Commands
Here is a typical example of using the Application Management System (AMS) to install, list, run, and remove a Java ME Embedded application on the board.
Note that the final installation example failed with an error code and matching description.
Once an IMlet is installed, verify it using the
ams-list command. Here, we have added an additional IMlet: rs232dem . Each IMlet has been assigned a number by the AMS for convenience.
The
ams-remove command can be used to remove any installed IMlet.
The results can again be verified with the
ams-list command.
Finally, start up the IMlet using the
ams-run command. The application can be terminated with the ams-stop command.
You can use the properties commands summarized in Table 1-3 and file system commands summarized in .
Table 1-3 Properties Commands
Table 1-4 File System Commands
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |