93 Commits
Author SHA1 Message Date
Henrik Grimler e0db4a1c1e firmware-samsung-s5k5baf: install to /usr/lib
And take over maintainership while at it.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9328>
2026-08-07 16:48:19 +00:00
Henrik Grimler 1c434e271d device-samsung-t0lte: remove nonfree-firmware subpackage
Mostly to make CI happy.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9094>
2026-07-21 18:13:10 +00:00
Henrik Grimler e2e9d31574 device-samsung-t03g: remove nonfree-firmware subpackage
Mostly to make CI happy.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9094>
2026-07-21 18:13:10 +00:00
Henrik Grimler 6d1e707ed1 device-samsung-p4note: compress initramfs with xz
To decrease boot.img size.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9094>
2026-07-21 18:13:10 +00:00
Henrik Grimler 7557b08cda device-samsung-lt01: compress initramfs with xz
To decrease boot.img size.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9094>
2026-07-21 18:13:10 +00:00
Henrik Grimler 0aecba9dee device-samsung-kona: compress initramfs with xz
To decrease boot.img size.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9094>
2026-07-21 18:13:10 +00:00
Henrik Grimler 04ce170086 device-samsung-t0lte: compress initramfs with xz
To decrease boot.img size.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9094>
2026-07-21 18:13:10 +00:00
Henrik Grimler c40dd1c06c device-samsung-t03g: compress initramfs with xz
To decrease boot.img size.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9094>
2026-07-21 18:13:07 +00:00
Henrik Grimler b6f1a1d30e device-samsung-m3: compress initramfs with xz
To decrease boot.img size.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9094>
2026-07-21 18:13:03 +00:00
Henrik Grimler 906b413a46 device-samsung-m0: compress initramfs with xz
To decrease boot.img size.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9094>
2026-07-21 18:13:03 +00:00
Henrik Grimler c125130f8f linux-postmarketos-exynos4: update to 7.1.1
Enable more config options, and add a patch to fix an issue in lima
driver.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8881>
2026-06-23 23:05:28 +00:00
Henrik Grimler 2840ed1a64 u-boot-samsung-i9100: update to 2026.07-rc4
And build from tag in exynos4-mainline/u-boot repo instead of carrying
all the patches in pmaports.

In this tag booting from emmc is supported, i.e. https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/3993 is
fixed. As in previous tag i9100 is supported by modifying the board
files for exynos4210-trats, quality is not good enough for sending
upstream.

Fixes: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/3993
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8877>
2026-06-22 09:39:09 +02:00
Henrik Grimler 595c276a22 device-samsung-i9100: flash rootfs to UMS partition, as non sparse
Some partitions are sparse (DATAFS, FACTORYFS), but the largest
partition, UMS, needs to be non-sparse. DATAFS partition also expects
some special images with a magic header (or something), simply trying
to flash a sparse or non-sparse image to it gives an error from device
bootloader:

```
[ ... ]
erase completed(from 73728 to 90111).
.
mmc_pwrite: partition[6] written successfully.
...set_nps_update_start: set nps start flag successfully.
process_packet: id=102, data=0
process_packet: id=102, data=2
process_packet: id=102, data=3
pda completed: id=11, size=31457280, final=0
Invalid Magic Code! 0x       0
[ ... ]
```

Therefore set UMS as default rootfs partition and create non-sparse
images.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8877>
2026-06-22 09:39:05 +02:00
Henrik Grimler fad9378de9 linux-postmarketos-exynos5: update to 6.18.33
Changes since v6.12.63 are:

* Rebase on top of 6.18.33
* Sync manta with mainline (@lat3st, @alexmrqt)
* Add bluetooth support to manta (@lat3st, @alexmrqt)
* Fix manta magnetometer with mainline dts (@alexmrqt)
* Fix hang on suspend/display off on galaxy pros (@eisenbahnfan)
* Add support for max77888 and use it on galaxy pros (@eisenbahnfan)

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8634>
2026-05-31 08:49:46 +00:00
Henrik Grimler e95d5dec44 device-odroid-u2: load the ledtrig-heartbeat module
So that the blue led can automatically blink in the default heartbeat
mode.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8630>
2026-05-25 20:41:48 +02:00
Henrik Grimler 9c67d85231 device-odroid-xu4: load the ledtrig-heartbeat module
So that the blue led can automatically blink in the default heartbeat
mode.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8630>
2026-05-25 20:41:45 +02:00
Henrik Grimler 9cc6004f9b linux-postmarketos-exynos4: update to 6.18.9
Changes since 6.16.10 are:

