**** BEGIN LOGGING AT Wed Dec 20 03:00:02 2017 Dec 20 08:14:35 ping Herrie Dec 20 08:16:58 Morning! Dec 20 08:21:28 Morning! Dec 20 08:22:45 Tofe: Do you happen to know which of the other folders Herrie based his meta-smartphone/meta-xiaomi on? Dec 20 08:38:13 Morning! Dec 20 08:38:19 elvispre: I took the meta-lg one Dec 20 08:38:30 I have one for OnePlus more or less ready if you're interested Dec 20 08:38:41 Would just need to know your partition layout Dec 20 08:39:41 :-) Might as well point me at it then. (I have a meta-lg meta-xiaomi diff session open right now as it happens!) Dec 20 08:40:10 What is the meta-oneplus based on? The same start point? Dec 20 08:40:30 elvispre: My meta-xiaomi Dec 20 08:40:36 :-) Dec 20 08:40:36 Output of ls -lah /dev/disk/by-partlabel is what I'd need Dec 20 08:40:53 elvispre: I have it locally, would need to push it Dec 20 08:40:55 Gimme a few mins Dec 20 08:41:06 If you have partition layout can update some more bits before pushing Dec 20 08:42:53 elvispre: You plan to use 5.1 or 7.1 based Android? Dec 20 08:43:11 5.1 is more tested, 7.1 is untested territory for us currently Dec 20 08:43:24 Though if you do onyx and I do mido we might have a good base there Dec 20 08:45:07 I think 7.1 (based on cm images and various source trees that I have seen) Dec 20 08:45:45 elvispre: OK Dec 20 08:48:19 Hmm. Not much charge in my onyx at the moment. Dec 20 08:50:23 elvispre: That doesn't help ;) Dec 20 08:50:56 Up to 1% now! Dec 20 08:53:17 OK, I have a shell. ls does not understand -h and there is no such thing as /dev/disk/by-partlabel. Dec 20 08:53:43 I think df -h does the same but not sure Dec 20 08:53:43 Ah. Denied access to dev Dec 20 09:04:57 Bear with me. I either need to root the device or (re)flash the lineageOS image I have for it... Dec 20 09:06:49 Herrie|Laptop: I have a few things to do so I'll put my onyx on charge and be back a bit later Dec 20 09:07:26 elvispre: OK Dec 20 09:07:33 I can push my layers already and tell you what to update Dec 20 09:08:32 True! Dec 20 09:13:08 elvispre: https://github.com/Herrie82/meta-smartphone/commit/b250253d5d0460eccde2ef6780f391212b2849f3 Dec 20 09:14:11 You'd want to update meta-oneplus/conf/machine/onyx.conf to make sure ANDROID_BOARD_BOOTIMAGE_PARTITION has the correct boot partition and not like me overwriting aboot and hardbricking ;) Dec 20 09:14:50 And update the partitions in meta-oneplus/recipes-core/initrdscripts/initramfs-boot-android/onyx/machine.conf Dec 20 09:15:05 This should allow you to try to build the kernel probably Dec 20 09:15:19 Ah you'd also need to add the layer to your layers file Dec 20 09:15:20 Let me check Dec 20 09:18:53 You'd need to add meta-oneplus here: https://github.com/webOS-ports/webos-ports-setup/blob/testing/conf/bblayers.conf Dec 20 09:22:05 Afterwards you should be able to do a MACHINE=onyx bb linux-oneplus-onyx Dec 20 09:22:21 It'll probably fail due to gcc 5/6/7 etc other things Dec 20 09:22:27 But it shoudl start building at least Dec 20 15:43:14 ping Herrie Dec 20 16:03:09 ping Herrie|Laptop Dec 20 16:07:08 elvispre: Hi ;) Dec 20 16:15:24 Hello! Having trouble with gcc 6. I think I might want to define CONFIG_NO_ERROR_ON_MISMATCH=y for the kernel build, but it is hard to tell how / where to do that. Dec 20 16:15:52 elvispre: What are your errors? Dec 20 16:19:13 Herrie|Laptop: "modpost: Found 13 section mismatch(es)" Dec 20 16:19:47 (My IRC client just broke down!) Dec 20 16:21:19 That's right at the end of the build, I think. Dec 20 16:21:51 You'd might want to get the full log Dec 20 16:23:19 I am reading the "full" log (Linux's helpful abbreviated full log that hides all the detail from you) Dec 20 16:24:08 "To see full details build your kernel with: 'make CONIFIG_DEBUG_SECTION_MISMATCH=y'" but of course I don't know how to set that either. Dec 20 16:25:38 The step that generates the error is "MODPOST vmlinux.o" Dec 20 16:26:27 I guess you haven't seen this one ;) Dec 20 16:37:16 So, hacking the definition into Makefile.modpost gets past *that* error, but I doubt that's the best way to define it. Dec 20 16:55:04 elvispre: There are log files in tmp-glibc somewhere too Dec 20 16:56:54 tmp-glibc/work/linux-oneplus-onyx/3.4.0gitsomething/temp/log.do_compile Dec 20 16:57:29 Herrie|Laptop: I'm pretty sure I am reading the best log available (deep inside tmp-glibc); the one referred to in the bitbake console output... Yes, as you say. Dec 20 16:58:48 Now I have some undefined references in drivers/built-in.o (to with psmouse_extensions). Dec 20 16:59:58 Please paste the full log to bpaste or something because they're quite extensive Dec 20 17:00:04 And not always easy to read Dec 20 17:03:19 The first one is at https://pastebin.com/6wKvdpPz Dec 20 17:04:42 The current one is at https://pastebin.com/Q1eSpMsk Dec 20 17:05:26 There are plenty of warnings but I think the interesting stuff is at the bottom in both cases. Dec 20 17:31:09 elvispre: on my way home now, will check in a bit Dec 20 17:32:39 Herrie|Pre3: Thanks. I'm going to do something else for a bit anyway. L8r Dec 20 18:54:15 * elvispre got his OnePlus X kernel to build! Dec 20 18:59:42 elvispre: Whohoo! Dec 20 18:59:50 What was it? Simple defconfig change? Dec 20 19:50:58 Herrie: Quite a bit of hack / patching actually. This was the last clue: https://github.com/venkatkamesh/android_kernel_sonyz_msm8974/commit/ff2cd224a2ccd4ce451b5b260027adba02932555 Dec 20 19:55:00 So, as I was saying, I needed to set CONFIG_DEBUG_SECTION_MISMATCH=y for the kernel build. Dec 20 19:55:32 In the end I just hacked into Makefile.modpost, but that does not seem like the right approach. Dec 20 20:49:36 elvispre: Well we had these gcc fixes also for our 3.4 kernels :P Dec 20 20:50:25 I'd expect you'd need to have a similar patchset to the ones here on 13th of October for a working build: https://github.com/Halium/android_kernel_lge_hammerhead/commits/halium-5.1 Dec 20 21:06:25 Tofe: Ping Dec 20 21:29:45 elvispre|s: For Halium bits I used https://bpaste.net/show/b80024ab36e0 Dec 20 21:30:50 you'd need to update the last line to onyx Dec 20 21:31:23 This would then build these bits: http://build.webos-ports.org/halium-wop-7.1/ Dec 20 21:32:29 Which script is that? Dec 20 21:33:01 elvispre|s: THis is to build the Halium minimal Android bits Dec 20 21:33:07 Which is then used in the build Dec 20 21:33:27 This script is run on Jenkins normally and rarely updated in most cases Dec 20 21:33:37 But you'd need to have a minimal Android build ;) Dec 20 21:33:54 You'd need toadd your target to wop_targets.xml as per https://github.com/webOS-ports/android/commit/5240e2a1e8ae25d63233b6524d424e58ca30b3f5 Dec 20 21:34:23 TheMuppets for onyx is at https://github.com/TheMuppets/proprietary_vendor_oneplus/tree/cm-14.1/onyx Dec 20 21:34:41 Oh, OK. Something for tomorrow! Thanks for your help. Dec 20 21:34:46 If you want I can push it, so you can use it as is Dec 20 21:35:09 Well, if you've got it handy... Dec 20 21:36:50 elvispre|s: Not yet, but will take me a few mins to put together ;) Dec 20 21:36:53 So let me do it quickly Dec 20 21:37:08 It'll be at: https://github.com/webOS-ports/android/tree/herrie/wop-halium-7.1 Dec 20 21:37:14 Will be untested but well Dec 20 21:37:20 Might give it a go for you overnight Dec 20 21:37:31 And fix any issues I see and can fix quickly Dec 20 21:43:08 https://github.com/webOS-ports/android/pull/16/commits/c7aaefc8223b9881d8a167edceaf7db67e7f7f5d Dec 20 21:43:13 Running a local build now Dec 20 21:43:16 Good night ;) Dec 20 21:43:37 Good night :) Dec 21 00:01:25 Herrie: will pong tomorrow, I'm not really fresh right now :) **** ENDING LOGGING AT Thu Dec 21 03:00:00 2017