Difference between revisions of "Kodi / XBMC for Wandboard"

From Wandboard Wiki
Jump to: navigation, search
(How to make an Kodi (XBMC) SD card for the Wandboard)
(How to make an Kodi (XBMC) SD card for the Wandboard)
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
http://download.geexbox.org/snapshots/
 
http://download.geexbox.org/snapshots/
  
Choose rootfs named geexbox-devel-20150507-r7ff0910.cuboxi.tar.xz
+
Choose rootfs named geexbox-devel-*.cuboxi.tar.xz
 +
 
 +
With geexbox-devel-20160624-r4496c81.cuboxi.tar.xz you will get Kodi 16.1 Jarvis.
  
  
Line 14: Line 16:
  
  
'''Step 1.  Build u-boot bootloader.'''
+
'''Step 0.  Prepare cross-building'''
 +
 
 +
Useful information for setting up cross-building can be found in the ''Basic board support package'' (on wandboard Downloads page) : read doc/wand-dev.pdf
 +
 
 +
Then setup environment in your running shell, with for example :
 +
 
 +
<code>export ARCH=arm</code><br>
 +
<code>export CROSS_COMPILE=arm-linux-gnueabi-</code><br>
 +
 
 +
Also check that tools ''bc'', ''lzop'' and ''git'' are installed on your system.
 +
 
 +
 
 +
'''Step 1.  Build u-boot bootloader'''
  
 
Clone u-boot from https://github.com/wandboard-org/u-boot-fslc.git
 
Clone u-boot from https://github.com/wandboard-org/u-boot-fslc.git
  
Build u-boot from
+
Build u-boot (we use the SPL u-boot, since that can boot on all Wandboard variants)
(We use the SPL u-boot, since that can boot on all Wandboard variants)
+
 
 +
<code>make wandboard_spl_defconfig</code><br>
  
  
 
'''Step 2. Prepare kernel'''
 
'''Step 2. Prepare kernel'''
  
Build kernel as a zImage from https://github.com/wandboard-org/linux
+
Clone kernel source from https://github.com/wandboard-org/linux
 +
 
 +
Don't forget to select a branch :
 +
 
 +
<code>git checkout wandboard_imx_3.10.53_1.1.0_ga</code><br>
 +
 
 +
Build kernel as a zImage :
  
 
<code>make wandboard_defconfig</code><br>
 
<code>make wandboard_defconfig</code><br>
 
<code>make menuconfig</code><br>
 
<code>make menuconfig</code><br>
  
Change GPU driver from v3.10.53 to v3.10.17 (drivers -> mxc support drivers -> mxc vivante gpu -> gpu driver version)
+
Keep GPU to v3.10.53 : drivers -> mxc support drivers -> mxc vivante gpu -> gpu driver version.
 +
 
 +
(for older geexbox releases, it was necessary to choose v3.10.17 there even if kernel 3.10.53 was compiled)
  
 
<code>make zImage</code><br>
 
<code>make zImage</code><br>
Line 38: Line 61:
 
Build kernel dtb from the same git as above ( https://github.com/wandboard-org/linux )
 
Build kernel dtb from the same git as above ( https://github.com/wandboard-org/linux )
  
<code>
+
<code>make imx6q-wandboard.dtb</code><br>
make wandboard.dtb
+
<code>make imx6dl-wandboard.dtb</code><br>
</code>
+
  
  
Line 62: Line 84:
 
<code># sudo dd if=SPL of=/dev/sdX bs=1k seek=1 oflag=dsync</code>
 
<code># sudo dd if=SPL of=/dev/sdX bs=1k seek=1 oflag=dsync</code>
  
Copy u-boot.img, zImage, wandboard dtb files into /dev/sdx1
+
Create a directory named boot in /dev/sdx1
 
+
and copy u-boot.img, zImage, wandboard dtb files (you'll find them in arch/arm/boot/dts/) into it.
  
 
'''Step 7. Prepare rootfs'''
 
'''Step 7. Prepare rootfs'''
  
Extract Geexbox rootfs tar file to /dev/sdx2
+
Extract Geexbox rootfs tar file to /dev/sdx2 from http://download.geexbox.org/snapshots/geexbox-xbmc-imx6-cuboxi/
  
  

Latest revision as of 10:26, 26 June 2016

How to make an Kodi (XBMC) SD card for the Wandboard

First, download the rootfs from http://download.geexbox.org/snapshots/

Choose rootfs named geexbox-devel-*.cuboxi.tar.xz

With geexbox-devel-20160624-r4496c81.cuboxi.tar.xz you will get Kodi 16.1 Jarvis.


SD card creation

About instruction:


Step 0. Prepare cross-building

Useful information for setting up cross-building can be found in the Basic board support package (on wandboard Downloads page) : read doc/wand-dev.pdf

Then setup environment in your running shell, with for example :

export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabi-

Also check that tools bc, lzop and git are installed on your system.


Step 1. Build u-boot bootloader

Clone u-boot from https://github.com/wandboard-org/u-boot-fslc.git

Build u-boot (we use the SPL u-boot, since that can boot on all Wandboard variants)

make wandboard_spl_defconfig


Step 2. Prepare kernel

Clone kernel source from https://github.com/wandboard-org/linux

Don't forget to select a branch :

git checkout wandboard_imx_3.10.53_1.1.0_ga

Build kernel as a zImage :

make wandboard_defconfig
make menuconfig

Keep GPU to v3.10.53 : drivers -> mxc support drivers -> mxc vivante gpu -> gpu driver version.

(for older geexbox releases, it was necessary to choose v3.10.17 there even if kernel 3.10.53 was compiled)

make zImage


Step 3. Prepare device tree

Build kernel dtb from the same git as above ( https://github.com/wandboard-org/linux )

make imx6q-wandboard.dtb
make imx6dl-wandboard.dtb


Step 4. Partition the SD card

Partition your SD card in two partitions, but leave some space before your first partition, around 128kB is more than enough.

partition 1: 8MB for fat16 format, then set boot mode using fdisk.
partition 2: rest of size for ext4 format.


Step 5. Format SD card

Format /dev/sdx1 as FAT16 and ext4 type for /dev/sdx2.


Step 6 Make SD card bootable

Copy SPL image to the unpartitioned are before the first partition using command the command:

# sudo dd if=SPL of=/dev/sdX bs=1k seek=1 oflag=dsync

Create a directory named boot in /dev/sdx1 and copy u-boot.img, zImage, wandboard dtb files (you'll find them in arch/arm/boot/dts/) into it.

Step 7. Prepare rootfs

Extract Geexbox rootfs tar file to /dev/sdx2 from http://download.geexbox.org/snapshots/geexbox-xbmc-imx6-cuboxi/


Done!

Getting started

Log in with root / root

(login only needed on the debug console)