raspberry pi2 andrid

Kernel
Kernel 3.19.0-exton-v7+ is used in RaspAnd.

My sources
You’ll find my sources for RaspAnd here.

How do I install RaspAnd?
Almost like any other Raspberry system. The installation has to take place in Linux though. (From hard drive or while running a live Linux system from cd or a USB stick). Follow this instruction. The whole thing has to be done exactly like this.
1. Unpack the download Zip-file (unzip raspex-arm-android-lollipop-5.1-134mb-150405.zip). You will get the folder raspex-android-arm-lollipop-5.1 with the folder boot and the system file system.img
2
. Create four partitions of/on your Micro SD Card with Fdisk or GParted.
a) Part 1 for BOOT of 512 MB ; format as fat32 ; flag as boot
b) Part 2 for /system of 512 MB; any filesystem
c) Part 3 for /cache of 512 MB ; format as ext4

d) Part 4 for /data; size the remain; format as ext4

3. Now open up a terminal as root and run this command (make sure which name your SD card was given when you inserted it (/dev/sdb2 or /dev/sdc2 or as in the example here /dev/sdd2):
dd if=system.img of=/dev/sdd2 bs=1M
4. Then just copy every file in raspex-android-arm-lollipop-5.1/boot (8 files) to /dev/sdd1. If not mounted already you can mount it with mkdir /mnt/sdd1 followed by mount /dev/sdd1 /mnt/sdd1

Note: You shall not do anything with /dev/sdd3 and /dev/sdd4. I.e: Do not create folders /cache or /data.

Booting up RaspAnd – Slide show
Now just place your SD Card in your Raspberry Pi 2 machine and turn on the power. Watch this Slide show.


# Download Android source with patches(local_manifests)
 Refer to http://source.android.com/source/downloading.html
 $ repo init -u https://android.googlesource.com/platform/manifest -b android-5.1.1_r4
 $ cd .repo
 $ git clone https://github.com/peyo-hd/local_manifests
 $ repo sync
 
# Build for Intel box
 See https://github.com/peyo-hd/device_x86_ibox

# Build for RaspberryPi 2
 See https://github.com/peyo-hd/device_brcm_rpi2

# Build for Odroid C1
 See https://github.com/peyo-hd/device_aml_odrc

# Build Kernel
 $ cd kernel/rpi
 $ ARCH=arm scripts/kconfig/merge_config.sh arch/arm/configs/bcm2709_defconfig android/configs/android-base.cfg android/configs/android-recommended.cfg
 $ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make zImage
 $ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make dtbs
 
# Build Android source
 Continue build with http://source.android.com/source/building-running.html
 $ source build/envsetup.sh
 $ lunch rpi2-eng
 $ make

# Prepare sd card
 Partitions of the card should be set-up like followings.
  p1 512MB for BOOT : Do fdisk, format as fat32, tag bootable flag
  p2 512MB for /system : Do fdisk, new primary partition, size 512M.
  p3 512MB for /cache  : Do fdisk, format as ext4
  p4 remainings for /data : Do fdisk, format as ext4
 
# Write system partition
  $ cd out/target/product/rpi2
  $ sudo dd if=system.img of=/dev/<p2> bs=1M
  
# Boot partition, kernel & ramdisk
  device/brcm/rpi2/boot/* to p1:/
  kernel/rpi/arch/arm/boot/zImage to p1:/
  kernel/rpi/arch/arm/boot/dts/bcm2709-rpi-2-b.dtb to p1:/
  out/target/product/rpi2/ramdisk.img to p1:/




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值