8000 Develop by jabrena · Pull Request #1 · ev3dev-lang-java/docs · GitHub
[go: up one dir, main page]

Skip to content

Develop #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 70 commits into from
Nov 13, 2018
Merged
Changes from 1 commit
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
c3968e2
Migrating to asciidoctor
jabrena Jun 24, 2017
2373cbe
Minor change
jabrena Jun 24, 2017
1a40a74
Minor change
jabrena Jun 24, 2017
0bd4dd8
Removing a link for a external link
jabrena Jun 24, 2017
ae03d1b
Minor change
jabrena Jun 24, 2017
1df612d
Fixed problem with CSS.
jabrena Jun 24, 2017
421c24c
Minor change
jabrena Jun 24, 2017
7ca4c50
Delete 31313.png
jabrena Jun 24, 2017
25b45d5
Delete 45544.png
jabrena Jun 24, 2017
ade3bb5
Delete ColorSensorDemo.java
jabrena Jun 24, 2017
6c87749
Delete GyroSensorDemo.java
jabrena Jun 24, 2017
f08e715
Delete GyroSensorDemo2.java
jabrena Jun 24, 2017
7e94a0a
Delete GyroSensorDemo3.java
jabrena Jun 24, 2017
e69510d
Delete IRSensorDemo.java
jabrena Jun 24, 2017
3a8531e
Delete IRSensorDemo2.java
jabrena Jun 24, 2017
0d6aa17
Delete IRSensorDemo3.java
jabrena Jun 24, 2017
f22c71b
Delete TouchSensorDemo.java
jabrena Jun 24, 2017
1535b12
Delete ev3_gyro_sensor.png
jabrena Jun 24, 2017
ad83b69
Delete ev3_gyro_sensor_example1.png
jabrena Jun 24, 2017
396f1b2
Delete ev3_ir_sensor.png
jabrena Jun 24, 2017
05712dc
Delete ev3_ir_sensor_example1.png
jabrena Jun 24, 2017
031537c
Delete ev3_ir_sensor_example2.png
jabrena Jun 24, 2017
8000 e1d581f
Delete ev3_ir_sensor_example3.png
jabrena Jun 24, 2017
85025f3
Delete ev3_large_motor.png
jabrena Jun 24, 2017
01f47d3
Delete ev3_large_motor_example1.png
jabrena Jun 24, 2017
6fdc3a7
Delete ev3_light_sensor.png
jabrena Jun 24, 2017
2910212
Delete ev3_light_sensor_example1.png
jabrena Jun 24, 2017
9a5a330
Delete ev3_touch_sensor.png
jabrena Jun 24, 2017
d9cbc27
Delete ev3_touch_sensor_example1.png
jabrena Jun 24, 2017
889181d
Delete ev3_touch_sensor_example2.png
jabrena Jun 24, 2017
efba38e
Delete ev3_touch_sensor_example3.png
jabrena Jun 24, 2017
068f0f8
Delete humanSenses.png
jabrena Jun 24, 2017
148f412
Better index
jabrena Jun 24, 2017
4d512b5
Minor change
jabrena Jun 24, 2017
358b78f
Minor change
jabrena Jun 24, 2017
b738c27
Minor change
jabrena Jun 24, 2017
d63746e
Adding GA
jabrena Jun 24, 2017
84e0f1c
Improving Gradle tasks
jabrena Jun 24, 2017
b1e1188
Fixed About Section
jabrena Jun 24, 2017
924e8b9
Review Getting Started
jabrena Jun 24, 2017
c3f8b1b
Minor change
jabrena Jun 24, 2017
5243793
Removing numbers
jabrena Jun 25, 2017
7b541d7
Minor change
jabrena Jun 25, 2017
86d9e98
Improving some sections about fundamentals.
jabrena Jun 25, 2017
62f19a1
Adding new pictures about Sensors
jabrena Jun 25, 2017
de068e9
Adding doc for EV3 US Sensor
jabrena Jun 25, 2017
c76ad7c
Adding GA manually
jabrena Jun 25, 2017
4509191
Minor change
jabrena Jun 25, 2017
7500431
New update
jabrena Jun 27, 2017
82a11ae
New docs
jabrena Jun 28, 2017
2a7c4a8
Adding example about Motors
jabrena Jun 28, 2017
f3b83a6
Adding motor section
jabrena Jun 28, 2017
aedd1b8
New update
jabrena Jun 30, 2017
19e7dbe
Improving documentation about Getting Started.
jabrena Jul 1, 2017
21958b9
More changes
jabrena Jul 1, 2017
04885e9
New update
jabrena Jul 3, 2017
a1f467e
Adding BNO055 in the section about IMU
jabrena Aug 13, 2017
5411cb6
Doc upgrade
jabrena Apr 24, 2018
05be296
Splitting section laptop by OS criteria.
jabrena Apr 26, 2018
1464203
Adding more granular information about Debian Jessie & Debian Stretch
jabrena Apr 26, 2018
da67f2b
More granular JVM info. Not finished
jabrena Apr 26, 2018
058ac46
Improved the documentation about the Brick installation process
jabrena Apr 26, 2018
628fedf
Improving the organization of the Sensors with 2 big categories:
jabrena Apr 26, 2018
f9db3fd
Improving documentation about Getting Started
jabrena Apr 29, 2018
5139dee
Brick Review
jabrena Apr 29, 2018
027b81e
Improving the guide to use Template Project
jabrena Apr 29, 2018
4cfa7b7
Minor change
jabrena Apr 29, 2018
2e36bbd
About section upgraded
jabrena Apr 29, 2018
315c79a
Upgrading docs to unify the JVM to install on EV3
jabrena May 23, 2018
819fa45
Merge branch 'master' into develop
jabrena Nov 13, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improved the documentation about the Brick installation process
  • Loading branch information
