Compiling Linux kernel for mini PC MK802

Get source code:
git clone git://
cd linux-allwinner
git checkout allwinner-v3.0-android-v2 (or whatever branch you want to compile)

To make your own kernel:
make ARCH=arm sun4i_defconfig
make ARCH=arm menuconfig
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- -j3 uImage
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- -j3 INSTALL_MOD_PATH=output modules
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- -j3 INSTALL_MOD_PATH=output modules_install

You’ll have the uImage for u-boot on arch/arm/boot/uImage and the modules on the output/ folder.


About xlcwu

Self-employed (One-man Company), Developer/Chief Designer/Consultant, Embedded Linux/NAS/Storage/Platform/Devices, Xcode/Cocos2D/Cocoa/Objective-C, at Joe’s Lab – Newland ESP (TM).
This entry was posted in Embedded, Linux and tagged , , . Bookmark the permalink.

5 Responses to Compiling Linux kernel for mini PC MK802

  1. t-bon3 says:

    Would this kernel work as a custom kernel for android? What else is needed to build a linux kernel for Android 4.0/4.1 ROM?

    • xlcwu says:

      To use the config “sun4i_defconfig” is for generic linux e.g. custom linux kernel + your own rootfs.

      Other defconfig you can try below:
      sun4i: full linux bsp
      sun4i-lite: linux bsp with less packages
      sun4i-debug: linux bsp for debug
      sun4i_crane: android kernel

  2. Rodrigo Lopez says:

    MK802II is showed as sun4i ? compile sun4i or sun4i_crane ? best ?

  3. brk says:

    How can we flash the NAND memory of this mini PC’s?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s