Commit Graph
11 Commits
Author SHA1 Message Date
Sicelo A. Mhlongo fcbcb97a50 device-nokia-n900: Implement fixes for boot/init issues
1. Modernize the boot parameters uboot passes to the kernel
 2. Correct the volume keys. Upstream DTS actually sends F7 and F8 for these
       keys, which is the behavior from stock. Using hwdb to correct the keys
       allows us to drop the relevant DTS patch from linux-postmarketos-omap.
       Additionally add the hwdb database into initramfs to ensure the keys
       also work during system initialization
 3. Disable OMAP 3430 OFF mode early in the initramfs. This is currently
       broken and causes system instability. We previously used a DTS patch to
       do this, but using an initramfs hook allows us to reduce the amount of
       kernel patches we maintain

Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8472>
2026-05-02 16:09:42 +02:00
Sicelo A. Mhlongo 6589a57e26 device-nokia-n900: force SD card partition resizing (MR 6257)
Reverts 82a8d55197 (device-nokia-n900: drop partition resize cmdline option
(MR 6164)) since it seems resizing does not actually take place automatically,
at least as far as the N900 is concerned

[ci:skip-build]: already built successfully in CI
2025-02-27 12:06:55 -08:00
Sicelo A. Mhlongo 82a8d55197 device-nokia-n900: drop partition resize cmdline option (MR 6164)
Partition resizing is now done in initramfs at every boot.
2025-02-07 16:48:37 +03:00
Sicelo A. Mhlongo 6ac02b55e8 device-nokia-n900: fix boot by not activating uart (MR 5613)
dropping activation of uart (ttyS2) allows N900 to boot successfully with new
pmOS initramfs.

Closes: https://gitlab.com/postmarketOS/pmaports/-/issues/2922
2024-09-23 16:09:56 +02:00
Sicelo A. Mhlongo da712cf901 device-nokia-n900: update kernel cmdline (MR 5272)
* drop maxcpus=0, which was added with 73a033328e ("device-nokia-n900: set
    uniprocessor mode for kernel (MR 4299)") while troubleshooting. a better
    fix was eventually implemented with 3e737241ba ("linux-postmarketos-omap:
    N900: disable twl off idle features (MR 4317)")
* drop PMOS_NO_OUTPUT_REDIRECT, which was obsoleted by 7c98127746
    ("postmarketos-initramfs: switch to udev and kmod (MR 5000)")
2024-06-22 20:06:48 +02:00
Sicelo A. Mhlongo 73a033328e device-nokia-n900: set uniprocessor mode for kernel (MR 4299)
The OMAP 3430 in the Nokia N900 is a uniprocessor SoC, so disable SMP via
kernel command line. This appears to alleviate the ongoing kernel crashes
affecting the Nokia N900 in pmOS.

[ci:skip-build]: already built successfully in CI
2023-08-01 21:50:57 +02:00
Sicelo A. Mhlongo e3154dd055 nokia-n900: use updated serial console name (MR 3662)
Since 00648d0282dcca1da453c0b20d27e24bf901a854, the correct serial console name
is ttySx instead of the older ttyOx. Reflect this in cmdline passed to kernel
via u-boot

[ci:skip-build]: already built successfully in CI
2022-11-23 09:07:39 +01:00
Danct12 7ffeea5cb7 device-nokia-n900: fix u-boot script typo (MR 2708) 2021-11-26 20:08:50 +00:00
Dave Young b7cc62d0c4 n900 kernel cmdline: s/tty02/ttyO2 (MR 2531)
Signed-off-by: Dave Young <dyoung@redhat.com>
2021-09-19 17:30:25 +02:00
Oliver Smith a909e543f3 nokia-n900: add PMOS_FORCE_PARTITION_RESIZE (MR 2076)
Resize the partition when using a pre-built image. We didn't notice that
this was missing, because N900 images are new and we only tested from
pmbootstrap install --sdcard, which already uses the full SD card size.
2021-03-30 23:03:49 +02:00
Martijn Braam 057fa02f90 nokia-n900: move to community (MR 1177) 2020-06-11 14:41:26 +02:00