From d5d251cdf99b8fd7c2320cf0abec686796340ddb Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Sun, 6 Dec 2015 19:05:24 +0200 Subject: Add usage in README --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/README.md b/README.md index dda0d5a..2e6bda1 100644 --- a/README.md +++ b/README.md @@ -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 +``` + -- cgit v1.3.1