diff options
author | Narayan Kamath <narayan@google.com> | 2014-06-24 17:51:48 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2014-06-25 18:54:28 +0100 |
commit | 9b59f572d1fe09a13342ed127babc9b46f76c970 (patch) | |
tree | 8626c4ff42258b04082c3ac459b0e951166b5a58 | |
parent | e2a8cf749210281fdf3a3158d0deba55acf6fcde (diff) | |
download | qemu-9b59f572d1fe09a13342ed127babc9b46f76c970.tar.gz |
Ranchu device configs.
The minimal set of changes is really only fstab.ranchu
and init.ranchu.rc and ueventd.ranchu.rc.
This device is identical to generic_arm64 except for
the fstab and init files, which can eventually be merged.
Change-Id: Iea936e98138d1d17d5a2456eb223e9d9ecdcc027
-rw-r--r-- | AndroidProducts.mk | 1 | ||||
-rw-r--r-- | fstab.ranchu | 8 | ||||
-rw-r--r-- | init.ranchu.rc | 46 | ||||
-rw-r--r-- | ranchu_arm64.mk | 35 | ||||
-rw-r--r-- | ueventd.ranchu.rc | 5 |
5 files changed, 95 insertions, 0 deletions
diff --git a/AndroidProducts.mk b/AndroidProducts.mk index 0a144b7..ae8de1c 100644 --- a/AndroidProducts.mk +++ b/AndroidProducts.mk @@ -25,3 +25,4 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/qemu_x86_64.mk \ $(LOCAL_DIR)/qemu_arm64.mk \ $(LOCAL_DIR)/qemu_mips64.mk \ + $(LOCAL_DIR)/ranchu_arm64.mk \ diff --git a/fstab.ranchu b/fstab.ranchu new file mode 100644 index 0000000..cff906f --- /dev/null +++ b/fstab.ranchu @@ -0,0 +1,8 @@ +# Android fstab file. +#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags> +# The filesystem that contains the filesystem checker binary (typically /system) cannot +# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK +/dev/block/vda /system ext4 ro wait +/dev/block/vdb /cache ext4 noatime,nosuid,nodev,nomblk_io_submit,errors=panic wait +/dev/block/vdc /data ext4 noatime,nosuid,nodev,nomblk_io_submit,errors=panic wait +#/devices/platform/goldfish_mmc.0 auto vfat defaults voldmanaged=sdcard:auto diff --git a/init.ranchu.rc b/init.ranchu.rc new file mode 100644 index 0000000..327cce6 --- /dev/null +++ b/init.ranchu.rc @@ -0,0 +1,46 @@ +on fs + mount_all /fstab.ranchu + +on early-init + mount debugfs debugfs /sys/kernel/debug + +on init + # See storage config details at http://source.android.com/tech/storage/ + mkdir /storage/sdcard 0555 root root + + export EXTERNAL_STORAGE /storage/sdcard + + # Support legacy paths + #symlink /storage/sdcard /sdcard + #symlink /storage/sdcard /mnt/sdcard + +on boot + setprop ARGH ARGH + setprop net.eth0.gw 10.0.2.2 + setprop net.eth0.dns1 10.0.2.3 + setprop net.gprs.local-ip 10.0.2.15 + setprop ro.radio.use-ppp no + setprop ro.build.product generic + setprop ro.product.device generic + +# fake some battery state + setprop status.battery.state Slow + setprop status.battery.level 5 + setprop status.battery.level_raw 50 + setprop status.battery.level_scale 9 + +# Disable GPU support + setprop ro.kernel.qemu 1 + setprop ro.kernel.qemu.gles 0 + +# disable RenderScript + setprop config.disable_renderscript 1 + +# disable some daemons the emulator doesn't want + stop dund + stop akmd + +# enable Google-specific location features, +# like NetworkLocationProvider and LocationCollector + setprop ro.com.google.locationfeatures 1 + diff --git a/ranchu_arm64.mk b/ranchu_arm64.mk new file mode 100644 index 0000000..b9ea21e --- /dev/null +++ b/ranchu_arm64.mk @@ -0,0 +1,35 @@ +# +# Copyright (C) 2014 The Android Open-Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/board/generic_arm64/device.mk) + +PRODUCT_RUNTIMES := runtime_libart_default + +PRODUCT_NAME := ranchu_arm64 +# Use the same BoardConfig as generic_arm64. +PRODUCT_DEVICE := generic_arm64 +PRODUCT_BRAND := Android +PRODUCT_MODEL := AOSP on qemu arm64 emulator + + +TARGET_PROVIDES_INIT_RC := true +PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ + system/core/rootdir/init.rc:root/init.rc \ + $(LOCAL_PATH)/init.ranchu.rc:root/init.ranchu.rc \ + $(LOCAL_PATH)/fstab.ranchu:root/fstab.ranchu \ + $(LOCAL_PATH)/ueventd.ranchu.rc:root/ueventd.ranchu.rc) diff --git a/ueventd.ranchu.rc b/ueventd.ranchu.rc new file mode 100644 index 0000000..a9e5de5 --- /dev/null +++ b/ueventd.ranchu.rc @@ -0,0 +1,5 @@ +# These settings are specific to running under the Android emulator +/dev/qemu_trace 0666 system system +/dev/android_pipe 0666 system system +/dev/ttyS* 0666 system system +/proc 0666 system system |