diff options
author | Jun Yu <yujun@marvell.com> | 2015-10-26 23:18:18 -0700 |
---|---|---|
committer | Mohammed Habibulla <moch@google.com> | 2015-11-04 17:57:34 -0800 |
commit | bb7dae7acc9fddde926f8ddbdc2b8f5b3133b357 (patch) | |
tree | a3a3b4ed583b5dc647c6f7b8c6bffab520cf70d2 | |
parent | 3fbca1fd48f28380b0f090f414980bd726259926 (diff) | |
download | abox_edge-bb7dae7acc9fddde926f8ddbdc2b8f5b3133b357.tar.gz |
Added abox_edge device
1) basic building scripts
2) fstab defined mounting points
Change-Id: Ibed7345922971cafc841b8c2335ce65814468ad7
-rw-r--r-- | AndroidBoard.mk | 20 | ||||
-rw-r--r-- | BoardConfig.mk | 34 | ||||
-rw-r--r-- | base_product/AndroidProducts.mk | 21 | ||||
-rw-r--r-- | base_product/abox_edge.mk | 27 | ||||
-rw-r--r-- | base_product/devicesetup.sh | 17 | ||||
-rw-r--r-- | base_product/weaved.conf | 85 | ||||
-rw-r--r-- | fstab | 3 |
7 files changed, 207 insertions, 0 deletions
diff --git a/AndroidBoard.mk b/AndroidBoard.mk new file mode 100644 index 0000000..0b7b3f5 --- /dev/null +++ b/AndroidBoard.mk @@ -0,0 +1,20 @@ +# +# Copyright 2015 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. +# + +# This has to live here for now as the variables it requires are +# not read when BoardConfig.mk is parsed. + +include device/generic/brillo/kernel.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..7efca0f --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,34 @@ +# +# Copyright 2015 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. +# + +# Select the SoC +$(call set_soc, marvell, iap140) + +# Enable ext4 image build if the flash type is emmc +TARGET_USERIMAGES_USE_EXT4 := true + +BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824 +BOARD_USERDATAIMAGE_PARTITION_SIZE := 4343595008 +BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 + +BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 +BOARD_FLASH_BLOCK_SIZE := 512 + +PRODUCT_COPY_FILES += \ + device/marvell/abox_edge/fstab:root/fstab.${soc_name} + +# Must be defined at the end of the file +$(call add_device_packages) diff --git a/base_product/AndroidProducts.mk b/base_product/AndroidProducts.mk new file mode 100644 index 0000000..a9d586b --- /dev/null +++ b/base_product/AndroidProducts.mk @@ -0,0 +1,21 @@ +# +# Copyright 2015 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. +# + +# This file is found by the build system. +# It defines the base product definition for device bring up. + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/abox_edge.mk diff --git a/base_product/abox_edge.mk b/base_product/abox_edge.mk new file mode 100644 index 0000000..658a6a6 --- /dev/null +++ b/base_product/abox_edge.mk @@ -0,0 +1,27 @@ +# +# Copyright 2015 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, device/generic/brillo/brillo_base.mk) + +PRODUCT_NAME := abox_edge +PRODUCT_BRAND := Brillo + +PRODUCT_DEVICE := abox_edge + +# Install abox_edge specific config file for weaved. +PRODUCT_COPY_FILES += \ + device/marvell/abox_edge/base_product/weaved.conf:system/etc/weaved/weaved.conf + diff --git a/base_product/devicesetup.sh b/base_product/devicesetup.sh new file mode 100644 index 0000000..c8e3eb6 --- /dev/null +++ b/base_product/devicesetup.sh @@ -0,0 +1,17 @@ +# +# Copyright 2015 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. +# + +add_lunch_combo abox_edge-eng diff --git a/base_product/weaved.conf b/base_product/weaved.conf new file mode 100644 index 0000000..e522d5a --- /dev/null +++ b/base_product/weaved.conf @@ -0,0 +1,85 @@ +# +# Copyright 2015 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. +# + +# OAuth 2.0 client id. +client_id=658404173732-9uvi6r4fojt78qdg2dtht4j52dbembdq.apps.googleusercontent.com + +# OAuth 2.0 client secret. +client_secret=tuTlrJk07ZZvp5iu6oCAQ_jO + +# OAuth 2.0 API key. +api_key=AIzaSyD7C1XTKF2qd6ZzKlbpwNuZKYl3TmMPFeY + +# OAuth 2.0 URL. +# oauth_url=https://accounts.google.com/o/oauth2/ + +# GCD service URL. +# service_url=https://www.googleapis.com/clouddevices/v1/ + +# Human readable name of the device. +name=Starter Board + +# Human readable description of the device. +# Defaults to empty string" +description=Marvell Abox Edge + +# Location of the device. +# location= + +# Manufacturer of the device. +oem_name=Marvell. + +# Model of the device. +# Defaults to Brillo. +model_name=Abox_Edge + +# Five character code assigned by the cloud registry of device models. +# Defaults to "AAAAA" (Unregistered model). +model_id=AAAAA + +# Maximum role for local anonymous user. +local_anonymous_access_role=user + +# If true, allows local pairing using Privet API. +local_pairing_enabled=true + +# If true, allows local discovery using mDns. +local_discovery_enabled=true + +# GCD service polling interval in milliseconds. +polling_period_ms=7000 + +# GCD service backup polling interval in milliseconds. +# backup_polling_period_ms=1800000 + +# Automatic mode causes buffet to automatically bring up a SoftAP for +# bootstrapping when it looses network connectivity for long enough, +# and on first boot. +# wifi_auto_setup_enabled=true + +# List of pairing modes supported by device. +# Values can be one of pinCode, embeddedCode, ultrasound32, audible32. +# Defaults to pinCode if embedded_code_path is empty, or embeddedCode otherwise. +pairing_modes=embeddedCode + +# Absolute path to file specifying an embedded pairing code. The file at +# embedded_code_path should be a file in key value format, with a key +# embedded_code. +# Defaults to empty path. +embedded_code_path=/etc/weaved/weaved.conf + +# Embedded code. +embedded_code=0000 @@ -0,0 +1,3 @@ +/dev/block/platform/soc.2/d4200000.axi/d4281000.sdh/by-name/system /system ext4 rw wait,check +/dev/block/platform/soc.2/d4200000.axi/d4281000.sdh/by-name/userdata /data ext4 discard,noatime,nosuid,nodev,nomblk_io_submit,errors=panic wait,check,encryptable=footer +/dev/block/platform/soc.2/d4200000.axi/d4281000.sdh/by-name/cache /cache ext4 discard,noatime,nosuid,nodev,nomblk_io_submit,errors=panic wait,check |