标签 - android

android openSUSE    2017-11-19 15:31:56    61    0    0

没有厂商device tree 所以只能先在device目录下建立几个基础文件

以实现在自定义产品配置出现在lunch里面

编译完了 没有发现高通底层固件在哪里 不知道原因在哪里


宿主机:

日 11月 19|13:38|0:>uname -a
Linux SUSE.suse 4.4.92-31-default #1 SMP Sun Oct 22 06:56:24 UTC 2017 (1d80e8a) x86_64 x86_64 x86_64 GNU/Linux​

make版本:

日 11月 19|13:38|0:>make -version
GNU Make 3.82
Built for x86_64-unknown-linux-gnu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
#### make completed successfully ####​

编译器版本:

日 11月 19|13:40|0:>aarch64-linux-android-gcc --version
aarch64-linux-android-gcc (GCC) 4.8
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.​

Android源码 来自清华开源镜像AOSP的版本:

PLATFORM_VERSION=7.1.1​

ubuntu14.04相对应openSUSE的软件包:

git-core
gnupg 对应包:
kernel openSUSE android    2017-11-16 01:03:38    12    0    0

F-04G开源软件网页链接地址:http://spf.fmworld.net/oss/oss/f-04g/first/index.html

软件名称: F04G_V14R36F.tar.gz / 563,180,406字节

软件下载页面:http://spf.fmworld.net/oss/oss/f-04g/first/data/download.html

软件下载链接:http://spf.fmworld.net/oss/oss/f-04g/first/data/dammy/F-04G_V14R36F.tar.gz http://download-spf.fmworld.net/oss/oss/f-04g/first/data/F-04G_V14R36F.tar.gz

上面的源代码是不完整的 在编译过程中发现的问题主要是 文件缺失 头文件定义 不能够make clean 

做了个补丁文件 传到了某度盘里面 链接: https://pan.baidu.com/s/1mhI2n4c 密码: ty5u

最后需要修改的地方是

/kernel/include/linux/msm_ion_ex.h
/* FUJITSU:2015-01-06 SEC Mod <S> */
/*#define FIDO_SEC */ 注释掉这一行 要不然编译报错
/* FUJITSU:2015-01-06 SEC Mod <E> */

adb驱动 官网下载地址 http://spf.fmworld.net/oss/driver/adb/data/download.html

使用的编译器版本 make版本以及目标文件配置选项

ARCH=arm64
CROSS_COMPILE=aarch64-linux-android-
export PATH=/opt/aarch64-linux-android-4.8/bin/:$PATH
GNU Make 3.82
Built for x86_64-unknown-linux-gnu
make msm8994_defconfig​

 ================================

上面默认生成的目标没有Image.gz-dtb
修改/kernel/arch/arm64/boot/Makefile之 19行:

targets := Image Image.gz​


为:

android    2016-09-25 14:15:39    878    0    0

http://stackoverflow.com/questions/38448482/installing-android-studio-in-ubuntu-14-04-64-bit-android-repositories-cfg-could

Android Studio will run fine without it, but if the warning concerns you, you can create the file ~/.android/repositories.cfg with the following content and the warning will not appear again.

### User Sources for Android SDK Manager
count=0​