Android6.0.1-compile-Ubuntu20.04 - 2023.02.18
Android6.0.1-compile-Ubuntu20.04 - 2023.02.18
Android6.0.1-compile-Ubuntu20.04 - 2023.02.18
18
2021.12.25
Step1.
This step for compile C sources
export LC_ALL=C
Step2.
/build/core/configure_local_jack.mk
Step3.
export _JAVA_OPTIONS=-Xmx4096m
JDK1.7
http://www.wearedev.net/209?
PHPSESSID=9e405022834f61104dc69dbaa2474e47
$cd /usr/local/java
$sudo vi /etc/profile
JAVA_HOME=/usr/local/java/jdk1.7.0_80
JRE_HOME=/usr/local/java/jdk1.7.0_80
PATH=$PATH:$JRE_HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export JRE_HOME
export PATH
다음 명령어를 실행합니다.
$source /etc/profile
$java -version
Extract Step.
You can run swapoff -a as root to swap all memory back in. Don't forget to run swapon -a
afterwards to make swap available again. Note that swapoff will fail if there is not enough physical
memory available to swap everything back in.
$sudo swapoff -a
$sudo swapon -a
Compile error
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
still errors
PRODUCT_COPY_FILES
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/
etc/permissions/android.hardware.bluetooth_le.xml ignored.
No private recovery resources for TARGET_DEVICE sabresd_6dq
host Executable: acp
(out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp)
preparing StaticLib: libc++_static [including
out/host/linux-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/libc+
+abi.a]
Yacc: aidl <= frameworks/base/tools/aidl/aidl_language_y.y
prebuilts/misc/linux-x86/bison/bison -d -o
out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y
.cpp frameworks/base/tools/aidl/aidl_language_y.y
Lex: aidl <= frameworks/base/tools/aidl/aidl_language_l.l
host StaticLib: libc++_static
(out/host/linux-x86/obj/STATIC_LIBRARIES/libc+
+_static_intermediates/libc++_static.a)
logtags:
out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/core
/java/android/content/EventLogTags.java <=
frameworks/base/core/java/android/content/EventLogTags.logtags
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt
< (sizeof (_nl_value_type_LC_TIME) / sizeof
(_nl_value_type_LC_TIME[0]))' failed.
logtags:
out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/core
/java/android/speech/tts/EventLogTags.java <=
frameworks/base/core/java/android/speech/tts/EventLogTags.logtags
prebuilts/misc/linux-x86/bison/bison: m4 subprocess failed: No such
file or directory
make: *** [build/core/binary.mk:609:
out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y
.cpp] Error 1
make: *** Waiting for unfinished jobs....
logtags:
out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/core
/java/android/webkit/EventLogTags.java <=
frameworks/base/core/java/android/webkit/EventLogTags.logtags
logtags:
out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/core
/java/com/android/internal/logging/EventLogTags.java <=
frameworks/base/core/java/com/android/internal/logging/EventLogTags.l
ogtags
make: *** [build/core/binary.mk:646:
out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l
.cpp] Aborted (core dumped)
eku@eku-ThinkPad-P17-Gen-2i:~/3-Android/Android6-CAN/iTOP-
iMX6_android6.0.1-OK$
sudo apt-get install g+±multilib gcc-multilib lib32ncurses5-
dev lib32readline-gplv2-dev lib32z1-dev
eku@eku-ThinkPad-P17-Gen-2i:~/3-Android/Android6-CAN/iTOP-
iMX6_android6.0.1-OK$ sudo apt install lib32ncurses5-dev
eku@eku-ThinkPad-P17-Gen-2i:~/3-Android/Android6-CAN/iTOP-
iMX6_android6.0.1-OK$ sudo apt-get install g++-multilib gcc-multilib
eku@eku-ThinkPad-P17-Gen-2i:~/3-Android/Android6-CAN/iTOP-
iMX6_android6.0.1-OK$ sudo apt-get install lib32z1-dev
eku@eku-ThinkPad-P17-Gen-2i:~/3-Android/Android6-CAN/iTOP-
iMX6_android6.0.1-OK$ sudo apt install lib32readline-dev
still error
including ./tools/external/fat32lib/Android.mk ...
PRODUCT_COPY_FILES
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/
etc/permissions/android.hardware.bluetooth_le.xml ignored.
No private recovery resources for TARGET_DEVICE sabresd_6dq
Install: out/host/linux-x86/lib64/libc++.so
host Executable: validatekeymaps
(out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/
validatekeymaps)
Install: out/host/linux-x86/framework/antlr-runtime.jar
Install: out/host/linux-x86/framework/guavalib.jar
host SharedLib: libcrypto-host (out/host/linux-x86/obj/lib/libcrypto-
host.so)
host Prebuilt: jarjar-apache-ant
(out/host/common/obj/JAVA_LIBRARIES/jarjar-apache-ant_intermediates/
javalib.jar)
host Prebuilt: jarjar-maven-plugin-api
(out/host/common/obj/JAVA_LIBRARIES/jarjar-maven-plugin-
api_intermediates/javalib.jar)
host Prebuilt: jarjar-asm (out/host/common/obj/JAVA_LIBRARIES/jarjar-
asm_intermediates/javalib.jar)
host Prebuilt: jarjar-asm-commons
(out/host/common/obj/JAVA_LIBRARIES/jarjar-asm-
commons_intermediates/javalib.jar)
Yacc: aidl <= frameworks/base/tools/aidl/aidl_language_y.y
Lex: aidl <= frameworks/base/tools/aidl/aidl_language_l.l
prebuilts/misc/linux-x86/bison/bison -d -o
out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y
.cpp frameworks/base/tools/aidl/aidl_language_y.y
host Prebuilt: asm-tools (out/host/common/obj/JAVA_LIBRARIES/asm-
tools_intermediates/javalib.jar)
host Prebuilt: guava-tools (out/host/common/obj/JAVA_LIBRARIES/guava-
tools_intermediates/javalib.jar)
flex-2.5.39: fatal internal error, exec of /usr/bin/m4 failed
prebuilts/misc/linux-x86/bison/bison: m4 subprocess failed: No such
file or directory
make: *** [build/core/binary.mk:609:
out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y
.cpp] Error 1
make: *** Waiting for unfinished jobs....
make: *** [build/core/binary.mk:646:
out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l
.cpp] Broken pipe
make: *** Deleting file
'out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_
l.cpp'
eku@eku-ThinkPad-P17-Gen-2i:~/3-Android/Android6-CAN/iTOP-
iMX6_android6.0.1-OK$ sudo apt install openjdk-8-jdk
eku@eku-ThinkPad-P17-Gen-2i:~/3-Android/Android6-CAN/iTOP-
iMX6_android6.0.1-OK$ sudo apt install m4
Final successfully
2023-02-19 compiled ok.
2023.02.18
eku@eku-ThinkPad-P17-Gen-2i:~/3-Android/Android6-CAN/iTOP-
iMX6_android6.0.1-OK/device/fsl/sabresd_6dq/apk/isobus$
Edit isobus.sh
#!/system/bin/sh
sleep 5
ifconfig can0 down
ip link set can0 type can bitrate 250000 sample 0.80
ifconfig can0 up
#for camera
chmod 666 /dev/video0
Recompile Android OS
./create.sh android 6q
we should copy the Android OS image files.
eku@eku-ThinkPad-P17-Gen-2i:~/3-Android/Android6-CAN/iTOP-
iMX6_android6.0.1-OK/out/target/product/sabresd_6dq$ ls
1. system.img
2. u-boot.imx
3. recovery-topeet_10.1.img
4. boot-topeet_10.1.img
recovery-topeet_10.1.img →recovery.img
recompile kernel
problems
/home/eku/3-Android/Android6-CAN/iTOP-iMX6_android6.0.1-OK/
kernel_imx/../prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/
bin/arm-linux-androideabi-ld: warning: unwinding may not work because
EXIDX input section 8 of arch/arm/crypto/built-in.o is not in EXIDX
output section
$sudo ln -s ../../../../../include/dt-bindings/ ./
2. we should change the i2c touchscreen driver