开个贴,记录给小米平板5移植sailfishos
-
其实这个坑在 3年前 就挖了,因为不小心把平板给刷坏了(bootloader都进不去),然后小米的刷机策略导致不能自己进9008刷回,只能售后。好在当时还在保,售后免费给救活了。
最近又看到小米平板5的ubuntu已经接近完美了,又拿出来玩了。然后有人给搞了绕过小米刷机验证的firehose文件,这下可以放心大胆的搞机了
重新继续挖坑,在想是用mainline还是用hybris
-
鸟张大大加油。鸟张大大威武。
-
如果主线和hybris 功能完备程度差的不多就搞主线呗。顺便完善一下主线内核支持
-
-
按照以前libhybris的方式给nabu打包了一个包,但是开机后立刻重启,猜测是因为装了uefi导致。
方法有俩:- 改为原先的分区,需要卸载uefi,可能存在需要重新解锁的问题(还没有尝试绕过解锁验证的包)
- 使用mainline kernel,覆盖现有的linux,难点是需要重新去掉libhybris打包,还没研究过
-
@BirdZhang 是否可以编译支持用uefi 引导的安卓内核呢?
-
@kuailexs 可以,simpleinit支持安卓启动,但是要后面再试了,现在我刷回原版固件,用最普通的方式先把系统搞起来
-
报了一堆错误
make: Leaving directory '/home/bird/data/hadk_18.1/kernel/xiaomi/sm8150' Installing Kernel Modules make: Entering directory '/home/bird/data/hadk_18.1/kernel/xiaomi/sm8150' make[1]: Entering directory '/home/bird/data/hadk_18.1/out/target/product/nabu/obj/KERNEL_OBJ' INSTALL drivers/char/rdbg.ko INSTALL drivers/media/platform/msm/broadcast/tspp.ko INSTALL drivers/media/platform/msm/dvb/adapter/mpq-adapter.ko INSTALL drivers/media/platform/msm/dvb/demux/mpq-dmx-hw-plugin.ko INSTALL drivers/media/rc/msm-geni-ir.ko INSTALL drivers/media/usb/gspca/gspca_main.ko INSTALL drivers/mmc/core/mmc_test.ko INSTALL drivers/soc/qcom/llcc_perfmon.ko INSTALL drivers/video/backlight/lcd.ko INSTALL fs/efivarfs/efivarfs.ko INSTALL techpack/audio/asoc/codecs/cs35l41/cs35l41_dlkm.ko INSTALL techpack/audio/asoc/codecs/hdmi_dlkm.ko INSTALL techpack/audio/asoc/codecs/mbhc_dlkm.ko INSTALL techpack/audio/asoc/codecs/stub_dlkm.ko INSTALL techpack/audio/asoc/codecs/tas2557/tas2557_dlkm.ko INSTALL techpack/audio/asoc/codecs/tas256x/tas256x_dlkm.ko INSTALL techpack/audio/asoc/codecs/tfa98xx/tfa98xx_dlkm.ko INSTALL techpack/audio/asoc/codecs/wcd934x/wcd934x_dlkm.ko INSTALL techpack/audio/asoc/codecs/wcd9360/wcd9360_dlkm.ko INSTALL techpack/audio/asoc/codecs/wcd9xxx_dlkm.ko INSTALL techpack/audio/asoc/codecs/wcd_core_dlkm.ko INSTALL techpack/audio/asoc/codecs/wcd_cpe_dlkm.ko INSTALL techpack/audio/asoc/codecs/wcd_spi_dlkm.ko INSTALL techpack/audio/asoc/codecs/wsa881x_dlkm.ko INSTALL techpack/audio/asoc/machine_dlkm.ko INSTALL techpack/audio/asoc/platform_dlkm.ko INSTALL techpack/audio/dsp/adsp_loader_dlkm.ko INSTALL techpack/audio/dsp/codecs/native_dlkm.ko INSTALL techpack/audio/dsp/q6_dlkm.ko INSTALL techpack/audio/dsp/q6_notifier_dlkm.ko INSTALL techpack/audio/dsp/q6_pdr_dlkm.ko INSTALL techpack/audio/dsp/usf_dlkm.ko INSTALL techpack/audio/ipc/apr_dlkm.ko INSTALL techpack/audio/ipc/wglink_dlkm.ko INSTALL techpack/audio/soc/pinctrl_wcd_dlkm.ko INSTALL techpack/audio/soc/swr_ctrl_dlkm.ko INSTALL techpack/audio/soc/swr_dlkm.ko INSTALL techpack/data/drivers/rmnet/perf/rmnet_perf.ko INSTALL techpack/data/drivers/rmnet/shs/rmnet_shs.ko DEPMOD 4.14.180-perf-g512d604a7 make[1]: Leaving directory '/home/bird/data/hadk_18.1/out/target/product/nabu/obj/KERNEL_OBJ' make: Leaving directory '/home/bird/data/hadk_18.1/kernel/xiaomi/sm8150' depmod: WARNING: could not open modules.order at /home/bird/data/hadk_18.1/out/target/product/nabu/obj/PACKAGING/depmod_system_intermediates/lib/modules/0.0: No such file or directory depmod: WARNING: could not open modules.builtin at /home/bird/data/hadk_18.1/out/target/product/nabu/obj/PACKAGING/depmod_system_intermediates/lib/modules/0.0: No such file or directory [ 81% 238/293] build out/target/product/nabu/obj/PACKAGING/vendor-boot_intermediates/vendor-ramdisk.cpio.gz error: cannot open directory 'out/target/product/nabu/vendor-ramdisk' [ 81% 240/293] build out/target/product/nabu/obj/ROOT/hybris-boot_intermediates/init Fixing mount-points for device nabu 08:24:29 Disallowed PATH tool "cpio" used: []string{"cpio", "-H", "newc", "-o"} 08:24:29 See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information. [ 82% 241/293] Making initramfs : out/target/product/nabu/obj/ROOT/hybris-boot_intermediates/boot-initramfs.gz "cpio" is not allowed to be used. See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information. [ 82% 243/293] build out/target/product/nabu/obj/ROOT/hybris-recovery_intermediates/init Fixing mount-points for device nabu 08:24:29 Disallowed PATH tool "cpio" used: []string{"cpio", "-H", "newc", "-o"} 08:24:29 See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information. [ 83% 244/293] Making initramfs : out/target/product/nabu/obj/ROOT/hybris-recovery_intermediates/recovery-initramfs.gz "cpio" is not allowed to be used. See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information. [ 89% 261/293] dexpreopt boot jars arm64 FAILED: out/soong/nabu/dex_bootjars/system/framework/arm64/boot-WfdCommon.art out/soong/nabu/dex_bootjars/system/framework/arm64/boot-WfdCommon.oat out/soong/nabu/dex_bootjars/system/framework/arm64/boot-WfdCommon.vdex out/soong/nabu/dex_bootjars/system/framework/arm64/boot-ext.art out/soong/nabu/dex_bootjars/system/framework/arm64/boot-ext.oat out/soong/nabu/dex_bootjars/system/framework/arm64/boot-ext.vdex out/soong/nabu/dex_bootjars/system/framework/arm64/boot-framework-atb-backward-compatibility.art out/soong/nabu/dex_bootjars/system/framework/arm64/boot-framework-atb-backward-compatibility.oat out/soong/nabu/dex_bootjars/system/framework/arm64/boot-framework-atb-backward-compatibility.vdex out/soong/nabu/dex_bootjars/system/framework/arm64/boot-framework.art out/soong/nabu/dex_bootjars/system/framework/arm64/boot-framework.oat out/soong/nabu/dex_bootjars/system/framework/arm64/boot-framework.vdex out/soong/nabu/dex_bootjars/system/framework/arm64/boot-ims-common.art out/soong/nabu/dex_bootjars/system/framework/arm64/boot-ims-common.oat out/soong/nabu/dex_bootjars/system/framework/arm64/boot-ims-common.vdex out/soong/nabu/dex_bootjars/system/framework/arm64/boot-telephony-common.art out/soong/nabu/dex_bootjars/system/framework/arm64/boot-telephony-common.oat out/soong/nabu/dex_bootjars/system/framework/arm64/boot-telephony-common.vdex out/soong/nabu/dex_bootjars/system/framework/arm64/boot-telephony-ext.art out/soong/nabu/dex_bootjars/system/framework/arm64/boot-telephony-ext.oat out/soong/nabu/dex_bootjars/system/framework/arm64/boot-telephony-ext.vdex out/soong/nabu/dex_bootjars/system/framework/arm64/boot-voip-common.art out/soong/nabu/dex_bootjars/system/framework/arm64/boot-voip-common.oat out/soong/nabu/dex_bootjars/system/framework/arm64/boot-voip-common.vdex out/soong/nabu/dex_bootjars/system/framework/arm64/boot.invocation out/soong/nabu/dex_bootjars_unstripped/system/framework/arm64/boot-WfdCommon.oat out/soong/nabu/dex_bootjars_unstripped/system/framework/arm64/boot-ext.oat out/soong/nabu/dex_bootjars_unstripped/system/framework/arm64/boot-framework-atb-backward-compatibility.oat out/soong/nabu/dex_bootjars_unstripped/system/framework/arm64/boot-framework.oat out/soong/nabu/dex_bootjars_unstripped/system/framework/arm64/boot-ims-common.oat out/soong/nabu/dex_bootjars_unstripped/system/framework/arm64/boot-telephony-common.oat out/soong/nabu/dex_bootjars_unstripped/system/framework/arm64/boot-telephony-ext.oat out/soong/nabu/dex_bootjars_unstripped/system/framework/arm64/boot-voip-common.oat mkdir -p out/soong/nabu/dex_bootjars_unstripped/system/framework/arm64 && rm -f out/soong/nabu/dex_bootjars_unstripped/system/framework/arm64/*.art out/soong/nabu/dex_bootjars_unstripped/system/framework/arm64/*.oat out/soong/nabu/dex_bootjars_unstripped/system/framework/arm64/*.invocation && rm -f out/soong/nabu/dex_bootjars/system/framework/arm64/*.art out/soong/nabu/dex_bootjars/system/framework/arm64/*.oat out/soong/nabu/dex_bootjars/system/framework/arm64/*.invocation && ANDROID_LOG_TAGS="*:e" out/soong/host/linux-x86/bin/dex2oatd64 --avoid-storing-invocation --write-invocation-to=out/soong/nabu/dex_bootjars/system/framework/arm64/boot.invocation --runtime-arg -Xms64m --runtime-arg -Xmx64m --compiler-filter=speed-profile --profile-file=out/soong/nabu/dex_bootjars/boot.prof --dirty-image-objects=frameworks/base/config/dirty-image-objects --runtime-arg -Xbootclasspath:out/soong/nabu/dex_artjars_input/core-oj.jar:out/soong/nabu/dex_artjars_input/core-libart.jar:out/soong/nabu/dex_artjars_input/core-icu4j.jar:out/soong/nabu/dex_artjars_input/okhttp.jar:out/soong/nabu/dex_artjars_input/bouncycastle.jar:out/soong/nabu/dex_artjars_input/apache-xml.jar:out/soong/nabu/dex_bootjars_input/framework.jar:out/soong/nabu/dex_bootjars_input/ext.jar:out/soong/nabu/dex_bootjars_input/telephony-common.jar:out/soong/nabu/dex_bootjars_input/voip-common.jar:out/soong/nabu/dex_bootjars_input/ims-common.jar:out/soong/nabu/dex_bootjars_input/framework-atb-backward-compatibility.jar:out/soong/nabu/dex_bootjars_input/telephony-ext.jar:out/soong/nabu/dex_bootjars_input/WfdCommon.jar --runtime-arg -Xbootclasspath-locations:/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/core-icu4j.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/framework-atb-backward-compatibility.jar:/system/framework/telephony-ext.jar:/system/framework/WfdCommon.jar --boot-image=out/soong/nabu/dex_artjars/apex/com.android.art/javalib/boot.art --dex-file=out/soong/nabu/dex_bootjars_input/framework.jar --dex-file=out/soong/nabu/dex_bootjars_input/ext.jar --dex-file=out/soong/nabu/dex_bootjars_input/telephony-common.jar --dex-file=out/soong/nabu/dex_bootjars_input/voip-common.jar --dex-file=out/soong/nabu/dex_bootjars_input/ims-common.jar --dex-file=out/soong/nabu/dex_bootjars_input/framework-atb-backward-compatibility.jar --dex-file=out/soong/nabu/dex_bootjars_input/telephony-ext.jar --dex-file=out/soong/nabu/dex_bootjars_input/WfdCommon.jar --dex-location=/system/framework/framework.jar --dex-location=/system/framework/ext.jar --dex-location=/system/framework/telephony-common.jar --dex-location=/system/framework/voip-common.jar --dex-location=/system/framework/ims-common.jar --dex-location=/system/framework/framework-atb-backward-compatibility.jar --dex-location=/system/framework/telephony-ext.jar --dex-location=/system/framework/WfdCommon.jar --generate-debug-info --generate-build-id --image-format=lz4hc --oat-symbols=out/soong/nabu/dex_bootjars_unstripped/system/framework/arm64/boot.oat --strip --oat-file=out/soong/nabu/dex_bootjars/system/framework/arm64/boot.oat --oat-location=out/soong/nabu/dex_bootjars/system/framework/boot.oat --image=out/soong/nabu/dex_bootjars/system/framework/arm64/boot.art --instruction-set=arm64 --instruction-set-variant=generic --instruction-set-features=default --android-root=out/empty --no-inline-from=core-oj.jar --force-determinism --abort-on-hard-verifier-error --generate-mini-debug-info || ( echo 'ERROR: Dex2oat failed to compile a boot image.It is likely that the boot classpath is inconsistent.Rebuild with ART_BOOT_IMAGE_EXTRA_ARGS="--runtime-arg -verbose:verifier" to see verification errors.' ; false ) dex2oatd64 F 03-03 16:26:40 131014 131014 hiddenapi_flags.h:187] Check failed: dex_flags_ == (dex_flags_ & kValueBitMask) | (dex_flags_ & kDomainApiBitMask) (dex_flags_=48, (dex_flags_ & kValueBitMask) | (dex_flags_ & kDomainApiBitMask)=16) Runtime aborting... (Runtime does not yet exist!) native: #00 pc 0000000000956866 /home/bird/data/hadk_18.1/out/soong/host/linux-x86/lib64/libartd.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+134) native: #01 pc 0000000000a7434a /home/bird/data/hadk_18.1/out/soong/host/linux-x86/lib64/libartd.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+362) native: #02 pc 0000000000a5f517 /home/bird/data/hadk_18.1/out/soong/host/linux-x86/lib64/libartd.so (art::Runtime::Abort(char const*)+567) native: art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool) native: art/runtime/native_stack_dump.cc:337 native: #03 pc 000000000002f83c /home/bird/data/hadk_18.1/out/soong/host/linux-x86/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+60) native: std::__1::__function::__value_func<void (char const*)>::operator()(char const*&&) const native: external/libcxx/include/functional:1799 native: std::__1::function<void (char const*)>::operator()(char const*) const native: external/libcxx/include/functional:2347 native: android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::operator()(char const*) const native: system/core/base/logging.cpp:421 native: android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*) native: system/core/base/logging.cpp:421 native: #04 pc 000000000002f069 /home/bird/data/hadk_18.1/out/soong/host/linux-x86/lib64/libbase.so (android::base::LogMessage::~LogMessage()+329) native: android::base::LogMessage::~LogMessage() native: system/core/base/logging.cpp:509 native: #05 pc 000000000002a53e /home/bird/data/hadk_18.1/out/soong/host/linux-x86/lib64/libdexfiled.so (art::hiddenapi::ApiList::ApiList(unsigned int)+350) native: art::hiddenapi::ApiList::ApiList(unsigned int) native: art/libartbase/base/hiddenapi_flags.h:187 native: #06 pc 000000000003d55a /home/bird/data/hadk_18.1/out/soong/host/linux-x86/lib64/libdexfiled.so (art::dex::DexFileVerifier::CheckIntraHiddenapiClassData()::$_2::operator()(art::ClassAccessor::BaseItem const&, char const*) const+106) native: art::dex::DexFileVerifier::CheckIntraHiddenapiClassData()::$_2::operator()(art::ClassAccessor::BaseItem const&, char const*) const native: art/libdexfile/dex/dex_file_verifier.cc:1933 native: #07 pc 0000000000037495 /home/bird/data/hadk_18.1/out/soong/host/linux-x86/lib64/libdexfiled.so (art::dex::DexFileVerifier::CheckIntraHiddenapiClassData()+853) native: art::dex::DexFileVerifier::CheckIntraHiddenapiClassData()::$_4::operator()(art::ClassAccessor::Method const&) const native: art/libdexfile/dex/dex_file_verifier.cc:1941 native: void art::ClassAccessor::VisitMembers<art::ClassAccessor::Method, art::dex::DexFileVerifier::CheckIntraHiddenapiClassData()::$_4>(unsigned long, art::dex::DexFileVerifier::CheckIntraHiddenapiClassData()::$_4 const&, art::ClassAccessor::Method*) const native: art/libdexfile/dex/class_accessor-inl.h:97 native: void art::ClassAccessor::VisitFieldsAndMethods<art::dex::DexFileVerifier::CheckIntraHiddenapiClassData()::$_3, art::dex::DexFileVerifier::CheckIntraHiddenapiClassData()::$_3, art::dex::DexFileVerifier::CheckIntraHiddenapiClassData()::$_4, art::dex::DexFileVerifier::CheckIntraHiddenapiClassData()::$_4>(art::dex::DexFileVerifier::CheckIntraHiddenapiClassData()::$_3 const&, art::dex::DexFileVerifier::CheckIntraHiddenapiClassData()::$_3 const&, art::dex::DexFileVerifier::CheckIntraHiddenapiClassData()::$_4 const&, art::dex::DexFileVerifier::CheckIntraHiddenapiClassData()::$_4 const&) const native: art/libdexfile/dex/class_accessor-inl.h:118 native: art::dex::DexFileVerifier::CheckIntraHiddenapiClassData() native: art/libdexfile/dex/dex_file_verifier.cc:1943 native: #08 pc 000000000004104c /home/bird/data/hadk_18.1/out/soong/host/linux-x86/lib64/libdexfiled.so (bool art::dex::DexFileVerifier::CheckIntraSectionIterate<(art::DexFile::MapItemType)61440>(unsigned long, unsigned int)+172) native: bool art::dex::DexFileVerifier::CheckIntraSectionIterate<(art::DexFile::MapItemType)61440>(unsigned long, unsigned int) native: art/libdexfile/dex/dex_file_verifier.cc:2186 native: #09 pc 0000000000037bc8 /home/bird/data/hadk_18.1/out/soong/host/linux-x86/lib64/libdexfiled.so (art::dex::DexFileVerifier::CheckIntraSection()+792) native: bool art::dex::DexFileVerifier::CheckIntraDataSection<(art::DexFile::MapItemType)61440>(unsigned long, unsigned int) native: art/libdexfile/dex/dex_file_verifier.cc:2282 native: art::dex::DexFileVerifier::CheckIntraSection() native: art/libdexfile/dex/dex_file_verifier.cc:2405 native: #10 pc 000000000003c8a6 /home/bird/data/hadk_18.1/out/soong/host/linux-x86/lib64/libdexfiled.so (art::dex::DexFileVerifier::Verify()+214) native: art::dex::DexFileVerifier::Verify() native: art/libdexfile/dex/dex_file_verifier.cc:3321 native: #11 pc 000000000003d0cb /home/bird/data/hadk_18.1/out/soong/host/linux-x86/lib64/libdexfiled.so (art::dex::Verify(art::DexFile const*, unsigned char const*, unsigned long, char const*, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*)+203) native: art::dex::Verify(art::DexFile const*, unsigned char const*, unsigned long, char const*, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) native: art/libdexfile/dex/dex_file_verifier.cc:3694 native: #12 pc 000000000002cb5e /home/bird/data/hadk_18.1/out/soong/host/linux-x86/lib64/libdexfiled.so (art::DexFileLoader::OpenCommon(unsigned char const*, unsigned long, unsigned char const*, unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int, art::OatDexFile const*, bool, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, std::__1::unique_ptr<art::DexFileContainer, std::__1::default_delete<art::DexFileContainer> >, art::DexFileLoader::VerifyResult*)+686) native: art::DexFileLoader::OpenCommon(unsigned char const*, unsigned long, unsigned char const*, unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int, art::OatDexFile const*, bool, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, std::__1::unique_ptr<art::DexFileContainer, std::__1::default_delete<art::DexFileContainer> >, art::DexFileLoader::VerifyResult*) native: art/libdexfile/dex/dex_file_loader.cc:373 native: #13 pc 000000000001f410 /home/bird/data/hadk_18.1/out/soong/host/linux-x86/lib64/libdexfiled.so (art::ArtDexFileLoader::Open(unsigned char const*, unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int, art::OatDexFile const*, bool, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, std::__1::unique_ptr<art::DexFileContainer, std::__1::default_delete<art::DexFileContainer> >) const+320) native: art::ArtDexFileLoader::OpenCommon(unsigned char const*, unsigned long, unsigned char const*, unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int, art::OatDexFile const*, bool, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, std::__1::unique_ptr<art::DexFileContainer, std::__1::default_delete<art::DexFileContainer> >, art::DexFileLoader::VerifyResult*) native: art/libdexfile/dex/art_dex_file_loader.cc:555 native: art::ArtDexFileLoader::Open(unsigned char const*, unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int, art::OatDexFile const*, bool, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, std::__1::unique_ptr<art::DexFileContainer, std::__1::default_delete<art::DexFileContainer> >) const native: art/libdexfile/dex/art_dex_file_loader.cc:170 native: #14 pc 00000000001b4037 /home/bird/data/hadk_18.1/out/soong/host/linux-x86/bin/dex2oatd64 (art::linker::OatWriter::OpenDexFiles(unix_file::FdFile*, bool, std::__1::vector<art::MemMap, std::__1::allocator<art::MemMap> >*, std::__1::vector<std::__1::unique_ptr<art::DexFile const, std::__1::default_delete<art::DexFile const> >, std::__1::allocator<std::__1::unique_ptr<art::DexFile const, std::__1::default_delete<art::DexFile const> > > >*)+903) native: #15 pc 00000000001b2c41 /home/bird/data/hadk_18.1/out/soong/host/linux-x86/bin/dex2oatd64 (art::linker::OatWriter::WriteAndOpenDexFiles(unix_file::FdFile*, bool, bool, art::linker::CopyOption, std::__1::vector<art::MemMap, std::__1::allocator<art::MemMap> >*, std::__1::vector<std::__1::unique_ptr<art::DexFile const, std::__1::default_delete<art::DexFile const> >, std::__1::allocator<std::__1::unique_ptr<art::DexFile const, std::__1::default_delete<art::DexFile const> > > >*)+257) native: #16 pc 00000000000acaf2 /home/bird/data/hadk_18.1/out/soong/host/linux-x86/bin/dex2oatd64 (art::Dex2Oat::Setup()+546) native: #17 pc 00000000000a7657 /home/bird/data/hadk_18.1/out/soong/host/linux-x86/bin/dex2oatd64 (main+999) native: art::linker::OatWriter::OpenDexFiles(unix_file::FdFile*, bool, std::__1::vector<art::MemMap, std::__1::allocator<art::MemMap> >*, std::__1::vector<std::__1::unique_ptr<art::DexFile const, std::__1::default_delete<art::DexFile const> >, std::__1::allocator<std::__1::unique_ptr<art::DexFile const, std::__1::default_delete<art::DexFile const> > > >*) native: art/dex2oat/linker/oat_writer.cc:3709 native: art::linker::OatWriter::WriteAndOpenDexFiles(unix_file::FdFile*, bool, bool, art::linker::CopyOption, std::__1::vector<art::MemMap, std::__1::allocator<art::MemMap> >*, std::__1::vector<std::__1::unique_ptr<art::DexFile const, std::__1::default_delete<art::DexFile const> >, std::__1::allocator<std::__1::unique_ptr<art::DexFile const, std::__1::default_delete<art::DexFile const> > > >*) native: art/dex2oat/linker/oat_writer.cc:685 native: #18 pc 0000000000029d8f /usr/lib/x86_64-linux-gnu/libc.so.6 (???) native: #19 pc 0000000000029e3f /usr/lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+127) native: __libc_start_main_impl native: ./csu/../csu/libc-start.c:392 native: #20 pc 000000000005f978 /home/bird/data/hadk_18.1/out/soong/host/linux-x86/bin/dex2oatd64 (???) Aborted (core dumped) ERROR: Dex2oat failed to compile a boot image.It is likely that the boot classpath is inconsistent.Rebuild with ART_BOOT_IMAGE_EXTRA_ARGS="--runtime-arg -verbose:verifier" to see verification errors. 08:26:45 ninja failed with: exit status 1 #### failed to build some targets (22:39 (mm:ss)) #### bird@ubuntu:~/data/hadk_18.1$
-
@BirdZhang 在 开个贴,记录给小米平板5移植sailfishos 中说:
报了一堆错误
原来是重新同步源码后忘记打patch了
(导致多了1万多模块要编译
)
我就说怎么3个月前能编译,现在怎么就不行了呢
-
然而还是启动不了,直接跳到miui的recovery了,清空了dtbo就没法启动了
准备试试mainline了,讲道理kernel搞好,只需要rootfs和firmware就行了,适配起来更简单