T42_ | <Tailsthefoz> Damn :( | 11:43 |
---|---|---|
mal | the branch you linked was terrible to read, so many unrelated changes mostly to logging that finding the actual relevant changes was too much work | 11: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 right | 11:47 |
tohaturok | I 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 |
mal | show the droid configs spec file | 11:54 |
tohaturok | I found droid-config spec file at hybris/rpm/droid-config-xqcq54.spec. Here it is | 12:01 |
tohaturok | https://pastebin.com/XkYh4nfd | 12:02 |
mal | it's the common inc which has most things https://github.com/mer-hybris/droid-config-sony-murray/blob/master/droid-config-common.inc#L14 | 12:04 |
mal | does it have those lines | 12: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-nagara | 12:08 |
tohaturok | yes, https://github.com/SailfishOS-SonyXperia/droid-config-sony-nagara/blob/47bb87af699e36b949cce9d4e10939f722ac77e6/droid-config-common.inc#L12 | 12:09 |
tohaturok | I didn't change anything | 12:10 |
T42_ | <elros34> did you build mw without errors? | 12:11 |
tohaturok | yes | 12: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 |
tohaturok | let me try | 12:25 |
tohaturok | elros34: Is it right command? I got help for zypper | 12:28 |
tohaturok | sorry my bad, didn't copy all command | 12:29 |
T42_ | <elros34> yeah this is nightmare command chain | 12:30 |
tohaturok | got the next error Problem: nothing provides 'droid-system-pdx224-xqcq54' needed by the to be installed droid-config-xqcq54-1-202405301159.aarch64 | 12:30 |
tohaturok | it ask me to solve problem with two solution | 12:31 |
tohaturok | Solution 1: do not install droid-config-xqcq54-1-202405301159.aarch64 | 12:31 |
tohaturok | Solution 2: break droid-config-xqcq54-1-202405301159.aarch64 by ignoring some of its dependencies | 12:31 |
T42_ | <elros34> try 2 | 12:31 |
mal | you haven't built droid-system yet? | 12:32 |
tohaturok | looks like it completed succesfully | 12:32 |
tohaturok | As far as I understand yes, it wasn't built | 12:33 |
tohaturok | I 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 |
tohaturok | rpm/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.spec | 12:34 |
T42_ | <elros34> try also "rm ofono-configs-binder" instead "in droid-config-$DEVICE" in above sb2 command | 12:35 |
tohaturok | Am 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 fail | 12:36 |
T42_ | <elros34> this is still android 11 instruction, 13 will probably appears soon | 12:37 |
tohaturok | on "rm ofono-configs-binder" got Package 'ofono-configs-binder' not found. | 12:37 |
tohaturok | I have link on draft version for A13, let me check it | 12: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 pro | 12:53 |
T42_ | <Tailsthefoz> (and corresponding vendor services) (re @Tailsthefoz: mal, so another thin...) | 12:53 |
T42_ | <Tailsthefoz> S20 Ultra exynos uses IRadio@1.4 | 12:54 |
T42_ | <Tailsthefoz> Probably not feasible to do that though | 13:19 |
mal | debugging the 1.6 is probably more reasonable | 13:21 |
mal | maybe 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 issue | 14:18 |
T42_ | <Tailsthefoz> `````` | 14:18 |
T42_ | <Tailsthefoz> # Modem boot daemon | 14:18 |
T42_ | <Tailsthefoz> service cpboot-daemon /vendor/bin/cbd -d -t ${ro.vendor.cbd.modem_type} -P by-name/${vendor.cbd.partition} -s 2 | 14:18 |
T42_ | <Tailsthefoz> class main | 14:18 |
T42_ | <Tailsthefoz> user root | 14:18 |
T42_ | <Tailsthefoz> group radio system cache inet misc audio sdcard_rw log | 14: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 exist | 14:18 |
T42_ | <Tailsthefoz> so I bet it's never booting the modem | 14:19 |
mal | hmm | 14:38 |
mal | that might be just relative path | 14:38 |
T42_ | <Tailsthefoz> by-name doesn't exist anywhere in droidian or sailfish though | 14:38 |
T42_ | <Tailsthefoz> right | 14:38 |
T42_ | <TheVancedGamer> /dev/block/bootdevice/by-name exists | 14:38 |
mal | you could strace that process and see what it finds? | 14:39 |
T42_ | <TheVancedGamer> and that's running on android side | 14:39 |
T42_ | <Tailsthefoz> ah. | 14:39 |
mal | have 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, right | 14:39 |
mal | specifically "logcat -b radio" | 14:40 |
mal | that will tell if modem is up | 14: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 sailfish | 14:47 |
T42_ | <Tailsthefoz> I'll send you logs later (re @SailfishFreenodeIRCBridgeBot: <mal>specifically "l...) | 14:49 |
T42_ | <Tailsthefoz> ok so | 18: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 issue | 18:43 |
T42_ | <Tailsthefoz> ohhh | 18:52 |
T42_ | <Tailsthefoz> ok so 1.6 uses setAllowedNetworkTypesBitmap | 18:53 |
T42_ | <Tailsthefoz> 1.5 uses setPreferredNetworkTypeBitmap | 18:53 |
T42_ | <Tailsthefoz> singular | 18:53 |
T42_ | <Tailsthefoz> so I think I have to add every potentially wanted to be used network type in the request | 18:53 |
mal | those are pretty much the same | 18:56 |
mal | just different transaction number | 18:57 |
T42_ | <Tailsthefoz> no because stuff put into is *only* allowed | 18:57 |
mal | you need to make sure you call the new one | 18: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 26 | 18:58 |
T42_ | <Tailsthefoz> May 30 18:35:10 Pixel6 ofonod[22763]: slot1 raf 0x001bce0e => rat 26 (nr)``` | 18:58 |
mal | is it? that 0x001bce0e matches all usual network types | 19:02 |
mal | it's a bitmap of these https://github.com/mer-hybris/libgbinder-radio/blob/master/include/radio_types.h#L367 | 19:02 |
T42_ | <Tailsthefoz> oh (re @SailfishFreenodeIRCBridgeBot: <mal>is it? that 0x0...) | 19:07 |
T42_ | <Tailsthefoz> it lied | 19:07 |
T42_ | <Tailsthefoz> then why does it say RADIO_TECH_UNKNOWN though | 19:08 |
mal | that means it's hasn't registered network yet, where did you get that info? | 19:09 |
T42_ | <Tailsthefoz> logcat -b radio | 19:10 |
T42_ | <Tailsthefoz> I can't get it to register | 19:10 |
T42_ | <Tailsthefoz> is setupDataCall related to registering? | 19:10 |
mal | difficult to help without full logs | 19:22 |
mal | and without the easy to read branch of the changes | 19:22 |
T42_ | <Tailsthefoz> ok so first thing | 19:39 |
T42_ | <Tailsthefoz> my RADIO_CALL_1_6 macro is wrong I think | 19:39 |
T42_ | <Tailsthefoz> how do I get it the proper way | 19: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 this | 19:39 |
T42_ | <Tailsthefoz> (The numbers) | 19:39 |
mal | you need to check those from the generated hidl headers | 19:40 |
T42_ | <Tailsthefoz> where do I find those | 19:41 |
mal | those appear somewhere under the android build out/soong/.intermediates folder | 19:41 |
T42_ | <Tailsthefoz> I have to compile the vendor? | 19:52 |
mal | not sure if there is tool to generate just the files from those | 19:52 |
T42_ | <Tailsthefoz> https://android.googlesource.com/platform/system/tools/hidl/+/master/README.md | 19:55 |
T42_ | <Tailsthefoz> seems there is | 19:55 |
tohaturok | I'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 |
mal | tohaturok: use build_packages.sh --mw=https://github.com/sailfishos/lz4.git and same for https://github.com/sailfishos/hw-ramdisk.git | 20:32 |
tohaturok | mal: thanks | 20:38 |
tohaturok | mal: I don't know why, but lz4 checked out to external folder with the next message: | 20:48 |
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:48 |
tohaturok | It didn't check out | 20:48 |
mal | what? | 20:50 |
tohaturok | when I ran your command 'build_packages.sh' after updating repository it says the next: | 20:51 |
mal | maybe 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/lz4 | 20: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 |
tohaturok | Fatal: 'rpm/*.spec' does not exist (and could not be made from a .yaml) | 20:52 |
mal | use those commands I just gave instead for lz4 | 20:52 |
tohaturok | as far as I understood, build_packages.sh found lz4 in 'external' folder and started using this folder without check out provided repo | 20:55 |
mal | yeah, build_packages.sh does that, it's very unusual to have unrelated sources in external, in case of lz4 that happened | 20:57 |
mal | but the commands I gave will work around the issue | 20:57 |
tohaturok | yes, I just renamed external's lz4 and build right lz4) | 20:58 |
tohaturok | so, got img-boot | 20:59 |
mal | remember to rename it back | 20:59 |
tohaturok | so, 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.txt | 23:41 |
T42_ | <Tailsthefoz> let me know if you find anything interestin | 23: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=0000 | 23: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 this | 23:58 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!