Commit Graph
47 Commits
Author SHA1 Message Date
Henrik Grimler 1b86b7b922 device-samsung-gts210lte: depend on postmarketos-base-downstream (MR 4497)
Postmarketos-base-downstream provides a lightdm config file needed for
GUI to be brought up when using an x11 based UI.
2023-10-21 14:43:13 +02:00
Henrik Grimler 5462164fad exynos5420-tablets: depend on postmarketos-base-downstream (MR 4497)
When using downstream kernel.  Postmarketos-base-downstream provides a
lightdm config file needed for GUI to be brought up when using
an x11 based UI.
2023-10-21 14:43:12 +02:00
Henrik Grimler 2a03913ef4 device-samsung-dream: depend on postmarketos-base-downstream (MR 4497)
Postmarketos-base-downstream provides a x11 config file needed for GUI
to be brought up when using lightdm+x11 based UIs.

Fixes: https://gitlab.com/postmarketOS/pmaports/-/issues/2102
2023-10-21 14:43:12 +02:00
Henrik Grimler b2c3933136 device-samsung-crownlte: depend on postmarketos-base-downstream (MR 4497)
And drop 10-logind-check-graphical.conf since
postmarketos-base-downstream provides that file.
2023-10-21 14:43:12 +02:00
Henrik Grimler fc69517273 device-samsung-star2lte: depend on postmarketos-base-downstream (MR 4497)
And drop 10-logind-check-graphical.conf since
postmarketos-base-downstream provides that file.
2023-10-21 14:43:12 +02:00
Henrik Grimler 0028ae7353 device-samsung-starlte: depend on postmarketos-base-downstream (MR 4497)
And drop 10-logind-check-graphical.conf since
postmarketos-base-downstream provides that file.
2023-10-21 14:43:12 +02:00
Henrik Grimler c2175703fe main/postmarketos-base-downstream: add package (MR 4497)
All devices that use downstream kernels should depend on this package.
We will to start with use it to fix so that lightdm+x11 work again
when using downstream kernels.

See also https://gitlab.com/postmarketOS/pmaports/-/issues/2102.
2023-10-21 14:43:12 +02:00
Henrik Grimler f774de5b6a firmware-samsung-klimt: add downstream and mainline subpkgs (MR 4238)
For downstream kernel we have wifi files from android, while for
mainline we pull in linux-firmware-other which contains mfc firmware.
2023-07-08 19:15:51 +02:00
Henrik Grimler 9d3a8332cd firmware-samsung-chagall: add downstream and mainline subpkgs (MR 4238)
For downstream kernel we have wifi files from android, while for
mainline we pull in linux-firmware-other which contains mfc firmware.
2023-07-08 19:15:50 +02:00
Henrik Grimler 139b6bdea3 firmware-odroid-xu4: depend on linux-firmware-other for mfc firmware (MR 4238) 2023-07-08 19:15:41 +02:00
Henrik Grimler 629bde0adb odroid-u2: new device (MR 4019) 2023-07-05 21:56:13 +02:00
Henrik Grimler f06a3b1e68 firmware-samsung-dream: add MFC firmware (MR 4188)
Otherwise there is a 3 min delay until we can ssh into the device.

Same issue as on samsung-crownlte, where rom4nik investigated and
found the solution [1].

Note that the display does not work for dreamlte and dream2lte at the
moment, the device gets stuck on the pmos boot splash screen. This
issue is tracked in
https://gitlab.com/postmarketOS/pmaports/-/issues/2102.

[1] https://gitlab.com/postmarketOS/pmaports/-/merge_requests/4176

[ci:skip-build] already built successfully in CI
2023-06-18 10:37:46 -07:00
Henrik Grimler 8583329551 linux-postmarketos-exynos5: upgrade to 6.1.24 (lts) (MR 4022)
The pmaports package will follow lts releases from now on.
Intermediate versions will be tagged in the
gitlab.com/exynos5-mainline/linux repo.

Also enable CONFIG_LRU_GEN while we are at it (but not
CONFIG_LRU_GEN_ENABLED for now).
[ci:skip-build]: already built successfully in CI
2023-04-23 15:23:59 +02:00
Henrik Grimler ee22fd5eac linux-postmarketos-exynos4: upgrade to version 6.3-rc7 (MR 4018)
And use gitlab.com/exynos4-mainline/linux as source so that we no
longer have to carry all the patches in pmaports.

