R-Car/Boards/Koelsch

= Introduction =

This is the Wiki for the Renesas R-Car M2-W Koelsch board (RTP0RC7791SEB00010S). Refer to the R-Car page for information about Renesas' R-Car SoC family.

= Serial Console =

Use a micro-USB cable to connect to "Debug Serial 0". Serial settings are 115200 8N1.

= Booting Linux =

* Kernel config: shmobile_defconfig * Kernel image: arch/arm/boot/zImage * DTB: arch/arm/boot/dts/r8a7791-koelsch.dtb

U-Boot boot command: tftp 41000000 zImage tftp 50000000 r8a7791-koelsch.dtb bootz 41000000 - 50000000

Make sure 'fdt_high' is set to 0xffffffff!

= Suspend-to-RAM =

Procedure
The system can be suspended using: echo mem > /sys/power/state

Wake-Up Sources
Suspend-to-RAM supports the following wake-up sources:

ethtool -s eth0 wol g # Enable wake on MagicPacket ethtool -s eth0 wol d # Disable Wake-up by sending a MagicPacket from another system using: wakeonlan  | |  # or  must be in /etc/ethers
 * gpio-keys: Wake-up using either:
 * Slide switches SW2-1..SW2-4
 * Push buttons SW30..SW26
 * sh_eth (Ethernet): Configure using one of:
 * sh-sci (Serial): Disabled by default
 * usb: Disabled by default

= Bootloader =

Updating U-Boot
You may want to update U-Boot in case of upgrade or if the board you received does not have the U-Boot flashed. Follow these steps carefully to flash U-Boot:

  Set SW17 to pin 3 side. This selects 4MB SPI Flash with MiniMonitor as a boot device. MiniMonitor is loaded via SPI boot interface of R-Car M2.   Connect to serial console over microUSB. minicom -b 38400 -D DEVICE   Switch the board ON or reset it. You should see the following output on the console (version numbers can be different): SPI BOOT DEVICE : S25FL032 Now Loading ... ok                                                                                                                                                                                  KOELSCH MiniMonitor SPI_BOOT Work memory DRAM (H'40200000-) 2013.07.16 Ver0.04 ** Program on DRAM (H'40000000-) **
 * KOELSCH SPI_BOOT_LOADER            V0.04 2013.07.03 |
 * -  QUAD READ (DMA Version)   -        |

>   Execute the ls command: > ls Load Program to Spiflash memory (U16:S25FL512S)   You should be able to see the following output: SW18[5:1]=OFF! Setting OK? (Push Y key) Enter y to confirm.   You should be able to see the following output: SW16 1pin-Side! Setting OK? (Push Y key) Enter y to confirm.   You should be able to see the following output: SW17 1pin-Side! Setting OK? (Push Y key) Set SW17 to pin 1 side then enter y to confirm. </li>  You should be able to see the following output: Load Program to Spiflash memory (U16:S25FL512S) -                                                                                                                                            Please select,SPI-FLASH Save Area. 1:Loader Program : Program to execute on SecureRAM SPI_Address = H' 000_0000-H' 003_FFFF 2:User Program : Program to execute on DRAM or SecureRAM SPI_Address = H' 008_0000-H' 3FF_FFFF -                                                                                                                                              Select area(1-2)> Select area by entering 2 and pressing. </li>  You should be able to see the following output: -- User Program Please Input User Program Start Address : Enter program address e6304000 and press. </li>  You should be able to see the following output: Work RAM(H'50000000-H'53FFFFFF) Clear....        please send ! ('.' & CR stop load) Now you need to send the new U-Boot image in srec format over the serial console. There are different ways of doing this in in different terminal applications, here minicom is used.

Use Ctrl+A, S, choose ascii, then locate u-boot.srec file and hit. Transmission should start immediately and the progress counter should be displayed, once the transmission is finished you should be able to see the following:

+[ascii upload - Press CTRL-C to quit]+ +-+ Press to confirm. </li>  You should be able to see the following output: SPI Data Clear(H'FF) Check :H'00080000-000BFFFF,Clear OK?(y/n) Enter y to confirm. </li>  You should be able to see the following output: SAVE SPI-FLASH....... complete!
 * ASCII upload of "u-boot.srec"                               |
 * 678.6 Kbytes transferred at 3839 CPS... Done.               |
 * READY: press any key to continue...                        |
 * READY: press any key to continue...                        |
 * READY: press any key to continue...                        |

=
SPI Flash Sector1 Save Information ========= Program Start Address : H'E6304000 Program Size         :  H'000388BC

=
============================================                                                       > U-Boot is now updated, reset the board and try it out!

Remember to change baud rate if you are using something different then 38400. </li>

 If you are updating from a old U-Boot version which already had a environment present make sure that the following variables are present in your new U-Boot environment (values for variables are the default ones but might be different on other systems?). bootm_low=0x40e00000 bootm_size=0x100000 </li> </ol>

= Test procedures =


 * Tests:SCIF-FIFO: Test SCIF FIFO behavior, using SCIF3, SCIFA5, SCIFB0, and HSCIF1 on expansion I/O connectors
 * Tests:MSIOF-SPI-CS-GPIO: Test GPIO chipselects with MSIOF SPI
 * Tests:MSIOF-SPI-Slave: Test SPI Slave support using MSIOF1/2 loopback on expansion I/O connectors
 * R-Car/Tests:sh eth: Test procedures for Renesas Electronics SH EtherMAC