简体   繁体   中英

Linux Kernel / Android Custom Device / Platform Information Needed

I am working on a new device that is to support Android that is ARM SOC based. My background is a Linux kernel developer and I have built u-boot and the latest kernel (from kernel.org) along with a minimum root file system which all comes up nicely.

My question is how might I make a specific 'platform' to select in the Android build process? There does not seem to be a lot of information on this subject or it is obfuscated somehow. A how-to guide for building for a custom device would be a great help, thanks.

Its unclear what kernel your using but Android uses a modified kernel, you'll want to start with that if you haven't rather than the 'stock' kernel source at https://android.googlesource.com/ .

I'd recommend looking at the CyangenMod project ( http://www.cyanogenmod.com/ ). It is structured for supporting many different devices, not that the 'raw' source from google isn't, but cyanogen supports many more devices out of the box and is constantly getting new devices. Their irc channel and dev forums are also probably your best resource for questions on adding new device support.

There is a basic wiki on building cyanogen here: http://wiki.cyanogenmod.com/index.php?title=Compile_CyanogenMod_for_Passion

You can see after pulling the source that there are separate projects for each device, you'll be adding your own, maybe using one as a basis depending on the similarities in your dev board / SoC with the already available devices. Either way you can use their structure as a framework for your device. (there is a sample in the device directory)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM