WIP: samsung-treltexx: new device (Samsung Galaxy Note 4)
My WIFI driver is not working without doing deferred_initcalls (rc-update -q add deferred-initcalls sysinit) and modifying wpa_supplicant (/etc/conf.d/wpa_supplicant) file. Also we need to add a script to the boot for restarting wpa_supplicant (sudo rc-service wpa_supplicant restart) and networkmanager (sudo rc-service networkmanager restart).
I found this (https://gitlab.postmarketos.org/postmarketos/pmaports/blob/master/device/device-samsung-klte/device-samsung-klte-kernel-downstream.post-install) for this job but when i tried to use that my all configuration is ruined.
Also i am seeing "unmanaged" devices in "nmcli d". I found another fix for this (https://gitlab.postmarketos.org/postmarketos/pmaports/blob/master/device/device-samsung-klte/NetworkManager-klte.conf).
Merge request reports
Activity
added 1 commit
- 4c05a4a3 - samsung-treltexx-new: new device (Samsung Galaxy Note 4)
By Revolutionary on 2019-06-10T23:18:18
added 1 commit
- 1ccd36d6 - samsung-treltexx-new: new device (Samsung Galaxy Note 4)
By Revolutionary on 2019-06-10T23:32:09
added 1 commit
- c9afe4e8 - samsung-treltexx: new device (Samsung Galaxy Note 4)
By Revolutionary on 2019-06-10T23:41:46
added 1 commit
- 872ee2e8 - samsung-treltexx: new device (Samsung Galaxy Note 4)
By Revolutionary on 2019-06-10T23:47:09
added 1 commit
- 77c4eea7 - samsung-treltexx: new device (Samsung Galaxy Note 4)
By Revolutionary on 2019-06-10T23:50:31
added 1 commit
- 755bc1e1 - samsung-treltexx: new device (Samsung Galaxy Note 4)
By Revolutionary on 2019-06-10T23:59:33
added 1 commit
- b279a446 - samsung-treltexx: new device (Samsung Galaxy Note 4)
By Revolutionary on 2019-06-11T00:08:45
added 1 commit
- 0d1461e4 - samsung-treltexx: new device (Samsung Galaxy Note 4)
By Revolutionary on 2019-06-11T00:18:10
- Resolved by Administrator
- device/linux-samsung-treltexx/APKBUILD 0 → 100644
17 HOSTCC="${CC:-gcc}" 18 HOSTCC="${HOSTCC#${CROSS_COMPILE}}" 19 20 # Source 21 _repository="android_kernel_samsung_trelte" 22 _commit="14ee49add016402757a1f9473aee1d3b0f280148" 23 _config="config-${_flavor}.${arch}" 24 source=" 25 $pkgname-$_commit.tar.gz::https://github.com/LineageOS/${_repository}/archive/${_commit}.tar.gz 26 $_config 27 fix-makefile.patch 28 gcc7-give-up-on-ilog2-const-optimizations.patch 29 gcc8-fix-put-user.patch 30 0007-usb_gadget-set-random-rndis-host-MAC-address-to-prev.patch 31 kernel-use-the-gnu89-standard-explicitly.patch 32 https://raw.githubusercontent.com/LineageOS/android_device_samsung_treltexx/32b24e2348aacce34e87a15944624db1c27397f8/dtb.img This is a dtb.img that LineageOS extracted from a stock rom, but I think it should be possible for us to build it ourselves.
https://forum.xda-developers.com/android/development/exynos-compiling-dtb-img-linux-t3700690
It sounds like the format is similar, but not exactly the same as qcdt.
By Grant Miller on 2019-06-11T03:31:46
In the samsung-hero2lte MR @ollieparanoid said:
We can't have the prebuilt dtb file though, so that needs to be fixed first.
I assume that applies in this case as well?
By Grant Miller on 2019-06-12T00:45:14
@revolutionary @ollieparanoid Looking at the patch file linked in the thread that @GrantM11235 linked, I think it's better if we extract that
dtbtool_exynos
and package it directly. I don't think it's worth to patch the kernel to execute it during the build but it should be called from the APKBUILD like we do with the other kernels.Or even better would be to patch the skales dtbtool to support the exynos format, both tools looks very similar, maybe it's not so complicated to add it.
Here is the extracted file: https://paste.sr.ht/~drebrez/6025dba9e179eaabf715312936e6c537a8776da8
FYI: I've found in the wiki that the Samsung Galaxy S7 Edge (samsung-hero2lte) requires this dtbtool, but it mentions that is already packaged in the kernel source. I've checked and both files are the same, and we also already have a patch to fix some issues on it https://gitlab.postmarketos.org/postmarketos/pmaports/blob/master/device/linux-samsung-hero2lte/02-fix-dtbtool.patch
I found a documentation of this exynos DTBH format here: https://github.com/kumajaya/mkdtbhbootimg/blob/master/dtbtool.txt#L64
By Daniele Debernardi on 2019-06-14T00:07:44
Edited by AdministratorFully agree with that, thanks for looking into it @drebrez!
@revolutionary: I would suggest to package dtbtool_exynos as extra package now (unless you can actually merge it with the dtbtool we already have packaged from skales, but that is only for bonus points). Then use that to build the dtb in your linux APKBUILD, just like we use the other dtbtool with other linux APKBUILDs.
By Oliver Smith on 2019-06-14T00:08:28
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
I added wpa_supplicant to the boot via "sudo rc-update add wpa_supplicant boot" but this time WIFI didn't work. I guess we should add a script for boot which includes "sudo rc-service wpa_supplicant restart" and "sudo rc-service networkmanager restart"
By Revolutionary on 2019-06-12T18:36:59
Edited by Ghost User
added 1 commit
- 22834688 - samsung-treltexx: new device (Samsung Galaxy Note 4)
By Revolutionary on 2019-06-11T23:45:52