* Add touchkey leds for kona (@jack_kekzoz)
* Add Wacom w9000 penabled touchscreen driver for kona (@f_,
  @eisenbahnfan)

Tested on samsung-i9305 and odroid-u2.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7996>
2026-02-12 18:51:05 +00:00
Henrik Grimler 5d09be7c87 linux-postmarketos-exynos5: update config to pass kconfig check
Notable changes are that we switch to zstd module compression, and
enable MODULE_DECOMPRESS=y to let kernel handle decompression, as
busybox modprobe cannot handle zstd.

Also switch non /boot filesystem types to modules, and disable
MODULE_FORCE_UNLOAD as it is not really a good idea for non-testing
devices.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7921>
2026-02-06 17:16:21 +01:00
Henrik Grimler d38b73fbdd main/postmarketos-initramfs: init_functions: return early in load_modules
If $modules is empty, then `modprobe -a` is run which gives an error
with full modprobe (i.e. not busybox variant):

  [pmOS-rd]: modprobe: ERROR: missing parameters. See -h.

Add a check and return early to avoid potentially printing the error
to users.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7916>
2026-02-04 15:29:25 +00:00
Henrik Grimler 8097acbe40 main/postmarketos-initramfs: mv iskey to base initramfs
It is used in init_functions.sh, and should hence be in base
initramfs.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7916>
2026-02-04 15:29:25 +00:00
Henrik Grimler f45319dc3b main/postmarketos-initramfs: mv some modules to modules-extra
Not all modules are strictly needed in 1st initramfs stage. Move some
of the ones that are not necessary for mounting /boot into
00-default-extra.modules.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7916>
2026-02-04 15:29:21 +00:00
Henrik Grimler b3cb907471 main/devicepkg-dev: add comment about modules-extra-initfs
The package currently handles only modules in modules-initfs, as
modules in modules-extra-initfs are handled automatically through
udev.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7916>
2026-02-04 15:29:18 +00:00
Henrik Grimler 70dbf41ef8 main/devicepkg-dev: use /usr/lib/ in more places
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7916>
2026-02-04 15:29:18 +00:00
Henrik Grimler dfc7fe9107 kconfigcheck: MODULE_DECOMPRESS should be set
We currently enforce MODULE_COMPRESS_ZSTD=y. In the 1st stage
initramfs we use busybox modprobe, and busybox modprobe cannot handle
zstd compression. Therefore, make sure MODULE_DECOMPRESS is enabled so
that kernel handles decompression instead.

See issue https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/4305.

Co-developed-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7922>
2026-02-04 14:41:03 +01:00
Henrik Grimler b746630896 linux-postmarketos-exynos5: upgrade to 6.12.63
Changes are roughly:

- Rebase on-top of 6.12.63
- Disable not-needed ARM_ERRATA_643719
- Set ARM_ERRATA_798181=y and ARM_ERRATA_814220=y
- Modify config to make kernel and initramfs smaller:
  - Change some option to modules
  - Unset debug options, instead move them to new kernel fragment
    exynos_debug.config
  - Make all filesystems in initramfs built-in
  - Compress modules with xz
- Also change some options to make pmbootstrap kconfig check happy

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7663>
2025-12-29 01:22:17 +00:00
Henrik Grimler 8cbef98839 linux-postmarketos-exynos5: upgrade to 6.12.62
Changes are roughly:

- Rebase on-top of 6.12.62
- Add isa1200 driver (from exynos4), and use it on manta (@lat3st)
- Add camera flash for manta (@lat3st)
- Improve manta audio driver to decrease CPU load (@alexmrqt)
- Fix wacom w9000 pen being always active unless inserted (@eisenbahnfan)
- Drop a pm_domain hack, and instead make exynos5 subcmu driver wait
  for pm_domain to probe first (@eisenbahnfan)

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7582>
2025-12-17 13:47:56 +00:00
Henrik Grimler a6761951ff linux-postmarketos-exynos5: update to 6.12.53
Notable changes since 6.12.36 are roughly:

