T42 | <k1gen> mal: systemd says dmsetup.service doesn't exist, but I can find unit file at /usr/lib/systemd/system/sparse/usr/lib/systemd/system/dmsetup.service | 07:06 |
---|---|---|
T42 | <k1gen> I also fixed dmsetup.sh permissions, nut it was in the right place | 07:09 |
T42 | <k1gen> *but | 07:09 |
T42 | <k1gen> should I move it from /usr/lib/systemd/system/sparse/usr/lib/systemd/system/ to /usr/lib/systemd/system/ and then enable? | 07:23 |
T42 | <k1gen> anyone? | 08:05 |
T42 | <parmjotsinghrobot> @k1gen I think for this you should just follow systemd guidelines, which I'd assume would be the second one | 08:47 |
T42 | <parmjotsinghrobot> Considering my limited experience with systemd | 08:47 |
T42 | <k1gen> "second one"? move to /usr/lib/systemd/system and enable? | 08:51 |
T42 | <parmjotsinghrobot> Yea | 09:00 |
T42 | <k1gen> @parmjotsinghrobot thanks for suggesting, I think it worked. can someone check my jounalctl: http://ix.io/4rFF ? | 09:06 |
T42 | <elros34> it's unreadable with not disabled audit. Did you check whether service you created is started and partitions are mounted: findmnt command? | 09:11 |
T42 | <k1gen> @elros34 I ran ls -l /dev/mapper, all dynamic partitions are mounted automatically | 09:13 |
T42 | <elros34> /dev/mapper dosn't tell you whether they are mounted | 09:14 |
kcroot | this step -> " echo 'mount_sdk() { sudo mount -o rbind "$sdkroot/srv" "$sdkroot/parentroot/srv"; }' >> ~/.mersdkrc " | 09:14 |
kcroot | is needed for SDK v 4.4.0.68 ? | 09:14 |
kcroot | i need to setup SDK in other place than /srv/sailfish | 09:15 |
T42 | <k1gen> @elros34 for audit: should I add BOARD_KERNEL_CMDLINE += audit=0 to BoardConfig.mk and rebuild hybris-hal in ubu-chroot and flash hybris-boot.img? is that all or I forgot something? | 09:18 |
T42 | <k1gen> findmnt output: https://vomitb.in/raw/b6S3VrpN2v | 09:19 |
mal | @k1gen /usr/lib/systemd/system/ is the correct location of course | 09:19 |
T42 | <k1gen> mal: seeing my findmnt, do you think we're done with dynparts? | 09:22 |
T42 | <elros34> compare against your fstab | 09:23 |
T42 | <k1gen> by the way, I still need a way to turn off the display over ssh, until I get gui working | 09:23 |
T42 | <elros34> and you need it because? | 09:23 |
mal | seems ok | 09:23 |
mal | hmm, is there system_root.mount? | 09:24 |
T42 | <k1gen> @elros34 because device has a four-year-old POLED panel | 09:24 |
mal | I mean does /system contain something now? is there /system_root ? | 09:24 |
T42 | <k1gen> mal: /system is empty | 09:25 |
T42 | <k1gen> also, no mention of system_root anywhere for my device | 09:25 |
mal | so you didn't copy the mount for that from my repo? | 09:26 |
T42 | <k1gen> no, not system_root. I copied only {system.system_ext,vendor?product}.mount and dmsetup.* | 09:27 |
T42 | <k1gen> *vendor,product | 09:27 |
T42 | <elros34> check whether you have brightness in /sys/class/backlight/ | 09:30 |
T42 | <k1gen> @elros34 yes, panel0-backlight | 09:31 |
mal | @k1gen replace the system.mount on your device with https://github.com/mlehtima/droid-config-fp4/blob/devel/sparse/usr/lib/systemd/system/system_root.mount except use /system in there instead of /system_root, looking at your fstab it mounts /system normally not as root https://github.com/LineageOS/android_device_google_coral/blob/lineage-18.1/fstab.hardware | 09:31 |
T42 | <elros34> see what value it has and try to write 1 or 0 to it | 09:31 |
T42 | <k1gen> echo 0/1 > /sys/class/backlight/panel0-backlight/brightness changes nothing | 09:31 |
T42 | <elros34> any other related files? | 09:32 |
T42 | <k1gen> https://vomitb.in/raw/NhS4sqEgJk | 09:32 |
T42 | <elros34> maybe check bl_power | 09:33 |
T42 | <k1gen> nope, doesn't work | 09:33 |
mal | sometimes backlight can be in the leds subsystem also | 09:34 |
T42 | <k1gen> led:flash_0/ led:flash_1/ led:switch_0/ led:switch_1/ led:switch_2/ led:torch_0/ led:torch_1/ vibrator/ | 09:34 |
mal | doesn't seem like it's there | 09:35 |
T42 | <elros34> grep for brightness in /vendor/etc os some imilar path init*rc files | 09:35 |
T42 | <k1gen> /vendor/etc/init/hw/init.sm8150.rc:265: chown system system /sys/class/backlight/panel0-backlight/brightness | 09:36 |
T42 | <k1gen> mal: so, just rename my system.mount to system_root.mount and replace Before= in dmsetup.sh? | 09:37 |
T42 | <elros34> are you sure you echo it correctly? maybe it's dummy for oled | 09:37 |
T42 | <k1gen> I don't understand what do you mean. I do echo 0 > /sys/class/backlight/panel0-backlight/brightness, cat returns 0, display stays on | 09:39 |
T42 | <k1gen> same with 1 instead of 0 | 09:39 |
T42 | <k1gen> mal: there's my system.mount: http://ix.io/4rFP , and there's system_root.mount: http://ix.io/4rFQ. which one should I leave? | 09:42 |
T42 | <elros34> you need system.mount but with system_root.content and mountpoint (Where=) set to /system | 09:47 |
T42 | <k1gen> thanks, let me try | 09:48 |
T42 | <k1gen> like that: http://ix.io/4rFS ? | 09:49 |
T42 | <elros34> if that is system.mount then yes (don't remove command prompt) | 09:51 |
T42 | <k1gen> I'm sorry, I usually just do ix (pastebin cli tool) <name of file> | 09:52 |
T42 | <k1gen> I will use vomitb.in more often to include prompt | 09:52 |
T42 | <k1gen> /system is populated now: https://vomitb.in/raw/4vkYI3WHys | 09:56 |
T42 | <k1gen> now I need to disable audit so we can read journalctl. I have to repeat my recent message: for audit: should I add BOARD_KERNEL_CMDLINE += audit=0 to BoardConfig.mk and rebuild hybris-hal in ubu-chroot and flash hybris-boot.img? is that all or I forgot something? | 09:59 |
T42 | <elros34> yes. What is in your /system/system? | 09:59 |
T42 | <k1gen> https://vomitb.in/raw/RNIEhwFuhc | 10:00 |
T42 | <elros34> so that system_root change was all wrong | 10:01 |
T42 | <elros34> you have system-as-root device | 10:01 |
T42 | <k1gen> what's that? | 10:01 |
T42 | <elros34> you have / in /system and /system in system/system | 10:02 |
T42 | <k1gen> what can I do about it? can I ask for detailed instructions? | 10:03 |
T42 | <elros34> intruction is same just you latest mofications are wrong. It' didn't work for the first time probably because some other mistake like missing symlink | 10:04 |
T42 | <k1gen> can you please explain like that: you need system.mount but with system_root.content and mountpoint (Where=) set to /system ? it is both short and very helpful | 10:05 |
T42 | <elros34> mal latest advice and my explanations how to change system.mount where wrong just follow initial instruction: system_root<=>system | 10:07 |
T42 | <k1gen> @elros34 https://vomitb.in/raw/4Jit6p9oTD like that? | 10:13 |
T42 | <TheVancedGamer> does anybody know why I get this error during `mka hybris-hal droidmedia`? | 10:28 |
T42 | <TheVancedGamer> ``` | 10:28 |
T42 | <TheVancedGamer> build/make/core/module_arch_supported.mk: error: RSUnbundledTests: Unknown installed file for module 'RSTestBackward'``` | 10:28 |
T42 | <TheVancedGamer> oh, and am I supposed to apply hybris-patches at this point? | 10:30 |
T42 | <elros34> before first make hybris-hal | 10:30 |
T42 | <TheVancedGamer> gotcha | 10:31 |
T42 | <TheVancedGamer> still getting the same error after applying patches | 10:32 |
T42 | <k1gen> elros, is everything fine with my system{,_root}.mount units? | 10:34 |
T42 | <elros34> clean up /out. If this will not help then search whether this Test* are defined in your device/* | 10:34 |
T42 | <TheVancedGamer> I checked out the defines in device trees, nothing related there | 10:34 |
T42 | <TheVancedGamer> i'll clean out | 10:35 |
T42 | <elros34> @k1gen isn't it copy from fp4 repo? Then it should be fine. You are not newbe anymore to gives you step by step confirmation, try yourself | 10:36 |
T42 | <k1gen> alright. what am I looking for after reboot? | 10:36 |
T42 | <elros34> findmnt and content in /system | 10:37 |
T42 | <k1gen> ok, thanks | 10:37 |
T42 | <elros34> if that is correct then droid-hal-init in logs, maybe mce will work and your display should dimm | 10:38 |
mal | @k1gen I said replace the content, no renaming of system.mount | 11:10 |
T42 | <k1gen> mounts are fine now, what was in /system before is now in /, and /system/system is in /system now | 11:11 |
mal | ok | 11:11 |
mal | @elros34 odd why fstab had system as /system | 11:12 |
T42 | <k1gen> gotta go for groceries while hybris-hal with audit=0 is rebuiding | 11:12 |
T42 | <TheVancedGamer> @elros34 didn't work, still same issue | 11:13 |
T42 | <elros34> mal: it's not that uncommon even for regular non dynamic partitions | 11:23 |
mal | ok, I didn't know that | 11:26 |
T42 | <TheVancedGamer> still getting this, grep reveals nothing, no idea what this even does (re @TheVancedGamer: does anybody know wh...) | 11:45 |
T42 | <TheVancedGamer> disabling renderscript to me doesn't seem like the smartest choice | 11:45 |
mal | which android base? | 11:46 |
T42 | <TheVancedGamer> 18.1 | 11:46 |
T42 | <TheVancedGamer> I did search chat history, hadk-faq and hadk-hot | 11:46 |
T42 | <elros34> I think I saw this error but no idea what and where was this. Can you show your device repo? | 11:55 |
T42 | <TheVancedGamer> github.com/redmi-mt6765/android_device_xiaomi_dandelion | 11:55 |
T42 | <elros34> be aware https://piggz.co.uk/sailfishos-porters-archive is case sensitive search engine | 11:56 |
T42 | <TheVancedGamer> kernel is at gitlab.com/ubports/porting/community-ports/android10/xiaomi-redmi-9c/kernel-xiaomi-mt6765 (branch is halium-10.0-test) | 11:56 |
T42 | <TheVancedGamer> i've already ported UT so kernel isn't really necessary, but just in case | 11:56 |
T42 | <TheVancedGamer> I don't know what I did but i'm already farther :P | 12:03 |
T42 | <TheVancedGamer> ah, adding `android.hardware.renderscript@1.0-impl` fixes it | 12:03 |
T42 | <k1gen> read father first time, lmao | 12:25 |
T42 | <k1gen> @elros34 I flashed kernel with audit=0, now I have droid-hal-init: Unable to move mount at '/data': Invalid argument in jounalctl: http://ix.io/4rGF | 12:41 |
T42 | <adampigg> I can take a PR ;) (re @elros34: be aware https://pig...) | 12:44 |
T42 | <elros34> it's there already for quite a time but not sure if correct | 12:44 |
mal | @k1gen can you show kernel commandline? | 12:45 |
T42 | <k1gen> sure, a minute | 12:45 |
T42 | <k1gen> mal: https://vomitb.in/raw/cqYhxSzst2 | 12:46 |
T42 | <elros34> with permissive selinux on hybris-18 you may need custom hw/vnd/servicemanager.rc with selinux stubs | 12:48 |
mal | is seems that androidboot.force_normal_boot=1 is causing odd things, wondering if this is the first time this happens | 12:49 |
T42 | <k1gen> @elros34 https://vomitb.in/raw/8dMBLKwZHE which one of these rc's and what are selinux stubs and where do I get them? | 12:51 |
T42 | <elros34> it's in hadk-hot hybris-18 section but it's guess. First you need to fix issue mal is talking about: droid-hal-init | 12:53 |
mal | @elros34 maybe we should comment out that code in init, I think bootloader might be adding the parameter to commandline | 12:53 |
T42 | <k1gen> what should I do to make droid-hal-init work? | 12:55 |
T42 | <k1gen> I sent journalctl earlier, you said it's unreadable without audit=0, and now that I've booted with audit=0, I don't know where to look in "readable" journalctl | 12:56 |
T42 | <elros34> like I said in droid-hal-init, you see it failed right after starting | 12:57 |
T42 | <k1gen> yeah, with status=6/NOTCONFIGURED | 12:57 |
T42 | <elros34> yeah but error is earlier and mal gives you tip immediately: force_normal_boot. If you search it in google then you can see this part android source code | 12:58 |
T42 | <k1gen> can I reboot without androidboot.force_normal_boot=1? | 13:00 |
T42 | <k1gen> Devices that use recovery as a ramdisk must use the kernel command line parameter androidboot.force_normal_boot=1 to decide whether to boot into Android or continue booting into recovery. | 13:00 |
T42 | <k1gen> source: https://source.android.com/docs/core/architecture/kernel/mounting-partitions-early?hl=en | 13:01 |
T42 | <elros34> only if it's not added by bootloader. Other/better solution would be commenting out code which check that probably in system/core | 13:02 |
mal | I didn't find that in device repo, maybe grepping is needed to be sure | 13:06 |
T42 | <k1gen> there is a couple lines of code in system/core/init/first_stage_init.cpp: bool ForceNormalBoot(const std::string& cmdline) {return cmdline.find("androidboot.force_normal_boot=1") != std::string::npos;} | 13:06 |
T42 | <k1gen> on lines 99-101: http://ix.io/4rGR | 13:07 |
T42 | <elros34> do you know c or some other launguages little? | 13:07 |
T42 | <k1gen> @elros34 little. what do I have to do? | 13:07 |
T42 | <TheVancedGamer> just make it return 1 ig? | 13:08 |
T42 | <b100dian> I think return false | 13:08 |
T42 | <b100dian> since next it will chroot | 13:08 |
T42 | <TheVancedGamer> yeah false is better, I keep forgetting whether 0 or 1 is true or false | 13:08 |
T42 | <b100dian> I was thinking - isn't that parameter an "opportunity" to package the lineage recovery and exec that from out init when force_normal_boot is missing | 13:09 |
T42 | <b100dian> *our | 13:09 |
mal | I think it would be better to just comment out that whole "if (ForceNormalBoot(cmdline)) {" part | 13:09 |
mal | we won't be needing it anyway | 13:10 |
T42 | <k1gen> mal: just comment out this https://android.googlesource.com/platform/system/core/+/refs/heads/android11-release/init/first_stage_init.cpp#279 ? | 13:13 |
mal | yes, the whole if | 13:14 |
T42 | <b100dian> Yes, that ForceNormalBoot is also used above, for example to make GetModuleLoadList look at another module file. Better to comment 279-287 | 13:14 |
T42 | <k1gen> what should I build to check? | 13:15 |
mal | hybris-hal, you can copy just the init to droid-hal-init on device for testing | 13:17 |
T42 | <k1gen> mal: replace /sbin/droid-hal-init on device with what from out/? | 13:24 |
T42 | <elros34> I think it should be clear what after make hybris-hal | 13:25 |
mal | yeah | 13:36 |
mal | out/target/product/$DEVICE/system/bin/init | 13:37 |
T42 | <k1gen> scp out/target/product/flame/system/bin/init device:/sbin/droid-hal-init ? | 13:41 |
mal | yes after you have built the new version | 13:43 |
T42 | <k1gen> thank you! | 13:43 |
T42 | <k1gen> what should I do about missing /usr/bin/droid/droid-hal-early-init.sh? | 13:43 |
mal | that is optional, not a problem | 13:44 |
mal | that file should be added only if device needs some special init, most don't need | 13:44 |
T42 | <k1gen> ~20min till hybris-hal builds. can we solve anything else while you are here? :) | 13:45 |
T42 | <elros34> really that long? did you add -j4 or more to make? | 13:46 |
T42 | <k1gen> well usually make -j$(nproc --all) hybris-hal takes about 45min and up to 30-35Gb of ram | 13:47 |
T42 | <elros34> but you are not building everything now | 13:50 |
mal | are you using ccache? | 13:50 |
T42 | <k1gen> sure. 99% of that time and ram is for linking kernel | 13:51 |
T42 | <k1gen> #### build completed successfully (39:47 (mm:ss)) #### | 13:58 |
T42 | <k1gen> oh my god, I can turn off the screen | 14:01 |
T42 | <TheVancedGamer> how 35GB? i'm building hybris-hal with 16 | 14:01 |
T42 | <k1gen> that's a gorgeous charging icon! | 14:02 |
T42 | <k1gen> it stays on screen even if I stop charging the device though | 14:02 |
T42 | <k1gen> no rndis, so no ssh/telnet | 14:04 |
T42 | <k1gen> gui and touchscreen works! | 14:06 |
T42 | <k1gen> everything is really small though, that's because of low pixel_ratio, right? | 14:06 |
T42 | <k1gen> setup detects two instances of each AP and stays in Connecting loop | 14:09 |
T42 | <k1gen> thank you @elros34 and mal for helping me all this time! all I have to do now is debug a few small issues, but I have gui! I never thought I'd get to it knowing myself :) | 14:13 |
mal | size issue is pixel_ratio, check the instructions for it, usually on modern devices it's about 1.75 or 2, but depends on device | 14:59 |
T42 | <k1gen> after some testing I found out that cameras, gyroscope (screen orientation sensor) and bluetooth are not working. also, I don't have pixel_ratio formula for 5.7" 1080x2280 19:9 (~444 ppi) display, so all icons and text is too little | 15:00 |
T42 | <k1gen> mal: I started texting a bit earlier :) | 15:00 |
T42 | <k1gen> can I test pixel_ratio without reflashing rootfs? | 15:02 |
T42 | <k1gen> dconf write 1.75 /desktop/sailfish/silica/theme_pixel_ratio ? | 15:04 |
mal | check faq | 15:28 |
mal | looks like that part of faq needs some formatting fixes but I think you can find out where commands start and end | 15:29 |
T42 | <k1gen> I got it on my own :) | 15:30 |
T42 | <k1gen> how do I calculate scale for resizing icons in mogrify -resize <scale> /usr/share/themes/sailfish-default/meegotouch/z1.75/icons/*.png ? | 16:09 |
T42 | <k1gen> because now I have normal scaling and pixel_ratio, but 7 icons in a row | 16:12 |
T42 | <edp_17> What's your device resolution? | 16:12 |
T42 | <k1gen> @edp_17 1080x2280. I took that mogrify part from your script btw (http://sprunge.us/YbWB), thanks for it | 16:13 |
T42 | <edp_17> My Note 4 (1440x2560) uses pixel_ratio 2 | 16:17 |
T42 | <edp_17> and my motoG7 (720x1570) uses pixel_ratio 1.25 | 16:17 |
T42 | <edp_17> I guess you should be fine with pixel_ratio 2. | 16:17 |
T42 | <XAP2P> i think pixel_ratio depends on your resolution and display size | 16:18 |
T42 | <edp_17> Yeah, you can modify that script and hard-code values to play with that. | 16:18 |
T42 | <XAP2P> It seems to me that in the ratio of examples it is possible to calculate how it will be better and it will turn out perfect | 16:18 |
T42 | <k1gen> nah, I'm fine with 1.75, I don't want stuff to get bigger | 16:19 |
T42 | <edp_17> Okay, it's up to you. :) | 16:20 |
T42 | <k1gen> between two of your examples, my 1080x2280 is made for 1.75 | 16:20 |
T42 | <k1gen> anyway, can you answer my initial question? | 16:20 |
T42 | <k1gen> about mogrify scale | 16:20 |
T42 | <edp_17> I can't. On my old S2, I just played with different values, then stick with the one looked the best. | 16:22 |
T42 | <k1gen> well there's awk "BEGIN {print $1*100/2.0}" in the script, but it produces value of 87.5 | 16:23 |
T42 | <k1gen> I don't think that's what I need | 16:24 |
T42 | <k1gen> I ran mogrify -resize 175 /usr/share/themes/sailfish-default/meegotouch/z1.75/icons/*.png and after reboot nothing changed, same 7 icons in a row | 16:30 |
T42 | <TheVancedGamer> https://paste.myself5.de/ejiyamiyin.properties | 16:34 |
T42 | <TheVancedGamer> getting this while building droid-hal | 16:34 |
T42 | <TheVancedGamer> I don't think .mb2/spec missing is fatal? | 16:35 |
T42 | <elros34> error is probably fatal | 16:35 |
T42 | <TheVancedGamer> is it because I installed sdk tooling and targets in home dir? | 16:36 |
T42 | <elros34> could be, where did you install sdk itself? | 16:37 |
T42 | <TheVancedGamer> /srv/sailfishos | 16:40 |
T42 | <elros34> I do not remember exactly whether its sdk or sdk target requirement but did you remove nosuid nodev from home mount? | 16:41 |
T42 | <TheVancedGamer> from where? | 16:45 |
T42 | <TheVancedGamer> it wasn't in hadk | 16:45 |
T42 | <TheVancedGamer> I installed sdk target and tooling with sdk-assistant if that changes anything | 16:46 |
T42 | <elros34> I am not sure I follow so what exactly you changed? | 16:46 |
T42 | <elros34> do you follow hadk or make some modyfication | 16:46 |
T42 | <TheVancedGamer> follow hadk | 16:52 |
T42 | <TheVancedGamer> I didn't change anything at all | 16:52 |
T42 | <elros34> so this was related to "is it because I installed sdk tooling and targets in home dir?"? | 16:53 |
T42 | <elros34> check whether you have env set up: 'env' command | 16:54 |
T42 | <TheVancedGamer> ok | 17:05 |
T42 | <TheVancedGamer> @elros34 my env https://paste.myself5.de/ayakinecaz.ini | 17:09 |
T42 | <TheVancedGamer> also, I can access the target sdk, I don't think its that | 17:10 |
T42 | <elros34> so you say no modification and still you use /hdd/hadk instead home | 17:12 |
T42 | <TheVancedGamer> /hdd/hadk is android root | 17:12 |
T42 | <elros34> outside of home | 17:13 |
T42 | <TheVancedGamer> I mean, is it necessary for android root to be in home? | 17:13 |
T42 | <elros34> IIRC if it's in another partition then you must bind mount it but I do not remember details | 17:15 |
T42 | <TheVancedGamer> I brought over that dir from /parentroot if that affects anything | 17:16 |
T42 | <elros34> not sure what do you mean show some files. I use android root on another disk which is mounted inside home and with bind mounts for sdks that works | 17:26 |
T42 | <k1gen> alright, today we got pixel to gui, now that I have a headache I'll leave the device till tomorrow. I will need help with getting icons to resize, sound, bluetooth, gyroscope and battery sensor to work | 17:29 |
T42 | <TheVancedGamer> @elros34 https://paste.myself5.de/inobajasoz.yaml | 17:37 |
T42 | <elros34> so how do you handle bind mount? Maybe try to mount that dnroid sources partition inside home | 17:43 |
T42 | <TheVancedGamer> `sudo mount --bind /parentroot/hdd /hdd` | 17:43 |
T42 | <TheVancedGamer> ok | 17:43 |
T42 | <TheVancedGamer> now build_packages wants /hdd/hadk, huh | 17:45 |
T42 | <elros34> did you change ANDROID_ROOT? | 17:45 |
T42 | <TheVancedGamer> right, I didn't | 17:46 |
T42 | <TheVancedGamer> thanks | 17:46 |
T42 | <TheVancedGamer> definitely farther than before | 17:46 |
T42 | <TheVancedGamer> getting a config not set error while it is set in .config | 17:51 |
T42 | <TheVancedGamer> log is filled with config not set errors, wtf | 17:52 |
mal | @k1gen something to consider for camera issues you noticed, I suspect you don't have the mini* services running, first of course make sure you have droidmedia and gst-droid installed, if you still have failing mini* services then have a look at lib and lib64 stuff here https://github.com/mlehtima/droid-config-fp3/tree/master/sparse/odm those symlinks inside those folder might need adjusting so | 18:51 |
mal | find where the files are on your device and add needed symlinks | 18:51 |
T42 | <k1gen> thanks for helping, I'll do it tomorrow in the morning | 18:52 |
T42 | <k1gen> mal: can I eventually get fully functional device, how do you think? | 18:53 |
piggz | mal: whats this rude file which broke lipstick on my pinephon :) /usr/lib/systemd/user/lipstick.service.d/50-compositor.conf | 19:12 |
piggz | some new file in config packge | 19:12 |
mal | piggz: so use delete_file.list | 19:39 |
piggz | mal: i have :) | 19:39 |
mal | piggz: another reason to finally make the mainline port submodule | 19:40 |
mal | which we talked about long time ago | 19:40 |
piggz | mal: currently trying to merge in PA config changes into native version .... | 19:41 |
piggz | what i was was preventing pa loading becuase the bluez5 stream restore file is no longer present | 19:41 |
mal | @k1gen it's doable usually | 19:41 |
T42 | <k1gen> nice to hear :D | 19:42 |
mal | sometimes some things take time but difficult to say how easy some device is | 19:42 |
T42 | <b100dian> Hello, I got my first init.log in real rootfs with no telnet running: https://pastebin.ubuntu.com/p/HJRhthJPz7/ | 20:41 |
T42 | <b100dian> (Let me know if you prefer another paste service) | 20:41 |
T42 | <b100dian> I did try to change c.1 to b.1 and I tried with minimal kernel changes like in https://github.com/b100dian/android_kernel_asus_sm8350/tree/hybris-18.1-minimal but also with the hybris-18.1 branch which is the one passing the kernel checker | 20:45 |
T42 | <elros34> change 'echo "$(ls /sys/class/udc)" > $GADGET_DIR/g1/UDC' to 'echo a600000.dwc3 > $GADGET_DIR/g1/UDC' | 20:53 |
T42 | <elros34> btw did you completely disable selinux for some reason? | 20:57 |
T42 | <b100dian> I appended androidboot.selinux=permissive. I just noticed where the cmdline is in the log - first look tells me it's concatenated (boot, vendor_boot) | 21:05 |
T42 | <b100dian> thanks for noticing that "ls" output! I do see usb0 and telenetd in the log now. I may need to switch cables I don't see them on the host yet | 21:06 |
T42 | <elros34> I think upstream fix could be simple like 'ls /sys/class/udc | grep -v dummy' | 21:08 |
T42 | <b100dian> Yes, that's the change I'm doing locally, maybe it will end up in a PR | 21:20 |
T42 | <elros34> you should check kernel config whether you have selinux enabled there. | 21:24 |
T42 | <b100dian> I have [CONFIG_SECURITY_] SELINUX=y, SELINUX_BOOTPARAM=y and SELINUX_BOOTPARAM_VALUE=1 | 21:41 |
T42 | <b100dian> what did you see suspicious about selinux? | 21:41 |
T42 | <elros34> the point is I do not see selinux initialization | 21:42 |
T42 | <elros34> usual one | 21:43 |
T42 | <b100dian> I see.. should be around the 0th second "SELinux: Initializing".. | 21:48 |
T42 | <elros34> yeah, maybe zcat /proc/config.gz shows some points | 21:49 |
T42 | <b100dian> After Yama: becoming mindful :) I have "AppArmor: AppArmor initialized" | 21:50 |
T42 | <b100dian> I don't have yet telnet access. I may use extract-ikconfig. | 21:53 |
T42 | <b100dian> I see /init-debug: line 281: can't create /etc/udhcpd.conf: nonexistent directory and in rootfs there's a link /etc/udhcpd.conf -> /run/usb-moded/udhcpd.conf | 21:53 |
T42 | <elros34> did you create /init_enter_debug2? | 21:54 |
T42 | <b100dian> did that now. Is "vomitbin" better for the eyes? https://vomitb.in/krM9d2hZIo | 22:07 |
T42 | <elros34> sure. So rndisk still doesn't work, did you enable all these usb configs linked here few days ago? | 22:10 |
T42 | <elros34> hmm but there is usb0 | 22:12 |
T42 | <b100dian> yes, that's weird. and that appeared after I fixed the dummy udc writing | 22:14 |
T42 | <elros34> so nothing in host dmesg? | 22:14 |
T42 | <b100dian> no. I just checked with my other phone and it is detected as rndis_host | 22:25 |
T42 | <b100dian> I do have the three usb configs linked a few days ago. I extracted this init.qcom.usb.rc from the vendor partition, where vendor.usb.rndis.func.name is "gsi": https://pastebin.ubuntu.com/p/GpFX8dSrsf/ | 23:29 |
T42 | <elros34> can you show your .config | 23:38 |
T42 | <b100dian> Of course. .config is https://vomitb.in/zz0punYrfZ | 23:43 |
T42 | <elros34> try changing rndis_bam.rndis to gsi.rndis in init script | 23:46 |
T42 | <b100dian> and c.1 to b.1 right? | 23:46 |
T42 | <elros34> I am not sure this is relevant. If that doesn't change anything maybe disable CONFIG_USB_CONFIGFS_F_GSI. You should also include dmesg, maybe there will be something and of course always check host dmesg for any message | 23:48 |
T42 | <elros34> I think CONFIG_USB_CONFIGFS_ECM could be also an option | 23:53 |
T42 | <b100dian> I also see a lot of modules in the config, I just remembered they probably can't load if they are searched for in vendor_boot cause I dont' yet build that. But nothing rndis related though | 23:56 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!