Master
To build the Master port for Renesas Porter please check GDP Master wiki page, that includes the latest instructions for every supported target board.
GDP-11-RC2
Software and hardware set up of the M2 Porter board for GDP-11-RC2
Software Setup
Quick Start
The Genivi Dev Platform repo uses git-submodules and source scripts to automate the configuration of the required repository build layers. Although this does not fully automate the process, the use of it is advised especially for those wanting to get up and running quickly.
The following is known to work on Ubuntu Linux 14.04 LTS (x86_64)
- Install the required development tools on the host by executing the following command.
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm
- Create a directory for the GDP sources
$ mkdir GDP $ cd GDP
- Clone the Genivi Development Platform using the 'gdp-11-rc2' branch
$ git clone https://github.com/GENIVI/genivi-dev-platform.git -b gdp-11-rc2
- Initialise build environment
$ cd $HOME/GDP/genivi-dev-platform $ source init.sh porter
- Obtain and Install Renesas Graphics Drivers
- If you wish to enable touch support for the known Genivi AMM monitor (Faytech 10" V2), uncomment in the local.inc
#USE_FAYTECH_MONITOR = "1" Bitbake the image
$ bitbake genivi-dev-platform
- Once built, Setup Hardware & Deploy
Obtain and Install Renesas Graphics Drivers
The graphics and multimedia acceleration packages for the M2 Porter can be downloaded directly from here via a "click through" license. Note that these easy access drivers have a time limit- the OpenGL and H.264 codec library stop drawing after 3 hours up time, whilst non-graphical services continue. Drivers without this limit are available from Renesas marketing.
The download consists of the following two ZIP files, which can be found under the links for "download Multimedia and Graphics library" and "download related Linux drivers":
- r-car_series_evaluation_software_package_for_linux-20151228.zip
- r-car_series_evaluation_software_package_of_linux_drivers-20151228.zip
Follow the following steps to integrate the drivers into the Renesas BSP Yocto layers:
- Unzip the two downloads into a folder. In this example a temporary directory is used.
$ cd $HOME/GDP $ mkdir binary-tmp $ <unzip the two downloads into binary-tmp>
After this step there should be two files in binary-tmp:
R-Car_Series_Evaluation_Software_Package_for_Linux-*.tar.gz R-Car_Series_Evaluation_Software_Package_of_Linux_Drivers-*.tar.gz
- Populate meta-renesas with the graphics acceleration drivers.
cd $HOME/GDP/genivi-dev-platform/meta-renesas/meta-rcar-gen2 ./copy_gfx_software_<board>.sh ../../binary-tmp
- Populate meta-renesas with the multimedia acceleration drivers.
cd $HOME/GDP/genivi-dev-platform/meta-renesas/meta-rcar-gen2 ./copy_mm_software_lcb.sh ../../binary-tmp
- Optionally remove the temporary directory
$ rm -r ../../binary-tmp
The copy scripts locate the needed parts from the archives in the temporary directory and copies them into the required location in the BSP layers.
Alternatively the drivers can be copied manually
Hardware Setup
Hardware prerequisites
- Renesas Koelsch or Porter Board
- AC adapter
- USB Cable (A-microB Cable)
- LAN Cable
- Stereo speaker with 3.5 stereo connector (known to work reference)
- USB hub (known to work reference)
- Touchscreen monitor with HDMI connector (known to work reference) (A non touchscreen monitor paired with a USB mouse can also be used)
- Ethernet switch (known to work reference)
- LAN cable (2)
- Keyboard (known to work reference)
- 16GB SD-card
- Second 16GB (or less) SD-card for Last User Mode feature
- HDMI Cable (known to work reference)
Deployment
Deployment (SDCARD)
On the host
- Create EXT3 partition on the SD-card.
- Mount the SD-Card partition under /media/$SDCARD_LABEL.
Note: Please replace $SDCARD_LABEL with the path to where the SD-card was mounted. - Copy the GENIVI Dev Platform files onto the SD-card.
- Go to your build directory:
$ cd $BUILDDIR/tmp/deploy/images/porter
Make sure the filesystem is empty
$ rm -rf /media/$SDCARD_LABEL/*- Extract the root file system archive into the SD-card
$ sudo tar --extract --numeric-owner --preserve-permissions --preserve-order --totals \ --directory=/media/$SDCARD_LABEL --file=genivi-dev-platform-porter.tar.bz2
- Copy Kernel Image and Device Tree Blob file into the /boot directory of the SD-card
$ sudo cp --remove-destination uImage uImage-r8a7791-porter.dtb /media/$SDCARD_LABEL/boot
- unmount the SD-Card and insert the card into the SD0 slot of the Renesas board.
To access the shell (serial)
- With the Porter board powered off, connect the 'Debug Serial 0' port on the board (for Porter mini-USB port close to on/off switch) with the host PC using the USB cable.
- Use 'screen' (may needs to apt-get install screen)
$sudo screen /dev/ttyUSB0 38400 - Or start a terminal emulator, such as 'minicom' or 'picocom', on the host, connecting to the USB serial port (/dev/ttyUSB0) with 38400, 8n1 settings.
- Power on the Porter board to see a shell on the console
On the target board
It is assumed that the Renesas Porter board already has u-boot running as second stage boot loader.
Change U-Boot parameters to boot from SD card
Power up the board and, using your preferred terminal emulator, stop the board's autoboot and run the following 'print' commands to check environment.
=> print
Please check if the ethaddr environment variable is set to the MAC address value shown on the label on top of the RJ45 Ethernet connector. If not please set it using the following command.
=> setenv ethaddr <MAC address>
e.g. setenv ethaddr 2e:09:0a:00:75:b5
- Then set the follow environment variables and save them
=> setenv setenv baudrate 38400
=> setenv ethact sh_eth=> setenv bootargs_console console=ttySC6,${baudrate} => setenv bootargs_video vmalloc=384M video=HDMI-A-1:1024x768-32@60 => setenv bootcmd_sd 'ext4load mmc 0:1 0x40007fc0 boot/uImage;ext4load mmc 0:1 0x40f00000 boot/uImage-r8a7791-porter.dtb' => setenv bootcmd 'setenv bootargs ${bootargs_console} ${bootargs_video} root=/dev/mmcblk0p1 rw rootfstype=ext3;run bootcmd_sd;bootm 0x40007fc0 - 0x40f00000' => saveenv
Once the device has booted, remember: user / password is root / root
GDP-ivi9
Software and hardware set up of the M2 Porter board for GDP-ivi9
Software Setup
Quick Start
The Genivi Dev Platform repo uses git-submodules and source scripts to automate the configuration of the required repository build layers. Although this does not fully automate the process, the use of it is advised especially for those wanting to get up and running quickly.
The following is known to work on Ubuntu Linux 14.04 LTS (x86_64)
- Install the required development tools on the host by executing the following command.
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm
- Create a directory for the GDP sources
$ mkdir GDP $ cd GDP
- Clone the Genivi Development Platform using the 'gdp-ivi9' branch
$ git clone https://github.com/GENIVI/genivi-dev-platform.git -b gdp-ivi9
- Initialise build environment
$ cd $HOME/GDP/genivi-dev-platform $ source init.sh porter
- Obtain and Install Renesas Graphics Drivers
- If you wish to enable touch support for the known Genivi AMM monitor (Faytech 10" V2), uncomment in the local.inc
#USE_FAYTECH_MONITOR = "1" Bitbake the image
$ bitbake genivi-dev-platform
- Once built, Setup Hardware & Deploy
Obtain and Install Renesas Graphics Drivers
The graphics and multimedia acceleration packages for the M2 Porter can be downloaded directly from here via a "click through" license. Note that these easy access drivers have a time limit- the OpenGL and H.264 codec library stop drawing after 3 hours up time, whilst non-graphical services continue. Drivers without this limit are available from Renesas marketing.
The download consists of the following two ZIP files, which can be found under the links for "download Multimedia and Graphics library" and "download related Linux drivers":
- r-car_series_evaluation_software_package_for_linux-20151228.zip
- r-car_series_evaluation_software_package_of_linux_drivers-20151228.zip
Follow the following steps to integrate the drivers into the Renesas BSP Yocto layers:
- Unzip the two downloads into a folder. In this example a temporary directory is used.
$ cd $HOME/GDP $ mkdir binary-tmp $ <unzip the two downloads into binary-tmp>
After this step there should be two files in binary-tmp:
R-Car_Series_Evaluation_Software_Package_for_Linux-*.tar.gz R-Car_Series_Evaluation_Software_Package_of_Linux_Drivers-*.tar.gz
- Populate meta-renesas with the graphics acceleration drivers.
cd $HOME/GDP/genivi-dev-platform/meta-renesas/meta-rcar-gen2 ./copy_gfx_software_<board>.sh ../../binary-tmp
- Populate meta-renesas with the multimedia acceleration drivers.
cd $HOME/GDP/genivi-dev-platform/meta-renesas/meta-rcar-gen2 ./copy_mm_software_lcb.sh ../../binary-tmp
- Optionally remove the temporary directory
$ rm -r ../../binary-tmp
The copy scripts locate the needed parts from the archives in the temporary directory and copies them into the required location in the BSP layers.
Alternatively the drivers can be copied manually
Hardware Setup
Hardware prerequisites
- Renesas Koelsch or Porter Board
- AC adapter
- USB Cable (A-microB Cable)
- LAN Cable
- Stereo speaker with 3.5 stereo connector (known to work reference)
- USB hub (known to work reference)
- Touchscreen monitor with HDMI connector (known to work reference) (A non touchscreen monitor paired with a USB mouse can also be used)
- Ethernet switch (known to work reference)
- LAN cable (2)
- Keyboard (known to work reference)
- 16GB SD-card
- Second 16GB (or less) SD-card for Last User Mode feature
- HDMI Cable (known to work reference)
Deployment
Deployment (SDCARD)
On the host
- Create EXT3 partition on the SD-card.
- Mount the SD-Card partition under /media/$SDCARD_LABEL.
Note: Please replace $SDCARD_LABEL with the path to where the SD-card was mounted. - Copy the GENIVI Dev Platform files onto the SD-card.
- Go to your build directory:
$ cd $BUILDDIR/tmp/deploy/images/porter
Make sure the filesystem is empty
$ rm -rf /media/$SDCARD_LABEL/*- Extract the root file system archive into the SD-card
$ sudo tar --extract --numeric-owner --preserve-permissions --preserve-order --totals \ --directory=/media/$SDCARD_LABEL --file=genivi-dev-platform-porter.tar.bz2
- Copy Kernel Image and Device Tree Blob file into the /boot directory of the SD-card
$ sudo cp --remove-destination uImage uImage-r8a7791-porter.dtb /media/$SDCARD_LABEL/boot
Ensure the changes have been written to disk
$ sync- unmount the SD-Card and insert the card into the SD0 slot of the Renesas board.
To access the shell (serial)
- With the Porter board powered off, connect the 'Debug Serial 0' port on the board (for Porter mini-USB port close to on/off switch) with the host PC using the USB cable.
- Use 'screen' (may needs to apt-get install screen)
$sudo screen /dev/ttyUSB0 38400 - Or start a terminal emulator, such as 'minicom' or 'picocom', on the host, connecting to the USB serial port (/dev/ttyUSB0) with 38400, 8n1 settings.
- Power on the Porter board to see a shell on the console
On the target board
It is assumed that the Renesas Porter board already has u-boot running as second stage boot loader.
Change U-Boot parameters to boot from SD card
Power up the board and, using your preferred terminal emulator, stop the board's autoboot and run the following 'print' commands to check environment.
=> print
Please check if the ethaddr environment variable is set to the MAC address value shown on the label on top of the RJ45 Ethernet connector. If not please set it using the following command.
=> setenv ethaddr <MAC address>
e.g. setenv ethaddr 2e:09:0a:00:75:b5
- Then set the follow environment variables and save them
=> setenv setenv baudrate 38400
=> setenv ethact sh_eth=> setenv bootargs_console console=ttySC6,${baudrate} => setenv bootargs_video vmalloc=384M video=HDMI-A-1:1024x768-32@60 => setenv bootcmd_sd 'ext4load mmc 0:1 0x40007fc0 boot/uImage;ext4load mmc 0:1 0x40f00000 boot/uImage-r8a7791-porter.dtb' => setenv bootcmd 'setenv bootargs ${bootargs_console} ${bootargs_video} root=/dev/mmcblk0p1 rw rootfstype=ext3;run bootcmd_sd;bootm 0x40007fc0 - 0x40f00000' => saveenv
Once the device has booted, remember: user / password is root / root
Limitations and Known Issues
- GDP-120Getting issue details... STATUS
- GDP-19Getting issue details... STATUS
- GDP-150Getting issue details... STATUS
3 Comments
Changhyeok Bae
Unknown User (tom.pollard), Stephen Lawrence
To get graphic driver for renesas board, http://www.renesas.com/secret/r_car_download/rcar_demoboard.jsp link is broken. Could you check this?
I found https://www.renesas.com/ko-kr/software/D3017410.html.
Changhyeok Bae
Stephen Lawrence
I know that renesas have issue to open graphic and multimedia drivers publicly.
Nevertheless, Could you discuss those drivers about open publicly internally?
As you known, it's very uncomfortable to build at developers side.
Unknown User (tom.pollard)
Changhyeok Bae I raised the issue with broken link here http://lists.genivi.org/pipermail/genivi-projects/2016-May/002439.html
Current status is to contact Stephen Lawrence directly until resolved