T42 | <hacker12455> is there a list of things one should do on a hybris 18.1 port or do I just the same things as https://github.com/mer-hybris/hadk-faq#id24? | 09:47 |
---|---|---|
T42 | <hacker12455> and is this still needed? | 09:52 |
T42 | <hacker12455> ` | 09:52 |
T42 | <hacker12455> You need to export TEMPORARY_DISABLE_PATH_RESTRICTIONS=true before building android part otherwise hybris-boot.img will not include hybris initramfs` | 09:52 |
T42 | <hacker12455> `You need to export TEMPORARY_DISABLE_PATH_RESTRICTIONS=true before building android part otherwise hybris-boot.img will not include hybris initramfs` (edited) | 09:52 |
T42 | <hacker12455> ``` | 09:53 |
T42 | <hacker12455> HABUILD_SDK [cedric] sailfish@sailfish-build:~/hadk/out/target/product/cedric$ abootimg -i hybris-boot.img | 09:53 |
T42 | <hacker12455> | 09:53 |
T42 | <hacker12455> Android Boot Image Info: | 09:53 |
T42 | <hacker12455> | 09:53 |
T42 | <hacker12455> * file name = hybris-boot.img | 09:53 |
T42 | <hacker12455> | 09:53 |
T42 | <hacker12455> * image size = 12922880 bytes (12.32 MB) | 09:53 |
T42 | <hacker12455> page size = 2048 bytes | 09:53 |
T42 | <hacker12455> | 09:53 |
T42 | <hacker12455> * Boot Name = "" | 09:53 |
T42 | <hacker12455> | 09:53 |
T42 | <hacker12455> * kernel size = 10529616 bytes (10.04 MB) | 09:53 |
T42 | <hacker12455> ramdisk size = 1291079 bytes (1.23 MB) | 09:53 |
T42 | <hacker12455> | 09:53 |
T42 | <hacker12455> * load addresses: | 09:53 |
T42 | <hacker12455> kernel: 0x80008000 | 09:53 |
T42 | <hacker12455> ramdisk: 0x81000000 | 09:53 |
T42 | <hacker12455> tags: 0x80000100 | 09:53 |
T42 | <hacker12455> | 09:53 |
T42 | <hacker12455> * cmdline = console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=30 msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 earlycon=msm_hsl_uart,0x78B0000 vmalloc=400M loop.max_part=7 | 09:53 |
T42 | <hacker12455> | 09:53 |
T42 | <hacker12455> * id = 0x59ea9092 0x2e15b7d1 0x88bdd90d 0x068e40b8 0x596ce420 0x00000000 0x00000000 0x00000000``` | 09:53 |
mal | you need to do the things from hybris-17.1 instructions, also the libhybris cloning from 16.0 | 10:29 |
T42 | <hacker12455> I assume I change this to 11? '%define android_version_major 10' | 11:25 |
T42 | <hacker12455> weird | 12:00 |
T42 | <hacker12455> `PlatformSDK [sailfish@sailfish-build hadk]$ rpm/dhd/helpers/add_new_device.sh | 12:00 |
T42 | <hacker12455> Error: $DEVICE is undefined. Please run hadk` | 12:01 |
T42 | <hacker12455> ``` | 12:02 |
T42 | <hacker12455> GNU nano 7.2 .mersdkubu.profile | 12:02 |
T42 | <hacker12455> function hadk() { source $HOME/.hadk.env; echo "Env setup for $DEVICE"; } | 12:02 |
T42 | <hacker12455> export PS1="HABUILD_SDK [\${DEVICE}] $PS1" | 12:02 |
T42 | <hacker12455> hadk``` | 12:02 |
T42 | <hacker12455> on host | 12:02 |
T42 | <hacker12455> ok if I run the commands themselves manually they work | 12:03 |
T42 | <hacker12455> https://bpa.st/VOYA | 12:21 |
T42 | <hacker12455> now I get this when building droid-hal | 12:21 |
T42 | <hacker12455> ah I see | 12:30 |
T42 | <hacker12455> the hell | 12:31 |
T42 | <hacker12455> config_dummy is set to no in defconfig | 12:32 |
T42 | <hacker12455> if I check it against the outputted kernel config it shows no errors | 12:34 |
mal | are you sure you edited correct defconfig file? | 12:35 |
T42 | <hacker12455> yhes | 12:35 |
T42 | <hacker12455> *yes | 12:35 |
mal | and rebuilt kernel after editing it | 12:35 |
T42 | <hacker12455> yes | 12:35 |
T42 | <hacker12455> https://bpa.st/BEFQ | 12:35 |
T42 | <hacker12455> rebuilding again just to sanity check | 12:36 |
mal | you can see it finds two files, maybe one is different | 12:37 |
mal | that earlier log had ./out/target/product/cedric/obj/KERNEL_OBJ/.config ./out/target/product/cedric/obj/RECOVERY_KERNEL_OBJ/.config | 12:37 |
T42 | <hacker12455> oh | 12:39 |
T42 | <hacker12455> right | 12:41 |
T42 | <hacker12455> it has a separate defconfig for recovery | 12:41 |
T42 | <hacker12455> ``` | 12:56 |
T42 | <hacker12455> + rm -f /home/sailfish/hadk/installroot/usr/libexec/droid-hybris/system/lib/libdl.so /home/sailfish/hadk/installroot/usr/libexec/droid-hybris/system/lib/libdl_android.so /home/sailfish/hadk/installroot/usr/libexec/droid-hybris/system/lib/libc.so /home/sailfish/hadk/installroot/usr/libexec/droid-hybris/system/lib/libm.so | 12:56 |
T42 | <hacker12455> + cp -a ./out/target/product/cedric/apex/com.android.runtime/lib/bionic/libdl.so ./out/target/product/cedric/apex/com.android.runtime/lib/bionic/libdl_android.so ./out/target/product/cedric/apex/com.android.runtime/lib/bionic/libc.so ./out/target/product/cedric/apex/com.android.runtime/lib/bionic/libm.so /home/sailfish/hadk/installroot/usr/libexec/droid-hybris/system/lib | 12:56 |
T42 | <hacker12455> cp: cannot stat './out/target/product/cedric/apex/com.android.runtime/lib/bionic/libdl.so': No such file or directory | 12:56 |
T42 | <hacker12455> cp: cannot stat './out/target/product/cedric/apex/com.android.runtime/lib/bionic/libdl_android.so': No such file or directory | 12:56 |
T42 | <hacker12455> cp: cannot stat './out/target/product/cedric/apex/com.android.runtime/lib/bionic/libc.so': No such file or directory | 12:56 |
T42 | <hacker12455> cp: cannot stat './out/target/product/cedric/apex/com.android.runtime/lib/bionic/libm.so': No such file or directory``` | 12:56 |
T42 | <hacker12455> ``` | 13:04 |
T42 | <hacker12455> ++ awk '/PLATFORM_VERSION([A-Z0-9.]*|_LAST_STABLE) := ([0-9.]+)/ { print $3; }' | 13:04 |
T42 | <hacker12455> ++ awk -F. '{print $1}' | 13:04 |
T42 | <hacker12455> + android_version_major=11``` | 13:04 |
T42 | <hacker12455> in log | 13:04 |
T42 | <hacker12455> unless I need to set the major android version in .spec to 10? | 13:29 |
gv2 | hey mal, is hybris-boot/recovery.img supposed to start the telnet server when there is no .stowawys at all? | 15:54 |
gv2 | when i boot the image it hangs for a minute~ then reboots, and it makes no usb connection to the pc. Trying to figure out if there is something wrong with the kernel | 15:56 |
mal | not sure what you mean hybris-boot.img from community builds has telnet at least there is certain type of issue | 16:00 |
mal | what are you trying to debug? | 16:00 |
mal | 1 minute reboot usually means usb setup fails | 16:00 |
mal | gv2: which device? | 16:01 |
gv2 | ih i forgot to mention. I am currently making a new port. For xiaomi mi 8 (aka dipper) | 16:01 |
gv2 | With kernel 4.9 | 16:01 |
gv2 | https://github.com/lineageos/android_kernel_xiaomi_sdm845 | 16:01 |
mal | have you defined there in case those are not there already https://github.com/mer-hybris/android_kernel_sony_msm/blob/hybris-sony-aosp/LA.UM.9.12.r1/arch/arm64/configs/aosp_lena_pdx213_defconfig#L932 | 16:01 |
mal | those 3 usb related ones | 16:01 |
gv2 | oh i think i didin't, let me add them real quick | 16:02 |
gv2 | rndis_host 3-1:1.0 usb0: register 'rndis_host' at usb-0000:00:14.0-1, RNDIS device | 16:12 |
gv2 | time to wipe i guess :) | 16:12 |
gv2 | thanks | 16:12 |
T42 | <hacker12455> I wonder (re @hacker12455: + rm -f /home/sailfi...) | 16:41 |
T42 | <hacker12455> why is it trying to look in lib if I set it to be a 64 bit port | 16:41 |
T42 | <hacker12455> wonder if this would work | 16:53 |
T42 | <hacker12455> https://github.com/mer-hybris/droid-hal-device/pull/337 | 16:53 |
T42 | <Verevka86> Hello everyone, tell me why my sdk is no longer updated from version 4.5.0.18 to 4.6.0.19? | 17:20 |
T42 | <hacker12455> yeah I saw the same behavior (re @Verevka86: Hello everyone, tell...) | 17:24 |
T42 | <Verevka86> but for now it is being updated to 4.5.0.25, perhaps it should be done one by one π (re @hacker12455: yeah I saw the same ...) | 17:25 |
T42 | <hacker12455> hm can you even build the newest sfos release with it then? | 17:27 |
T42 | <hacker12455> 4.6.0 | 17:27 |
T42 | <Verevka86> Nope, it canβt be updated to 4.6 ( | 17:28 |
T42 | <Verevka86> what is the next version after 4.5.0.25? | 17:29 |
T42 | <hacker12455> is there even any? | 17:33 |
T42 | <hacker12455> https://irc.thaodan.de/.imgstore/4bbc123c/file_6374.jpg | 17:33 |
T42 | <hacker12455> forum lists 4.5.0.24 | 17:33 |
T42 | <hacker12455> and then 4.6.0.11 | 17:33 |
T42 | <hacker12455> also | 17:34 |
T42 | <hacker12455> `Today (May 28th) at 13:00 UTC we published an update to the Early Access Build Targets and Emulator. These now match the Sailfish OS release 4.6.0.11 (Sauna).` | 17:34 |
T42 | <Verevka86> targets and toolings are on the site, but here's how to update the rest of the question π€· (re @hacker12455: and then 4.6.0.11) | 17:40 |
T42 | <hacker12455> yeah | 17:40 |
T42 | <hacker12455> I did the same thing, grabbed 4.6.0 target and tooling | 17:41 |
T42 | <hacker12455> then I see SDK is at 4.5.0.18 | 17:41 |
T42 | <hacker12455> https://docs.sailfishos.org/Tools/Sailfish_SDK/Early_Access/ | 17:44 |
T42 | <hacker12455> guess this mismatch is why I get this | 17:45 |
T42 | <hacker12455> ``` | 17:45 |
T42 | <hacker12455> error: Failed build dependencies: | 17:45 |
T42 | <hacker12455> droid-config is needed by droid-hal-version-cedric-0.0.1-202407291740.aarch64 | 17:45 |
T42 | <hacker12455> droid-config-preinit-plugins is needed by droid-hal-version-cedric-0.0.1-202407291740.aarch64 | 17:45 |
T42 | <hacker12455> droid-config-pulseaudio-settings is needed by droid-hal-version-cedric-0.0.1-202407291740.aarch64 | 17:45 |
T42 | <hacker12455> droid-config-sailfish is needed by droid-hal-version-cedric-0.0.1-202407291740.aarch64 | 17:45 |
T42 | <hacker12455> droid-hal is needed by droid-hal-version-cedric-0.0.1-202407291740.aarch64 | 17:45 |
T42 | <hacker12455> droid-hal-kernel is needed by droid-hal-version-cedric-0.0.1-202407291740.aarch64 | 17:45 |
T42 | <hacker12455> hybris-libsensorfw-qt5 is needed by droid-hal-version-cedric-0.0.1-202407291740.aarch64 | 17:45 |
T42 | <hacker12455> mce-plugin-libhybris is needed by droid-hal-version-cedric-0.0.1-202407291740.aarch64 | 17:45 |
T42 | <hacker12455> ngfd-plugin-native-vibrator is needed by droid-hal-version-cedric-0.0.1-202407291740.aarch64 | 17:45 |
T42 | <hacker12455> pulseaudio-modules-droid is needed by droid-hal-version-cedric-0.0.1-202407291740.aarch64 | 17:45 |
T42 | <hacker12455> qt5-qpa-hwcomposer-plugin is needed by droid-hal-version-cedric-0.0.1-202407291740.aarch64 | 17:45 |
T42 | <hacker12455> qtscenegraph-adaptation is needed by droid-hal-version-cedric-0.0.1-202407291740.aarch64``` | 17:45 |
mal | check the actual build log droid-hal.log or something | 17:48 |
mal | also please don't paste a lot of lines here | 17:48 |
mal | use some paste service when you want show many lines | 17:49 |
T42 | <Verevka86> 4.5.0.25 updated to 4.6.0.11 π (re @hacker12455: forum lists 4.5.0.24) | 17:58 |
T42 | <hacker12455> sdk got updated on the normal branch? | 18:16 |
T42 | <Verevka86> Yes (re @hacker12455: sdk got updated on t...) | 18:29 |
T42 | <hacker12455> yeah updated to 4.6.0.11 | 19:13 |
T42 | <hacker12455> well so far the created rootfs is dead | 21:25 |
T42 | <hacker12455> stays on splash | 21:25 |
T42 | <hacker12455> no reaction with led | 21:25 |
T42 | <hacker12455> added `selinux=1 androidboot.selinux=permissive enforcing=0` rto cmdline | 21:25 |
T42 | <hacker12455> wait | 21:25 |
mal | do you have telnet? | 21:25 |
T42 | <hacker12455> nope | 21:26 |
T42 | <hacker12455> nothing | 21:26 |
mal | no usb interface at all? | 21:26 |
T42 | <hacker12455> nopp | 21:26 |
T42 | <hacker12455> *nope | 21:26 |
mal | but it doesn't reboot? | 21:26 |
T42 | <hacker12455> yeah | 21:27 |
T42 | <hacker12455> just sits on splash | 21:27 |
T42 | <hacker12455> maybe needs some commits reverted? | 21:28 |
mal | can you check that you have usb related options in defconfig | 21:28 |
mal | https://github.com/mer-hybris/android_kernel_sony_msm/blob/hybris-sony-aosp/LA.UM.9.12.r1/arch/arm64/configs/aosp_lena_pdx213_defconfig#L932 | 21:28 |
T42 | <hacker12455> nope, I have this | 21:30 |
T42 | <hacker12455> https://bpa.st/YCGQ | 21:30 |
mal | which device is that? | 21:32 |
mal | is it some older one? | 21:33 |
mal | maybe it doesn't use configfs for usb then | 21:34 |
T42 | <hacker12455> yep (re @SailfishFreenodeIRCBridgeBot: <mal>is it some olde...) | 21:34 |
T42 | <hacker12455> motorola moto g5 | 21:34 |
T42 | <hacker12455> I had 4.3.0.12 ported to it 3 years ago on a hybris 17.1 base, decided to try switching it to a hybris 18.1 base and updating the sailfishos version to 4.6.0.11 | 21:35 |
T42 | <elros34> something didn't work on hybris 17 base? I suggest to upate to latest release | 21:37 |
mal | if you still have the old sources maybe check the kernel defconfig changes you had there? | 21:38 |
T42 | <hacker12455> wanted to use a newer base as the 17.1 release is pretty outdated, plus there were some issues with getting the LOS zips for it | 21:38 |
T42 | <hacker12455> also had USB issues on 17.1 | 21:39 |
T42 | <hacker12455> so thought if I already want to go to 4.6.0 I might as well update the base to something relatively recent | 21:42 |
T42 | <elros34> ok just update to latest release instead some Early access one | 21:47 |
T42 | <hacker12455> so 4.5.0.19? | 21:48 |
T42 | <elros34> latest is 4.6.0.13 | 21:49 |
T42 | <hacker12455> hm | 21:49 |
T42 | <hacker12455> well I don't see a 4.6.0.13 SDK target or tooling | 21:51 |
T42 | <hacker12455> unless you want me to just upgrade the platform sdk? | 21:51 |
mal | 4.6.0.11 is available here https://releases.sailfishos.org/sdk/targets/ | 21:54 |
T42 | <elros34> I meant RELEASE=4.6.0.13 instead 4.6.0.11 you mentioned. Minor version difference for sdk irrelevant | 21:54 |
T42 | <hacker12455> ahh | 21:54 |
T42 | <hacker12455> yeah I have the 4.6.0.11 tooling and targets | 21:54 |
T42 | <hacker12455> let me rebuild | 21:54 |
mal | maybe try to just flash the kernel first, after wiping userdata, that way we can see if you can get to the first telnet | 21:56 |
T42 | <hacker12455> with or without any selinux options on cmdline? | 21:59 |
T42 | <elros34> irrelevant | 21:59 |
T42 | <hacker12455> yeah it doesn' | 22:02 |
T42 | <hacker12455> *doesn't seem to be doing anything | 22:02 |
mal | so no reboot after 1 minute for example? | 22:03 |
T42 | <hacker12455> does not look like it | 22:04 |
T42 | <elros34> do you have formated /data? | 22:05 |
T42 | <hacker12455> yes | 22:06 |
T42 | <hacker12455> hang on | 22:09 |
T42 | <hacker12455> think I know why it doesn't boot | 22:09 |
T42 | <elros34> do you even check host dmesg orjust watch screen? | 22:10 |
T42 | <hacker12455> I check host dmesg | 22:10 |
T42 | <hacker12455> I'll test something in the morning | 22:11 |
T42 | <hacker12455> stopping for now | 22:11 |
T42 | <hacker12455> haha | 22:27 |
T42 | <hacker12455> it worked | 22:27 |
T42 | <hacker12455> needed to revert 3 commits | 22:27 |
T42 | <hacker12455> `[30925.171189] [ T82087] usb 1-10: Product: Failed to boot init in real rootfs` | 22:27 |
T42 | <hacker12455> right now after installing the rootfs I get a fast blinking LED | 22:39 |
T42 | <hacker12455> https://bpa.st/VJRQ | 22:41 |
T42 | <hacker12455> that's still on 4.6.0.11 | 22:41 |
T42 | <hacker12455> just keeps blinking away so far | 22:45 |
T42 | <hacker12455> didn't see a reboot | 22:45 |
T42 | <hacker12455> display is black | 22:49 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!