This repository provides the kernel config file, append script and tizen ks file necessary to build a basic Tizen IVI image for the Renesas R-Car M2 platform
The content of this repository should find itself upstream eventually, but until then ...
Format an SD card (minimum 1G, but more is nice too) to have the following partitions:
- minimum 20MB, ext4 filesystem
- mimimum 800MB, ext4 filesystem
Kernel source code for the Renesas M2 board can be checked out from:
Copy contents of kernel/ directory from this repo to the kernel source directory
Build the kernel
$ cp config .config
$ export CROSS_COMPILE=arm_none_linux_gnueabi- (or other ARM cross compiler)
$ export ARCH=arm
$ LOADADDR=40008000 make uImage
$ make dtbs
Copy arch/arm/boot/uImage
and arch/arm/boot/dts/r8a7791-koelsch.dtb
to partition 1 of the SD card
Create a Tizen IVI image with the ks file from the ks directory of this repo.
$ gbs createimage -K ivi-mbr-renesas-m2.ks
Extract the contents of the image tarball and copy to SD Card partition 2
$ tar xzf mic_output/<image name>.tar.gz
$ dd if=platform.img of=/dev/sdx2
You can use resize2fs
to resize the filesystem to fill the rest of the
SD card partion
Connect a micro USB cable to Serial 0 on the board and use a terminal program to connect at 115200 baud.
From U-Boot load and boot the kernel image from the SD card
=> ext4load mmc 0 40007fc0 uImage
=> ext4load mmc 0 40f00000 r8a7791-koelsch.dtb`
=> bootm 40007fc0 - 40f00000
Boot and enjoy