diff options
| author | Yuval Adam <yuval@y3xz.com> | 2015-12-06 19:05:24 +0200 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2015-12-06 19:05:24 +0200 |
| commit | d5d251cdf99b8fd7c2320cf0abec686796340ddb (patch) | |
| tree | dac2dfe628516efcaa460a5970c409cf3db379d9 | |
| parent | 83cf971b3dd8b21680c8f00de11fc8ec1effeb42 (diff) | |
| -rw-r--r-- | README.md | 33 |
1 files changed, 33 insertions, 0 deletions
@@ -10,3 +10,36 @@ We bravely attempt to build and run mainline kernel on this little board. For th - [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 +``` + |
