**** BEGIN LOGGING AT Fri Jan 19 03:00:01 2018 Jan 19 15:29:39 https://paste.ubuntu.com/26416996/ Jan 19 17:18:27 Walid I think that my phone does not load the firmware in the right way. There is a firmware folder in the systemimage full of dead symlinks Jan 19 17:31:56 Can you please look in your android container etc/firmware dir if you also got a lot of broken symlinks? Jan 19 17:32:13 Specifically wcnss.b* files Jan 19 17:43:47 look in dmesg or syslog, if firmware partition is mounted Jan 19 17:44:43 in my phone ls /firmware -> show images folder, and images folder cotaines all *.mdt files Jan 19 17:45:07 can you show me fstab Jan 19 17:56:22 hmm I dont have this in fstab and its also not mounted Jan 19 17:56:26 Do you have? Jan 19 17:56:31 yes Jan 19 17:56:50 interesting but I checked your fstab on Github, did not see it in the device repo Jan 19 17:56:54 can you send me link? Jan 19 17:57:06 (Document) https://irc.ubports.com/VAqc4pmR/file_3854.qcom Jan 19 17:57:31 ahh its called modem Jan 19 17:57:33 Damn Jan 19 17:57:40 Let me check just a sec Jan 19 17:58:11 Oh I got this: Jan 19 17:58:36 its split in 2 parts Jan 19 17:58:59 delete ,context=u:object_r:firmware_file:s0 Jan 19 17:59:19 its not recognnnized with ubuntu touch Jan 19 17:59:40 Hmm looks like this: … none on /var/lib/lxc/android/rootfs/firmware type tmpfs (rw,relatime,size=4k) … none on /var/lib/lxc/android/rootfs/firmware-modem type tmpfs (rw,relatime,size=4k) Jan 19 17:59:47 you mean thats the problem? Jan 19 17:59:51 yes sure Jan 19 18:00:03 oh now its clear why I dont have WiFi πŸ˜† Jan 19 18:00:43 Ok trying Jan 19 18:01:35 just mka systemimage and replace it Jan 19 18:01:54 Haha its make -j4 since I am on 12.1 but ok πŸ˜† Jan 19 18:02:36 u compile ubports-5.1 or halium-5.1 ? Jan 19 18:02:38 @Walid, BTW I made the following proposal for rootstock so to make it easier to exchange new system image: https://github.com/UniversalSuperBox/rootstock-ng/pull/4 Jan 19 18:03:03 (Document) https://irc.ubports.com/740McBBw/file_3855 Jan 19 18:03:07 use this Jan 19 18:03:30 i changed it to work with UT, Jan 19 18:03:34 Ah ok Jan 19 18:06:22 HA! Jan 19 18:07:02 Waliiid! You are my hero! Got a SIMCARD SYMBOL! Jan 19 18:08:02 greattt Jan 19 18:08:17 but now RNDIS died Jan 19 18:08:23 instead I got USB hub ^^ Jan 19 18:08:54 disable any import usb.*.rc in init.qcom.rc Jan 19 18:09:12 ok Jan 19 18:09:17 @Flohack, Damn... Congratulations Jan 19 18:11:29 @Walid, ok will do Jan 19 18:15:07 @NSA_AMERICA, Thanks. Its still a lot to go. But I did not see that there are some mounts missing. Rule of thumb: Put a paragraph of "check if all partitions are mounted correctly" into porting guide ^^ Jan 19 18:15:36 Also now boot is much faster Jan 19 18:15:40 πŸ˜† Jan 19 18:16:01 (Sticker, 360x512) https://irc.ubports.com/zTApnbQj/file_3856 Jan 19 18:27:31 Ok but Wifi still does not want to work ;) Jan 19 18:28:17 But its definitely much better with firmware πŸ˜† Jan 19 18:28:25 Got first time messages from audio driver Jan 19 18:28:56 try with shell to connect to wifi Jan 19 18:30:09 No whatever commands I enter I cant make the driver load it. I did all commands from your script and still /wlan is not existing Jan 19 18:33:56 @Walid, Oh maybe I forgot this Jan 19 18:34:04 To disable wcnss_service Jan 19 18:40:34 @Flohack, I hope you enabled right configs for wlan in kernel Jan 19 18:41:08 @Satyam2345, I took it from CM kernel. No idea maybe missing smth ;) Jan 19 18:41:56 Because in my case it was pronto something.. There are lot of other WiFi out there which is not completely covered in docs. Jan 19 18:42:16 Hmm its Samsung so it will be very special ;) Jan 19 18:42:33 Hmm can I disable sdcard service? It makes crazy output Jan 19 18:43:00 Doesn't it sound like bad idea ? Jan 19 18:44:28 vno its OK I think Jan 19 18:44:40 sdcard will be handled by UT itself normally Jan 19 19:00:07 @Satyam2345, This file exists but gives bad address when writing to it: echo 1 > /dev/wcnss_wlan Jan 19 19:03:46 @Flohack, yes you must remove all default wcnss_service and add new Jan 19 19:04:07 @Flohack, its not a pb Jan 19 19:04:09 @Walid, I removed the default one but this was the same as you gave into your script Jan 19 19:04:56 @Walid, yeah just meaning the driver should be OK in the kernel Jan 19 19:05:18 try this , what show you : … nmcli d wifi list Jan 19 19:05:40 empty Jan 19 19:05:55 this is also in init.rc: … # Kickstart the Wireless subsystem … write /dev/wcnss_wlan 1 Jan 19 19:06:50 hmm wpa supplicant is also inside Jan 19 19:06:59 oops ! Jan 19 19:07:20 ah no its disabled Jan 19 19:08:47 Damn WiFi worked with halium and 7.1 / 14.1 tree Jan 19 19:09:10 can i see yyour device tree Jan 19 19:09:41 yes just a sec will commit latest Jan 19 19:12:42 @Walid, https://github.com/Flohack74/android_device_samsung_s3ve3g/tree/halium-5.1 Jan 19 19:15:13 hmmm your init.qcom.rc i think is wrong Jan 19 19:15:22 remove wcnss_service Jan 19 19:15:23 Ok ;) tell me Jan 19 19:15:27 and add this Jan 19 19:15:29 service init_wlan_bt /system/bin/sh /system/etc/init_wlan_bt.sh … class main … user root … group root … oneshot … service wcnss-service /system/bin/wcnss_service … class main … user root … group root … oneshot Jan 19 19:15:36 I disabled it Jan 19 19:15:48 but then its running again you said disable ;) Jan 19 19:17:12 means default (from CM ) Jan 19 19:26:18 Its running now as root: … root@ubuntu-phablet:~# ps aux | grep wcn … root 99 0.0 0.0 0 0 ? S 15:18 0:00 [irq/536-wcnss] … root 131 0.0 0.0 0 0 ? S< 15:18 0:00 [diag_wcnss_data] … root 1040 0.0 0.0 0 0 ? S< 15:18 0:00 [ipc_rtr_wcnss_i] … root 1067 0.0 0.0 1736 724 pts/2 S 15:18 0:00 /system/bin/wcnss_service … root 5068 0.0 0.0 Jan 19 19:26:19 S+ 15:19 0:00 grep β€”color=auto wcn Jan 19 19:26:57 Also your script: Jan 19 19:26:58 root@ubuntu-phablet:~# ps aux | grep wlan … root 1066 0.0 0.0 1092 276 pts/2 S 15:18 0:00 /system/bin/sh /system/etc/init_wlan_bt.sh Jan 19 19:30:18 and nmcli d wifi list ? Jan 19 19:30:30 empty of course ;) Jan 19 19:36:10 and thsi cmd … echo sta > /sys/module/wlan/parameters/fwpath Jan 19 19:37:21 no the directory wlan is not existing Jan 19 19:37:27 I hate you Samsung Jan 19 19:41:38 @Flohack, Universal truth is : everyone hates it. πŸ˜‚πŸ˜‚ Jan 19 19:41:55 hjahaha Jan 19 19:42:59 Ok maybe I can fix sound. Lets go for this first ^^ Jan 19 19:43:07 Is UT now using alsa or pulseauido Jan 19 19:43:23 Even in India , Samsung is not allowed to carry if u r going in flight.. πŸ˜³πŸ˜‚ Jan 19 19:44:14 @donR, Since when? Jan 19 19:45:17 U can check this warning in irctc site.. 😊 Jan 19 19:45:39 Flight booking. Jan 19 19:46:12 Irctc now allows booking flights ? Jan 19 19:47:26 (OT) Jan 19 19:49:20 @bhushanshah what can th cause of this error … Failed to create procfs node for VFP bounce reporting Jan 19 19:49:55 Where do you get this? Jan 19 19:50:23 @theimpulson, Yes. Its upgraded. Jan 19 19:50:35 dmesg, in halium-7.1, never work with UT xenial, with Plasma mobile work well Jan 19 19:53:31 I don't think that's fatal error Jan 19 19:57:35 i think i will work on halium-7.1 for plasma and halium-5.1 for UT xenial Jan 19 20:13:30 Look I found this: … [ 8.342289] wcnss_wlan triggered by userspace Jan 19 20:13:32 in dmesg Jan 19 20:14:34 try flash vivid first , its more stable then xenial Jan 19 20:26:56 dohniks was added by: dohniks Jan 19 20:38:33 mrtcnblgc17 was added by: mrtcnblgc17 Jan 19 22:49:03 (Photo, 1440x2560) https://irc.ubports.com/4PxlerUN/file_3858.jpg Jan 19 22:49:43 I have no idea why now rild/ofono came to life Jan 19 22:50:06 Its only gsm, and it shows no connection, but PIN requested worked and suddenly I got data ^^ Jan 19 22:50:27 Also not the cute symbol showing I am conected via LAN. Still no Wifi lol Jan 19 23:20:58 Happened for me the other day as well. Hasn't worked since. Jan 19 23:21:09 I go WiFi! Jan 19 23:21:12 BUUT its weird Jan 19 23:21:31 Seems like there's some crazy race condition that sometimes works in my favor Jan 19 23:21:42 the kernel is configured to have module support and builds wlan.ko - needs to be loaded, but cannot since the path to the modules dir is not correct Jan 19 23:21:54 what do we know about kernel modules on the phones Jan 19 23:21:56 Oh! Jan 19 23:22:32 ubports-boot copies them like it's supposed to Jan 19 23:22:42 Halium-boot should too Jan 19 23:22:50 well yes and no: Jan 19 23:23:02 root@ubuntu-phablet:~# modprobe wlan … modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/3.4.0-cyanogenmod-ge3e2daa-dirty/modules.dep.bin' … modprobe: FATAL: Module wlan not found in directory /lib/modules/3.4.0-cyanogenmod-ge3e2daa-dirty Jan 19 23:23:14 there should be a subfolder with kernel version Jan 19 23:23:17 which isnt there Jan 19 23:23:27 I can manually insmod wlan.ko and it works immediately Jan 19 23:24:32 Hmm... Do you have a Canonical device? Jan 19 23:24:40 No Samsung S3 Neo Jan 19 23:24:48 See what its modules dir looks like Jan 19 23:24:53 I mean do you own one Jan 19 23:24:54 the cyanogenmod strange name is interesting Jan 19 23:24:58 yes ok I can take a look Jan 19 23:27:10 empty. probably kernel should be configured to use the /lib/modules top level Jan 19 23:27:59 Is that a kernel option? Sure then do that Jan 19 23:28:00 wlan.ko it used in cm-12.0 , and older, in 12.1 there is no module for wlan.ko Jan 19 23:28:33 hmm strange tree I have ^^ Jan 19 23:30:37 btw filemanager show nothing , white screen and sometimes crash, can't capture photo, because system can't read/write to internal stotage Jan 19 23:30:58 yes filemanager is very broken in 16.04 Jan 19 23:33:07 @UniversalSuperBox, can you point me to the copy process Jan 19 23:34:50 (Photo, 720x1280) https://irc.ubports.com/lUo7dXsi/file_3860.jpg Openstore on my Samsung S3 Neo with 16.04 Jan 19 23:34:55 @Flohack, https://github.com/UniversalSuperBox/initramfs-tools-halium/blob/halium/scripts/halium#L528 Jan 19 23:36:45 @UniversalSuperBox, That should be /lib/modules/$(uname -r) Jan 19 23:36:47 at the end Jan 19 23:37:37 Guess it works for anyone else Jan 19 23:37:38 I don't know if uname is available at that point... Jan 19 23:38:09 hmm then we need to figure out who the name should be. It cannot work since modprobe appends the uname -r output and expects all stuff to be there Jan 19 23:38:56 so no automatic loading of modules will happen Jan 19 23:39:09 Is that how it is on your canonical doodad? Jan 19 23:39:34 No because that one apaprently has no modules to be loaded. Depends on kernel and device probably Jan 19 23:39:54 Ah Jan 19 23:40:11 Wait, it isn't in the uname folder inside android, Jan 19 23:40:52 @Flohack, Openstore was hosed for me too when I checked it out on my FP2 on 16.04 the other day Jan 19 23:40:56 the same error on BQ E5 when I type depmod -a Jan 19 23:41:10 (I was bored and powering on all my devices for the hell of it ) Jan 19 23:41:18 @Lyokanthrope, lol Jan 19 23:41:44 @Lyokanthrope, Yep Jan 19 23:42:17 My Lumia 640 is apparently basically a brick because it kicks in factory reset protection as soon as I power it on and it needs a recovery key which I don't have. rip. Jan 19 23:43:39 Also apparently someone ported fastboot and etc to the Lumia 520...that'd be hilarious to get Halium running on it. But the device trees out there (apparently forked from the Xperia M?) are lineage 13 based Jan 19 23:44:53 Anyway apologies for minor OT Jan 19 23:49:03 So @Flohack... Where are the modules in the Android image? Jan 19 23:49:29 on /lib/modules ;) - Android apparently does not need a subfolder called Jan 19 23:49:51 You can try on your device, type depmod in the sell Jan 19 23:49:55 you will get the same error Jan 19 23:50:19 But... You can't link into that folder. It doesn't exist Jan 19 23:50:32 which one? Jan 19 23:50:49 Which means that we'd need to mount a tmpfs, make the uname folder, then bind-mount there Jan 19 23:51:35 cant we just create it on android side and copy modules there? Actually that will work easier I think Jan 19 23:52:46 Wat Jan 19 23:53:28 make a system/lib/modules/ folder during systemimage build. Inject it into the android build process, not initramfs tools Jan 19 23:54:47 whats behind /lib/modules on UT side now? bindmount? Jan 19 23:56:23 BTW uname is part of busybox if that helps Jan 19 23:57:44 Oh good Jan 19 23:58:00 @Flohack, Exactly what you see in the script I linked Jan 19 23:58:12 hmm I dont have your initramfs tool right now can I try this uname thingie? Jan 19 23:58:26 @UniversalSuperBox, yeah sry did not understand before Jan 20 00:03:03 @Walid, I will try now to link it internally with =y Jan 20 00:08:46 Ok works. Thanks Walid once more. I go to bed now, success ! :) Jan 20 00:09:04 But bluetooth is not detected. Should this work in 16.04 already? Jan 20 00:09:37 @UniversalSuperBox we can postpone this module stuff then a bit. Its only important for kernels that would really rely on modules. For example due to size restrictions **** ENDING LOGGING AT Sat Jan 20 03:00:01 2018