summaryrefslogtreecommitdiff
path: root/README.md
blob: 2e6bda11fd0018438e70143a20a3b67457ae01f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Inphic S805 Teardown

Goes for ~~$15~~ (not anymore, you snooze you lose) $40 on [AliExpress](http://www.aliexpress.com/item/inphic-i5-S805-wifi-smart-tv-box-set-top-box-quad-core-1g-8g-android4-4/32504955757.html), has same SoC as the [Odroid C1](http://odroid.com/dokuwiki/doku.php?id=en:c1_hardware). Looks like a poor man's Odroid to me!

We bravely attempt to build and run mainline kernel on this little board. For that we join forces with the awesome [linux-meson](http://linux-meson.com/doku.php) project.

## Prerequisites

 - arm-linux-gnueabihf toolchain ([arm-linux-gnueabihf-gcc](https://aur.archlinux.org/packages/arm-linux-gnueabihf-gcc/) on AUR)
 - [Mainline kernel](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git) clone
 - [Buildroot](http://www.buildroot.org/)

## Usage

Taken from http://linux-meson.com/doku.php

### Kernel

```bash
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- multi_v7_defconfig
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LOADADDR=0x00208000 uImage dtbs
```

Kernel and DTS will be in `arch/arm/boot`.

### Rootfs

```bash
$ cd buildroot-2015.11
$ cp ../buildroot.config .config
$ make menuconfig  # customize if necessary
$ make
```

Copy relevant files to a FAT formatted SD card, connect to board serial port, and stop the uboot auto boot sequence. Then run:

```
# mmcinfo
# fatload mmc 0:1 0x21000000 uImage
# fatload mmc 0:1 0x22000000 rootfs.cpio.uboot
# fatload mmc 0:1 0x21800000 meson8b-mxq.dtb
# setenv bootargs "console=ttyAML0,115200"
# bootm 0x21000000 0x22000000 0x21800000
```