forked from ApolloAuto/apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* made the navigation document consistent and grammatically correct * language, grammar and formatting changes to first 5 How-to docs * update * update * changes to grammar and formatting of how-to docs
- Loading branch information
1 parent
0db49ad
commit 9bb66cd
Showing
9 changed files
with
116 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
# Installing Your Own Kernel. | ||
# Installing Your Own Kernel | ||
|
||
## Helpful hints before you begin. | ||
If you have modified the kernel, or the pre-built kernel is not the best for your platform, you can build your own kernel with the following steps. | ||
## Helpful hints before you begin | ||
If you have modified the kernel, or the pre-built kernel is not the best for your platform, you can build your own kernel with the following steps: | ||
|
||
## Installing your own kernel. | ||
## Installing your own kernel | ||
1. Clone the code from repository. | ||
```git clone https://github.com/ApolloAuto/apollo-kernel.git``` | ||
```cd apollo-kernel``` | ||
``` | ||
git clone https://github.com/ApolloAuto/apollo-kernel.git | ||
cd apollo-kernel | ||
``` | ||
|
||
2. Add the ESD CAN driver source code according to [ESDCAN-README.md](https://github.com/ApolloAuto/apollo-kernel/blob/master/linux/ESDCAN-README.md). | ||
3. Build the kernel with the following command. | ||
3. Build the kernel with the following command: | ||
```bash build.sh``` | ||
4. Install the kernel the same way as using a pre-built [Apollo Kernel](https://github.com/ApolloAuto/apollo/blob/master/docs/howto/how_to_install_apollo_kernel.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
# How to Run Apollo in Ubuntu 16 (Apollo 2.5) | ||
|
||
We recommend to use Ubuntu 14 for Apollo. For the user using ubuntu 16, here is the extra step you have to follow to run Apollo 2.5 under ubuntu 16. | ||
We recommend using **Ubuntu 14.04** for Apollo. For those users that currently have Ubuntu 16 installed, here is the extra step you have to follow to run Apollo 2.5 successfully on your Ubuntu 16 machine. | ||
|
||
|
||
1. You need glfw 3.2 and above, which supports EGL and run-time context creation API selection. (Refer to http://www.glfw.org/docs/latest/news.html) | ||
1. You need GLFW(Graphics Library Framework) 3.2 and above, which supports EGL and run-time context creation API selection. (Refer to [http://www.glfw.org/docs/latest/news.html](http://www.glfw.org/docs/latest/news.html) for additional information) | ||
Install the correct version from [this link](https://launchpad.net/ubuntu/+source/glfw3). | ||
|
||
Installed the version from https://launchpad.net/ubuntu/+source/glfw3. | ||
2. Add following one line in `glfw_fusion_viewer.cc` file, in GLFWFusionViewer::window_init() before the glfwCreateWindow() call: | ||
``` | ||
glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_EGL_CONTEXT_API); | ||
``` | ||
2. Add following one line in glfw_fusion_viewer.cc: | ||
glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_EGL_CONTEXT_API); | ||
|
||
(in GLFWFusionViewer::window_init() before the glfwCreateWindow() call) | ||
|
||
|
||
With this, the perception_lowcost_vis finally works on my machine without a segfault. | ||
With this, the `perception_lowcost_vis` should work on your machine without a segfault. | ||
The issue comes from some behavior changes in the latest nvidia driver and a glfw bug mentioned in http://www.glfw.org/docs/latest/window_guide.html#window_hints_ctx: | ||
The issue comes from a behavior changes in the latest nvidia driver and a glfw bug. You can find information about the bug [here](http://www.glfw.org/docs/latest/window_guide.html#window_hints_ctx). To summarize the behaviour, | ||
“On some Linux systems, creating contexts via both the native and EGL APIs in a single process will cause the application to segfault. Stick to one API or the other on Linux for now.” | ||
``` | ||
“On some Linux systems, creating contexts via both the native and EGL APIs in a single process | ||
will cause the application to segfault. Stick to one API or the other on Linux for now.” | ||
``` | ||
So, with the driver (on Ubuntu 16), glfw_fusion_viewer needs to be set up to use EGL_CONTEXT_API instead of the default NATIVE_CONTEXT_API to evade the segfault. | ||
We plan to update the Apollo docker to support these. | ||
We plan to update the Apollo docker to support these soon! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.