< 8000 /div> jabrena committed Apr 26, 2018
commit 058ac4690fe58274530642f12e8f7c78e47c7686
86 changes: 73 additions & 13 deletions src/main/asciidoc/getting_started/brick.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Now, you have Linux in your Brick!
## Java Virtual Machine

Java programs need a JVM (Java Virtual Machine) installed in the Brick.
Depending of the Hardware and the Debian version, you will have different options.
Depending of the Hardware and the Debian version, you will have different options to install it.

### EV3 Brick

Expand All @@ -111,22 +111,38 @@ Available JVM:
- Oracle JRE 8 for Debian Jessie
- Open JDK 10 for Debian Stretch

Using this project, the developer has 3 alternatives to install a JVM:

- Manual
- Using the project Installer
- Using Gradle tasks from Template Project which interacts with Installer

But not all alternatives are enabled for all cases.

#### Debian Jessie

##### Manual way
##### Manual

To install Oracle JRE 8 in the brick you need to download from [here](http://www.oracle.com/technetwork/java/embedded/downloads/javase/javaseemeddedev3-1982511.html)
On Debian Jessie + EV3 Brick the JVM available to use is Oracle JRE 8.
To install this JVM in the Brick you need to download from [here](http://www.oracle.com/technetwork/java/embedded/downloads/javase/javaseemeddedev3-1982511.html)
and later, copy the file `ejdk-8-fcs-b132-linux-arm-sflt-03_mar_2014.tar.gz` to your brick using the command `scp`.

Example:
*Example:*

```
scp "./ejdk-8-fcs-b132-linux-arm-sflt-03_mar_2014.tar.gz" "robot@192.168.1.85:/home/robot"
```

Once, you have the file on the brick, you can continue the Java installation with the installer or do yourself manually.
Once, you have the file on the Brick, you can continue the Java installation with the installer or do yourself manually.

If you continue installing the JVM in a manual way, you will have to execute the following statements in a Terminal:

https://github.com/ev3dev-lang-java/installer/master
```
sudo tar -zxvf "/home/robot/ejdk-8-fcs-b132-linux-arm-sflt-03_mar_2014.tar.gz" -C /opt
sudo update-alternatives --install /usr/bin/java java /opt/ejdk1.8.0/linux_arm_sflt/jre/bin/java 8
```

Now, you have Java on your EV3 Brick

##### Installer

Expand All @@ -140,20 +156,60 @@ sudo ./installer.sh help
sudo ./installer.sh java
```

#### Manual way
##### Gradle Template project

This option is not available for Debian Jessie

#### Debian Stretch

In Debian Jessie, we could build OpenJDK 10 for EV3 so the Java installation experience is improved so much.

##### Manual way

```
sudo tar -zxvf "/home/robot/ejdk-8-fcs-b132-linux-arm-sflt-03_mar_2014.tar.gz" -C /opt
sudo update-alternatives --install /usr/bin/java java /opt/ejdk1.8.0/linux_arm_sflt/jre/bin/java 1
wget -N https://github.com/ev3dev-lang-java/openjdk-ev3/releases/download/v0.5.0/jri10-ev3.tar.gz
sudo tar -zxvf jri10-ev3.tar.gz -C /opt
mv /opt/jri-ev3/ /opt/jri-10-build-050
update-alternatives --install /usr/bin/java java /opt/jri-10-build-050/bin/java 10
```

Now, you have Java on your EV3 Brick
##### Installer

```
cd /home/robot
mkdir installer
cd installer
wget -N https://raw.githubusercontent.com/ev3dev-lang-java/installer/master/installer.sh
chmod +x installer.sh
sudo ./installer.sh help
sudo ./installer.sh java
```

##### Gradle Template project

Execute the Tasks:

- getInstaller
- installJava
- javaVersion

### BrickPi 3 / BrickPi+ / PiStorms

Using the installer, it is possible to automate everything:
Bricks using Raspberry Pi hardware has more CPU/Memory capacity and it is possible to install from Debian Packages.

At the moment, the unique support is on Debian Jessie.

#### Debian Jessie

##### Manual

https://github.com/ev3dev-lang-java/installer
apt-key adv --recv-key --keyserver keyserver.ubuntu.com EEA14886
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install oracle-java8-installer

##### Installer

```
cd /home/robot
Expand All @@ -165,6 +221,10 @@ sudo ./installer.sh help
sudo ./installer.sh
```

##### Gradle Template project

This option is not available yet.

### Test your installation

Once you have your bricks with the JVM, test the installation is easy.
Expand All @@ -174,7 +234,7 @@ With the remote connection opened type:
java -version
```

Now, your Brick is ready to receive your Java programs.
Now, your Brick is ready to run your Java programs.

++++

Expand Down
0