**** BEGIN LOGGING AT Sat Jan 12 02:59:57 2019 Jan 12 13:36:33 Hi, I'm currently trying to port Ubuntu Touch to my old Samsung Galaxy S2 (i9100). The flashing of the halium-boot.img using heimdall (compiled from source) fails with the error "ERROR: Failed to unpack received packet." . Any advices how I can investigate this further to find out why the flashing fails? Jan 12 13:56:39 @Ceron_, I use TWRP on my galaxy note 4, could try that? Jan 12 13:57:40 TWRP is flashed Jan 12 13:58:10 but according to ubport's documentation I'll need halium for ubuntu touch Jan 12 14:00:42 or did I get something wrong and it should be possible with TWRP too? Unfortunately I am not that experienced with all the flashing stuff and wanted to learn more about linux by bringing ubuntu to my old device and play around with it a little bit ;) Jan 12 14:02:24 You can do it with TWRP, there should be a button in the bottom right that says "flash image" Jan 12 14:03:31 I see. I Jan 12 14:03:51 I'll give it a try and let you know if that worked Jan 12 14:03:58 Thank you very much Jan 12 14:04:05 OK, good luck and your welcome Jan 12 14:21:04 okay the log in TWRP shows "Failed to mount '/system' (Invalid argument)" but at the end "[IMAGE FLASH COMPLETED]" I think that's a bad sign, isn't it? mmcblk0p9 is supposed to be mounted as /system and dmesg shows "<4>EXT4-fs (mmcblk0p9): bad geometry: block count 163840 exceeds size of device (131072 blocks)" Jan 12 14:23:05 Yep that isn't good, there should be a way to restore your phones partition table Jan 12 14:23:54 Does it still boot android? Jan 12 14:25:24 No it didn't boot anything until I reflashed the kernel Jan 12 14:26:34 OK, might be worth getting your device back to a boots android area, then try flashing your images again, I'd use JBBs to install them Jan 12 14:27:07 I have this in dmesg … [ 17.443817] systemd-logind[963]: Failed to start user service, ignoring: Unknown unit: user@32011.service Jan 12 14:27:57 few lines like this … [ 7.984405] init: write_file: Unable to open '/sys/block/mmcblk1/queue/scheduler': No such file or directory … [ 7.984436] init: write_file: Unable to open '/sys/block/sda/queue/scheduler': No such file or directory … [ 7.984497] init: write_file: Unable to open '/sys/block/sde/queue/scheduler': No su Jan 12 14:27:57 ch file or directory … [ 7.984558] init: write_file: Unable to open '/sys/block/dm-0/queue/scheduler': No such file or directory Jan 12 14:28:19 I already used JBBs script (at least for the rootfs and system.img) Jan 12 14:29:04 and … root@ubuntu-phablet:/dev# file cpuctl … cpuctl: broken symbolic link to /sys/fs/cgroup/cpu … root@ubuntu-phablet:/dev# cd /sys/fs/cgroup … root@ubuntu-phablet:/sys/fs/cgroup# ls … cgmanager cgmanager.lower Jan 12 14:50:54 (process:23165): WARNING : Failed to open CK session: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files Jan 12 14:51:05 this must be the main problem, any idea? Jan 12 14:52:58 @Nebrassy, Might be this issue: … https://github.com/lxc/lxc/issues/2509 … Find … "mount cpuset none /dev/cpuset" in init.rc and change it to "mount -o noprefix cpuset none /dev/cpuset" Jan 12 15:15:39 @Daniel, Thanks I'll try, I also have … Cgroup namespace: required Jan 12 15:16:25 @Nebrassy, This shows whenever I start lightdm, can't find any info about such error Jan 12 15:20:21 @Nebrassy, namespace is only required for unprivileged containers which is not being used in halium, so it's ok to set CONFIG_USER_NS=n Jan 12 15:23:01 Currently I'm only trying to get graphics to work, as long as it doesn't affect that then it's ok, currently nothing shows up on screen, I get that error when I start lightdm, but what confuses me is that I got the Ubuntu loading screen randomly once Jan 12 15:32:19 Do I need to reinstall all on every rebuild or can I just manually replace system.img and flash boot Jan 12 16:05:57 @Nebrassy, You using halium-boot with UT rootfs? Jan 12 16:09:37 @Nebrassy, you can manually replace, but system.img has to be raw ext4 format Jan 12 16:11:21 simg2img system.img system.img.raw … resize2fs -M system.img.raw (I don't remember exact resize2fs flag right now) … mv system.img.raw system.img Jan 12 16:11:51 [Edit] simg2img system.img system.img.raw … resize2fs -M system.img.raw … mv system.img.raw system.img Jan 12 16:12:05 @NotKit, I wonder if f2fs will ever be the preferred fs for UT Jan 12 16:12:42 makes no sense for Android system.img at least Jan 12 16:13:09 @Tygerpro Tygerpro, Yeah Jan 12 16:13:54 @NotKit, Great, that's easy enough, I'd prefer to do that cuz it takes forever to copy rootfs Jan 12 16:13:58 @NotKit, Well I still wonder cause its leap and bounds faster than ext4 Jan 12 16:14:49 @Nebrassy, The rootfs for my note 4 port is from 12/08/2018 cause the newer rootfs just doesn't work on my port for some reason Jan 12 16:15:55 @Nebrassy, I don't think it's because of the rootfs, but this error doesn't make any sense Jan 12 16:28:34 @Tygerpro Tygerpro, Last I checked (which was a long time ago, so it might have changed), f2fs was only faster when writing data. When reading data, it was about the same, or worse, than ext4. Jan 12 16:29:44 Well I have an Asus tf201 in which its read speeds improved drastically with f2fs Jan 12 16:53:07 i think it depends on the quality of flash memory used, which is particularly awful on the tf201 Jan 12 16:53:19 on the Z00A, there was really no visible difference Jan 12 17:13:49 That could be a factor, I got the old version of UT I had for my tf201 to run, was useless, no WiFi, no GPS, couldn't even access settings Jan 12 17:48:54 Has anyone explored the possibility of dual booting on a/b devices?, like using a button combo to boot off the other slot Jan 12 17:50:55 In theory its possible, if your willing to give up the other side which I think is usually used for recovery, but I think its more trouble than its worth to figure IIT out Jan 12 17:51:05 [Edit] In theory its possible, if your willing to give up the other side which I think is usually used for recovery, but I think its more trouble than its worth to figure it out Jan 12 17:52:19 Recovery lives in boot on a/b Jan 12 17:52:40 But the problem will be when you get an ota it will wipe the other slot Jan 12 17:56:41 Hi! Jan 12 17:57:58 Installed my systemimage, and tried to boot halium_boot.img (via fastboot boot), but what I got instead is a boot animation (Google logo) followed by a black screen for a few seconds, then a reboot. Jan 12 17:58:06 How do I start debugging? Jan 12 17:59:02 I'm on a Pixel XL (A/B device) Jan 12 17:59:04 Did you get hybris-boot to work first? Jan 12 17:59:15 NVM that Jan 12 17:59:16 It won't work on a A/B device Jan 12 17:59:26 @Nebrassy, Done😊 Jan 12 17:59:31 Does ssh work? Jan 12 17:59:44 It reboots far too quickly Jan 12 18:00:16 I get a few reboots every time I start, does it stay up after a couple reboots? Jan 12 18:00:35 It's been rebooting for about five minutes now Jan 12 18:00:50 Wait, not really five … Say two minutes Jan 12 18:01:41 You can try to boot a recovery, mount the image and check last_dmesg/last_kmsg Jan 12 18:02:07 The system image? Jan 12 18:02:23 Rootfs Jan 12 18:02:51 Actually I'm not sure, check both images Jan 12 18:03:37 The system image is currently under /data Jan 12 18:03:48 Do I need to flash it to /system? Jan 12 18:03:57 Or just mount via terminal emulator? Jan 12 18:03:58 No just mount it Jan 12 18:04:23 Using twrp or whatever working system Jan 12 18:05:09 Using TWRP, the 'mount' command fails with this error: mount: losetup failed 1 Jan 12 18:05:30 Probably something to do with the fact that this isn't a complete userspace? Jan 12 18:05:37 I'm pulling it via ADB Jan 12 18:05:44 What's the full command you used Jan 12 18:06:06 mkdir /mnt/system … mount /data/system.img /mnt/system Jan 12 18:07:54 @WaseemAlkurdi, Follow the example here … https://docs.halium.org/en/latest/porting/debug-build/logging-in.html Jan 12 18:08:55 Same error Jan 12 18:11:14 Besides, there doesn't seem to be a last_kmsg or last_dmesg in any of the two images Jan 12 18:11:30 Could be a problem with twrp, did your twrp switch to toybox instead of busybox? Jan 12 18:12:27 No Jan 12 18:12:49 There is a busybox binary, and no toybox one Jan 12 18:14:21 Is there a halium-recovery like there is a hybris-recovery? Jan 12 18:14:37 The wiki mentions hybris-recovery for exactly this situation Jan 12 18:14:58 But since this is an A/B device, we don't use hybris😢 Jan 12 18:16:02 @Sergobot Any hint?😔 Jan 12 18:21:46 You used JBBs script to install? Jan 12 18:21:50 Yep Jan 12 18:22:42 I'm thinking either a bad kernel config or a corrupted system, did you run the kernel checking script against your defconfig prior to compile? Jan 12 18:22:58 @WaseemAlkurdi, Why are you trying to mount systemimage? Jan 12 18:23:08 Tygerpro I remember that I did, but I might just run it again Jan 12 18:23:24 @Sergobot I thought that I might find a sort of log in there Jan 12 18:23:32 Low probability though Jan 12 18:23:39 And there's console-ramoops somewhere, not dmesg Jan 12 18:23:44 I have it Jan 12 18:23:49 Not from the image Jan 12 18:23:54 Analyze it :^) Jan 12 18:24:02 ^ Jan 12 18:24:08 I tried, but it gave me a headache ... Jan 12 18:24:09 https://termbin.com/52wm Jan 12 18:24:15 There is it 😔 Jan 12 18:25:13 Aw shit Jan 12 18:25:34 This seems to be the one from the recovery run Jan 12 18:26:10 But we're supposed to dump it by SysRq+C from recovery, aren't we? Jan 12 18:26:32 If the kernel doesn't boot, then there's no way we can pass SysRq+C Jan 12 18:27:00 And passing that in recovery causes a panic then dumps the console-ramoops of _recovery_, not halium-boot Jan 12 18:31:33 I did it again, and I'm getting the same result ... it's giving me console-ramoops that I presume is of recovery (because it ends in: SysRq: Trigger a crash), then a few screenfuls of hex Jan 12 18:32:06 "SysRq: Trigger a crash" -> isn't this the crash we did on purpose in TWRP so we could get the logs? Jan 12 18:36:06 ok i fixed that error, now this Jan 12 18:36:09 root@ubuntu-phablet:~# lightdm … root@ubuntu-phablet:~# systemctl start lightdm … Failed to start lightdm.service: Unknown unit: lightdm.service … See system logs and 'systemctl status lightdm.service' for details. … root@ubuntu-phablet:~# systemctl status lightdm.service … Failed to get properties: No such interface '' Jan 12 18:36:55 and this in unity-system-compositor.log https://paste.ubuntu.com/p/4TG6mg4X6r/ Jan 12 18:51:27 Hi all. I have question regarding libhybris - i have powervr sgx5 based device and can i use it (libhybris) to use gpu acceleration on linux os? Will i be able to load android binaries also (there is pvrsrvinit which initializes gpu) ? Jan 12 19:04:36 ok when both lightdm and unity system compositor don't crash, I get a reboot after a minute … https://paste.ubuntu.com/p/RTKB65cHBt/ Jan 12 19:10:41 PabloPL: Read the wiki. It states that Android could be run in a container and that you could load Android binaries. Jan 12 19:12:21 WaseemAlkurdi: Thanks will checkit, i got sgx driver compiling and running under mainline kernel (5.0) and want to test if it's working Jan 12 19:18:16 @Sergobot I looked EVERYWHERE!😅 Can't seem to get a console-ramoops from the image Jan 12 19:20:25 WAIT! Jan 12 19:20:27 FELLAS! Jan 12 19:20:31 IT WORKED!!!!!!! Jan 12 19:20:50 After a few hundred thousand dozen reboots! Jan 12 19:20:53 @Sergobot Jan 12 19:21:25 Heh Jan 12 19:21:32 What was the problem? Jan 12 19:21:40 I genuinely have no idea Jan 12 19:21:46 I just kept reflashing it Jan 12 19:21:50 Over and over and again Jan 12 19:21:52 The boot image Jan 12 19:21:58 Via fastboot Jan 12 19:22:05 And when I gave up Jan 12 19:22:20 It just showed up on 'dmesg' and as a new network interface! Jan 12 19:23:22 Whatt!!!!!!!! Jan 12 19:23:26 Look what it did Jan 12 19:23:36 The "Google" logo flipped upside-down! Jan 12 19:23:41 When I connected via telnet Jan 12 19:24:31 It flipped again to normal😂😂 Jan 12 19:45:31 Never experienced that lol Jan 12 19:51:29 @WaseemAlkurdi, Is your phone on drugs?0.o Jan 12 19:58:13 I have an announcement to make. I am shutting down https://halium.ivanismy.name with precompiled Halium images soon. If anyone is interested in making a mirror, I would greatly appreciate it. Thank you Jan 12 20:18:43 @Sergobot, At a hunch, it's either got to do with a power surge or something, or it's related to the graphics issue Jan 12 20:19:24 @VeryOriginalUsername, Well, quite possible that it contracted its owner's headache! Jan 12 20:20:00 @vanyasem, Could they be possibly uploaded on a website with long-term storage like archive.org? Jan 12 20:20:12 @WaseemAlkurdi, Sure, do it Jan 12 20:38:53 @vanyasem Did you say that you took it down or that you are _going_ to take it down? Jan 12 20:39:03 The website doesn't seem to connect Jan 12 20:39:07 going to take it down in the next couple of weeks Jan 12 20:39:08 For me Jan 12 20:39:12 the website is up and running Jan 12 20:39:20 you can also access it on halium.mynameisivan.ru Jan 12 20:39:29 Let me try this link Jan 12 20:39:48 Ah, this worked Jan 12 20:40:10 I'm going to try and mirror this on archive.org from our college's campus Wi-Fi Jan 12 20:40:10 can you access don.ivanismy.name ? Jan 12 20:40:19 @vanyasem, if not, then your dns is messed up Jan 12 20:40:44 It redirects to https://mastodon.mynameisivan.ru/about, but very slowly Jan 12 20:40:56 yes it's supposed to do so, okay. weird Jan 12 20:41:09 anyways let's not OT here Jan 12 20:41:22 (Sticker, 512x512) https://irc.ubports.com/rfoCbNiV.webp Jan 12 20:41:28 Wait what? Jan 12 20:41:32 👍 Jan 12 20:41:45 Stupid stickers or whatever they call them Jan 12 20:41:48 Anyhow Jan 12 20:42:01 I'm going to mirror everything tomorrow Jan 12 20:42:10 Will reply by tomorrow night (GMT +2) Jan 12 20:42:16 thank you, i will appreciate it Jan 12 21:16:18 i've been hosting this at home and well i don't have the time to maintain it anymore Jan 12 23:13:21 okay I sucessfully flashed the hybris-boot image and installed halium, but not even the USB network interface comes up... at least the device doesn't appear in lsusb and the screen shows the S2 logo... I think there is nothing working. How could I find out more? Jan 12 23:18:37 isn't s2 kernel 3.0? Jan 12 23:18:41 I think halium needs 3.1 Jan 12 23:21:25 god I think I was stupid... i flashed a 3.15 kernel before with lineage and didn't think about the hybris-boot replacing that kernel. It should be possible to build a hybris-boot image with that kernel, right? Jan 12 23:25:11 Yeah.... just you'll have to go through all the hassle of editing defconfigs again and testing again etc etc Jan 12 23:26:49 you mean testing the kernel config? Or did I miss something? Jan 12 23:29:27 I meant compile once, test, fix something, compile, test, repeat Jan 12 23:30:34 Ah yeah didn't event get through this cycle once :D so atleast that's no problem Jan 12 23:37:27 I'll give it a try, thanks Jan 12 23:51:02 https://termbin.com/4333 … My /data partition isn't mounting, with an 'Invalid argument' error Jan 12 23:51:22 This is preventing the initramfs from finding the systemimage and rootfs Jan 12 23:51:47 This paste above was the 'dmesg' output from initramfs, after connecting via telnet Jan 12 23:53:32 I've tried to mount the /system partition instead, but I can't seem to find its location in the /dev structure (data is /dev/sda35, but system is this obscure path under Android: /dev/platform/soc/624000.ufshc/by-name/system, which I can't find under Halium's initramfs). Jan 13 02:50:51 @Tygerpro Tygerpro, Hi, I couldn't get the wifi to work with this set in /kernel/samsung/universal8890/arch/arm64/configs/exynos8890-herolte_defconfig … Here are some errors from the terminal: https://paste.ubuntu.com/p/mbCYMr8XTY/ … Neither change the scale (all is very small in the phone ui) by adding https://paste. Jan 13 02:50:51 ubuntu.com/p/7bVgv7t7kg/ to /device/samsung/hero-common/hero-common.mk … Do you have a clue in what do I have to do to make these things working? Jan 13 02:53:16 It's in portuguese btw the first errors paste from terminal where "não disponível" stands for "not available" and "desconectado" stands for "disconnected". **** ENDING LOGGING AT Sun Jan 13 02:59:57 2019