Thursday, 2024-05-30

T42_<Tailsthefoz> Damn :(11:43
malthe branch you linked was terrible to read, so many unrelated changes mostly to logging that finding the actual relevant changes was too much work11:46
T42_<Tailsthefoz> Yeah my bad (re @SailfishFreenodeIRCBridgeBot: <mal>the branch you ...)11:46
T42_<Tailsthefoz> I was trying to figure out why it refused to use 1.6, which turned out to be because I wasn't compiling libgbinder-radio right11:47
tohaturokI faced another issue when built droid-hal-img-boot. Unfortunately, I can't figure out how to fix that and what wrong. There is the log from executed script https://pastebin.com/svHka2kq. Can someone tell me what I'm doing wrong?11:48
malshow the droid configs spec file11:54
tohaturokI found droid-config spec file at hybris/rpm/droid-config-xqcq54.spec. Here it is12:01
tohaturokhttps://pastebin.com/XkYh4nfd12:02
malit's the common inc which has most things https://github.com/mer-hybris/droid-config-sony-murray/blob/master/droid-config-common.inc#L1412:04
maldoes it have those lines12:04
T42_<elros34> tohaturok link to real files instad pastebins if files are in github with all your changes: https://github.com/SailfishOS-SonyXperia/droid-config-sony-nagara12:08
tohaturokyes, https://github.com/SailfishOS-SonyXperia/droid-config-sony-nagara/blob/47bb87af699e36b949cce9d4e10939f722ac77e6/droid-config-common.inc#L1212:09
tohaturokI didn't change anything12:10
T42_<elros34> did you build mw without errors?12:11
tohaturokyes12:12
T42_<elros34> what about if yo uinstall droid-config manually: "sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R zypper --plus-repo $ANDROID_ROOT/droid-local-repo/$DEVICE in droid-config-$DEVICE"12:20
tohaturoklet me try12:25
tohaturokelros34: Is it right command? I got help for zypper12:28
tohaturoksorry my bad, didn't copy all command12:29
T42_<elros34> yeah this is nightmare command chain12:30
tohaturokgot the next error Problem: nothing provides 'droid-system-pdx224-xqcq54' needed by the to be installed droid-config-xqcq54-1-202405301159.aarch6412:30
tohaturokit ask me to solve problem with two solution12:31
tohaturokSolution 1: do not install droid-config-xqcq54-1-202405301159.aarch6412:31
tohaturokSolution 2: break droid-config-xqcq54-1-202405301159.aarch64 by ignoring some of its dependencies12:31
T42_<elros34> try 212:31
malyou haven't built droid-system yet?12:32
tohaturoklooks like it completed succesfully12:32
tohaturokAs far as I understand yes, it wasn't built12:33
tohaturokI follow this instruction and see the next command build droid-system https://docs.sailfishos.org/Develop/HW_Adaptation/Sailfish_X_Xperia_Android_11_Build_and_Flash/12:34
tohaturokrpm/dhd/helpers/build_packages.sh --mw=https://github.com/mer-hybris/droid-system-sony-template --spec=rpm/droid-system-$HABUILD_DEVICE.spec --spec=rpm/droid-system-$HABUILD_DEVICE-$DEVICE.spec12:34
T42_<elros34> try also "rm ofono-configs-binder" instead "in droid-config-$DEVICE" in above sb2 command12:35
tohaturokAm I understand it correctly?12:35
T42_<elros34> I guess nothing bad would happen if you try build droid-system now, at worst it will fail12:36
T42_<elros34> this is still android 11 instruction, 13 will probably appears soon12:37
tohaturokon "rm ofono-configs-binder" got Package 'ofono-configs-binder' not found.12:37
tohaturokI have link on draft version for A13, let me check it12:38
T42_<Tailsthefoz> mal, so another thing I could do is use the galaxy S20 ultra exynos IRadio, because the galaxy S20 Ultra exynos uses the same modem as the pixel 6 pro12:53
T42_<Tailsthefoz> (and corresponding vendor services) (re @Tailsthefoz: mal, so another thin...)12:53
T42_<Tailsthefoz> S20 Ultra exynos uses IRadio@1.412:54
T42_<Tailsthefoz> Probably not feasible to do that though13:19
maldebugging the 1.6 is probably more reasonable13:21
malmaybe create a branch of the changes without the extra logging changes?13:22
T42_<Tailsthefoz> Good idea, will do that soon (re @SailfishFreenodeIRCBridgeBot: <mal>maybe create a ...)13:22
T42_<Tailsthefoz> ok so mal I may have found the issue14:18
T42_<Tailsthefoz> ``````14:18
T42_<Tailsthefoz> # Modem boot daemon14:18
T42_<Tailsthefoz>     service cpboot-daemon /vendor/bin/cbd -d -t ${ro.vendor.cbd.modem_type} -P by-name/${vendor.cbd.partition} -s 214:18
T42_<Tailsthefoz>     class main14:18
T42_<Tailsthefoz>     user root14:18
T42_<Tailsthefoz>     group radio system cache inet misc audio sdcard_rw log14:18
T42_<Tailsthefoz>     seclabel u:r:cbd:s0```14:18
T42_<Tailsthefoz> 14:18
T42_<Tailsthefoz> ```14:18
T42_<Tailsthefoz> by-name obviously doesn't exist14:18
T42_<Tailsthefoz> so I bet it's never booting the modem14:19
malhmm14:38
malthat might be just relative path14:38
T42_<Tailsthefoz> by-name doesn't exist anywhere in droidian or sailfish though14:38
T42_<Tailsthefoz> right14:38
T42_<TheVancedGamer> /dev/block/bootdevice/by-name exists14:38
malyou could strace that process and see what it finds?14:39
T42_<TheVancedGamer> and that's running on android side14:39
T42_<Tailsthefoz> ah.14:39
malhave you checked what you see in logcat?14:39
T42_<Tailsthefoz> yeah, and the modem probably wouldn't be responding at all if it wasn't booted, right14:39
malspecifically "logcat -b radio"14:40
malthat will tell if modem is up14:40
T42_<Tailsthefoz> yeah, it's mostly responses from SIT_RIL prefixed stuff (re @SailfishFreenodeIRCBridgeBot: <mal>have you checke...)14:40
T42_<Tailsthefoz> not sure what that means though lol (re @Tailsthefoz: yeah, it's mostly re...)14:43
T42_<elros34> by-name paths for sure exist in sailfish14:47
T42_<Tailsthefoz> I'll send you logs later (re @SailfishFreenodeIRCBridgeBot: <mal>specifically "l...)14:49
T42_<Tailsthefoz> ok so18:43
T42_<Tailsthefoz> ```18:43
T42_<Tailsthefoz> Data RegState=NOT_REGISTERED(0x00), RAT=RADIO_TECH_UNKNOWN(0x00)```18:43
T42_<Tailsthefoz> this is probably an issue18:43
T42_<Tailsthefoz> ohhh18:52
T42_<Tailsthefoz> ok so 1.6 uses setAllowedNetworkTypesBitmap18:53
T42_<Tailsthefoz> 1.5 uses setPreferredNetworkTypeBitmap18:53
T42_<Tailsthefoz> singular18:53
T42_<Tailsthefoz> so I think I have to add every potentially wanted to be used network type in the request18:53
malthose are pretty much the same18:56
maljust different transaction number18:57
T42_<Tailsthefoz> no because stuff put into is *only* allowed18:57
malyou need to make sure you call the new one18:57
T42_<Tailsthefoz> I am (re @SailfishFreenodeIRCBridgeBot: <mal>you need to mak...)18:57
T42_<Tailsthefoz> but look, it's being set to only allow NR ```18:58
T42_<Tailsthefoz> May 30 18:35:09 Pixel6 ofonod[22763]: slot1 setting rat mode 2618:58
T42_<Tailsthefoz> May 30 18:35:10 Pixel6 ofonod[22763]: slot1 raf 0x001bce0e => rat 26 (nr)```18:58
malis it? that 0x001bce0e matches all usual network types19:02
malit's a bitmap of these https://github.com/mer-hybris/libgbinder-radio/blob/master/include/radio_types.h#L36719:02
T42_<Tailsthefoz> oh (re @SailfishFreenodeIRCBridgeBot: <mal>is it? that 0x0...)19:07
T42_<Tailsthefoz> it lied19:07
T42_<Tailsthefoz> then why does it say RADIO_TECH_UNKNOWN though19:08
malthat means it's hasn't registered network yet, where did you get that info?19:09
T42_<Tailsthefoz> logcat -b radio19:10
T42_<Tailsthefoz> I can't get it to register19:10
T42_<Tailsthefoz> is setupDataCall related to registering?19:10
maldifficult to help without full logs19:22
maland without the easy to read branch of the changes19:22
T42_<Tailsthefoz> ok so first thing19:39
T42_<Tailsthefoz> my RADIO_CALL_1_6 macro is wrong I think19:39
T42_<Tailsthefoz> how do I get it the proper way19:39
T42_<Tailsthefoz> ```19:39
T42_<Tailsthefoz> #define RADIO_CALL_1_5_(c) /* Since 1.5.1 */ \19:39
T42_<Tailsthefoz>     c(156,159,setSignalStrengthReportingCriteria,SET_SIGNAL_STRENGTH_REPORTING_CRITERIA,_1_5) \19:39
T42_<Tailsthefoz>     c(157,160,setLinkCapacityReportingCriteria,SET_LINK_CAPACITY_REPORTING_CRITERIA,_1_5) \19:39
T42_<Tailsthefoz>     c(158,161,enableUiccApplications,ENABLE_UICC_APPLICATIONS,) \19:39
T42_<Tailsthefoz>     c(159,162,areUiccApplicationsEnabled,ARE_UICC_APPLICATIONS_ENABLED,) \19:39
T42_<Tailsthefoz>     c(160,163,setSystemSelectionChannels,SET_SYSTEM_SELECTION_CHANNELS,_1_5) \19:39
T42_<Tailsthefoz>     c(161,164,startNetworkScan,START_NETWORK_SCAN,_1_5) \19:39
T42_<Tailsthefoz>     c(162,165,setupDataCall,SETUP_DATA_CALL,_1_5) \19:39
T42_<Tailsthefoz>     c(163,167,setInitialAttachApn,SET_INITIAL_ATTACH_APN,_1_5) \19:39
T42_<Tailsthefoz>     c(164,168,setDataProfile,SET_DATA_PROFILE,_1_5) \19:39
T42_<Tailsthefoz>     c(165,169,setRadioPower,SET_RADIO_POWER,_1_5) \19:39
T42_<Tailsthefoz>     c(166,170,setIndicationFilter,SET_INDICATION_FILTER,_1_5) \19:39
T42_<Tailsthefoz>     c(167,171,getBarringInfo,GET_BARRING_INFO,) \19:39
T42_<Tailsthefoz>     c(168,172,getVoiceRegistrationState,GET_VOICE_REGISTRATION_STATE,_1_5) \19:39
T42_<Tailsthefoz>     c(169,173,getDataRegistrationState,GET_DATA_REGISTRATION_STATE,_1_5) \19:39
T42_<Tailsthefoz>     c(170,175,setNetworkSelectionModeManual,SET_NETWORK_SELECTION_MODE_MANUAL,_1_5) \19:39
T42_<Tailsthefoz>     c(171,176,sendCdmaSmsExpectMore,SEND_CDMA_SMS_EXPECT_MORE,) \19:39
T42_<Tailsthefoz>     c(172,177,supplySimDepersonalization,SUPPLY_SIM_PERSONALIZATION,)```19:39
T42_<Tailsthefoz> like how do I get this19:39
T42_<Tailsthefoz> (The numbers)19:39
malyou need to check those from the generated hidl headers19:40
T42_<Tailsthefoz> where do I find those19:41
malthose appear somewhere under the android build out/soong/.intermediates folder19:41
T42_<Tailsthefoz> I have to compile the vendor?19:52
malnot sure if there is tool to generate just the files from those19:52
T42_<Tailsthefoz> https://android.googlesource.com/platform/system/tools/hidl/+/master/README.md19:55
T42_<Tailsthefoz> seems there is19:55
tohaturokI've built successfully droid-system, but failed with img-boot. There is a log https://paste.opensuse.org/pastes/7501d7427197. I see there are missing dependencies. I tried to install them through zypper, but these three packages are not found. How can I install these packages?20:24
T42_<Tailsthefoz> to use it I still need to clone the whole android source tree lol (re @Tailsthefoz: https://android.goog...)20:25
maltohaturok: use build_packages.sh --mw=https://github.com/sailfishos/lz4.git and same for https://github.com/sailfishos/hw-ramdisk.git20:32
tohaturokmal: thanks20:38
tohaturokmal: I don't know why, but lz4 checked out to external folder with the next message:20:48
tohaturokSource code directory exists in $ANDROID_ROOT/external. Building the existing version. Make sure to update this version by updating the manifest, if required.20:48
tohaturokIt didn't check out20:48
malwhat?20:50
tohaturokwhen I ran your command 'build_packages.sh' after updating repository it says the next:20:51
malmaybe then just do: "cd $ANDROID_ROOT/hybris/mw" then "git clone --recurse-submodules https://github.com/sailfishos/lz4.git", "cd $ANDROID_ROOT" and finally build_packages.sh -b hybris/mw/lz420:51
tohaturok* Source code directory exists in $ANDROID_ROOT/external. Building the existing version. Make sure to update this version by updating the manifest, if required.20:51
tohaturok* No spec file for package building specified, building all I can find.20:52
tohaturokFatal: 'rpm/*.spec' does not exist (and could not be made from a .yaml)20:52
maluse those commands I just gave instead for lz420:52
tohaturokas far as I understood, build_packages.sh found lz4 in 'external' folder and started using this folder without check out provided repo20:55
malyeah, build_packages.sh does that, it's very unusual to have unrelated sources in external, in case of lz4 that happened20:57
malbut the commands I gave will work around the issue20:57
tohaturokyes, I just renamed external's lz4 and build right lz4)20:58
tohaturokso, got img-boot20:59
malremember to rename it back20:59
tohaturokso, I've successfully built .zip and tried to flash image to device using instruction from jolla site. I got the error at start of flashing: No valid devices found. Should I specify PRODUCT_ID in flash-config.sh?22:07
T42_<Tailsthefoz> ok I got logs : https://irc.thaodan.de/.imgstore/dc22b723/log.txt23:41
T42_<Tailsthefoz> let me know if you find anything interestin23:41
T42_<Tailsthefoz> ```23:58
T42_<Tailsthefoz> () conditions=[ Condition: NO_SIM ]23:58
T42_<Tailsthefoz> 05-30 23:54:16.169   219   265 V RIL     : [RilContext_0] SendMessage RCM Response Routing : Type=0001, RCM ID=0x4605 Service ID=-1 Message ID=000023:58
T42_<Tailsthefoz> 05-30 23:54:16.169   219   265 E RIL     : SendMessage fail: cannot find service SERVICE_UNSUPPORTED, Did you forget AddService in model Init?```23:58
T42_<Tailsthefoz> maybe this23:58

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!