Friday, 2019-03-08

*** OhYash1 is now known as ohyash07:55
AlanE22Hello, Is there anyone online who can give me some advice, I've built a SFOS custom kernel for the Planet Gemini PDA in order to get the USB Ethernet adapater working ( My kernel boots up with init-debug just fine and I now have a working eth0. However when I try to exec /sbin/preinit. The unit freezes. I've captured the /dev/klog output here:14:09
AlanE22It looks like it might be a problem with pstore but I'm not sure. Any help would be most apreciated, many thanks for reading. Alan14:10
heroic_1AlanE22: I don't see any log in your post, are you sure you sent it? It's best if you use a pastebin service and post the link here14:14
AlanE22Thats very odd I can view it:
malAlanE22: how did you build the kernel, if you use otherwise official image and only try ot replace the kernel then you need to make sure kernel has correct ramdisk stuff14:26
Mister_Magistermal: aktchually you can compile kernel only and replace it in kernel image leaving ramdisk14:27
malMister_Magister: that's what I meant14:29
malI was wondering how he did it14:29
malI mean if he did it correctly14:29
AlanE22mal: I'm basing my kernel on the official jolla sailfish for the planet rather than the community version. I used lineage cm-14 and the config.gz from a working system. Then did make -j4 hybris-boot14:32
AlanE22 cat .repo/local_manifests/gemini.xml <?xml version="1.0" encoding="UTF-8"?> <manifest>   <project name="lineage-geminipda/android_device_planet_geminipda" path="device/planet/geminipda" remote="github" revision="cm-14.1" />   <project name="lineage-geminipda/android_vendor_planet_geminipda" path="vendor/planet/geminipda" remote="github" revision="cm-14.1" />   <project name="lineage-geminipda/android_kernel_planet_mt679714:32
AlanE22I can boot the kernel and switch root to the linux partition14:33
AlanE22are you able to see the klog in pastebin?, heroic_1 commented that he can't view it14:34
malAlanE22: you original message didn't have any pastebin but the latter one did14:35
malwhat changes did you make to kernel configs?14:37
malor otherwise to kernel?14:37
AlanE22I just added CONFIG_USB_RTL8152=y14:39
AlanE22I now get an eth0 when I plugin the ethernet adapter, I ifconfig eth0 and bring it up and ping nodes so my change is good but exec /lib/systemd/systemd doesn't start the UI and I'm not sure how to proceed14:42
malI don't quite understand why you run those commands manually14:43
AlanE22just debuging it slowly14:44
AlanE22do you see anything useful in the klog? I'm just looking for some suggestions of what might be wrong14:45
malso what sfos version are you running on that?14:47
AlanE22sh-3.2# uname -a Linux (none) 3.18.41+ #8 SMP PREEMPT Thu Mar 7 21:17:31 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux sh-3.2#14:49
malnot kernel version, os version14:49
AlanE22sh-3.2# cat /etc/os-release NAME="Sailfish OS" ID=sailfishos VERSION=" (Sipoonkorpi)" VERSION_ID= PRETTY_NAME="Sailfish OS (Sipoonkorpi)" SAILFISH_BUILD=14 SAILFISH_FLAVOUR=release HOME_URL="" sh-3.2#14:50
maland that is the official one?14:52
AlanE22yes, its the commercial one downloaded from jolla14:53
AlanE22the one where its on its own linux partition rather than in the stowaway folder14:55
malhow did you handle the ramdisk in your kernel in that case?14:55
AlanE22after the make hal-boot, i modified it using the info from the official ramdisk, I had a couple of issues with libraries initially to get lvm working14:57
T4<NotKit> AkanE22, cm-14.1 source won't work, but probably the issue you have is unrelated14:57
T4<NotKit> use
AlanE22I'm only using cm-14.1 to build the right kernel, the official kernel is also 3.18.4114:58
T4<NotKit> there are patches for hwcomposer 32-bit ioctls and Bluetooth at the very least14:59
T4<NotKit> oh, you actually don't have UI, that is the issue then15:00
AlanE22thx, I will give it a go and let you know how I get on15:01
AlanE22NotKit: I chnange my kernel tree to gemian/gemini-linux-kernel-3.18/tree/mer and tried make hybris-boot, I get this error:15:48
mallink missing15:48
AlanE22\/mer/sdks/android/droid/kernel/planet/mt6797/scripts/Makefile.headersinst:55: *** Missing UAPI file /mer/sdks/android/droid/kernel/planet/mt6797/include/uapi/linux/autoconf.h.  Stop.15:48
AlanE22any thoughts before I start digging15:48
AlanE22I selected aeon6797_6m_n_hybris_defconfig as my config file15:49
malI think you should use the config from the official kernel15:51
AlanE22ok, let me try15:55
AlanE22hmm, same error16:13
T4<vvreddy> ;-;16:13
mal@NotKit maybe you have some ideas why that error happens16:15
T4<NotKit> it happens in cm14.1 tree only, check cm14.1 kernel tree for fix of that16:18
AlanE22missing file is present in the cm-14.1 tree
Mister_Magistermal: what about hybris-16?19:13
Mister_Magisterpriority kinda jumped up19:14
maltoo many projects19:15
Mister_Magistermal: sad :C19:38
Mister_Magisterhmm is doing hybris-16 hard? maybe i could do it19:38
malit's not going to be very simple, based on my initial work graphics adaptation and droidmedia need a lot of patching19:40
Mister_Magisteri will basically need hybris16 at some point. if i wasn't idiot i could help19:41
malalso it's unknown if we need a new linker to libhybris19:43
Mister_Magistermal: can i help in ANY way?19:45
Mister_Magistermal: i see you have same idea for me helping as i do19:55
malI was doing some other things right now, in theory you could help19:57
Mister_Magisterhow tho19:57
malfirst by getting the sources19:58
Mister_Magisterhybris sources?19:58
Mister_Magistermy android9 device sources arent out yet sadly19:59
malof course you first need whole android source tree20:00
Mister_Magisterthen lets go back to topic once i get them20:01
AlanE22mal: NotKit: Just so you know you guys are the best, I used the gemian/gemini kernel with the mising file copied from cm-14.1 and then built the kernel with my change, crafted an img file with my kernel and the official sailfishos ramdisk. Now have a Gemini with a working Ethernet. Many thanks for taking the time to help21:49
malgood to hear21:52
heroic_1AlanE22: the official jolla images use a different ramdisk with a different init: compare to
heroic_1if you only want to fiddle with the kernel I guess you can keep manually re-packing the hybris-boot.img, but once you want to actually start the sailfish rootffs you'll need to adapt to the gemini22:17
heroic_1(if you want to re-use the official jolla images for /userdata)22:17
AlanE22:heroic_1, i understand22:17
heroic_1which image do you have flashed to the userdata partition now?22:18
malheroic_1: he has the official image using lvm, so replacing ramdisk is the easy way to do kernel testing22:20
heroic_1yup, for now that's easier. but once he wants to break out of that sandbox, I've told him what to look out for :)22:22

Generated by 2.17.1 by Marius Gedminas - find it at!