Skip to content

Commit

Permalink
Merge pull request #2 from linaro-swg/for-4.4
Browse files Browse the repository at this point in the history
Merge 'for-4.4' changes.

Reviewed-by: Joakim Bech <[email protected]>
  • Loading branch information
d3zd3z authored Jun 24, 2016
2 parents 356679f + 828a2f6 commit 21611df
Show file tree
Hide file tree
Showing 23 changed files with 841 additions and 55 deletions.
4 changes: 3 additions & 1 deletion BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ BOARD_WPA_SUPPLICANT_DRIVER := NL80211
BOARD_HOSTAPD_DRIVER := NL80211
CONFIG_DRIVER_NL80211 := y

BOARD_KERNEL_CMDLINE := k3v2mem hisi_dma_print=0 vmalloc=484M no_irq_affinity loglevel=7 androidboot.hardware=hikey selinux=0
BOARD_KERNEL_CMDLINE := console=ttyFIQ0 androidboot.console=ttyFIQ0 androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime androidboot.selinux=permissive

TARGET_NO_BOOTLOADER := true
TARGET_NO_KERNEL := false
Expand Down Expand Up @@ -60,3 +60,5 @@ ifeq ($(TARGET_SYSTEMIMAGES_USE_SQUASHFS), true)
BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := squashfs
endif
endif

TARGET_BOOTIMAGE_USE_FAT := true
10 changes: 6 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Remove link 3-4 and power the board

* Flashing images:
Enter fastboot mode by linking J15 1-2 and 5-6 pins
$ fastboot flash boot out/target/product/hikey/boot_fat.uefi.img
$ fastboot flash boot out/target/product/hikey/boot.img
$ fastboot flash system out/target/product/hikey/system.img
$ fastboot flash cache out/target/product/hikey/cache.img
$ fastboot flash userdata out/target/product/hikey/userdata.img
Expand All @@ -39,14 +39,16 @@ Remove jumper 5-6 and power the board
* Building kernel
$ git clone https://android.googlesource.com/kernel/hikey-linaro
$ cd hikey-linaro
$ git checkout -b android-hikey-linaro-4.1 origin/android-hikey-linaro-4.1
$ git checkout -b android-hikey-linaro-4.4 origin/android-hikey-linaro-4.4
$ make ARCH=arm64 hikey_defconfig
$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j24
Output: arch/arm64/boot/Image & arch/arm64/boot/dts/hisilicon/hi6220-hikey.dtb
copy Image and hi6220-hikey.dtb to hikey-kernel directory
copy Image-dtb and hi6220-hikey.dtb to hikey-kernel directory

* Setting monitor resolution
Edit device/linaro/hikey/bootloader/EFI/BOOT/grub.cfg
Add to BOARD_KERNEL_CMDLINE in BoardConfig.mk or
if you are setting TARGET_BOOTIMAGE_USE_FAT=true edit
device/linaro/hikey/bootloader/EFI/BOOT/grub.cfg
Set video= (for example for 24” monitor): video=HDMI-A-1:1280x800@60

* Kernel serial output (uart3):
Expand Down
37 changes: 37 additions & 0 deletions audio/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright (C) 2016 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.

LOCAL_PATH := $(call my-dir)

# The default audio HAL module, which is a stub, that is loaded if no other
# device specific modules are present. The exact load order can be seen in
# libhardware/hardware.c
#
# The format of the name is audio.<type>.<hardware/etc>.so where the only
# required type is 'primary'. Other possibilites are 'a2dp', 'usb', etc.
include $(CLEAR_VARS)

LOCAL_MODULE := audio.primary.hikey
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_SRC_FILES := audio_hw.c
LOCAL_SHARED_LIBRARIES := liblog libcutils libtinyalsa
LOCAL_CFLAGS := -Wno-unused-parameter
LOCAL_C_INCLUDES += \
external/tinyalsa/include \
external/expat/lib \
system/media/audio_utils/include \
system/media/audio_effects/include

include $(BUILD_SHARED_LIBRARY)

Loading

0 comments on commit 21611df

Please sign in to comment.