- Add support for n1awifi (@Eisenbahnfan)
- Add more features for n2a and v1a (@Eisenbahnfan)
- Fix wacom w9000 pen always being active until re-inserted (@Eisenbahnfan)
- Change ARM_EXYNOS_BUS_DEVFREQ to module (@Eisenbahnfan)
- Add sound support, and other improvements, for manta (@Alexmrqt)

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7207>
2025-10-18 10:35:43 +00:00
Henrik Grimler c08842e994 linux-postmarketos-exynos4: update to 6.16.10
Some notable changes are:

- Add qcom mdm9x15 modem dts nodes for midas (@jack_kekzoz)
- Add hack with possibility to power cycle ehci usb controller
- Split p4note into wifi and lte variants (@viciouss)
- Add Imagis ISA1200 haptic driver (@viciouss)
- Drop custom initramfs from kernel. Was only needed by 4210 and
  they can use u-boot now.
- Add wacom9000 stylus driver (by @eisenbahnfan, taken from exynos5 kernel)
- .. and some general cleanup to make dtbs_check happy

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7152>
2025-10-08 11:47:02 +00:00
Henrik Grimler d2d455f8a4 extra-repos/systemd: add transmission-daemon service
Based on service script in transmission's repo [1], but with Type
changed to simple as alpine's transmission is built without sd_notify.

[1] https://github.com/transmission/transmission/blob/main/daemon/transmission-daemon.service.in

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7016>
2025-09-10 10:06:39 +02:00
Henrik Grimler 436d44c8e6 systemd/systemd-services: add apache service
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6996>
2025-09-03 13:53:00 +00:00
Henrik Grimler 4a2a2acaf6 device-samsung-i9100: set generate_extlinux_config=true
Was missed when device was migrated over to use u-boot.

Fixes: e74d7fdd69 ("device-samsung-i9100: use u-boot as intermediate bootloader")
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6998>
2025-09-03 13:52:03 +00:00
Henrik Grimler 903baf437c linux-postmarketos-exynos4: update to 6.16.1
Some notable changes since 6.10.1 are:

- Add support for konawifi (@jack_kekzoz)
- Drop initramfs that we carried in kernel (only exynos4210 devices
  needed it, and those can now use u-boot)
- Update config to make kernel a bit smaller (disable some options,
  make others modules), and enable options to make pmbootstrap kconfig
  happy
- Add ctx->panel.prepare_prev_first to ea8061 panel driver, to fix
  issue where panel is all black

Co-developed-by: @knuxify <knuxify@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6921>
2025-08-22 11:46:46 -04:00
Henrik Grimler e74d7fdd69 device-samsung-i9100: use u-boot as intermediate bootloader
The close-to-mainline u-boot fork can then load linux from boot
partition.

One downside is that it will no longer be possible to flash through
pmbootstrap, since there is no support for flashing arbritrary targets
to arbritrary partitions with pmbootstrap, yet.

