**** BEGIN LOGGING AT Tue Apr 23 02:59:57 2019 Apr 23 04:59:06 whats the difference of mka mkbootimg from mka halium-boot? Apr 23 06:33:57 @TuxThePenguin [], it is due to missing config_devtmpfs Apr 23 06:36:27 @TuxThePenguin [], [Edit] it is due to missing CONFIG_DEVTMPFS Apr 23 06:54:31 Ok I have changed some stuff around, it took a while but it makes testing things a bit more streamlined and easy Apr 23 06:54:53 So now I'm going to change a few kernel settings at a time and see if I can find what was causing panics **** BEGIN LOGGING AT Tue Apr 23 07:43:30 2019 Apr 23 07:44:21 I was originally going to try and port Halium to the Ace 3 LTE (loganreltexx) but it runs 3.4, has 8GB of storage, has garbage specs and had a similar kernel panic issue that I couldn't figure out because the old kernel version doesn't have the ram logging in an easy way Apr 23 07:45:03 Surprisingly it did actually compile, it just wasn't worth making it actually boot Apr 23 07:49:52 Flohack: I have some old 3.4 kernels working with Halium 5.1 and pretty recent systemd Apr 23 07:51:18 But it's a quite fragile situation Apr 23 08:01:51 @TuxThePenguin [3.18, I always think it's 3.10 lol], I am working on 3.10.49 Apr 23 08:03:00 FINALLY, I just narrowed down the kernel panics to these config lines https://paste.ubuntu.com/p/hY74byMwkh/ Apr 23 08:21:08 you can skip AppArmor for now Apr 23 08:21:19 I don't know if it's apparmor yet Apr 23 08:21:33 I'm still looking for exactly which line is causing it Apr 23 08:21:50 Although if this next boot fails I can be pretty sure it's AppArmor Apr 23 08:24:10 it is probably disabling SELinux and replacing it with AppArmor Apr 23 08:25:13 Ok yeah I think it's AppArmor, I'm just doing the last test now Apr 23 08:33:31 And as it turns out that was not the last test, multiple lines were causing the panic, I'm trying to disable all lines related to apparmor now Apr 23 08:39:31 Hmm thats still not working Apr 23 08:44:23 @DEEP73 [I am working on 3.10.49], Cool do yu managed to get Halium rootfs and container running? Apr 23 08:44:31 @DEEP73 [I am working on 3.10.49], [Edit] Cool did you managed to get Halium rootfs and container running? Apr 23 08:55:18 @TuxThePenguin [Ok yeah I think it's AppArmor, I'm just doing the last test now], There are ut specific port for apparmor that has to be patched Apr 23 08:55:33 @TuxThePenguin [Ok yeah I think it's AppArmor, I'm just doing the last test now], [Edit] There is ut specific port for apparmor that has to be patched Apr 23 08:56:08 But thats for later Apr 23 08:57:06 I have also problems with apparmor on 3.18 but at least it doesnt prevents booting Apr 23 08:58:02 @Flohack [Cool did you managed to get Halium rootfs and container running?], I built halium-boot.. I will test it a week later .. I have only one phone right now, so can't mess with it until I get another Apr 23 08:58:53 But last time I checked , my device didn't boot and I got no ssh accesd Apr 23 09:00:44 Ok I see so you need more time. I need someone who has already ssh to check lxc container startup for me (which istn working still) Apr 23 09:15:30 anyone know this error? … https://paste.ubuntu.com/p/S2W4Ymsxp2/ Apr 23 09:17:59 @nanu_c [There is ut specific port for apparmor that has to be patched], I'm actually not 100% sure what it is, I'm just going through enabling small amounts of kernel options at a time to see how many I can get enabled without it panicking Apr 23 09:19:06 @TuxThePenguin [I'm actually not 100% sure what it is, I'm just going through enabling small amo …], Do you get ssh access if it is not panicking? Apr 23 09:20:11 So far only telnet Apr 23 09:22:54 And an inaccessible MTP device called "Failed to boot" when I use halium-boot Apr 23 09:23:16 @TuxThePenguin [So far only telnet], Ok then smth might be wrong with systemd for you Apr 23 09:23:38 What does dmesg say in telnet? Apr 23 09:25:10 Hold on and Ill put up a paste Apr 23 09:26:41 Thankfully I can boot it without it panicking now, before when it was panicking the dmesg ramoops logs were always badly corrupted https://paste.ubuntu.com/p/6KCkKSr6T6/ Apr 23 09:28:33 It seems it cannot mount /dev and /run directories: … ```[01-01 22:11:28.200] [3][529: exe]Begin: Running /scripts/init-bottom ... … [01-01 22:11:28.200] [3][529: exe]mount: mounting /dev on /root/dev failed: No such file or directory … [01-01 22:11:28.200] [3][530: exe]mount: mounting /dev on /root/dev failed: No such file or directory Apr 23 09:28:33 … [01-01 22:11:28.200] [0][1: init]done. … [01-01 22:11:28.200] [2][531: exe]mount: mounting /run on /root/run failed: No such file or directory … [01-01 22:11:28.200] [2][532: run-init]run-init: current directory on the same filesystem as the root: Not a typewriter … [01-01 22:11:28.200] [0][1: init]Target filesystem doesn't have requested /sbin/i Apr 23 09:28:33 nit. … [01-01 22:11:28.203] [1][533: run-init]run-init: current directory on the same filesystem as the root: Not a typewriter … [01-01 22:11:28.203] [2][534: run-init]run-init: current directory on the same filesystem as the root: Not a typewriter … [01-01 22:11:28.203] [2][535: run-init]run-init: current directory on the same filesystem as the ro Apr 23 09:28:33 ot: Not a typewriter … [01-01 22:11:28.203] [2][536: run-init]run-init: current directory on the same filesystem as the root: Not a typewriter … [01-01 22:11:28.203] [2][537: run-init]run-init: current directory on the same filesystem as the root: Not a typewriter … [01-01 22:11:28.206] [0][1: init]No init found. Try passing init= bootarg.``` Apr 23 09:28:43 uh got too long Apr 23 09:28:57 It seems it cannot mount /run and /dev dirs Apr 23 09:29:07 so that support might be missing somehow in kernel but how? Apr 23 09:29:15 Well thats probably not the worst thing that can happen Apr 23 09:29:19 ```[01-01 22:11:28.200] [3][529: exe]Begin: Running /scripts/init-bottom ... … [01-01 22:11:28.200] [3][529: exe]mount: mounting /dev on /root/dev failed: No such file or directory … [01-01 22:11:28.200] [3][530: exe]mount: mounting /dev on /root/dev failed: No such file or directory … [01-01 22:11:28.200] [0][1: init]done.``` Apr 23 09:29:31 Well it is because then your init script stops there Apr 23 09:29:49 `[01-01 22:11:28.206] [0][1: init]No init found. Try passing init= bootarg.` Apr 23 09:30:45 So the good news is it fails late on init-bottom but that wont help you much now ^^ Apr 23 09:30:52 What did you disable in kernel config Apr 23 09:32:28 Right now I am down to 4 things that deviate from what the halium checker tool for UBports wants, CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1, CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=0 Apr 23 09:33:04 [Edit] Right now I am down to 4 things that deviate from what the halium checker tool for UBports wants, CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1, CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=0, CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1 and CONFIG_DEFAULT_SECURITY_APPARMOR=y Apr 23 09:33:49 This is the current config https://paste.ubuntu.com/p/kFWtDMVpfX/ Apr 23 09:34:17 And with those 4 the kernel panicks? strange Apr 23 09:34:30 I'm not sure yet, still testing Apr 23 09:35:11 But at least one of those is causing it Apr 23 09:36:46 Ok I just compiled with CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1 and it's fine so it's down to 3 now Apr 23 09:36:47 Can you look in telnet if you got /dev and /run folders Apr 23 09:37:11 I do have /dev and /run folders Apr 23 09:37:16 @TuxThePenguin [Ok I just compiled with CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1 and it's fine …], stange Apr 23 09:37:22 Ah wait Apr 23 09:37:34 There is no /root/dev Apr 23 09:37:49 Only /root/android, /root/data and /root/userdata Apr 23 09:37:53 hmm ok so mount failed maybe Apr 23 09:40:11 Any idea what might cause that? Apr 23 09:40:51 I imagine it's something to do with the initrd since I don't think it's getting to the Android stage? Apr 23 09:44:14 @TuxThePenguin where did you put the rootfs? Apr 23 09:44:19 it should be /data/rootfs.img Apr 23 09:44:56 Oh god Im a total idiot Apr 23 09:44:58 the process is like halium-boot/hybris-boot initramfs -> Linux rootfs with systemd or upstart -> Android start inside LXCcontainer Apr 23 09:45:11 [Edit] the process is like halium-boot/hybris-boot initramfs -> Linux rootfs with systemd or upstart -> Android start inside LXC container Apr 23 09:45:14 I didn't realise it was supposed to be /data/rootfs.img Apr 23 09:45:29 I thought you flashed the image to the data partition Apr 23 09:45:40 Oh wow I feel stupid lol Apr 23 09:46:22 also rootfs.img is Linux rootfs, not system.img you compiled in Halium Apr 23 09:46:30 Yeah I know Apr 23 09:46:41 Also I just found one of the kernel options that causes it to panic Apr 23 09:47:19 I was basically extracting the hybris reference rootfs directly onto the data partition Apr 23 09:47:31 @TuxThePenguin [I was basically extracting the hybris reference rootfs directly onto the data pa …], oh lol fail ^^ Apr 23 09:47:39 Please use the installer script, its there for a reason Apr 23 09:47:45 Its also doing post-install steps Apr 23 09:48:04 For example setting an SHH password Apr 23 09:48:09 I wasn't using the installer script since at first my device didn't have fastboot working (that was using the oreo bootstack) Apr 23 09:48:10 [Edit] For example setting an SSH password Apr 23 09:48:25 Should the device be in recovery or fastboot? Apr 23 09:48:32 Nothing to do with fastboot, the halium-install uses only adb Apr 23 09:48:35 recovery Apr 23 09:48:56 Ok, oh yeah I remember, I was also using a newer TWRP version which disables ADB at the start Apr 23 09:50:28 where should i place the pid_namespace patch? sorry I just started yesterday Apr 23 09:50:29 hehe fix all that, and then do http://docs.halium.org/en/latest/porting/install-build/reference-rootfs.html#install-rootfs-and-system-img-alternative-method Apr 23 09:50:43 Alright I'll just finish finding which options cause the panics and then I will compile and install a working kernel and system with the script Apr 23 09:51:29 And yeah I'm using TWRP 3.1.1 now so I have ADB access (I really wish they didn't disable it, ADB is a very useful thing for a recovery to have) Apr 23 10:04:14 I found the two kernel configurations that were causing the panics! CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=0 … CONFIG_DEFAULT_SECURITY_APPARMOR=y Apr 23 10:04:49 well, basically disabling SELinux and enabling AppArmor Apr 23 10:05:13 this was suggested from the beginning, but now you've found it the hard way Apr 23 10:06:03 Yeah pretty much, hopefully until later that will prevent as many problems as possible though (there were other things in there that I thought may have been causing it) Apr 23 10:07:18 Also I didn't think SELinux was the problem since in previous logs where it hadn't panicked there were lines saying that selinux was disabled Apr 23 10:37:51 Umm I ran the installer script and it seems to not want to create one of the filesystems https://paste.ubuntu.com/p/xk57XFwMC2/ Apr 23 10:49:04 Hmm maybe you are really out of space? Happens frequently to me since Android tree is so huge 😆 Apr 23 10:49:18 Oh ON the device Apr 23 10:49:31 is your data partition original size again Apr 23 10:49:37 after you have fiddled with it 😆 Apr 23 10:50:15 Well no idk. either of that Apr 23 10:50:39 Ah and try this halium-install from JBB: https://github.com/JBBgameich/halium-install/ Apr 23 10:50:58 and dont forget to specify -p reference Apr 23 10:57:42 Oh yeah I forgot about that script lol Apr 23 10:58:09 And nah my device isn't out of space, the system partition alone is 6GB and I have checked to make sure all filesystems are the full size of their respective partiitons Apr 23 10:58:14 [Edit] And nah my device isn't out of space, the system partition alone is 6GB and I have checked to make sure all filesystems are the full size of their respective partitions Apr 23 10:59:12 try the other one. If no help, put a bash -x or so somewhere sop you can see what it is trying to do. If it is on host or device Apr 23 11:15:17 Heyyyy it booted Apr 23 11:15:27 SSH is working Apr 23 11:15:37 cool! Gimme 5 Apr 23 11:15:49 Congrats Apr 23 11:18:14 @TuxThePenguin [SSH is working], Can you immediately do me a favour and type lxc-info -n android Apr 23 11:19:17 Hmm, the connection to the device is very unstable, I can log in but then after some time or immediately, it's random, the whole terminal gets locked up and I have to reboot the device to get it to connect again Apr 23 11:19:34 @TuxThePenguin [Hmm, the connection to the device is very unstable, I can log in but then after …], The issue is most likely with your host pc Apr 23 11:19:52 NetworkManager loves to take control of the interface Apr 23 11:19:52 Ill see if I can connect from a different device Apr 23 11:19:56 @vanyasem [NetworkManager loves to take control of the interface], And then freaking nuke it Apr 23 11:20:07 So you need to type killall ssh Apr 23 11:20:11 Killing all ssh processes Apr 23 11:20:16 And then connect again Apr 23 11:20:37 Also a tip - you can configure nm to ignore the interface of your phone Apr 23 11:20:47 Or well disable it for a while for the sake of sanity Apr 23 11:21:12 @TuxThePenguin [Ill see if I can connect from a different device], You need to add your RNDIS device to the network manager ignore list Apr 23 11:21:12 On kde you can even see that it tries to connect to your phones interface from the tray applet Apr 23 11:21:21 Thats a nuisance Apr 23 11:21:38 We should have dhcpd also running on ssh mode, not only on telnet Apr 23 11:21:51 It seem to work much better with NM then Apr 23 11:22:13 Yeah with DHCPD it worked very reliably Apr 23 11:23:01 Add this to the network manager conf somehow: `unmanaged-devices=interface-name:` Apr 23 11:23:30 Note that tzhe interface name always changes when you change the USB port, so I have a habit to use always the same with my "porting" USB cable ;) Apr 23 11:24:01 Yeah I have the device always plugged into the same USB port anyway Apr 23 11:25:46 Ok yeah it seems to be working much better now Apr 23 11:26:11 Oh wait no it happened again Apr 23 11:26:36 hmmm dang ^^ Apr 23 11:27:44 If I knew where my PCMCIA USB card was I would have the perfect machine for this Apr 23 11:32:07 I found it! Apr 23 11:32:09 Alright Apr 23 11:33:47 I have an old machine running barebones Debian Jessui so I'm hoping that will work Apr 23 11:35:46 Alright it's SSHed in Apr 23 11:35:50 Lets see if this works Apr 23 11:36:46 @Flohack [Can you immediately do me a favour and type lxc-info -n android], It returns "Name: android" and "State: STOPPED" Apr 23 11:39:03 @TuxThePenguin [It returns "Name: android" and "State: STOPPED"], Ok so you got maybe the same issue as myself Apr 23 11:39:09 Can you type lxc-checkconfig Apr 23 11:39:16 and paatebin me the output? Apr 23 11:39:58 I don't really think I can pastebin you the output since this laptop is so old that no web browsers really function on it lol, Ill see what I can do though Apr 23 11:42:58 Screenshot? Picture? 😆 Apr 23 11:43:23 Im trying, you will have to bear with me for a few minutes while I get my beyond jank solution sorted :P Apr 23 11:43:55 haha ye ssure no worries Apr 23 11:49:28 In the jbbgamrich repo is also a connect script. It takes care of everything even on changing ssh keys Apr 23 11:49:54 I just got it working anyway lol Apr 23 11:50:04 So from my main computer I SSHed into my old laptop Apr 23 11:50:10 Then from that I SSHed into the phone lol Apr 23 11:50:40 https://github.com/JBBgameich/halium-install/blob/master/connect.py Apr 23 11:50:47 https://paste.ubuntu.com/p/fbc4r8Th2g/ Apr 23 11:50:57 @Flohack Apr 23 11:51:47 `connect.py -p ssh -u phablet` Apr 23 11:51:59 Or same with telnet Apr 23 11:52:43 On a separate note the first command the halium porting guide tells me to do isn't working https://paste.ubuntu.com/p/5HcGW8Skyr/ Apr 23 11:54:09 You have to mount it as rw and then do it again Apr 23 11:55:27 Ok that fixed one thing but it's still saying "cat: '/var/lib/lxc/android/rootfs/ueventd*.rc': No such file or directory" Apr 23 11:56:00 There is no rootfs folder inside /var/lib/lxc/android Apr 23 11:56:03 @TuxThePenguin [Ok that fixed one thing but it's still saying "cat: '/var/lib/lxc/android/rootfs …], Thats becasue your container is stopped Apr 23 11:56:09 probably Apr 23 11:56:12 Yeah that makes sense Apr 23 11:56:18 @TuxThePenguin [Ok that fixed one thing but it's still saying "cat: '/var/lib/lxc/android/rootfs …], Grats on getting to a ssh connection Apr 23 11:56:57 @TuxThePenguin [@Flohack], Ok can you try lxc-start -F -n android to start it in foreground? Apr 23 11:57:05 DOnt be shocked about 2000 lines of errors 😆 Apr 23 11:57:18 the config looks OKish Apr 23 11:57:42 This doesn't look like too many errors lol https://paste.ubuntu.com/p/QTt8cDMHNc/ Apr 23 11:57:43 `Cgroup cpuset: enabled` @nanu_c ^^ Apr 23 11:58:10 LOL Apr 23 11:58:20 Then smth went wrong with your android container Apr 23 11:59:16 There is no /system folder although I'm not sure if thats supposed to be in a container somewhere Apr 23 12:01:13 @TuxThePenguin [There is no /system folder although I'm not sure if thats supposed to be in a co …], Did you already run lxc-check-config (or whatever the command is) Apr 23 12:01:40 https://paste.ubuntu.com/p/fbc4r8Th2g/ Apr 23 12:01:46 Time to keep changing kernel configs lol Apr 23 12:02:39 That looks like everything you need to get the container going, I gotta get going though, but good luck Apr 23 12:03:05 @Flohack [We should have dhcpd also running on ssh mode, not only on telnet], it should just work now Apr 23 12:03:26 @NotKit [it should just work now], It does not on my Ubuntu 16.04, still have to disable NM for that interface Apr 23 12:03:55 are you using latest rootfs? I commited fix some months ago Apr 23 12:05:20 For things like these what configs would I change to fix them? … "Veth pair device: missing" … "Macvlan: missing" … "Vlan: missing" Apr 23 12:16:24 @NotKit [are you using latest rootfs? I commited fix some months ago], Maybe not... I am not at my compute rnow Apr 23 12:22:06 So I have been able to fix most of the missing things with easy configuration changes but there are a few that I am stuck on https://paste.ubuntu.com/p/5DRMS44tmX/ … Cgroup memory controller should be enabled and so should CONFIG_IP6_NF_TARGET_MASQUERADE although apparently they aren't and I'm not sure what to change for the others Apr 23 12:28:59 oh, and I meant UBPorts rootfs, not Halium one Apr 23 12:35:16 @NotKit [oh, and I meant UBPorts rootfs, not Halium one], Oh OK will try that today. BTW is it fine to use 32bit rootfs with the 64bit kernel and device tree stuff? Apr 23 12:40:27 generally yes, but there can be corner cases like broken 32-bit hwcomposer ioctls on MediaTek devices or missing libs Apr 23 12:44:27 @TuxThePenguin [So I have been able to fix most of the missing things with easy configuration ch …], As long as the stuff in the first 2 sections doesnt have anything in red that says missing, the container should be able to start and run Apr 23 12:45:27 @NotKit [generally yes, but there can be corner cases like broken 32-bit hwcomposer ioctl …], Ok I hope this wont happen on Nexus 6P 😆 Apr 23 12:45:30 Since its not starting for you I have a feeling that you might have a corrupted system.img, can you manually mount that in TWRP? Apr 23 12:45:46 Ill have a look Apr 23 12:45:57 @Tygerpro [As long as the stuff in the first 2 sections doesnt have anything in red that sa …], I got all green and still no start because of weird cpuset errors (no permissions in cgroup folders) Apr 23 12:46:38 @Flohack [I got all green and still no start because of weird cpuset errors (no permission …], Interesting, which device was that on? Apr 23 12:46:39 @Flohack [Im posting my lxc startup errors here too: https://pastebin.com/amu9jc5g], See here Apr 23 12:46:48 Nexus 6P Apr 23 12:48:14 Ok the installer script left a system.img file in the data partition which mounts fine in TWRP, should it be an image file on the data partition or should it be flashed to the system partition which is currently blank? Apr 23 12:48:46 @Flohack [See here], I see alot of "read-only file system" did you do "touch .writable-folder" (or whatever that command is) to boot it as a r/w filesystem? Apr 23 12:49:31 I have noticed that my device is also starting up with a read-only filesystem Apr 23 12:50:30 are you booting UBPorts? Apr 23 12:50:45 I'm booting the Halium reference filesystem Apr 23 12:50:53 @TuxThePenguin [Ok the installer script left a system.img file in the data partition which mount …], There should be a system.img and a rootfs.img in your /data partition, if it mounts fine and you see files in it, then that wont be the issue Apr 23 12:51:02 Ok then Apr 23 12:51:05 That should be fine then Apr 23 12:51:40 @NotKit [are you booting UBPorts?], Wouldnt that touch command work regardless of which system is being booted? Apr 23 12:52:14 yes, but halium-boot is tested to work only with UBPorts Apr 23 12:52:56 Should I try hybris-boot then? Apr 23 12:53:08 Ahh ok, i thought there was some progress with getting reference to work with halium-boot? Apr 23 12:53:12 @TuxThePenguin [Should I try hybris-boot then?], Yes Apr 23 12:54:37 As notkit said, halium-boot is primarily for Ubports or UT, if you were trying to boot that then hes is far better than I at debugging Apr 23 12:56:14 @Tygerpro [I see alot of "read-only file system" did you do "touch .writable-folder" (or wh …], nonono this is not in the normal rootfs, this folder is in the kernel Apr 23 12:56:15 IMHO Apr 23 12:56:27 Its a special folder and should never have this problem. Apr 23 12:56:45 Something is wrong with my kernel Apr 23 12:57:04 Oh ... permission issue maybe? Apr 23 12:57:07 But I dont find any difference thats why I am asking for other 3.10 users here so I can compare the whole kernel config and tree Apr 23 12:57:20 Umm with hybris-boot it's refusing SSH connections Apr 23 12:57:24 Yeah but Google seem to have patched it wrong or idk, it never happened on other ports Apr 23 12:57:37 @TuxThePenguin [Umm with hybris-boot it's refusing SSH connections], Try telnet Apr 23 12:59:30 Lol youll have to give this laptop a minute while it installs telnet, very, very slowly Apr 23 13:03:53 What does dmesg show? Apr 23 13:04:49 @Flohack [But I dont find any difference thats why I am asking for other 3.10 users here s …], Hmm, my note 4 is 3.10 i think, been awhile since Ive looked at its kernel version Apr 23 13:06:13 Im gonna be looking at starting my port again in the next couple days, had to reset my server awhile back and have been meaning to do that Apr 23 13:13:01 @Tygerpro [Im gonna be looking at starting my port again in the next couple days, had to re …], Ok very cool. When you come to the point of rootfs booting and ssh works, ping me ^^ Apr 23 13:15:10 Ohh ok so hybris-boot was opening the recovery telnet before booting the rest of the way Apr 23 13:16:46 @Flohack [Ok very cool. When you come to the point of rootfs booting and ssh works, ping m …], Will do, which rootfs? Apr 23 13:16:48 can I ask question not related to the topic of this conversation? Apr 23 13:17:14 @Marse4eik [can I ask question not related to the topic of this conversation?], As long as its related to Halium, sure Apr 23 13:17:40 The LXC container seems to be having different errors https://paste.ubuntu.com/p/FTtKMZVNqQ/ Apr 23 13:17:47 If indirectly? Apr 23 13:18:53 @TuxThePenguin [The LXC container seems to be having different errors https://paste.ubuntu.com/p …], you seem to miss some CGROUP options Apr 23 13:20:14 @Tygerpro [Will do, which rootfs?], halium reference please Apr 23 13:20:25 @NotKit [you seem to miss some CGROUP options], Would selinux or apparmor be part of the issue if selinux=0 isnt set? Apr 23 13:20:26 Tygerpro do you know how to apply this patch? https://docs.halium.org/en/latest/porting/common-kernel-build-errors.html#undefined-reference-to-pidns-operations-on-linux-3-4 I have this error Apr 23 13:20:43 @Tygerpro [Would selinux or apparmor be part of the issue if selinux=0 isnt set?], no Apr 23 13:21:12 @Flohack [halium reference please], Ok, Ill try to get to that point in the next couple days, got a few other things on my plate to chow through first Apr 23 13:21:14 @NotKit [you seem to miss some CGROUP options], Well dide you see my pastebin, it looks similar, and I got all cgroup options as suggested Apr 23 13:22:28 I did send the lxc-checkconfig output here https://paste.ubuntu.com/p/5DRMS44tmX/ Apr 23 13:22:33 @TuxThePenguin [The LXC container seems to be having different errors https://paste.ubuntu.com/p …], Same like me. Just you need to read the lines in the opposite direction Apr 23 13:22:55 well or no, just make a rough compare 😆 Apr 23 13:23:08 is it possible to use drivers for linux on freebsd, Using some sublayer or create such a sublayer Apr 23 13:23:17 I have set all the things I can find and some of them don't seem to have the effect that they should, for instance I set IP6 Masquerade and it still doesn't show up Apr 23 13:23:39 `Could not write cpu list to:` thats the main issue I think Apr 23 13:24:57 (Document) https://irc.ubports.com/18KTjwEi.txt Apr 23 13:25:50 @TuxThePenguin could you try with UBPorts rootfs + halium-boot instead? Apr 23 13:26:01 That should go in to a specific directory in your rootfs.img, you can manually mount it in TWRP and do it, I believe that is documented in the guide Apr 23 13:26:13 I can Apr 23 13:26:36 Also how do I safely reboot the device once it has started? There is no reboot or shutdown command Apr 23 13:27:09 longpress the power btn Apr 23 13:27:11 😆 Apr 23 13:27:36 @TuxThePenguin [], put it into /etc/udec/rules.d Apr 23 13:27:43 @TuxThePenguin [], [Edit] put it into /etc/udev/rules.d Apr 23 13:29:32 Yeah I put it there as a part of the guide Apr 23 13:31:35 Alright Im going to sleep, Ill come back in the morning and try the ubuntu touch rootfs with halium-boot Apr 23 13:32:19 Guys how do i build halium-boot Apr 23 13:32:27 Instead of hybris? Apr 23 13:32:55 @TuxThePenguin [Alright Im going to sleep, Ill come back in the morning and try the ubuntu touch …], which is your timezone? Apr 23 13:33:20 Australian Eastern Standard Apr 23 13:33:35 ah, I thought of Asia Apr 23 13:53:05 Does anyone know how to patch PID namespace? as describe in this documentation? Coz I have this error. https://docs.halium.org/en/latest/porting/common-kernel-build-errors.html#undefined-reference-to-pidns-operations-on-linux-3-4 Apr 23 14:05:57 * thecursedapple[m sent a long message: < https://matrix.org/_matrix/media/v1/download/matrix.org/HQMXJvMfzLhwVEWxVcsYekBE > Apr 23 14:06:33 Sending messages over 1 line long leads to them becoming text files that we need to open Apr 23 14:07:00 This documentation about the signapk.jar missing error may help: http://docs.halium.org/en/latest/porting/common-system-build-errors.html#signapk-jar-missing Apr 23 14:09:03 What is the full form of HAL-IUM? Apr 23 14:09:21 I am just curious Apr 23 14:12:03 stuck with this error pls help: https://paste.ubuntu.com/p/b9DDwXPmcc Apr 23 14:12:46 @thelowbudgetvlogger [stuck with this error pls help: https://paste.ubuntu.com/p/b9DDwXPmcc], This documentation about the common pidns_operations error may help: http://docs.halium.org/en/latest/porting/common-kernel-build-errors.html#undefined-reference-to-pidns-operations-on-linux-3-4 Apr 23 14:13:34 @UniversalSuperBox What is the full form of HAL-IUM? Apr 23 14:13:43 @DEEP73 [@UniversalSuperBox What is the full form of HAL-IUM?], I'm not sure about the question Apr 23 14:13:50 @UniversalSuperBox yes I read that. but how can i patch it? Im really new to this I just started yesterday. Apr 23 14:13:55 @UniversalSuperBox [I'm not sure about the question], He thinks its an abbrevation Apr 23 14:14:24 HAL is Hardware abstraction ....something... And IUM ?? Apr 23 14:14:33 @DEEP73 [HAL is Hardware abstraction ....something... And IUM ??], It's not an acronym Apr 23 14:14:45 OHH 😂😂😂 Apr 23 14:15:16 @thelowbudgetvlogger [@UniversalSuperBox yes I read that. but how can i patch it? Im really new to th …], For any commit URL on GitHub (One that shows you the changes that happened in a commit), you can add `.patch` to the end to receive a patch file Apr 23 14:15:42 okay thanks Apr 23 14:15:49 You can download that file and then run `git apply [path/to/my/file]` to apply it Apr 23 14:16:06 You'll need to be inside your kernel directory when you do that Apr 23 14:16:13 okay copy Apr 23 14:39:02 @UniversalSuperBox [This documentation about the signapk.jar missing error may help: http://docs.hal …], Will try it out Apr 23 16:44:30 Guys should i be concerned about my phone booting with a red label at the top that says "kernel is not SElinux enforcing" Apr 23 16:45:17 @FTC55 [Guys should i be concerned about my phone booting with a red label at the top th …], Nope Apr 23 16:45:22 It's fine Apr 23 16:45:23 Could that be what makes halium boot into pre-init mode? Apr 23 16:45:54 @CursedApple [Nope], I haven't mentioned that it fails to boot tho Apr 23 16:46:24 @FTC55 [I haven't mentioned that it fails to boot tho], Did you grab logs? Apr 23 16:46:49 Nope I'll do it rn Apr 23 16:57:41 @UniversalSuperBox [You can download that file and then run git apply [path/to/my/file] to apply it], I would advice git am instead of git apply in case patch can be applied clearly to keep commit information Apr 23 17:15:24 "CONFIG_AUTOFS4_FS=y not found in /proc/config.gz … " was apparently the problem. after i change that value in kernel settings what should i recompile? Apr 23 17:17:03 hybris-boot/halium-boot Apr 23 17:17:26 thx Apr 23 17:35:22 Guys should i be concern"> I'm pretty sure that's just Samsung Knox gets tripped. Apr 23 17:36:15 It's fine through, there's nothing to worry about that Apr 23 17:50:39 Oh ok it was already tripped i was worried it might be the cause of it failing to boot Apr 23 17:59:20 @FTC55 [Could that be what makes halium boot into pre-init mode?], No its just a warning that Android is not used and that you disabled SELinux protections. Its on all Samsung devices. Just ignore it Apr 23 18:04:02 guys so i've correctly set the flag that it was signaling in diagnose.log in the kernel configuration and now hybris-boot doesn't even create the usb network interface, whereas halium-boot spawned a telnet service and i could connect to it Apr 23 18:04:17 what should i do now? Apr 23 18:49:06 this https://paste.ubuntu.com/p/KxKK3XG3cv/ is my last_kmsg with the no longer booting hybris-boot. diagnose.log doesn't get generated with hybris-recovery Apr 23 23:36:30 @NotKit [@TuxThePenguin could you try with UBPorts rootfs + halium-boot instead?], I tried it, I cannot telnet or SSH into the device and it reboots randomly Apr 23 23:39:12 And unlike the wiki says, it's not hanging when trying to connect, it's just saying "No route to host" even though I set the IP address on the laptop, etc. Apr 23 23:39:28 [Edit] And unlike the wiki says, it's not hanging when trying to connect, it's just saying "No route to host" even though I set the IP address on the laptop Apr 23 23:58:57 Ah I think I have found part of why LXC wasn't working in the Halium reference FS https://paste.ubuntu.com/p/YVSg8kQNRw/ Apr 24 00:00:03 It seems to be failing to mount at least one thing related to Android Apr 24 00:00:13 Potentially the system image even Apr 24 00:01:37 Here is the full dmesg log https://paste.ubuntu.com/p/3Mf3bt2yy8/ Apr 24 00:02:07 Yep "[ 3.905469] systemd[1]: Failed to mount mount system.img." Apr 24 00:07:18 Dmesg log https://paste.ubuntu.com/p/3Mf3bt2yy8/ Apr 24 00:13:50 Same mount errors happen with hybris-boot, all it does is take me twice as long to get into the device because despite not being hybris-recovery, it still always goes to telnet first and my old laptop doesn't have DHCP software installed Apr 24 00:17:35 Wait nevermind the system image mounts with hybris-boot Apr 24 00:18:41 This is the LXC log https://paste.ubuntu.com/p/yKBxkJdhtM/ Apr 24 00:21:49 Hahahaha the LXC container seems to not be running but test_vibrator works anyway Apr 24 00:49:43 "Vendor blobs go in the vendor/ folder in your Halium source tree... Check if your device’s vendor is listed in TheMuppets’ GitHub organization, then open the repository to see if your device’s codename is inside on your desired branch." Apr 24 00:49:54 What's a device's codename? Apr 24 00:51:07 Relevant Links: … LineageOS: https://github.com/DhirajSurvase/kernel-Moto-C-plus … TheMuppets: https://github.com/DhirajSurvase/android_device_Moto-C-plus Apr 24 00:51:34 Note that I haven't cloned anything yet. Not sure my 3rd world internet can get it in time Apr 24 01:07:35 [Edit] Relevant Links: … TheMuppets: https://github.com/DhirajSurvase/kernel-Moto-C-plus … LineageOS: https://github.com/DhirajSurvase/android_device_Moto-C-plus Apr 24 01:10:36 Also, i didn't see any cm.dependencies or lineage.dependencies files in my repository. I'm guessing I can skip that Apr 24 01:12:21 It looks like your devices codename is panelli Apr 24 01:13:06 [Edit] [EDIT: What's a device's codename?] … Ctrl + F says my code name is "android_device_[manufacturer]_[device]" Apr 24 01:13:30 Ctrl + F says my code name is "android_device_[manufacturer]_[device]" … So confused now Apr 24 01:13:39 "First, you’ll want to find the repositories for your device on LineageOS’s GitHub organization. You can do this by typing your device’s codename into the search box. You’ll want the device repository, android_device_[manufacturer]_[device]. Take down this name, as you’ll need it later." Apr 24 01:14:31 Have you got a shell on the device? Apr 24 01:14:36 [Edit] "First, you’ll want to find the repositories for your device on LineageOS’s GitHub organization. You can do this by typing your device’s codename into the search box. You’ll want the device repository, android_device_[manufacturer]_[device]... Apr 24 01:14:46 Like a terminal in recovery or android or something? Apr 24 01:15:48 If you do then type "getprop ro.product.device", that should give you the codename Apr 24 01:15:51 Never knew I needed one. Also, I didn't know my phone was this device until today. Long story short, it's bricked now (on a start up loop) and I'm trying to save it Apr 24 01:15:58 Okay, will do Apr 24 01:16:06 It should work in recovery as well Apr 24 01:16:09 Like TWRP Apr 24 01:16:53 Although it looks like the codename is panelli Apr 24 01:17:43 [Edit] "First, you’ll want to find the repositories for your device on LineageOS’s GitHub organization. You can do this by typing your device’s codename into the search box. You’ll want the device repository, android_device_[manufacturer]_[device]..." Apr 24 01:20:37 On another note, does anyone know why the LXC container would be crashing on my device and what I can change to fix it? Apr 24 01:22:58 MY@COMP:~/BUILDDIR$ ./halium/devices/setup panelli … The given device is not supported. :( Apr 24 01:23:34 If you want to port it you will have to make your own manifest and modifications to the fixup mountpoints script Apr 24 01:23:49 http://docs.halium.org/en/latest/porting/first-steps.html Apr 24 01:24:31 I did. … I guess I used the wrong name Apr 24 01:24:44 Panellie wasn't in any of the manifests Apr 24 01:24:59 Yes you have to make your own manifest Apr 24 01:28:15 Guessing I'm having trouble with the vendor files. Reading for now … Thanks for the help Apr 24 01:55:03 I was trying stuff out, and it seems that I may be using the wrong code word. … ./halium/devices/setup android_device_motorola_addison … The given device is not supported. :( Apr 24 01:55:27 motorola_addison is the name of an existing device supported by halium Apr 24 01:55:33 Back tracking now Apr 24 02:03:31 Can someone show me a sample of "./halium/devices/setup DEVICE"? Apr 24 02:04:05 @Aaron Lim [Can someone show me a sample of "./halium/devices/setup DEVICE"?], Relevant Link: http://docs.halium.org/en/latest/porting/get-sources.html#sync Apr 24 02:04:55 Can someone show me an example of "./halium/devices/setup DEVICE"? … Relevant link: http://docs.halium.org/en/latest/porting/get-sources.html#sync Apr 24 02:06:30 See the Document blow Apr 24 02:06:37 https://github.com/Halium/halium-devices/tree/halium-7.1/manifests Apr 24 02:12:55 I have. … As mentioned earlier, Motorola Addision is one that already available, but using it doesn't work Apr 24 02:13:07 [Edit] I have. … As mentioned earlier, Motorola Addision is one that's already available, but using it doesn't work Apr 24 02:14:20 (I also made on for my own device, evidences point that it's a Motorola C-Plus. Didn't work either, and both are practically the same, except for the "remote" tags) Apr 24 02:16:45 To clarify, I don't know what to put in for DEVICE. TuxPenguin said it could be Panelli (failed), I tried [manufacturer]_[device], android_device_[manufacturer]_[device], and the names in the manifest. Apr 24 02:17:34 [Edit] To clarify, I don't know what to put in for DEVICE. TuxPenguin said it could be Panelli (failed), I tried moto_c-plus, android_device_moto-c-plus, and the names in the manifest. Apr 24 02:28:03 Motorola Addision device name is addison Apr 24 02:28:18 ./halium/devices/setup addison would be ok Apr 24 02:38:25 ooh! Apr 24 02:38:32 That works Apr 24 02:39:38 My new manifest is finally getting stuff. Thank you Apr 24 02:42:19 @TuxThePenguin [On another note, does anyone know why the LXC container would be crashing on my …], That is very weird, have you tried re-compiling your system.img then reinstalling it? Apr 24 02:52:55 Good day to you people. … I'll try the rest of the process soon. **** ENDING LOGGING AT Wed Apr 24 02:59:57 2019