*** ChanServ sets mode: +v T4 | 02:50 | |
*** ChanServ sets mode: +v T4 | 05:02 | |
T4 | <adampigg> R0kk3rz, f u | 07:09 |
---|---|---|
T4 | <adampigg> :D | 07:14 |
*** ChanServ sets mode: +v T4 | 08:44 | |
Umeaboy | I still can't find where to change these values to continue building for G8142. Is it in the build.prop or what? | 09:14 |
Umeaboy | https://pastebin.com/BV3DxC9A | 09:14 |
Umeaboy | The BoardConfig.mk doesn't contain every of those lines. | 09:18 |
Umeaboy | I replaced the maple BoardConfig.mk with the poplar one, but those lines are still wrong. | 09:19 |
Umeaboy | CONFIG_NETPRIO_CGROUP=y is correct, but the kernel check thingie says it's unset. | 09:21 |
T4 | <vorombe> ignore WARNINGs and pay attention to ERRORs | 09:24 |
Umeaboy | <vorombe>: CONFIG_INOTIFY_USER does not even exist in the defconfig.. | 09:42 |
T4 | <vorombe> https://pastebin.com/BV3DxC9A line 12 | 09:49 |
Umeaboy | <vorombe>: Yeah I did see that as well, but as I saw it still showed me the errors from the defconfig of maple I didn't think that it mattered that much. | 10:00 |
T4 | <vorombe> did you build pass hybris-hal ? | 10:01 |
Umeaboy | Yes. | 10:02 |
mal | Umeaboy: how can that be so difficult, you have only one defconfig in kernel with the device codename | 10:41 |
mal | Umeaboy: and you obviously add any missing flags to defconfig | 10:42 |
mal | Umeaboy: just look at the pioneer defconfig changes in mer-hybris and duplicate those | 10:42 |
mal | Umeaboy: your device codename is maple not g8142, similarly as h4113 is pioneer https://github.com/mer-hybris/droid-hal-sony-nile/blob/master/droid-hal-pioneer.spec | 10:43 |
Umeaboy | mal: No pun intended to you, but I'm more of a gui user, not a terminal user. | 10:44 |
Umeaboy | mal: Yes, but now I'm working on maple at the moment. Can't do much with pioneer as I flashed the wrong bootloader apparently. | 10:44 |
Umeaboy | There is no Lineage version for h4113 and I didn't check that when I downloaded the Lineage 15.1 nightly. | 10:45 |
Umeaboy | That's on me. | 10:45 |
mal | Umeaboy: I used pioneer as the example that you have incorrect spec | 10:46 |
mal | Umeaboy: so now you are using lineage and not aosp? | 10:46 |
mal | why? | 10:46 |
Umeaboy | mal: Well, my autism brain reads the HADK and sees the lines with using repos from Lineage to build hybris-hal. Device and kernel. | 10:48 |
Umeaboy | That's when it gets stuck to that no matter what it says underneath. | 10:48 |
mal | but for new sonys aosp is the easier one | 10:48 |
mal | so your pioneer can't get into fastboot mode anymore? | 10:49 |
Umeaboy | Yes, but neither EMMA or Flashtool can flash the stock rom for h4113 as the device is identified as h3113. | 10:49 |
Umeaboy | It can. | 10:49 |
Umeaboy | It does. | 10:49 |
mal | why in the hell would lineage flash bootloader | 10:49 |
Umeaboy | Well, which part of the rom determines how the device is identified? The kernel? | 10:50 |
Umeaboy | From fastboot. | 10:50 |
mal | no idea how it works in sonys | 10:51 |
mal | but anyway having the wrong name reported doesn't prevent flashing sailfish, at least if you hack the install script a bit | 10:53 |
Umeaboy | mal: Yeah, I did hack it. Just not sure what else I'm missing. | 10:55 |
r0kk3rz | to be a porter you really need to be comfortable with CLI hacking things | 10:58 |
mal | Umeaboy: what did you change in the script? | 11:01 |
Umeaboy | if [ ! -z "$(echo $PRODUCT | grep -e "H3113" -e "H3133")" ]; then into if [ ! -z "$(echo $PRODUCT | grep -e "H4113" -e "H4133")" ]; then | 11:02 |
Umeaboy | ++ fastboot-android -s CQ3001AT99 getvar product shows that it identifies as H3113 which is wrong. | 11:03 |
mal | it's really not that difficult to make it flash even if the code is wrong | 11:03 |
Umeaboy | It is if you've never fixed th is issue before or even encountered it. | 11:05 |
Umeaboy | I could try adb shell settings put global device_name "<NEW_DEVICE_NAME>" though. | 11:11 |
Umeaboy | I'll test that. | 11:11 |
Umeaboy | Nope. That didn't work. | 11:24 |
mal | Umeaboy: just just replace all h4113 with h3113 in the script and it should be fine | 11:39 |
Umeaboy | The adb shell command works fine if I have Lineage 16.0 installed on it. | 11:40 |
Umeaboy | adb shell get global device_name returns H4113. | 11:40 |
Umeaboy | adb shell settings get global device_name I meant. | 11:41 |
Umeaboy | I'll try the bach script for Sailfish with Lineage now. | 11:41 |
Umeaboy | mal: Nope, that didn't work. | 11:45 |
mal | then you did something wrong, again | 11:46 |
mal | come on, you know what fastboot return so you just make sure the script accepts it | 11:47 |
Umeaboy | mal: I did change it to flash for h3113. | 11:48 |
mal | so what is the error? | 11:52 |
Umeaboy | mal: No device. | 12:06 |
mal | did you print the output of the fastboot commands? | 12:08 |
Umeaboy | fastboot-android getvar product | 12:09 |
Umeaboy | product: H3113 | 12:09 |
mal | I mean in the script | 12:10 |
mal | since you have it working from commandline so now you need to figure out why it fails in the script | 12:10 |
Umeaboy | mal: It fails because the phone identifies as H3113 from fastboot-android devices but adb shell settings get global device_name says H4113. | 12:12 |
Umeaboy | If I could get fastboot to write a new device name that'd be great. | 12:13 |
mal | NOOOOOOOO | 12:15 |
mal | the xa2 flash script doesn't care about adb stuff, it only cares what fastboot report | 12:15 |
mal | you have all the information you need to fix it, I give up helping | 12:15 |
mal | if I have told you many many many times what to do and you still do not do it then this is going nowhere | 12:16 |
Umeaboy | I did edit the script to flash for the H3113 model and it still fails so that's not my fault. | 12:17 |
mal | but you still didn't print the damn output of the fastboot command inside script so there is no way to help | 12:18 |
mal | also you never showed the edited script or anything | 12:19 |
mal | do you really think we are mind readers??? | 12:19 |
Umeaboy | https://pastebin.com/JuDd0hPg | 12:20 |
mal | how many times do I have to ask for the damn output of ALL fastboot command in script, from within the script, not manually run | 12:25 |
Umeaboy | Aaaah. You meant fastboot-android getvar all ? | 12:27 |
Umeaboy | OK. | 12:27 |
Umeaboy | Here it is: https://pastebin.com/avrC5Rj0 | 12:28 |
mal | https://github.com/mer-hybris/droid-config-sony-nile/blob/master/sparse/boot/flash.sh#L95 | 12:30 |
mal | https://github.com/mer-hybris/droid-config-sony-nile/blob/master/sparse/boot/flash.sh#L105 | 12:30 |
mal | both the raw fastboot commands of both and also the variables | 12:30 |
mal | FROM WITHIN THE SCRIPT, NOT MANUALLY | 12:31 |
mal | how many times do I have to say that | 12:31 |
mal | do you really have that much problems understanding what I say? | 12:31 |
Umeaboy | bash: devices: command does not exist when I do line 95. | 12:33 |
Umeaboy | PRODUCT=$($FASTBOOTCMD_NO_DEVICE -s $SERIALNO getvar product 2>&1 | head -n1 | cut -d ' ' -f2) returns a blank new row. | 12:34 |
mal | so it doesn't find the fastboot command | 12:35 |
mal | how about you fix it | 12:35 |
Umeaboy | mal: I told you I did fix it on the obvious lines. | 12:35 |
mal | then you didn't | 12:36 |
mal | it doesn't find fastboot | 12:36 |
Umeaboy | Line 77 and 86. | 12:36 |
mal | once again, I'm not a mind reader, I cannot know that the fuck you have been fixing | 12:36 |
Umeaboy | I told you that my dist uses fastboot-android for fastboot commands. I know it's stupid, but it wasn't me who changed it from just fastboot. | 12:37 |
Umeaboy | I have reported it and right now I'm waiting for an update that fixes it. | 12:38 |
mal | SO CHANGE THE BINARY NAME IN THE SCRIPT, IT'S NOT ROCKET SCIENCE | 12:38 |
Umeaboy | *sigh*. It's been renamed all along. | 12:38 |
Umeaboy | And it still doesn't work as the phone identifies as H3113.. | 12:39 |
Umeaboy | I'm installing Windows on my laptop as a VM is to slow. That would probably make it easier to restore the phone. | 12:40 |
mal | Umeaboy: how many times I have to say the same thing, it doesn't find the fastboot command, how difficult is it to show the whole damn script? | 12:47 |
Umeaboy | mal: To my defence it's been renamed to fit my dists naming of the fastboot binary. | 12:48 |
pketo | how about just symlink fastboot-android to fastboot so it doesn't need to be changed everywhere? that would be first/obvious solution that comes to mind :) | 12:48 |
mal | if you don't show the whole script in 10 minutes I will leave the channel and stop helping everyone, hopefully you will be happy then | 12:48 |
Umeaboy | I did that the first time I opened the script when I saw that it was wrong. | 12:48 |
Umeaboy | https://pastebin.com/yLETbquf | 12:49 |
mal | I have had enough if this when people can't even give the damn output I ask | 12:49 |
Umeaboy | pketo: That would be great as well. | 12:50 |
mal | what is the exact output of the script | 12:50 |
Umeaboy | https://pastebin.com/wr3PqTgA | 12:52 |
T4 | <elros34> if you add set -x to script you will have nice verbose output | 12:53 |
mal | so there is only one way that can happen, it doesn't find the fastboot command, have you printed the raw commands it tries to use and see the fastboot command is correct | 12:53 |
Umeaboy | Check the last link again. I updated it with the script runned with verbose output. | 12:55 |
Umeaboy | I think I need to add something to line 17. | 12:56 |
Umeaboy | No. It sees it correctly. | 12:58 |
mal | so now it works but claims md5sum doesn't match | 12:58 |
Umeaboy | Yeah. | 12:58 |
mal | so skip the check if you know it's ok | 12:58 |
Umeaboy | No matter how many times I redownload the SW_binaries and make sure that the sha256sum is correct it isn't correct when flashing. | 13:08 |
mal | so skip the check like I said | 13:10 |
mal | and it's not about sw binaries, it's about the main zip | 13:10 |
Umeaboy | How can I skip the check? | 13:11 |
mal | edit the script? | 13:11 |
Umeaboy | I comment out from line what to what? | 13:12 |
mal | you need to learn to do something yourself, I can't says everything | 13:12 |
mal | you'll never learn anything | 13:12 |
mal | *say | 13:12 |
T4 | <abhishek_0> Take a deep breath mal :') | 13:16 |
Umeaboy | I think it's working.... | 13:17 |
Umeaboy | Yes, it does continue. :) | 13:18 |
mal | @abhishek_0 I'm so close to just leaving the channel and giving up | 13:18 |
Umeaboy | sending sparse 'system_b' (40932 KB)... | 13:18 |
r0kk3rz | mal: one of these days i need to come to finland and buy you 100 beers | 13:18 |
Umeaboy | Waiting for it to finish. | 13:18 |
Umeaboy | It rebooted now. | 13:18 |
T4 | <akaWolf> mal, if you feel so, just stop answer :) | 13:19 |
T4 | <abhishek_0> mal dont! take a vacation or an internet detox, it helps :D | 13:20 |
Umeaboy | Sailfish successfully flashed and installed and booted fine. | 13:22 |
Umeaboy | Pheeeeeew! | 13:22 |
T4 | <akaWolf> give your thanks to mal | 13:23 |
Umeaboy | Yeah. Thanks, mal. | 13:23 |
T4 | <It_sMike> Umeaboy : Congratulation!!! | 13:24 |
T4 | <meierrom> Umeaboy: mal: Well done guys!!! | 13:40 |
Umeaboy | Yeah, it was mostly mal. | 13:40 |
T4 | <meierrom> Umeaboy: Yeah. It was hard on both of you, I guess... | 13:43 |
r0kk3rz | thanks peanut gallery | 13:43 |
Umeaboy | What happened to the tap to open screen action? Is it disabled in the Free version? | 13:44 |
r0kk3rz | thats hardware specific | 13:45 |
mal | xa2 doesn't have it working | 13:45 |
mal | sony open source releases don't have it working either | 13:46 |
r0kk3rz | also, your first instinct should be 'why is it broken' not 'is it disabled for community' | 13:46 |
mal | it wouldn't make sense to disable such normal features | 13:46 |
mal | unless they are broken | 13:46 |
mal | only differences in free version of sfos x are the 3rd party software packages such as alien | 13:47 |
r0kk3rz | Umeaboy: you realise your journey has only just begun right? | 13:48 |
Umeaboy | Right. | 13:48 |
Umeaboy | Sipoonkorpi took a long time to download on WiFi. | 13:49 |
Umeaboy | It looks stuck. | 13:50 |
r0kk3rz | wait, what are you doing? | 13:50 |
Umeaboy | Installing the update. | 13:50 |
Umeaboy | 3.0.1.11 | 13:50 |
r0kk3rz | onto what | 13:50 |
Umeaboy | To the XA2. | 13:50 |
r0kk3rz | oh ok, i thought you were doing a different sony phone | 13:51 |
Umeaboy | r0kk3rz: I was previously continuing with maple as I want to continue where I left off. | 13:52 |
Umeaboy | How does one abort the download of the update? | 13:52 |
Umeaboy | The haptic menu at the top does not show. | 13:52 |
Umeaboy | Gotta go. | 14:19 |
T4 | <It_sMike> Mal, could you open an OBS account for me? | 14:38 |
mal | I don't have permissions for that you need follow instructions here https://bugs.merproject.org/createaccount.cgi you can send lbt a message or email with the user name you want and your email address | 14:42 |
T4 | <It_sMike> Thanks! | 14:43 |
*** ChanServ sets mode: +v T4 | 14:54 | |
T4 | <adampigg> And i always assumed mister_magister would push mal too far 😁 | 16:21 |
Mister_Magister | @adampigg: what?> | 16:25 |
Mister_Magister | whatcha talkin' 'bout | 16:25 |
T4 | <adampigg> Read the backlog ;) | 16:30 |
Mister_Magister | @adampigg: lemme guess someone pissed off mal? | 16:33 |
T4 | <abhishek_0> @adampigg rofl XD | 16:37 |
T4 | <adampigg> Aye | 16:40 |
Mister_Magister | @adampigg it wouldn't be me im nice to him and stuff | 16:52 |
Benclark006 | do i need to run fixup mountpoints once i've patched it? | 17:22 |
mal | it's run automatically during build, both make hybris-hal and build_packages.sh (the droid-hal packaging part of it) | 17:23 |
mal | was there any sign of boot failure reason in the host dmesg, the usb device values tell something | 17:24 |
Benclark006 | i don't think so | 17:25 |
Benclark006 | i'll take a look in a sec | 17:25 |
mal | just show the usb related stuff from host dmesg | 17:26 |
mal | I think it was device string or something that tells the error message | 17:26 |
Benclark006 | i need to find a charger first but yeah will do | 17:27 |
Benclark006 | https://paste.gnome.org/p1cjobtdh | 17:31 |
Benclark006 | slightly more log info here also: https://paste.gnome.org/p6owos8kr | 17:34 |
mal | that tells it rebooted | 17:36 |
Benclark006 | yeah it does that after a minute or two | 17:36 |
Benclark006 | the manual says to telnet into the phone and run command | 17:37 |
Benclark006 | but obviously i can't | 17:37 |
mal | based on init-script behavior and the message "Product: Refusing" means the issue is either kernel configs or mounting of userdata | 17:38 |
r0kk3rz | moo @adampigg, coming to fosdem? | 17:38 |
Benclark006 | i'm going to go out on a limb here and say its the latter | 17:38 |
mal | Benclark006: pastebin the .config which you find somewhere under $ANDROID_ROOT/out/ | 17:39 |
Benclark006 | mal: https://paste.gnome.org/pg2nyp0e5 | 17:43 |
mal | Benclark006: CONFIG_AUTOFS4_FS is invalid | 17:48 |
mal | Benclark006: it should be =y | 17:48 |
mal | Benclark006: once you make sure that is enabled in kernel defconfig run make hybris-hal the usual way and check .config again | 17:50 |
Benclark006 | should i change that in defconfig or somewhere else? | 17:50 |
mal | defconfig | 17:50 |
Benclark006 | 👍 | 17:50 |
mal | after you have verified that .config has it correctly you run build_packages.sh -d | 17:51 |
mal | then either build a new image or flash the hybris-boot.img from out/ manually via fastboot | 17:51 |
mal | Benclark006: just as a lesson, I manually checked what the init-script checks here https://github.com/mer-hybris/hybris-boot/blob/master/init-script#L320 | 17:52 |
Benclark006 | ./hybris/hybris-boot/Android.mk:75: error: There should be a one and only one device entry for HYBRIS_DATA_PART. | 17:53 |
Benclark006 | assuming i should remove the device entry? | 17:53 |
mal | no | 17:53 |
mal | did you setup the build enviroment correctly? | 17:53 |
Benclark006 | i think so | 17:54 |
mal | the way it's done in chapter 5.4 | 17:54 |
mal | that has to be done every time, so you first go to sfossdk, then to ubu-chroot and then run those | 17:54 |
Benclark006 | i see | 17:55 |
Benclark006 | looks like it's working now | 17:55 |
mal | the ubu-chroot command was ubu-chroot -r $PLATFORM_SDK_ROOT/sdks/ubuntu just in case you forgot | 17:55 |
mal | I usually keep the needed commands in a text editor so I can easily copy everything | 17:56 |
Benclark006 | rpm/dhd/helpers/build_packages.sh fails 😥 https://paste.gnome.org/pubnrouoi | 17:58 |
mal | did you verify the .config file in out/ already? | 18:03 |
Benclark006 | not yet | 18:03 |
mal | no point in building anything else before you know that is correct | 18:03 |
Benclark006 | it's correct | 18:04 |
Benclark006 | CONFIG_AUTOFS4_FS=y right? | 18:04 |
mal | yes | 18:04 |
mal | Benclark006: also you error is quite clear /home/ben/hadk/hybris/droid-configs/installroot/.gitmodules you have something messed up in your config repo | 18:04 |
Benclark006 | is the config repo ~/hadk/hybris/droid-configs? | 18:08 |
mal | yes | 18:13 |
mal | maybe push all latest changes to github | 18:13 |
Benclark006 | i've tried that | 18:26 |
Benclark006 | still the same issue :/ | 18:26 |
mal | or run git status in the repo | 18:26 |
mal | to see what there is | 18:27 |
Benclark006 | https://paste.gnome.org/popglyph9 | 18:27 |
Benclark006 | it says installroot is untracked | 18:27 |
Benclark006 | is that bad? | 18:27 |
Benclark006 | when i try to add everything it returns fatal: Not a git repository: droid-configs-device/../.git/modules/droid-configs-device | 18:28 |
mal | you somehow messed up that whole thing, only droid-configs-device, patterns, sparse and rpm folders should be there | 18:28 |
mal | in git that is | 18:29 |
mal | Benclark006: run git reset --hard 4c45203e6dbb21422594621a3c17c4fccad0b877 in that folder | 18:29 |
mal | then run "git rm -r installroot" and "git rm -r tmp" and finally git commit -a | 18:31 |
Benclark006 | when i run git reset fatal: Not a git repository: droid-configs-device/../.git/modules/droid-configs-device | 18:32 |
Benclark006 | i'm actually baffled at how i messed it up this bad | 18:32 |
mal | Benclark006: no idea why you got the idea that removing everything in that folder was a good idea | 18:33 |
Benclark006 | it's still there | 18:34 |
Benclark006 | but it's disappeared from github | 18:34 |
mal | Benclark006: not sure what is the best way to recover that | 18:36 |
mal | Benclark006: I think it's easiest that you go to folder hybris/ and rename droid-configs and then do the droid-configs part of chapter 7.1 (make sure you this time use codename mako instead of hammerhead which is used in the example) | 18:44 |
mal | then copy the sparse folder of the old config repo to the new | 18:44 |
mal | and do not run git add * in the repo, only add files to the existing folders | 18:45 |
Benclark006 | ok, i'll try that | 18:54 |
Benclark006 | ok it's back to normal | 19:05 |
piggz | time to update the sfos sdk and do some app work instead of port work.... | 19:05 |
piggz | mal: any suggestions for harbour-advenced-camera? | 19:05 |
piggz | though, i might add features to amazfish tonight | 19:06 |
piggz | sleep graph maybe | 19:06 |
mal | piggz: plenty of things to fix but not sure what should be fixed first | 19:07 |
piggz | mal: remember ... its a 'community' effort :P | 19:08 |
Benclark006 | mal: it's been reset and all, but i still get the same error message D: | 19:14 |
Nokius | good evening o/ | 19:25 |
Nokius | short question obs devel is for stable release and testing testing or visa vie | 19:26 |
kimmoli | yes | 19:33 |
Nokius | kimmoli: thanks | 19:36 |
piggz | Nokius: obs devel with _latest is for devels to test builds using the latest stable build ... testing is for end users to use agains each defined release | 19:44 |
Benclark006 | hmm, telnet still isn't working 😕 | 19:51 |
mal | Benclark006: did you check that you don't have any files you don't want in sparse | 19:55 |
Benclark006 | what counts as unneeded? | 19:56 |
mal | like the one that caused the error | 19:57 |
Benclark006 | the installroot? | 19:58 |
Nokius | mal: looks like you latest MR is geoglue is calling turble | 20:04 |
mal | Nokius: ? | 20:05 |
mal | Nokius: it's previous commit that prevents building it for 3.0.0 | 20:05 |
mal | Benclark006: I said sparse | 20:06 |
mal | Benclark006: how about you show what you have there | 20:06 |
Nokius | mal: ah is latest /= 3.0.0 | 20:06 |
mal | latest is 3.0.0 | 20:06 |
mal | geoclue needs newer | 20:07 |
Nokius | ah okay | 20:07 |
Benclark006 | mal: all i have is /media/srv/ben/hadk/hybris/droid-configs/sparse/var/lib/environment/compositor/droid-hal-device.conf | 20:07 |
mal | Nokius: check faq | 20:12 |
mal | Benclark006: so you didn't copy the old sparse folder like I said? | 20:12 |
Benclark006 | mal: i did | 20:15 |
mal | so why do you say the files are not there, did you remove them from the old one? | 20:15 |
Benclark006 | yes | 20:15 |
mal | Benclark006: the check faq again for 15.1 porting notes and copy the .rc files again | 20:15 |
Benclark006 | ok | 20:16 |
Nokius | mal: thx | 20:16 |
mal | Benclark006: I'm confused what error you got when building and how host dmesg looked like in latest build | 20:17 |
Benclark006 | i built a new one and it worked | 20:17 |
Benclark006 | well "worked" i haven't flashed it yet | 20:17 |
Benclark006 | it built properly | 20:17 |
Nokius | thanks gn8 happy hacking | 20:18 |
*** ChanServ sets mode: +v T4 | 20:31 | |
martonmiklos | Hi guys! | 20:56 |
martonmiklos | I am planning to buy a Sony Xperia X compact | 20:56 |
martonmiklos | I would like to have a Sailfish device with USB OTG capabilities for a looong time | 20:57 |
martonmiklos | I saw this: https://github.com/g7/droid-compat-f5321 | 20:57 |
martonmiklos | and this | 21:00 |
martonmiklos | https://github.com/g7/sailfishx-patcher-f5321 | 21:00 |
martonmiklos | where it is mentioned that the OTG is broken because it is missing from the official builds | 21:00 |
martonmiklos | do I think correctly if I recompile the kernel with the necessary options compiled in I could get it working? | 21:01 |
mal | hmm, what OTG fearures do you want? | 21:04 |
Benclark006 | hurrah! telnet is working 🎉 | 21:13 |
Benclark006 | do you need to install the gui separately? | 21:16 |
eugenio | martonmiklos, (I'm the guy who made the compat layer) I plan to upstream the X Compact adaptation once I finish working on the current port | 21:17 |
mal | Benclark006: no, now you need to debug why UI doesn't work | 21:17 |
mal | eugenio: what exactly is missing from the kernel? | 21:18 |
martonmiklos | hi eugenio, what do you mean under upstreaming? | 21:18 |
martonmiklos | I am pretty new to the SFOS porting terminology and trying to figure out the basics | 21:19 |
eugenio | martonmiklos, mal: driver for the Type-C controller in the X Compact (rightfully so as the Xperia X doesn't have one) | 21:19 |
martonmiklos | if I understand correctly Sony provides kernel sources in the open devices program | 21:20 |
eugenio | martonmiklos, upstreaming ---> sending the changes to the official source repositories | 21:20 |
mal | eugenio: wondering if it would be fine to add it? | 21:20 |
eugenio | mal, it shouldn't harm, but it doesn't feel right | 21:21 |
martonmiklos | when saysing official you mean the Jolla's kernel repo? | 21:21 |
Benclark006 | when the faq says both usb0 and rndis0 interfaces might be up, remove usb0 from init-script and rebuild kernel image with make hybris-boot or make hybris-recovery | 21:22 |
Benclark006 | does it mean any mention of usb0 or just particular lines? | 21:22 |
eugenio | yup, that would also mean (if Jolla agrees, of course) that the X Compact bits would be built by them alongside the other official adaptations | 21:23 |
martonmiklos | aha | 21:23 |
martonmiklos | that would be awesome | 21:23 |
eugenio | martonmiklos, if you would like to use OTG on X Compact the easiest way would be to flash a kernel from the community adaptation | 21:24 |
eugenio | if you're ok running an outdated kernel, that is | 21:24 |
martonmiklos | eugenio, do you have any pointers how to do that? | 21:25 |
martonmiklos | I have seen this | 21:26 |
martonmiklos | https://wiki.merproject.org/wiki/Compiling_Jolla_kernel | 21:26 |
martonmiklos | for the old JP1 | 21:26 |
martonmiklos | I do not know how relevant is for the kugo | 21:26 |
r0kk3rz | eugenio: btw its some impressive hackery to get the X adaptation working on the XC | 21:27 |
mal | martonmiklos: official xperia x kernel used in sailfish is here https://github.com/mer-hybris/android_kernel_sony_msm/tree/hybris-sony-aosp-6.0.1_r80-20170902 | 21:31 |
eugenio | martonmiklos, if you would like to recompile the kernel you should follow the Sailfish HADK (and the X-specific bits in https://sailfishos.org/wiki/Sailfish_X_HADK). If you're instead ok with running a slightly outdated kernel you can flash an already built one, such as the one from the community 2.1.3 adaptation by stephg: https://futr.io/ipfs/QmTpoKtixjD7xMtVESh96ZzFHhSJLG3DtM5NRrnezSa85a/ | 21:33 |
eugenio | download the zip, unzip it, then fastboot flash boot hybris-boot.img | 21:33 |
eugenio | r0kk3rz, hah, thanks! Had a lot of fun though, so was worth it! | 21:34 |
martonmiklos | ok | 21:34 |
martonmiklos | thanks! | 21:34 |
martonmiklos | is it needed to pathc the official kernel, or enabling the OTG is just matter of configuration | 21:35 |
martonmiklos | if the later then I could simply rebuild the mentioned kernel above with a tweaked config | 21:35 |
martonmiklos | and create a hybris-boot.img from it somehow | 21:35 |
eugenio | yes, it's just a matter of configuration | 21:36 |
martonmiklos | eugenio, hmm then yeah the best would be if those configs would be enabled upstream | 21:37 |
eugenio | the goal of my project was to reuse the whole of the X adaptation, so the X kernel as built by Jolla gets patched on-the-fly during upgrades | 21:37 |
martonmiklos | otherwise I will need to rebuild / reflash on each SFOS upgrade | 21:38 |
martonmiklos | ah that would have been my next question | 21:38 |
martonmiklos | that it is possible to compile modules and load them on the fly to the official kernel? | 21:39 |
eugenio | not on the Xperia X, CONFIG_MODULES is disabled | 21:39 |
martonmiklos | eugenio, ah I see | 21:39 |
eugenio | that I remember, at least | 21:40 |
mal | eugenio: I think that is a mistake, in kernel config it has some flags as modules but modules are not enable on device | 21:43 |
mal | https://github.com/mer-hybris/android_kernel_sony_msm/blob/hybris-sony-aosp-6.0.1_r80-20170902/arch/arm64/configs/aosp_loire_suzu_defconfig#L682 | 21:44 |
martonmiklos | hmm that sounds weird | 21:46 |
martonmiklos | anyway I do not even have the device yet | 21:50 |
martonmiklos | but I will wait for the upstreamed OTG support :) | 21:50 |
martonmiklos | hopefully it is going to be accepted | 21:51 |
martonmiklos | many thanks for the infos guys! | 21:52 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!