[ci:skip-build]: Already built successfully in CI
2023-04-22 09:02:12 +02:00
Henrik Grimler 0d2757b3a4 linux-postmarketos-exynos4: split panel patch (MR 4011)
As stated in the MRs that added the patch, the ea8061 and s6evr02
panel drivers are originally from work by Simon Shields (fourkbomb).
Let's base our patches on the original commits to preserve authorship,
and note which modifications have been done, and by who.  This is a
step towards making these patches ready for submission to upstream.

[ci:skip-build]: Already built successfully in CI
2023-04-17 14:10:51 +02:00
Henrik Grimler a5de8ae21b samsung-klimtlte: set getty (MR 4013)
So that we can get a shell over uart.

[ci:skip-build]: already built successfully in CI
2023-04-14 09:33:14 +02:00
Henrik Grimler 4fa38dd8a8 samsung-chagallwifi: set getty (MR 4013)
So that we can get a shell over uart.
2023-04-14 09:33:14 +02:00
Henrik Grimler 02a4b7cd48 samsung-m0: set getty (MR 4013)
So that we can get a shell over uart.
2023-04-14 09:33:09 +02:00
Henrik Grimler 7bcb236407 testing/odroid-xu4: use extlinux instead of U-Boot script (MR 3799)
Which can give us more flexibility in how/from where to boot
postmarketOS.
2023-02-16 12:44:30 +01:00
Henrik Grimler c319a9db70 samsung-klimtlte: enable automatic kernel upgrades (MR 3842) 2023-02-07 16:33:33 +01:00
Henrik Grimler 3fd4bf38ee samsung-chagallwifi: enable automatic kernel upgrades (MR 3842) 2023-02-07 16:33:33 +01:00
Henrik Grimler 68defa831e linux-postmarketos-exynos5: update to 6.1.7 (MR 3812)
[ci:skip-build]: already built successfully in CI
2023-01-22 21:38:24 +01:00
Henrik Grimler a0678836a1 linux-postmarketos-exynos5: use exynos5-mainline repo to get src (MR 3675)
Patches are merged in that repo, so we then no longer have to keep
them in the pmaports repo.

