Close

Notes on Packaging a Kernel with Android

A project log for Breaking Androidâ„¢

Building and breaking the Android AOSP on the BBB. Android is a trademark of Google Inc.

jlbrian7jlbrian7 03/13/2017 at 00:540 Comments

I may be reinventing the wheel. I will have to try this soon, then move on to Nougat.

---> http://elinux.org/Thread:User_talk:MaheshKalmeshwar/Quick_MarshMallow_Android_Porting_on_Beaglebone_Black

https://github.com/csimmonds/android4beagle


https://eewiki.net/display/AOA/BeagleBone+Black

This is a mess. I am trying to figure out what will work.

(I am essentially going through the manifest here https://github.com/csimmonds/android4beagle/blob/master/default.xml and getting what I think I need)

cd device

git clone https://github.com/csimmonds/a4b-beagleboneblack

cd a4b*

git checkout m6.0

cd ..

mv -v ~/android-AOSP/device/a4b-beagleboneblack/* ~/android-AOSP/device/ti/beagleboneblack/

r-rf a4b-beagleboneblack

cd ti/beagleboneblack

git clone https://github.com/csimmonds/u-boot.git

cd u-boot

git checkout am335x-v2013.01.01-bbb-fb

cd ..

git clone https://github.com/beagleboard/bb.org-overlays.git

git clone https://github.com/csimmonds/a4b-scripts.git

cd a4b*

git checkout m6.0

cd ..

***!!! build-beagleboneblack.sh LN:46

# Append the dtb to zImage because the Android build doesn't know about dtbs
cd KERNEL
cat arch/arm/boot/zImage arch/arm/boot/dts/am335x-boneblack-emmc-overlay.dtb > zImage-dtb

http://free-electrons.com/pub/conferences/2013/elce/petazzoni-device-tree-dummies/petazzoni-device-tree-dummies.pdf

Page 8. Would this be necessary if a current u-boot was updated with the proper androidisms for the bbb? is that possible? I am understanding it is a problem with the old u-boot not pointing to the dtb, is that correct?

https://cdn-learn.adafruit.com/downloads/pdf/introduction-to-the-beaglebone-black-device-tree.pdf

Page 4

https://community.arm.com/dev-platforms/b/documents/posts/faq-what-is-device-tree

LN:71

# The Android prebuilt gcc fails to build U-Boot, so use the Linaro gcc which
# was installed to build the ti-kernel

It also failed when I tried to build the kernel with it. Error message said the compiler was buggy and would fail to build kernels properly. Don't waste your time with it.

In settings, I turned off all touch screen modules and built-ins, as well as as all v4l, tv, and radio support. They were causing compiler errors.

Discussions