*** OhYash1 is now known as ohyash | 07:55 | |
AlanE22 | Hello, 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 (https://store.planetcom.co.uk/collections/accessories/products/gemini-usb-c-hub) 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 |
---|---|---|
AlanE22 | It looks like it might be a problem with pstore but I'm not sure. Any help would be most apreciated, many thanks for reading. Alan | 14:10 |
heroic_1 | AlanE22: 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 here | 14:14 |
AlanE22 | Thats very odd I can view it: https://pastebin.com/LJxkQ07G | 14:17 |
mal | AlanE22: 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 stuff | 14:26 |
Mister_Magister | mal: aktchually you can compile kernel only and replace it in kernel image leaving ramdisk | 14:27 |
mal | Mister_Magister: that's what I meant | 14:29 |
mal | I was wondering how he did it | 14:29 |
mal | I mean if he did it correctly | 14:29 |
AlanE22 | mal: 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-boot | 14: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_mt6797 | 14:32 |
AlanE22 | I can boot the kernel and switch root to the linux partition | 14:33 |
mal | ok | 14:33 |
AlanE22 | are you able to see the klog in pastebin?, heroic_1 commented that he can't view it | 14:34 |
mal | AlanE22: you original message didn't have any pastebin but the latter one did | 14:35 |
mal | what changes did you make to kernel configs? | 14:37 |
mal | or otherwise to kernel? | 14:37 |
AlanE22 | I just added CONFIG_USB_RTL8152=y | 14:39 |
AlanE22 | I 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 --unit=graphical.target doesn't start the UI and I'm not sure how to proceed | 14:42 |
mal | I don't quite understand why you run those commands manually | 14:43 |
AlanE22 | just debuging it slowly | 14:44 |
AlanE22 | do you see anything useful in the klog? I'm just looking for some suggestions of what might be wrong | 14:45 |
mal | so what sfos version are you running on that? | 14:47 |
AlanE22 | sh-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 |
mal | not kernel version, os version | 14:49 |
AlanE22 | sh-3.2# cat /etc/os-release NAME="Sailfish OS" ID=sailfishos VERSION="3.0.1.14 (Sipoonkorpi)" VERSION_ID=3.0.1.14 PRETTY_NAME="Sailfish OS 3.0.1.14 (Sipoonkorpi)" SAILFISH_BUILD=14 SAILFISH_FLAVOUR=release HOME_URL="https://sailfishos.org/" sh-3.2# | 14:50 |
mal | and that is the official one? | 14:52 |
AlanE22 | yes, its the commercial one downloaded from jolla | 14:53 |
AlanE22 | the one where its on its own linux partition rather than in the stowaway folder | 14:55 |
mal | how did you handle the ramdisk in your kernel in that case? | 14:55 |
AlanE22 | after 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 working | 14:57 |
T4 | <NotKit> AkanE22, cm-14.1 source won't work, but probably the issue you have is unrelated | 14:57 |
T4 | <NotKit> use https://github.com/gemian/gemini-linux-kernel-3.18/tree/mer | 14:58 |
AlanE22 | I'm only using cm-14.1 to build the right kernel, the official kernel is also 3.18.41 | 14:58 |
T4 | <NotKit> there are patches for hwcomposer 32-bit ioctls and Bluetooth at the very least | 14:59 |
T4 | <NotKit> oh, you actually don't have UI, that is the issue then | 15:00 |
AlanE22 | thx, I will give it a go and let you know how I get on | 15:01 |
AlanE22 | NotKit: 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 |
mal | link missing | 15: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 |
AlanE22 | any thoughts before I start digging | 15:48 |
AlanE22 | I selected aeon6797_6m_n_hybris_defconfig as my config file | 15:49 |
T4 | Mike (MISSING @USERNAME! telegram.org/faq#usernames-and-t-me) was added by: Mike (MISSING @USERNAME! telegram.org/faq#usernames-and-t-me) | 15:50 |
mal | I think you should use the config from the official kernel | 15:51 |
AlanE22 | ok, let me try | 15:55 |
AlanE22 | hmm, same error | 16:13 |
T4 | <vvreddy> ;-; | 16:13 |
mal | @NotKit maybe you have some ideas why that error happens | 16:15 |
T4 | <NotKit> it happens in cm14.1 tree only, check cm14.1 kernel tree for fix of that | 16:18 |
AlanE22 | missing file is present in the cm-14.1 tree https://github.com/lineage-geminipda/android_kernel_planet_mt6797/blob/cm-14.1/include/uapi/linux/autoconf.h | 16:22 |
Mister_Magister | mal: what about hybris-16? | 19:13 |
Mister_Magister | priority kinda jumped up | 19:14 |
mal | too many projects | 19:15 |
Mister_Magister | mal: sad :C | 19:38 |
Mister_Magister | E_TOOMANYPROJECTS | 19:38 |
Mister_Magister | hmm is doing hybris-16 hard? maybe i could do it | 19:38 |
mal | it's not going to be very simple, based on my initial work graphics adaptation and droidmedia need a lot of patching | 19:40 |
Mister_Magister | hmm | 19:41 |
Mister_Magister | i will basically need hybris16 at some point. if i wasn't idiot i could help | 19:41 |
mal | also it's unknown if we need a new linker to libhybris | 19:43 |
Mister_Magister | mal: can i help in ANY way? | 19:45 |
Mister_Magister | mal: i see you have same idea for me helping as i do | 19:55 |
mal | I was doing some other things right now, in theory you could help | 19:57 |
Mister_Magister | how tho | 19:57 |
mal | first by getting the sources | 19:58 |
Mister_Magister | hybris sources? | 19:58 |
Mister_Magister | btw | 19:58 |
Mister_Magister | my android9 device sources arent out yet sadly | 19:59 |
mal | of course you first need whole android source tree | 20:00 |
Mister_Magister | then lets go back to topic once i get them | 20:01 |
AlanE22 | mal: 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 help | 21:49 |
mal | good to hear | 21:52 |
heroic_1 | AlanE22: the official jolla images use a different ramdisk with a different init: compare https://github.com/mer-hybris/hybris-boot/blob/master/init-script to https://github.com/mer-hybris/hybris-initrd/blob/7b52ab04ad19f0c46cccbb2fe3b53c63a04b0c5f/jolla-init | 22:15 |
heroic_1 | if 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 https://github.com/mer-hybris/droid-hal-img-boot-sony-nile to the gemini | 22:17 |
heroic_1 | (if you want to re-use the official jolla images for /userdata) | 22:17 |
AlanE22 | :heroic_1, i understand | 22:17 |
heroic_1 | which image do you have flashed to the userdata partition now? | 22:18 |
mal | heroic_1: he has the official image using lvm, so replacing ramdisk is the easy way to do kernel testing | 22:20 |
heroic_1 | yup, 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 irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!