Therefore, users will need to manually flash
/usr/share/u-boot/trats/u-boot.bin to the KERNEL partition for i9100
to work after these changes.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6921>
2025-08-22 11:46:46 -04:00
Henrik Grimler 06f5839fe0 testing/u-boot-samsung-i9100: add package
Close-to-mainline fork (also kept at
https://gitlab.com/exynos4-mainline/u-boot/) where i9100 can use
trats_defconfig, since exynos4210-trats is very similar to i9100.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6921>
2025-08-22 11:46:46 -04:00
Henrik Grimler f9ba174a1c archived/u-boot-samsung-i9100: drop package
It is very old, and a mainline based variant will be added shortly.

Drop the package so that the name does not conflict with the new one.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6921>
2025-08-22 11:46:46 -04:00
Henrik Grimler 19589d554d device-odroid-u2: fix so that extlinux config is generated again
I accidentally dropped it in a rebase.

Fixes: e76edf7044 ("device-odroid-u2: depend on firmware-odroid-u2
and clean up cmdline")

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6940>
2025-08-19 09:13:03 +00:00
Henrik Grimler 306e615062 firmware-odroid-u2: add dependency on linux-firmware-s5p-mfc
Just like for the other exynos4412 and exynos542x devices odroid-u2
wants to load s5p-mfc.fw.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6848
2025-08-16 22:05:02 -04:00
Henrik Grimler e76edf7044 device-odroid-u2: depend on firmware-odroid-u2 and clean up cmdline
firmware-odroid-u2 provides the bootloaders that are necessary to boot
the system.

There is no reason to always boot with loglevel=9, or with rw, and
most often not with PMOS_FORCE_PARTITION_RESIZE.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6848
2025-08-16 22:04:28 -04:00
Henrik Grimler d1ef71b2c7 firmware-odroid-xu4: put s5p-mfc and rtl_nic deps in _pmb_recommends
These firmware packages are not strictly necessary for a booting
system, so move them to _pmb_recommends.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6848
2025-08-16 22:04:28 -04:00
Henrik Grimler 2315bf0f65 device-odroid-xu4: depend on firmware-odroid-xu4
firmware-odroid-xu4 provides the bootloaders needed to successfully
boot odroid-xu4. Also remove the linux-firmware-rtl_nic
dependency (will be moved to firmware-odroid-xu4 instead).

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6848
2025-08-16 22:04:28 -04:00
Henrik Grimler 72b75df3b2 device-samsung-i9100: set console=ttySAC2 in cmdline
So that we get debug output from kernel.

Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6917
2025-08-13 10:32:31 +02:00
Henrik Grimler dbc2aea5c6 u-boot-samsung-i9100: move to archived category
The downstream port of i9100 does not use u-boot-samsung-i9100, so it
is essentially dead code. Furthermore, this u-boot is ancient, based
on 2012.04-rc1, with backported patches to get ext4 support. It is
hence not really suitable for use with postmarketos.

[ci:skip-build]: build fails.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6847
2025-08-02 10:14:23 -07:00
Henrik Grimler 18590df8ff linux-samsung-gts210lte: set console=ttySAC1
ttySAC1 is the debug uart on this device.

Unfortunately something stops kernel output a certain time into boot,
so we only get output for the first few seconds.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6745
2025-07-30 16:03:50 +02:00
Henrik Grimler ac421c24eb linux-samsung-gts210lte: re-generate config and cleanup patches
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6745
2025-07-30 16:03:50 +02:00
Henrik Grimler cc6086d029 device-samsung-gts210lte: set getty to ttySAC1
ttySAC1 is the debug uart on this device.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6745
2025-07-30 16:03:50 +02:00
Henrik Grimler 02e10a2161 device-samsung-gts210lte: deviceinfo: drop un-needed variables
screen_width and screen_height are only needed for
dev_touchscreen_calibration calculation. We do not need to set
dev_touchscreen_calibration though, as we already ship a custom
90-sec_touchscreen.rules file with the same calibration.

Suggested-by: @sicelo
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6745
2025-07-30 16:03:50 +02:00
Henrik Grimler fcca70824e device-samsung-gts210lte: re-add 90-sec_touchscreen.rules
The install command was accidentally dropped in commit
dd04440b64 ("device-samsung-gts210lte: avoid overriding udev v4l
rule in /etc").

Also change so it is installed to /usr/lib/udev/rules.d/.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6745
2025-07-30 16:03:50 +02:00
Henrik Grimler f94f17f188 linux-postmarketos-exynos5: update to 6.12.36
Tested on odroid-xu4 and samsung-n2awifi.

Changes include:

- Add driver for Wacom W9000-series touchscreen pens (@Eisenbahnfan)
- Fixes and enhancements for the Galaxy Tab Pros, {n2a,v1a}wifi (@Eisenbahnfan):
  - penabled touchscreen on V1A WiFi
  - DVFS for memory
  - fix sensors sometimes not starting on V1A WiFi
  - fix display lags due to frequency changes
  - fix cpus stuck on low frequency level
- Re-implement support for allocating a non-coherent DMA region (@Eisenbahnfan)
- Add driver for the AMS as3668 led, and enable it on manta (@LaT3St)

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6756
[ci:skip-build]: already built successfully in CI
2025-07-11 22:12:41 +02:00
Henrik Grimler 481e494cdc main/dtbtool-exynos: fix unreliable behaviour
Hopefully these can be merged in the repo we track, but let's add them
to pmaports in the meanwhile.

Fixes issue where allocated, but non-set memory is used, which gives
unpredictable behaviour.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6746
[ci:skip-build]: already built successfully in CI
2025-07-11 22:03:33 +02:00
Henrik Grimler ea4aba479e systemd/systemd-services: add service file for nginx
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6755
2025-07-10 11:34:20 +00:00
Henrik Grimler 51bf16cf8a device-raspberry-pi5: use new var deviceinfo_generate_cmdline_txt
It lets us move the variables in cmdline.txt to
deviceinfo_kernel_cmdline. We can thereafter drop the cmdline.txt file
entirely.

By setting deviceinfo_generate_cmdline_txt we tell boot-deploy to
generate /boot/cmdline.txt from deviceinfo_kernel_cmdline. boot-deploy
can then also add information about partition UUIDs to the cmdline,
which helps postmarketos-initramfs find the correct partitions.

Fixes: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/3716

Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6630
[ci:skip-build]: already built successfully in CI
2025-07-02 21:08:35 +02:00
Henrik Grimler 4dbeee8a99 device-raspberry-pi4: use new var deviceinfo_generate_cmdline_txt
It lets us move the variables in cmdline.txt to
deviceinfo_kernel_cmdline. We can thereafter drop the cmdline.txt file
entirely.

By setting deviceinfo_generate_cmdline_txt we tell boot-deploy to
generate /boot/cmdline.txt from deviceinfo_kernel_cmdline. boot-deploy
can then also add information about partition UUIDs to the cmdline,
which helps postmarketos-initramfs find the correct partitions.

Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6630
2025-07-02 21:08:35 +02:00
Henrik Grimler 6c3cbe795a device-raspberry-pi3: use new var deviceinfo_generate_cmdline_txt
It lets us move the variables in cmdline.txt to
deviceinfo_kernel_cmdline. We can thereafter drop the cmdline.txt file
entirely.

By setting deviceinfo_generate_cmdline_txt we tell boot-deploy to
generate /boot/cmdline.txt from deviceinfo_kernel_cmdline. boot-deploy
can then also add information about partition UUIDs to the cmdline,
which helps postmarketos-initramfs find the correct partitions.

Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6630
2025-07-02 21:08:34 +02:00
Henrik Grimler 5a7a86f118 device-raspberry-pi: use new var deviceinfo_generate_cmdline_txt
It lets us move the variables in cmdline.txt to
deviceinfo_kernel_cmdline. We can thereafter drop the cmdline.txt file
entirely.

By setting deviceinfo_generate_cmdline_txt we tell boot-deploy to
generate /boot/cmdline.txt from deviceinfo_kernel_cmdline. boot-deploy
can then also add information about partition UUIDs to the cmdline,
which helps postmarketos-initramfs find the correct partitions.

Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6630
2025-07-02 21:08:33 +02:00
Henrik Grimler 2a6c3b4bed device-raspberry-pi0: use new var deviceinfo_generate_cmdline_txt
It lets us move the variables in cmdline.txt to
deviceinfo_kernel_cmdline. We can thereafter drop the cmdline.txt file
entirely.

By setting deviceinfo_generate_cmdline_txt we tell boot-deploy to
generate /boot/cmdline.txt from deviceinfo_kernel_cmdline. boot-deploy
can then also add information about partition UUIDs to the cmdline,
which helps postmarketos-initramfs find the correct partitions.

Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6630
2025-07-02 21:08:33 +02:00
Henrik Grimler 00e6509372 device-cutiepi-tablet: use new var deviceinfo_generate_cmdline_txt
It lets us move the variables in cmdline.txt to
deviceinfo_kernel_cmdline. We can thereafter drop the cmdline.txt file
entirely.

By setting deviceinfo_generate_cmdline_txt we tell boot-deploy to
generate /boot/cmdline.txt from deviceinfo_kernel_cmdline. boot-deploy
can then also add information about partition UUIDs to the cmdline,
which helps postmarketos-initramfs find the correct partitions.

Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6630
2025-07-02 21:08:30 +02:00
Henrik Grimler 94fd3a01db device-samsung-dream: use ncm instead of rndis in initfs network script
PostmarketOS now uses ncm instead of rndis, so update script accordingly.

Unfortunately usb networking does not work even after this change when
I test on dream2lte, so this needs further debugging.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6706
[ci:skip-build]: already built successfully in CI
2025-06-27 09:08:39 -07:00
Henrik Grimler aa65318036 device-samsung-dream: set getty, and drop kernel_cmdline
The buildvariant=eng variable does absolutely nothing for us when
using postmarketos.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6706
2025-06-27 09:08:39 -07:00
Henrik Grimler 3c9279f86e device-samsung-dream: fix too large boot.img
The boot partition is only 40 mb, but the boot.img currently ends up
at ~44 mb. Fix by setting create_initfs_extra.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6706
2025-06-27 09:08:39 -07:00
Henrik Grimler a0d79b92e1 linux-samsung-dream: ignore bundled toolchain
To fix errors like:

../toolchain/gcc-cfp/gcc-cfp-jopp-only/aarch64-linux-android-4.9/bin/aarch64-linux-android-ld: line 1: syntax error: unexpected "("
make[3]: *** [../scripts/Makefile.build:345: kernel/bpf/built-in.o] Error 2
make[2]: *** [../scripts/Makefile.build:411: kernel/bpf] Error 2

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6706
2025-06-27 09:08:39 -07:00
Henrik Grimler ee1363afa8 linux-samsung-dream: add console=ttySAC0 to cmdline
So that kernel output is printed to the debug uart.

Unfortunately the debug uart is only available on some pads underneath
the silkmask on the board.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6706
2025-06-27 09:08:39 -07:00
Henrik Grimler c0e2a66141 linux-samsung-dream: add lxdialog patch
To fix pmbootstrap kconfig edit error.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6706
2025-06-27 09:08:39 -07:00
Henrik Grimler 32afb3851a linux-samsung-dream: cleanup patches
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6706
2025-06-27 09:08:38 -07:00
Henrik Grimler 18a9e1452e device-odroid-u2: add console=ttySAC1 to cmdline
This is needed if we want to get kernel log output over serial.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6616
[ci:skip-build]: already built successfully in CI
2025-06-12 16:38:05 -07:00
Henrik Grimler 9550de18ec device-*: drop deprecated deviceinfo_mesa_driver var
It was used by osk-sdl, which has now been dropped.  See
https://wiki.postmarketos.org/wiki/Deviceinfo_reference#Obsolete_options.

[ci:ignore-count]

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6635
[ci:skip-build]: already built successfully in CI
2025-06-11 22:55:02 +02:00
Henrik Grimler 9574c85979 device-lark-freeme-70-2s: add u-boot-tools to makedepends
To fix build error:

    /usr/bin/abuild: line 28: mkimage: not found

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6635
2025-06-11 22:55:02 +02:00
Henrik Grimler 4ab371c4af device-goclever-gcta741l: add u-boot-tools to makedepends
To fix build error:

    /usr/bin/abuild: line 28: mkimage: not found

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6635
2025-06-11 22:55:02 +02:00
Henrik Grimler c6f73181bd device-sourceparts-pocketpc: add u-boot-tools to makedepends
To fix build error:

    /usr/bin/abuild: line 28: mkimage: not found

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6635
2025-06-11 22:55:01 +02:00
Henrik Grimler d5ba79031a device-raspberry-pi5: disable dhcpd
Otherwise the ip address 172.42.16.1 is assigned to eth0, preventing
the rpi to get internet access automatically.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6504
[ci:skip-build]: already built successfully in CI
2025-05-14 17:34:06 +02:00
Henrik Grimler d460ed9b72 device-raspberry-pi5: use ttyAMA10 for second console
When I test the build the serial console is attached to ttyAMA10, not
ttyAMA0:

  107d001000.serial: ttyAMA10 at MMIO 0x107d001000 (irq = 16, base_baud = 0) is a PL011 rev3

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6504
2025-05-14 17:34:06 +02:00
Henrik Grimler ccaf9c9d20 device-raspberry-pi5: remove quiet from cmdline
This enable kernel logs over hdmi and serial, and hence simplifies
debugging.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6504
2025-05-14 17:34:06 +02:00
Henrik Grimler 95fe04886c device-samsung-m3: use msdos partition type
If a custom bl1 is used on sdcard, then it should be embedded at
0x200 (512). If a GPT filesystem is used, then the GPT header uses
roughly the first 0x500 bytes, and hence bl1 overwrites part of the
GPT header in that configuration.

Change to msdos partition type so that the filesystem works fine
whether or not we use stock bl1 or custom one.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6442
2025-04-23 10:45:25 +00:00
Henrik Grimler 5d9f009336 device-odroid-xu4: use msdos partition type
bl1 is embedded at 0x200 (512), but the GPT header uses roughly the first
0x500 bytes, and hence bl1 overwrites part of the GPT header.

Fix issue by changing to msdos partition type.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6442
2025-04-23 10:45:25 +00:00
Henrik Grimler b42d3861c6 device-odroid-u2: use msdos partition type
bl1 is embedded at 0x200 (512), but the GPT header uses roughly the first
0x500 bytes, and hence bl1 overwrites part of the GPT header.

Fix issue by changing to msdos partition type.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6442
2025-04-23 10:45:25 +00:00
Henrik Grimler 9ff36d0861 linux-postmarketos-exynos5: update to 6.6.87
This will be the last 6.6.x update, next update will be based on the
6.12 lts.

* Support for exynos5420-samsung-v1awifi is added thanks to
  @Eisenbahnfan

* Several: fixes for usb and charging for Exynos 5250
  devices (manta in particular) has been added thanks to @Alexmrqt

Tested on exynos5250-google-snow, exnyos5420-samsung-klimtlte and
exynos5422-odroid-xu4.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6432
[ci:skip-build]: already built successfully in CI
2025-04-20 15:23:15 +03:00
Henrik Grimler cca51af9ba systemd/postmarketos-base-systemd: put libkmod in initfs-extra (MR 6118)
It is needed by udev, which is in initfs-extra. If libkmod and its
dependencies are put in the first initfs then the boot.img size
increases by roughly 2 MB, which is a problem for devices with small
boot partitions.

Fixes: postmarketOS/pmaports#3510

[ci:skip-build]: already built successfully in CI (riscv64 failed
because of know qemu CI issue)
2025-01-31 05:41:47 -08:00
Henrik Grimler 8d01311416 linux-postmarketos-exynos5: update to 6.6.59 (MR 5775)
Two main changes apart from rebase and config sync:

- Fix broken usb networking by making CONFIG_USB_CDC_COMPOSITE
  builtin (by @eisenbahnfan)
- Add mainline support for exynos5420-n2awifi (by @eisenbahnfan)
[ci:skip-build]: already built successfully in CI
2024-11-11 18:07:23 -08:00
Henrik Grimler 606d69fc95 linux-postmarketos-exynos4: add zstd to makedepends (MR 5569)
Needed by new initramfs compression config settings.

Also remove busybox-static-armv7, we carry a busybox blob in the
kernel repo sources instead.
2024-09-09 22:28:05 +02:00
Henrik Grimler 82c50b2298 linux-postmarketos-exynos4: disable or convert options to modules (MR 5569)
To make boot.img smaller.  With changes in postmarketos/pmaports#5544
we get a boot.img larger than the boot partition (8 MB).  With these
changes we are down to around 7.8 MB, and hence have some margin
again.

Noteable config changes:

* Disable max14577/max77836 stuff, is not used by any Exynos 4 devices
* Disable tps65090 driver and a few SND_SOC options that are only used by Exynos 5 devices
2024-09-09 22:28:05 +02:00
Henrik Grimler 1a203da83c firmware-samsung-i9100: add bluetooth firmware (MR 5571) 2024-09-08 21:20:17 +02:00
Henrik Grimler 906c490fbe firmware-samsung-i9100: use a slightly newer bcmdhd_sta.bin (MR 5571)
The one we switch to has version 5.90.100.43, while original one has
version 5.90.100.41 (can be checked with: `strings bcmdhd_sta.bin |
tail -n1`). The p4wifi tablet is also using the same blob (but
downloaded from elsewhere).

I believe the blob originates from the msm version of galaxy s2, with
codename "skyrocket".  It seems to be the newest blob for brcm4330b1
available.  The linux-firmware repo only has a blob for brcm4330b2,
which does not work for i9100.

Unfortunately even with latest available firmware blob mainline linux
still prints errors like:

[  593.513854] ieee80211 phy1: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
[  593.513926] ieee80211 phy1: brcmf_cfg80211_dump_station: BRCMF_C_GET_ASSOCLIST failed, err=-110

a few times per minute.
2024-09-08 21:15:29 +02:00
Henrik Grimler bcadffd26f linux-postmarketos-exynos5: drop deprecated PMOS_NO_OUTPUT_REDIRECT (MR 5368)
From CMDLINE in config.

[ci:skip-build] already built successfully in CI
2024-07-23 16:59:23 -07:00
Henrik Grimler f0e473a5b8 linux-postmarketos-exynos5: update to 6.6.41 (MR 5368)
Tested on:
* odroid-xu4
* samsung-klimtlte
* samsung-manta

Only regression I spotted is that usb networking no longer works on
samsung-klimtlte and samsung-manta (but wifi works fine, so still
possible to login to the device).
2024-07-23 16:59:22 -07:00
Henrik Grimler 075d3065b2 device-samsung-v1awifi: depend on postmarketos-initramfs-minimal (MR 5365)
The boot partition on the device is 8.0 MB, while built boot.img is
8.8 MB.  Fix by decreasing initramfs size by depending on
postmarketos-initramfs-minimal.  Problems were likely introduced by
postmarketOS/pmaports!5000.

[ci:skip-build] already built successfully in CI
2024-07-23 16:19:07 -07:00
Henrik Grimler 74761bc637 device-samsung-n1awifi: depend on postmarketos-initramfs-minimal (MR 5365)
The boot partition on the device is 8.0 MB, while built boot.img
is 8.7 MB.  Fix by decreasing initramfs size by depending on
postmarketos-initramfs-minimal.  Problems were likely introduced by
postmarketOS/pmaports!5000.
2024-07-23 16:18:16 -07:00
Henrik Grimler 8cc6b717b3 device-samsung-zeroltexx: depend on postmarketos-initramfs-minimal (MR 5365)
Based on device PIT the boot partition is 28 MB, while built boot.img
is 31 MB.  Fix by decreasing initramfs size by depending on
postmarketos-initramfs-minimal.  Problems were likely introduced by
postmarketOS/pmaports!5000.
2024-07-23 16:18:15 -07:00
Henrik Grimler 90d2e0b068 device-samsung-zerofltexx: depend on postmarketos-initramfs-minimal (MR 5365)
Based on device PIT the boot partition is 28 MB, while built boot.img
is 31 MB.  Fix by decreasing initramfs size by depending on
postmarketos-initramfs-minimal.  Problems were likely introduced by
postmarketOS/pmaports!5000.
2024-07-23 16:18:15 -07:00
Henrik Grimler 98cdee89e7 device-samsung-klimtlte: depend on postmarketos-initramfs-minimal (MR 5365)
.. when using mainline kernel.  The boot partition on the device is
only 8 MB, while built boot.img is 11 MB.  Fix by decreasing initramfs
size by depending on postmarketos-initramfs-minimal.  Problems were
likely introduced by postmarketOS/pmaports!5000.
2024-07-23 16:18:15 -07:00
Henrik Grimler 01ea0922af device-samsung-chagallwifi: depend on postmarketos-initramfs-minimal (MR 5365)
.. when using mainline kernel.  The boot partition on the device is
only 8 MB, while built boot.img is 11 MB.  Fix by decreasing initramfs
size by depending on postmarketos-initramfs-minimal.  Problems were
likely introduced by postmarketOS/pmaports!5000.
2024-07-23 16:18:15 -07:00
Henrik Grimler f2d5368d72 device-samsung-hero2lte: depend on postmarketos-initramfs-minimal (MR 5365)
Based on device PIT the boot partition is 40 MB, while built boot.img
is 41 MB.  Fix by decreasing initramfs size by depending on
postmarketos-initramfs-minimal.  Problems were likely introduced by
postmarketOS/pmaports!5000.
2024-07-23 16:18:15 -07:00
Henrik Grimler b84e97849a device-samsung-herolte: depend on postmarketos-initramfs-minimal (MR 5365)
Based on device PIT the boot partition is 40 MB, while built boot.img
is 41 MB.  Fix by decreasing initramfs size by depending on
postmarketos-initramfs-minimal.  Problems were likely introduced by
postmarketOS/pmaports!5000.
2024-07-23 16:18:15 -07:00
Henrik Grimler 412ceacf31 device-samsung-jflte: depend on postmarketos-initramfs-minimal (MR 5365)
Based on device PIT the boot partition is 10 MB, while built boot.img
is 12 MB.  Fix by decreasing initramfs size by depending on
postmarketos-initramfs-minimal.  Problems were likely introduced by
postmarketOS/pmaports!5000.
2024-07-23 16:18:14 -07:00
Henrik Grimler 24344344a0 device-samsung-manta: set getty (MR 5362)
With getty set to ttySAC2 we can get a shell when connecting to UART
pads on main board.
2024-07-19 20:22:19 +02:00