**** BEGIN LOGGING AT Wed Oct 02 02:59:57 2019 Oct 02 07:01:28 Hello everybody, I am new at porting and working on ROMs. I have some questions. … I'm using python2 virtualenv after seeing mka mkbootimg giving an error, so python3 is not usable if not called as python3. Is that a good practice? … And since I could not make hybris-boot, I wanted to make another working halium port as an example, bu Oct 02 07:01:28 t still had no luck. I tried lge_mako, google_marlin. Is there a device can be built out of the box and can different devices trees be sync under the same working directory so I can know what I do wrong? … Thanks. Oct 02 07:02:37 [Edit] Hello everybody, I am new at porting and working on ROMs. I have some questions. … I'm using python2 virtualenv after seeing mka mkbootimg giving an error, so python3 is not usable if not called as python3. Is that a good practice? … And since I could not make hybris-boot, I wanted to make another working halium port as an exam Oct 02 07:02:38 ple, but still had no luck. I tried lge_mako, google_marlin. Can different devices trees be synced under the same working directory and is there a device that can be built out of the box so I can know what I do wrong? … Thanks. Oct 02 07:10:59 Yes you can have few devices syncd in one folder Oct 02 08:02:40 Xray2000 was added by: Xray2000 Oct 02 08:04:25 @velitasali I assume it would be more helpful if you could post logs of hybris-boot build problem so we can see if it is something common or not Oct 02 08:04:53 as for virtualenv, yes, it is adviced in docs as well Oct 02 08:22:58 Any news of the halium port on Android pie base Los? Oct 02 08:24:32 no, we're still far from that Oct 02 08:25:39 hL1sxa was added by: hL1sxa Oct 02 08:40:35 Filbien Jérémy was added by: Filbien Jérémy Oct 02 08:41:11 hello world … can i port ubuntu touch on asus zenphone 3 max (X008D) ? Oct 02 08:50:16 @Filbien Jérémy [hello world … can i port ubuntu touch on asus zenphone 3 max (X008D) ?], if the phone has an Android 7.1 based LineageOS or AOSP port then yes Oct 02 08:50:58 my rom is broken XD Oct 02 08:51:13 what do you mean? Oct 02 08:51:54 @fredldotme [what do you mean?], Maybe it fell down and is cracked now ^^ Oct 02 08:52:59 I change the ROM is it does not function (SIM card not detect, no play store etc. ..) and when she walk there was android 7.1 Oct 02 08:54:28 @Filbien Jérémy [I change the ROM is it does not function (SIM card not detect, no play store etc …], you need to find the android 7.1 based source code to proceed with porting Oct 02 08:54:41 @Flohack [Maybe it fell down and is cracked now ^^], lol, a small slap on the back and it was over Oct 02 08:55:41 @Filbien Jérémy [my rom is broken XD], someone can help me to port ? Oct 02 08:56:17 @Filbien Jérémy [someone can help me to port ?], all you need is here: http://docs.halium.org/en/latest/porting/first-steps.html Oct 02 08:56:41 @Filbien Jérémy [someone can help me to port ?], and here: http://docs.ubports.com/en/latest/porting/introduction.html Oct 02 09:01:14 yes but i don't understand Oct 02 09:01:31 i can paid someone here to do that ? Oct 02 09:03:18 most people doing ports in here are volunteers Oct 02 09:03:34 so I'm not sure that's going to work Oct 02 09:03:57 especially since porters mostly need the device and I'm pretty sure nobody here has this model Oct 02 09:04:55 yes and i can't send you the phone because i'm in France Oct 02 09:06:46 okay so @fredldotme you can help me to port ubuntu touch ? Oct 02 09:06:59 if I do it myself Oct 02 09:07:20 you should be able to follow the guides I sent you, but if there are specific questions feel free to ask here Oct 02 09:09:17 where i find the needed file ? Oct 02 09:10:42 what file? Oct 02 09:11:44 @fredldotme [if the phone has an Android 7.1 based LineageOS or AOSP port then yes], that Oct 02 09:12:19 Google. Porting is like building a ROM. Oct 02 09:12:42 and like for building a ROM you need the source code. Oct 02 09:28:41 https://www.asus.com/fr/Phone/ZenFone-3-Max-ZC553KL/HelpDesk_Download/ source code ? Oct 02 09:41:14 the corde source is named "kernel" it's normal ? Oct 02 09:41:24 (yes i no i'm noob xD) Oct 02 09:44:12 the kernel is one part of what you need, you also need the device tree and maybe HAL sources. Oct 02 09:44:26 where i find that XD Oct 02 09:45:45 ? Oct 02 09:56:37 @fredldotme can i contact you in private ? Oct 02 09:57:59 @Filbien Jérémy [@fredldotme can i contact you in private ?], alright Oct 02 10:02:58 @fredldotme send me i think you don't see mine Oct 02 15:41:02 Luka was added by: Luka Oct 02 15:41:14 Connection closed by foreign host. Oct 02 15:41:14 when telneting Oct 02 15:41:51 [44112.372052] usb 1-2.2: Product: SAMSUNG_Android … [44112.372061] usb 1-2.2: Manufacturer: SAMSUNG … [44112.372069] usb 1-2.2: SerialNumber: Mer Debug setting up (DONE_SWITCH=no) Oct 02 15:42:42 root@luka-E403SA:~# ssh root@192.168.2.15 … ssh: connect to host 192.168.2.15 port 22: Connection refused Oct 02 15:49:11 any idea? Oct 02 15:49:42 Use pstore Oct 02 15:52:11 @Venji10 [Use pstore], hmm isnt it for kernel 4+ … on my 3.10 isnt it last_kmsg Oct 02 15:52:13 ? Oct 02 15:53:54 @Venji10 [Use pstore], ~ # ls /sys/fs/pstore/ … ~ # Oct 02 15:54:03 empty folder damn it Oct 02 15:56:58 any other idea? Oct 02 16:05:22 hmmm now cant build Oct 02 16:05:23 sed: no input files … halium/hybris-boot/fixup-mountpoints: 45: halium/hybris-boot/fixup-mountpoints: /home/hello/halium5/out/target/product/degaswifi/obj/ROOT/hybris-boot_intermediates/init: Permission denied … find: '/home/hello/halium5/out/target/product/degaswifi/obj/EXECUTABLES/busybox_intermediates': No such file or directory … halium/ Oct 02 16:05:23 hybris-boot/Android.mk:166: recipe for target '/home/hello/halium5/out/target/product/degaswifi/obj/ROOT/hybris-boot_intermediates/init' failed … make: *** [/home/hello/halium5/out/target/product/degaswifi/obj/ROOT/hybris-boot_intermediates/init] Error 126 Oct 02 16:18:59 well ssh != telnet Oct 02 16:27:53 @Luka [Connection closed by foreign host.], here is telnet Oct 02 16:28:01 @dohbee [well ssh != telnet], i know Oct 02 16:35:36 luka@luka-E403SA:~/pxa-mkbootimg$ telnet 192.168.2.15 … Trying 192.168.2.15... … Connected to 192.168.2.15. … Escape character is '^]'. … Connection closed by foreign host. … luka@luka-E403SA:~/pxa-mkbootimg$ telnet 192.168.2.15 … Trying 192.168.2.15... … telnet: Unable to connect to remote host: Connection refused … luka@luka-E403SA:~/pxa-m Oct 02 16:35:36 kbootimg$ Oct 02 16:43:29 looks like something crashed on the device Oct 02 17:06:31 yes, but no way of debugging? Oct 02 17:06:56 is there a way to force write it into some file? Oct 02 17:15:07 any ideas? Oct 02 17:15:22 may be problem is pxa1088 cpu? Oct 02 17:15:42 marvell Oct 02 17:15:53 but it boots postmarketos ok Oct 02 17:16:14 idk why but system.img for halium is so smallonly 63mb Oct 02 17:19:21 will try build hybris-recovery Oct 02 17:26:49 @Luka [idk why but system.img for halium is so smallonly 63mb], Probably you are missing something Oct 02 17:27:08 for example? Oct 02 17:30:17 may be ok it is old device Oct 02 17:30:26 without vendor Oct 02 17:30:44 all proprietary stuff is in device tree Oct 02 17:34:28 same with recovery Oct 02 17:35:20 @Luka [luka@luka-E403SA:~/pxa-mkbootimg$ telnet 192.168.2.15 … Trying 192.168.2.15... … Con …], have you enabled DEVTMPFS? Oct 02 17:35:57 @Luka [luka@luka-E403SA:~/pxa-mkbootimg$ telnet 192.168.2.15 … Trying 192.168.2.15... … Con …], [Edit] have you enabled CONFIG_DEVTMPFS? Oct 02 17:37:01 @NotKit [have you enabled CONFIG_DEVTMPFS?], CONFIG_DEVTMPFS_MOUNT=y … CONFIG_DEVTMPFS=y Oct 02 17:37:28 then yes Oct 02 17:37:38 ok, strange Oct 02 17:37:50 system.img doesn't affect early boot process Oct 02 17:38:10 hmmm may be try to boot twrp with that kernel Oct 02 17:38:12 ? Oct 02 17:38:30 I think kernel boots, but telnet server fails Oct 02 17:39:16 but it will exit once rootfs is booted Oct 02 17:39:43 [Edit] but it will exit once init from rootfs is started Oct 02 17:41:29 yep kernelis ok with twrp Oct 02 17:42:14 @NotKit [I think kernel boots, but telnet server fails], any way of debugging? Oct 02 17:47:34 here if it can help is my tree https://github.com/GalaxyTab4/maxicm_device_samsung_degaswifi/tree/cm-12.1 Oct 02 17:47:47 with vendor included Oct 02 17:48:36 have you tried halium-boot + ubports? Oct 02 18:03:02 not yet Oct 02 18:03:14 dont think it will fit Oct 02 18:03:25 only 8 gb of internal storage Oct 02 18:11:31 how much is userdata? Oct 02 18:12:25 UT rootfs is definitely not 8GB Oct 02 18:17:01 but 8 gb of internal storage means userdata is less due to system/cache/etc Oct 02 18:18:58 yes, but still, userdata is going to be most of that, not the smallest bit Oct 02 18:19:58 we have 8GB phones supported already, so it'd be really surprising if an 8GB phone couldn't fit the rootfs. though depending on partitioning, it might not fit all the data into cache or such Oct 02 18:20:05 for OTAs and installs Oct 02 18:20:14 @NotKit [how much is userdata?], 4883mb Oct 02 18:20:23 ok, you can try to fit it Oct 02 18:20:47 ok but tomorrow Oct 02 18:21:01 i need repack every boot image Oct 02 18:21:05 for thois tab Oct 02 18:21:22 due to not standart img format Oct 02 18:23:51 there is some tool pxa-mkbootimg Oct 02 18:25:11 @NotKit [ok, you can try to fit it], can i use microsd? Oct 02 18:25:27 as on pmos for example? Oct 02 18:25:32 in practice, yes, but you will need to modify initramfs a bit Oct 02 18:25:39 though if you repack boot image, you can Oct 02 18:26:01 https://github.com/Halium/initramfs-tools-halium/blob/halium/scripts/halium#L378 Oct 02 18:26:17 it tries partition by labels in this order Oct 02 18:26:46 if you add some label here before userdata and create partition with same label on microSD, it should pick that label when it is present Oct 02 18:27:33 good ida Oct 02 18:27:36 idea* Oct 02 18:27:51 becouse for examle on pmos emmc is not working Oct 02 18:48:28 (Photo, 1598x926) https://irc.ubports.com/mafdom3f.png 🇺🇸↪️ bit.ly/2mZY4ND ⬆️⬅️Start registering!⁉️ Oct 02 19:11:27 rmt_storage: unrecognized service Oct 02 19:11:31 how they heck? Oct 02 19:11:40 its supposed to be that? Oct 02 19:11:51 [Edit] how the heck? Oct 02 19:33:40 ok i get no rmt_storage under /dev Oct 02 19:33:44 how can i fix it? Oct 02 19:52:57 If your using a microsd I think its recognized as mmcblk1p(whatever number for partition) Oct 02 20:02:56 @Shakendo are you having SSH running on note now by any chance? Oct 02 20:03:12 Yes Oct 02 20:03:30 can you check me if you have rmt_storage enabled? Oct 02 20:03:32 systemctl list-unit-files --state=enabled Oct 02 20:03:42 i dont even see it Oct 02 20:04:44 I can later, in a airport and laptop is dead, note 4 has full GUI though Oct 02 20:05:38 Oohh great, building a custom initramfs (either by ./build-initrd.sh or by unpacking-repacking) results in a kernel panic due to ENOEXEC. Oct 02 20:05:39 https://paste.ubuntu.com/p/WsFxS3bR8x/ Oct 02 20:05:45 Although iirc isnt systemctl systemd? Oct 02 20:06:19 @fredldotme [Oohh great, building a custom initramfs (either by ./build-initrd.sh or by unpac …], Sounds like a fun time Oct 02 20:07:11 @Shakendo [Sounds like a fun time], stuff like this burns little kittens in hell Oct 02 20:07:42 And porting burns big kittehs in hell if you wanna put it that way Oct 02 20:07:42 @fredldotme [Oohh great, building a custom initramfs (either by ./build-initrd.sh or by unpac …], `chmod +x` your script Oct 02 20:07:57 you mean `halium`? Oct 02 20:08:01 Yeah Oct 02 20:08:18 Or make sure you aren't building somewhere that's set `noexec` Oct 02 20:08:32 Hey Dalton, are there any sources for trying to get rild working with a modem? Oct 02 20:08:39 ¯\_(ツ)_/¯ Oct 02 20:12:18 ¯\_(ツ)_/¯ Oct 02 20:15:05 @UniversalSuperBox [chmod +x your script], didn't help, and it's not at a location with noexec Oct 02 20:15:16 Ok, was hoping you had some notes or something for it, I still have to backport the kernel but isnt that just for BT? Oct 02 20:17:00 just BT Oct 02 20:22:52 does travis spit out binaries to download when changes are committed to a branch? Oct 02 20:24:14 No Oct 02 20:28:07 @NotKit [just BT], Ok, mind if I pick your brain later to try and get ofono working on the note 4 port? Oct 02 20:28:29 timezones... but is RILD running fine? Oct 02 20:29:04 it's pretty dusty now, but were there any differences with Mer ofono? (can be installed from branch, or could be at least) Oct 02 20:29:19 Believe so, modem is recognized in dmesg, and nmcli d is giving me 2 modems atm, but no IMEI or anything to use the modem Oct 02 20:29:42 have you tried checking what ofono-scripts say? Oct 02 20:29:43 @NotKit [it's pretty dusty now, but were there any differences with Mer ofono? (can be in …], How would I check that? Oct 02 20:30:05 I have, the give me errors like if I do a typo Oct 02 20:31:08 Im not able to retrieve them atm, laptop is dead and I cant find an outlet in this airport Oct 02 20:31:45 Luka do you have read private message ? Oct 02 20:32:21 I was getting file not found errors for the modem, even though they were there, I did a chmod 777 to the relevant directory and they seem to have disappeared Oct 02 20:32:42 [Edit] I was getting file not found errors for the modem, even though they were there, I did a chmod 777 to the relevant directory and they seem to have disappeared (the errors not the files) Oct 02 20:33:43 @NotKit [it's pretty dusty now, but were there any differences with Mer ofono? (can be in …], Do I install this with a simple "sudo apt-get install mir-ofono"? Oct 02 20:44:22 @Shakendo [Do I install this with a simple "sudo apt-get install mir-ofono"?], no. Oct 02 20:44:39 Can i somehow debug services? if they launch or something Oct 02 20:44:51 if you're using UT rootfs, you can't just trivially install a different ofono Oct 02 20:45:08 Well I can, but its likely to break things Oct 02 20:45:26 well not likely to. definitely will Oct 02 20:45:48 and well, it's not package in ubuntu 16.04 and not built in the ubports repo, so also you can't just install it either Oct 02 20:46:21 Ok, so do you have any advice for me? Oct 02 20:46:27 @dohbee I meant https://github.com/ubports/ofono/tree/xenial_-_merofono Oct 02 20:46:59 which can be installed for testing from https://ci.ubports.com/blue/organizations/jenkins/ofono/detail/xenial_-_merofono/3/artifacts Oct 02 20:48:03 @NotKit [which can be installed for testing from https://ci.ubports.com/blue/organization …], Thanks, I will give that a try, I dont really care about breaking my rootfs atm as Im trying to get things working Oct 02 20:50:51 @Shakendo [Thanks, I will give that a try, I dont really care about breaking my rootfs atm …], does it not show up in indicator at all, or are you just failing to connect to a CDMA network? Oct 02 20:51:45 Doesnt show in indicator at all, it shows up in dmesg but it isnt assigned to anything Oct 02 21:00:11 what permissions does the cache partition normally have? Oct 02 21:00:20 when mounted that is Oct 02 21:02:30 IranFSilva was added by: IranFSilva Oct 02 21:03:45 @fredldotme [what permissions does the cache partition normally have?], Is that to me or just a general question? Oct 02 21:04:29 to whoever wants to help Oct 02 21:04:44 general question, pardon Oct 02 21:05:42 Ok, I dont know, Im about to board a plane too so I cant power up phone and find out, I can do so later and DM you the results if noone has answered Oct 02 21:08:55 ok, now the -ENOEXEC happens with the default initrd as well Oct 02 21:09:16 @Shakendo [Ok, I dont know, Im about to board a plane too so I cant power up phone and find …], thanks Oct 02 21:24:10 so noone can answer me how mounting is happening? Oct 02 21:24:59 @Akatsu . [so noone can answer me how mounting is happening?], mounting what, the system partitions? using halium-boot or hybris-boot? Oct 02 21:25:07 halium-boot Oct 02 21:25:27 strace of rmt_storage shows errors on android/odm mounting Oct 02 21:25:37 that happens in `scripts/halium` in the initramfs Oct 02 21:25:38 and rmt_storage is dead not even showing under /dev Oct 02 21:26:00 do i need fixmountpoints for halium-boot? Oct 02 21:26:07 but I'm not sure rmt_storage is a typical partition Oct 02 21:26:13 @Akatsu . [do i need fixmountpoints for halium-boot?], no Oct 02 21:27:42 eh so i have no idea what else can i do, now i know im not getting all mounts Oct 02 21:28:50 or well it shows as mounted, i dont get it Oct 02 22:22:33 @fredldotme [ok, now the -ENOEXEC happens with the default initrd as well], clean build fixed it but a simple unpacked-and-repacked (without modifications) initrd simply reboots after 60secs without any debugging info in the dmesg/pstore. **** BEGIN LOGGING AT Thu Oct 03 01:17:59 2019 **** ENDING LOGGING AT Thu Oct 03 01:44:01 2019 **** BEGIN LOGGING AT Thu Oct 03 01:48:22 2019 **** ENDING LOGGING AT Thu Oct 03 02:59:57 2019