**** BEGIN LOGGING AT Fri May 08 02:59:59 2020 May 08 05:51:58 Hi . i want to port webos to my smartphone. Is it rice place to seek guidance? May 08 05:52:12 right placetypo May 08 06:16:06 Morning May 08 06:16:10 bt40: What phone you have? May 08 06:35:39 redmi 3s May 08 06:36:19 2gb ram, Snapdragon 430 SOC, 16GB storahe May 08 06:36:36 Currently android which i want to replace May 08 06:36:49 Herrie thanks for response May 08 06:40:54 bt40: You know the codename? May 08 06:40:58 For the device May 08 06:43:13 codename is land May 08 06:44:53 Also i have downloaded custom rom if drivers need to be extracted from that May 08 06:53:13 bt40: Ah OK, well it seems you're quite lucky, because there's already a Halium port of it: https://github.com/Halium/halium-devices/blob/halium-7.1/manifests/xiaomi_land.xml May 08 06:53:20 Which we use for the Android parts May 08 06:53:46 great May 08 06:53:51 so how should i start May 08 06:54:44 You'd need to have a linux machine for building, preferably one with lots of cpu, memory & hd space. The more the quicker usually ;) May 08 06:55:08 had. Currently using ubuntu 18 and debian 10 May 08 06:55:19 Ready to go May 08 06:55:21 Ubuntu 18 works for sure, I haven't tried Debian 10 myself May 08 06:55:23 Follow the steps in: http://docs.halium.org/en/latest/porting/get-sources.html May 08 06:55:35 You will want to go with the 7,1 variant May 08 06:56:13 You can skip "Adding your device-specific source" part since you have that already May 08 06:56:36 And afterwards continue at http://docs.halium.org/en/latest/porting/get-sources.html#sync May 08 06:56:56 ./halium/devices/setup DEVICE should become "./halium/devices/setup land" in your case May 08 06:57:38 Thank you very much Herrie . I really appreciate your guidance. May 08 06:57:51 i also want to ask May 08 06:58:14 can i replace Qt and LevelDB in webos? I am not a big fan of these personally May 08 07:00:27 Qt is big part of the whole webOS ecosystem, so it's not replacable as such. May 08 07:01:20 okay May 08 07:01:47 It's used for compositor and many other things May 08 07:02:39 leveldb is used as backend in db8 (webOS own database system which stores JSON data mainly). Not sure what issues you have with leveldb as such? May 08 07:04:30 :) May 08 07:16:15 We basically build Halium up to the "breakfast [codename]" part, then the created output we use as input for LuneOS/webOS. This is my local build script for Halium/Android bits: https://bpaste.net/NLGA May 08 07:16:55 Herrie, i have some doubt. Halium is a midleware. How will i compile/port webos? The link you provided is refering to halium. Please guide. Thanks in advance May 08 07:17:11 Sorry May 08 07:17:18 late:) May 08 07:17:21 u already answered' May 08 07:17:29 seconds difference:) May 08 07:17:45 bt40: Halium is a generic approaach for building the Android bits (used by UBPorts, Plasma Mobile, LuneOS), so we don't need to reinvent the wheel all the time May 08 07:18:35 As you referred halium for my device already exists. Can i directly download that instead going though porting halium? May 08 07:19:08 bt40: There is no output for it yet it seems May 08 07:19:12 So you'd have to build it May 08 07:19:19 ok May 08 07:19:24 Just hte scripts & patched bits are there, so you don't have to do that yourself May 08 07:20:26 Reached at May 08 07:20:30 Adding your device-specific source May 08 07:20:58 You can skip that ;) May 08 07:21:08 See above ;) May 08 07:21:46 okay May 08 07:22:01 Tofe: Seems there will be some new interesting things in OSE: https://github.com/webosose/com.webos.service.location May 08 07:22:40 should i proceed with>>>> The Device Repository May 08 07:22:54 or even skip this May 08 07:23:15 Following are vendor blobs May 08 07:23:29 Then remotes May 08 07:24:13 You can simply continue at http://docs.halium.org/en/latest/porting/get-sources.html#sync May 08 07:24:22 Where DEVICE becomes "land" May 08 07:24:24 ok thanks May 08 07:30:07 The launcher is not writable. Please talk to your sysadmin or distro May 08 07:30:07 !!! to get an update installed. May 08 07:30:18 Is this serious or should i ignore May 08 07:30:30 or should i use sudo May 08 07:31:13 I would sudo there probably May 08 07:49:01 Herrie, sorry for interrupting. The downloading is struck at fetching android kernel. manually I have verified that network is working. Downloading zip from browser takes 179mb which isn't huge if i am not wrong. Is too long normal? May 08 07:49:33 Fetching projects: 99% (217/218) android_kernel_xiaomi_msm8937 May 08 07:51:28 system monitor shows no data transfer taking place. Web and github is active though May 08 07:54:29 It can take a while sometimes May 08 07:54:35 Like a couple of minutes May 08 07:59:08 When it's really stuck usually means that the repo is not there or there's some issue, but it would time out after a while May 08 08:00:08 after 15 mins i manually cancelled. Rerun command, again stuck at Fetching projects: 99% (217/218) android_kernel_xiaomi_msm8937 May 08 08:00:18 restarting again after cancelling May 08 08:01:07 Cannot checkout proprietary_vendor_xiaomi: ManifestInvalidRevisionError: revision refs/heads/cm-14.1 in proprietary_vendor_xiaomi not found May 08 08:01:08 error: in `sync --local-only -c -j12 -q`: revision refs/heads/cm-14.1 in proprietary_vendor_xiaomi not found May 08 08:01:13 This is error code May 08 08:04:24 Ah ok May 08 08:04:37 That looks like something we can fix May 08 08:04:42 Let me have a look May 08 08:05:03 TheMuppets removed the Xiaomi repo due to DCMA takedown from some Chinese vendor May 08 08:06:14 oh May 08 08:08:02 So this part is failing: https://github.com/Halium/halium-devices/blob/halium-7.1/manifests/xiaomi_land.xml#L11 May 08 08:08:06 You'd need to update it. May 08 08:08:12 Let me draft something quickly May 08 08:08:35 This file should be in halium/devices/xiaomi_land.xml May 08 08:09:53 manually downloadong? May 08 08:11:52 bt40: No check your halium/devices/xiaomi_land.xml and replace it contents with the one I mocked up here: https://bpaste.net/6HRQ May 08 08:12:02 Then retry the sync and hopefully it works May 08 08:13:23 ok May 08 08:21:46 wao May 08 08:21:52 u r genius man May 08 08:22:05 thank you again May 08 08:28:33 https://pastebin.com/HzMZhQuD May 08 08:28:36 error May 08 08:30:31 You should do land without the [] May 08 08:32:31 ok May 08 08:33:02 worked:) May 08 08:36:04 Morning! May 08 08:36:37 grep "TARGET_KERNEL_CONFIG" device///BoardConfig.mk May 08 08:36:49 what should i write in vendor May 08 08:37:30 Tofe: Morning May 08 08:37:40 bt40: Since Halium is already ported, you can skip this part May 08 08:39:20 So after breakfast succeeds you will want to do the commands from https://bpaste.net/NLGA May 08 08:39:49 So basically from line 51 onwards, so mka systemimage etc May 08 08:40:39 Then creating the "tar cvjf ${ARCHIVE_NAME} system.img" should be enough May 08 08:41:02 And generate_checksums, but that's not critical for now May 08 08:48:09 ok May 08 08:50:03 You will then have the input from Android side that can be used for LuneOS May 08 08:59:31 forgot to apply multithreading in final make system.img. how much time it will take with single core? just idea? May 08 08:59:48 in hours? in minutes? May 08 09:00:05 sandybridge i3 May 08 09:04:05 make completed successfully May 08 09:09:19 From which directory should i run this? Right now i am in build directory. Refering to this:Then creating the "tar cvjf ${ARCHIVE_NAME} system.img" should be enough May 08 09:10:39 Archieve name : Shall i replace it with HeliumRedmi3s like common name? Revoning brackets or not? May 08 09:14:47 We use this convention: https://github.com/shr-distribution/meta-smartphone/blob/zeus/meta-xiaomi/recipes-core/android-system-image/android-system-image-mido.bb#L7 May 08 09:15:16 "halium-luneos-7.1-20200508-1-land.tar.bz2" I would use in your case May 08 09:15:19 also system.img file not present in halium folder when checked manually May 08 09:16:05 It should be in output dir being /out/target/product/land/ May 08 09:21:03 hybris-boot.img is there but no system.img May 08 09:21:13 am i missing something? May 08 09:21:21 or go ahead with tar command May 08 09:22:22 as per website system.img should alsobe there May 08 09:23:51 bt40: yes, if the "mka systemimage" has succeeded, it should end with system.img May 08 09:24:40 there is no "apply multithreading" to do with mka, it should be pretty automatic May 08 09:25:43 (and on my good old i5 6600, it takes about 20min on an SSD) May 08 09:25:47 Yeah if you do mka systemimage you should have system.img ;) May 08 09:26:54 will run again this command May 08 09:38:56 Also, I see that on my machine I do "rm -rf ./halium/*-boot/" before building halium May 08 09:39:35 probably to avoid eventual errors concerning halium-boot, which we don't use May 08 10:00:46 [ 47% 10759/22783] target thumb C++: libskia_static_32 <= external/skia/src/images/SkImageEncoder_argb.cppninja: fatal: fork: Cannot allocate memory May 08 10:01:06 #### make failed to build some targets (25:33 (mm:ss)) #### May 08 10:01:22 build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed May 08 10:03:47 too many threads ? :p May 08 10:04:48 what to do now May 08 10:05:34 retry sometimes solves it ;) May 08 10:06:06 ok May 08 10:59:05 Successfully image built in second run :) May 08 10:59:25 Thanks Herrie anf Tofe May 08 11:00:31 In first run, 22000 files to be combiled were shows. In secon run, only 12000 files were compiled. Might be possible that the files which were compiled in first unsuccessful run were omitted this time May 08 11:00:53 But there is light doubd in my mind that it may not go wrong May 08 11:00:58 any way to verify? May 08 17:51:59 Finally had some time to play with my builders memory config. Now doing some tests, hopefully it gets more stable now May 08 17:52:23 Used the settings from DRAM Calculator for Ryzen to see if that makes any difference May 08 17:52:52 Seems I have Hynix J-series chips May 09 00:39:59 Tofe: good info. Is there a way to view something akin to a logcat file to see where it's hanging up? **** ENDING LOGGING AT Sat May 09 02:59:58 2020