[ci:skip-build]: already built successfully in CI
2022-12-02 08:42:01 +01:00
Henrik Grimler 2c68614713 linux-postmarketos-exynos4: update patch 0005 after kernel upgrade (MR 3522)
Our patch needs to be adjusted after commit 58e4a2d27d32 ("extcon: Fix
extcon_get_extcon_dev() error handling").  Also generate all other
patch headers, and make it possible to apply patch 0008 and 0009 with
git am.
2022-10-15 13:10:31 +02:00
Henrik Grimler bd7c8d15ad linux-postmarketos-exynos5: re-generate patch headers (MR 3516)
Patch header for 0027 was not formatted correctly.  Fix that and
re-generate all other patches while we are at it.

[ci:skip-build] Already built successfuly on CI in MR
2022-10-11 18:39:46 +02:00
Henrik Grimler 33d94e95dd firmware-samsung-m0: fix wifi on mainline, and add bt fw (MR 2873)
With this wifi seem to work reliably, and it is possibly to for
example connect to a bluetooth speaker and play music.

For wifi, issue seem to be with the nvram_net.txt file, changing only
that one to a newer one makes wifi work.  Here, both the .txt and .bin
file are updated, as the old files are from 2012, while the new
ones have a datestamp from 2019.
2022-01-22 09:56:39 +01:00
Henrik Grimler 2442173716 firmware-odroid-xu4: fix bl1 filename for truncate step (MR 2863)
This command was missed when bl1, bl2 and tzsw were renamed.  Truncate
apparently creates a new file of the specified size if file doesn't
exist (instead of failing), so this was missed by CI.
2022-01-19 15:58:20 +01:00
Henrik Grimler e92c4bdfec samsung-klimtlte: add mainline kernel variant (MR 2860)
Use the new linux-postmarketos-exynos5 package.  A dtb for klimtwifi
is added as well, even though the device has not been ported yet.

[ci:skip-build]: Already built successfully in MR CI.
2022-01-19 10:57:47 +01:00
Henrik Grimler 12f450d8b9 samsung-chagallwifi: add mainline kernel variant (MR 2860)
Use the new linux-postmarketos-exynos5 package.  Also update
deviceinfo to match latest template, and remove SEANDROID warning.
2022-01-19 10:56:41 +01:00
Henrik Grimler 85f80bf0e7 odroid-xu4: new device (MR 2860)
Similar hardware to odroid-hc2.  Use new linux-postmarketos-exynos5
package for kernel.
2022-01-19 10:56:41 +01:00
Henrik Grimler f3af0a78e7 main/linux-postmarketos-exynos5: new aport (MR 2860)
Config is based on the one from postmarketos-exynos4 and Hardkernel's
config for exynos5422-odroid-xu4.
2022-01-19 10:56:41 +01:00
Henrik Grimler 5e120e490c samsung-gts210lte: new device (MR 2599)
Touchscreen and usb networking works.  Much of the hardware is the
same as on gts210velte (but that one has a qcom soc and not
exynos5433).  Exactly the same touchscreen calibrarion as for
gts210velte works for this device as well.

Also include firmware package with wifi files. Unlike on many other
Samsung devices wifi does not work out of the box after these
firmware files has been added.

[ci:skip-build] Already built on CI in MR
2021-10-17 17:38:57 +03:00
Henrik Grimler 562ff96249 samsung-i9300: remove trailing \ from udev rule (MR 2546)
Currently we see this error in our dmesg:

  udevd[764]: invalid key/value pair in file /etc/udev/rules.d/90-android-touch-dev.rules on line 6, starting at character 102 ('\\')

[ci:skip-build] Already built successfully on CI
2021-09-25 11:52:43 +02:00
Henrik Grimler 1f512452e2 samsung-i9300: remove warning about hardware issues (MR 2546)
The best (only) theory so far is that issues occur if the battery is
deeply discharged.  The latest kernel upgrade fixed both charging and
reported state-of-charge, so hopefully no one will have similar issues
from now on.
2021-09-25 11:51:27 +02:00
Henrik Grimler b4f0904794 samsung-i9300: set gpu_accelerated=true (MR 2546)
kmscube and phosh seem to run without any issues whatsoever, and there
are no lima-related warnings or error in dmesg.
2021-09-25 11:51:27 +02:00
Henrik Grimler ed1e314287 linux-postmarketos-exynos4: upgrade to 5.15-rc2 (MR 2546)
Also add patches from the Replicant project to fix so that charging
works, and patches from the linux-pm list to fix the SOC INTR message
that has been spamming our dmesg (issue
https://gitlab.com/postmarketOS/pmaports/-/issues/1214).
2021-09-25 11:51:27 +02:00
Henrik Grimler 52217aa8d1 cross/gcc-*: upgrade to 10.3.1_git20210921-r1 (MR 2545)
[ci:skip-build]: looks good, needs to be merged now to unbreak gcc
2021-09-21 22:54:38 +02:00
Henrik Grimler 103a46094c postmarketos-exynos4: change kernel config CMDLINE (MR 2404)
And extend bootloader CMDLINE per default, giving us the option to
change the CMDLINE both via the kernel config and from samsung's
S-BOOT shell.

Note: the default console in exynos_defconfig (which this config is
based on) is ttySAC1, but all midas devices uses ttySAC2, so set it to
ttySAC2 instead. Also remove all other variables. They are not needed,
and (at least) root=/dev/ram0 seem to prevent us from booting pmos.

[ci:skip-build] already built successfully in CI
2021-08-05 18:37:26 +02:00
Henrik Grimler 25152c0fc0 device-samsung-i9300: fix name of dtb variables (MR 2404)
When kernel variants were renamed in
https://gitlab.com/postmarketOS/pmaports/-/commit/69cd6ff843fa3173da8988dfbcc00ba5b18cb48f
these dtb vars were forgotten, making it impossible to boot a kernel
build with `pmbootstrap build linux-postmarketos-exynos4`, no dtb is
appended to the zImage and we get stuck on samsungs boot logo.
2021-08-05 18:36:57 +02:00
Henrik Grimler 3f51f87c72 New device: Galaxy Tab S 8.4 LTE samsung-klimtlte [MR 2084]
Almost identical to packages for chagallwifi, but kernel requires
config changes.

[ci:skip-build] already built successfully in CI
2021-04-19 00:04:56 -07:00
Henrik Grimler 1c99082f9d device-samsung-chagallwifi: use msm-fb-refresher (MR 1884)
With this package the display works, and touch mostly works.

[ci:skip-build]: already built successfully in CI
2021-01-24 15:04:12 +01:00
Henrik Grimler 3cb681bc87 firmware-samsung-chagall: add wifi fw pkg for exynos5420 tablets (MR 1884)
Should work for at least chagallwifi and chagalllte, probably some
other models as well.
2021-01-24 15:00:25 +01:00
Henrik Grimler 0bb64c2e96 linux-samsung-chagallwifi: fix kernel boot problem (MR 1884)
Simply disabling FIMC IS does not work however due to compilation
errors and a null pointer dereference.  01-fix-FIMC-IS-disabling.patch
takes care of this.

As with other exynos devices some additional things had to be disabled
to make the kernel compile after FIMC IS had been disabled,
specifically:

CONFIG_CAMERA_EEPROM
CONFIG_VIDEO_EXYNOS_MIPI_CSIS
CONFIG_LEDS_MAX77803

Apart from that we also have:

02-netfilter-symbols.patch, which fixes another compilation error.

03-usb_gadget-set-random-rndis-host-MAC-address-to-prev.patch (taken
from another device) which prevents host mac address being set to
00:00:00:00:00.

Kernel sources have been changed to the lineage-16.0 branch in the
exynos5420 repo, as that is where development happens at the moment.
2021-01-24 15:00:20 +01:00
Henrik Grimler eed8631c02 main/dtbtool-sprd: fork and upgrade to 1.1.2 (MR 1864)
Fix error if -p arg or dtb dir do not end with /.

Currently, running

$ dtbTool-sprd -p "scripts/dtc" -o "arch/arm/boot/dt.img" "arch/arm/boot/dts/"

or

$ dtbTool-sprd -p "scripts/dtc/" -o "arch/arm/boot/dt.img" "arch/arm/boot/dts"

fails with something like
	DTB combiner:
	  Input directory: 'arch/arm/boot/dts/'
	  Output file: 'dt.img'
	Found file: sprd-scx20_sp7731ceb.dtb ... skip, failed to scan for 'sprd,sc-id =<' tag
	=> Found 0 unique DTB(s)

instead of succeeding with something like
	DTB combiner:
	  Input directory: 'arch/arm/boot/dts/'
	  Output file: 'dt.img'
	Found file: sprd-scx20_sp7731ceb.dtb ... chipset: 8830, platform: 1, rev: 131072
	=> Found 1 unique DTB(s)

	Generating master DTB... completed

The reason for the failure is that the tool tries to run external
commands and concatenates the path from the args, meaning that it
tries to run scripts/dtcdtc instead of scripts/dtc/dtc.
2021-01-15 00:06:39 +01:00
Henrik Grimler a2b1accbc0 linux-samsung-dream: fix issue with swapped red and blue colors (MR 1843) 2021-01-05 22:18:08 +03:00
Henrik Grimler 4d327313e4 device-samsung-dream: use minimal initfs-hook (MR 1843)
Instead of running the entire setup_usb_network_configfs function we
run the parts that are actually necessary for
setup_usb_network_android to succeed when it is run afterwards.
2021-01-05 22:18:04 +03:00
Henrik Grimler 7bdce27e31 linux-samsung-chagallwifi: switch kernel sources (MR 1672)
With these kernel sources the device boots successfully,
sometimes. Usually, kernel panics and device reboots a couple of
times, but after a few attempts (maybe 1, maybe 7) it succeeds to
boot. The problems seem to be related to FIMC IS, unfortunately it
does not seem to be possible to just disable it in the kernel config,
as that leads to compilation errors.

I have so far just experimented with getting wifi up and running, but
it does not work out of the box even after adding firmware package
with files from TheMuppets, wpa_supplicant fails to connect and dmesg
is filed with lines like:

```
[  112.509235]  [L0: wl_event_handle:  3109] CFG80211-INFO2) wl_escan_handler : Couldn't find P2PIE in probe response/beacon
```

[ci:skip-build]: already built successfully in CI
2020-11-02 11:10:12 +01:00