This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| robots:pr2_nvidia [2014/03/13 09:44] – amaldo | robots:pr2_nvidia [2014/03/13 10:09] (current) – amaldo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Compiling the Nvidia kernel module ====== | ||
| + | |||
| + | Get the kernel version for pr2b: | ||
| + | ssh pr2b | ||
| + | cat / | ||
| + | | ||
| + | amaldo@pr2b:/ | ||
| + | Linux version 3.4.28.rt40-1-pr2 (willow@ian) (gcc version 4.6.3 (Ubuntu/ | ||
| + | |||
| + | |||
| + | Compile the nvidia module for that kernel (but do it on pr2a): | ||
| + | |||
| + | ssh pr2a | ||
| + | sudo apt-get install nvidia-304 | ||
| + | ls /usr/src/ |grep nvidia | ||
| + | sudo dkms build nvidia-304/ | ||
| + | sudo dkms install nvidia-304/ | ||
| + | |||
| + | ssh pr2b | ||
| + | sudo modprobe nvidia | ||
| + | |||
| + | Make the loading of the module permanent: | ||
| + | ssh pr2a | ||
| + | cd / | ||
| + | sudo cp / | ||
| + | sudo vim modules | ||
| + | | ||
| + | |||
| + | Now you can make a phoney xorg.conf file to start X without a monitor attached, and use virtualGL to get rviz running on the robot | ||
| + | |||
| + | ====== Setting up X ====== | ||
| + | Get a Desktop Manager with minimal dependencies: | ||
| + | ssh pr2a | ||
| + | sudo apt-get install lightdm lightdm-gtk-greeter | ||
| + | |||
| + | Create a fake xorg.conf file with the following contents: | ||
| + | |||
| + | < | ||
| + | Section " | ||
| + | Identifier | ||
| + | Driver | ||
| + | Option | ||
| + | Option | ||
| + | EndSection | ||
| + | |||
| + | |||
| + | Section " | ||
| + | Mode 0660 | ||
| + | Group " | ||
| + | EndSection | ||
| + | |||
| + | Section " | ||
| + | Identifier | ||
| + | HorizSync | ||
| + | VertRefresh | ||
| + | # | ||
| + | # Used command line: gtf 1280 1024 75 | ||
| + | # to come up with following Modeline: | ||
| + | Modeline " | ||
| + | 1028 1069 -HSync +Vsync | ||
| + | EndSection | ||
| + | |||
| + | |||
| + | Section " | ||
| + | Identifier | ||
| + | Device | ||
| + | Monitor | ||
| + | DefaultDepth | ||
| + | Option | ||
| + | SubSection | ||
| + | Depth 24 | ||
| + | Modes " | ||
| + | EndSubSection | ||
| + | EndSection | ||
| + | |||
| + | </ | ||