1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 11:03:37 +03:00
Commit Graph

1729 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
365a93eedb
Merge pull request #369 from samueldr-wip/device/motorola-rav/init
motorola-rav: init
2021-06-30 15:52:00 -04:00
Samuel Dionne-Riel
eb3d03c029
Merge pull request #370 from nh2/nh2-fix-typos-1
Fix some typos, explain device identifier
2021-06-29 22:04:00 -04:00
Niklas Hambüchen
be4ca4e379 doc: Mention where to get device identifier from 2021-06-30 03:55:11 +02:00
Niklas Hambüchen
fea0158fc2 doc: Fix typo 2021-06-30 03:49:36 +02:00
Niklas Hambüchen
993f7e9c01 device-notes: Fix missing spaces in front of -A 2021-06-30 03:46:47 +02:00
Samuel Dionne-Riel
38c00fffa9 motorola-rav: Build dtbo.img 2021-06-29 21:37:45 -04:00
Samuel Dionne-Riel
5a6c138cdb motorola-rav: Enable the LED at boot 2021-06-29 21:37:45 -04:00
Samuel Dionne-Riel
b2c296fca7 motorola-rav: Enable simplefb
Note that DRM subsystem needs to be enabled for the kernel to build, and
that once DRM starts, it will trample on the framebuffer setup :(
2021-06-29 21:37:45 -04:00
Samuel Dionne-Riel
dbf18632d0 motorola-rav: Work around touchscreen driver issues 2021-06-29 21:37:45 -04:00
Samuel Dionne-Riel
4f5bd0d93b motorola-rav: Use community-managed kernel 2021-06-29 21:37:45 -04:00
Samuel Dionne-Riel
ad289d3d5f motorola-rav: Configure firmware
Using the partition will not work as they are found in the super
partition of the dynamic partitions scheme.
2021-06-29 21:37:45 -04:00
Samuel Dionne-Riel
e42e5d238a motorola-rav: Use the family name for android flashable zips 2021-06-29 21:37:45 -04:00
Samuel Dionne-Riel
971e463b10 motorola-rav: Init firmware package
Required at the very least for the touchscreen firmware.
2021-06-29 21:37:45 -04:00
Samuel Dionne-Riel
80dc6ec75d motorola-rav: Configure kernel 2021-06-29 21:37:45 -04:00
Samuel Dionne-Riel
814bfa04c8 motorola-rav: Normalize kernel config 2021-06-29 21:37:45 -04:00
Samuel Dionne-Riel
65bd0ca810 motorola-rav: kernel config from OEM image 2021-06-29 21:37:45 -04:00
Samuel Dionne-Riel
81bc94ad64 motorola-rav: Init kernel 2021-06-29 21:37:45 -04:00
Samuel Dionne-Riel
bd62dc9419 motorola-rav: Init 2021-06-29 21:37:45 -04:00
Samuel Dionne-Riel
a9b90deb9a hardware-qualcomm: Add SM6125 2021-06-29 21:37:04 -04:00
Samuel Dionne-Riel
d216467370 kernel-builder: Add kernel-builder-clang_8 2021-06-29 21:37:04 -04:00
Samuel Dionne-Riel
8b70a5d687 kernel-builder: Allow building dtbo.img 2021-06-29 21:37:04 -04:00
Samuel Dionne-Riel
c2bd534d0e ufdt-apply-overlay: Provide mkdtboimg.py 2021-06-29 21:37:04 -04:00
Samuel Dionne-Riel
5bd3045e96 android-partition-tools: Init at 2021-03-19 2021-06-29 21:37:04 -04:00
Samuel Dionne-Riel
64cbc057f8
Merge pull request #367 from samueldr-wip/fix/google-marfish-kernel-params
Fix boot problem with google-marlin/sailfish
2021-06-28 22:12:08 -04:00
Samuel Dionne-Riel
2f659179f7 google-marlin: Somewhat document console for UART 2021-06-28 21:31:34 -04:00
Samuel Dionne-Riel
7cceb4f7c5 google-marlin: Remove unneeded kernel params
All of them.
2021-06-28 21:31:20 -04:00
Samuel Dionne-Riel
9139a1c9a1
Merge pull request #359 from telent/beatrix
motorola-potter: init
2021-06-28 19:16:29 -04:00
Daniel Barlow
de357dd433
mobile.hardware.ram documents the smallest available RAM size
Co-authored-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
2021-06-27 23:52:10 +01:00
Daniel Barlow
3b8c4b571a fix the hwrev table 2021-06-27 23:49:36 +01:00
Daniel Barlow
bb4f1b0ee6 Fix formatting in text files
Co-authored-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
2021-06-27 23:24:52 +01:00
Daniel Barlow
7609e0a90e delete unused patches originally from addison 2021-06-27 23:24:52 +01:00
Daniel Barlow
632fa13be0 fix touchscreen without need of quirk
mdss_fb_release_all runs when the display blanks between the splash
screen and launching the main menu (in "hello" example). If ref_cnt is
zero, it calls fb_notifier_call_chain with the payload of
FB_BLANK_POWERDOWN. The synaptics_dsx_i2c touchscreen driver is
subscribed to this notifier, and disables touch.

This is all fine except that the corresponding opposite operation - to
notify the subscribers with FB_BLANK_UNBLANK when the display
is *opened* - is not done anywhere. Add a call to mdss_fb_open
to do this whenever it's calling mdss_fb_blank_sub

For context, this behaviour was introduced in

   commit a12be25aec3fd648f2a9c4c27e88d470bed41f67
   Author: parasur <parasur@motorola.com>
   Date:   Mon Nov 7 09:45:54 2016 +0800
   a12be25aec (diff-eab94fa9ea3e15183d23b93fbaf4e08bc137ae4ebbdc589fc106355b753d1b6a)

but probably (speculating) goes unnoticed in Androd because the
framebuffer is never closed in Android unless something crashes, at
which point most people probably reboot anyway
2021-06-27 23:24:52 +01:00
Daniel Barlow
7d89bcac4d delete unneeded kernel command line parameters
... this turns out to be all of them. Tested with

  fastboot boot boot.img  --cmdline "nixos.foo=true"

and then once booted, verify that most or all of the options in
device boot.kernelParams are not present

ched_enable_hmp=1
sched_enable_power_aware=1
nixos.foo=true
androidboot.emmc=true
androidboot.serialno=[redacted]
androidboot.baseband=msm
androidboot.mode=normal
androidboot.device=potter
androidboot.hwrev=0x83B0
androidboot.radio=EMEA
androidboot.powerup_reason=0x00004000
androidboot.bootreason=reboot
msm_poweroff.download_mode=0
androidboot.fsg-id=
androidboot.wifimacaddr=[redacted]
androidboot.btmacaddr=[redacted]
mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_mot_boe_520_1080p_vid_v0
androidboot.bootloader=0xC092
androidboot.carrier=retgb
androidboot.poweroff_alarm=0
androidboot.hardware.sku=XT1685
androidboot.secure_hardware=1
androidboot.bl_state=2
androidboot.cid=0x32
androidboot.uid=[redacted]
androidboot.write_protect=0
androidboot.ssm_data=[redacted]
androidboot.dualsim=true
2021-06-27 23:24:52 +01:00
Daniel Barlow
f08d6ab437 fix tyop
Co-authored-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
2021-06-27 23:24:52 +01:00
Daniel Barlow
e44b0097d0 fix panel off-by-5000 bug
CONFIG_SCREEN_OFF_GESTURES adds 5000 to the reported X co-ordinate
when it believes the screen is suspended, but it always believes the
screen is suspended even when it isn't. Hypothesis is that (1)
the pm_ops are not supplied in the i2c_driver code, so the
`suspended=false` line in synaptics_rmi4_resume is not called by
that path; (2) something odd is happening in synaptics_dsx_panel_cb
- which is passed to fb_register_client - such that the equivalent
message from the framebuffer is not being recognised as a reason to
call synaptics_rmi4_resume then either. </Handwaving>
2021-06-27 23:24:52 +01:00
Daniel Barlow
62e446c840 upgrade kernel to lineage-16.0 branch 2021-06-27 23:24:52 +01:00
Daniel Barlow
163c436f1d activate the touchscreen at boot
This is needed for potter: I found the fix in
https://wiki.postmarketos.org/wiki/Troubleshooting#Touch_screen_device_present_but_not_outputting_any_touch_events

which suggests that other motorola devices have the same issue, so I
implemented it as a quirk. I don't yet have any insight on how to find
the correct device path portably
2021-06-27 23:24:52 +01:00
Daniel Barlow
fd3de14746 potter kernel: remove CONFIG_AUDIT
we've already disabled SELinux, not sure if it has any other uses,
and it saved 32k
2021-06-27 23:24:52 +01:00
Daniel Barlow
7aecb4656b use systemdMinimal for udev in initrd
saves 649216 bytes on Potter
2021-06-27 23:24:52 +01:00
Daniel Barlow
b4f27af9ce potter: coalesce seven DTBs into three for space saving
Moto Potter boot partition is only 16MB, which is tight. In the vendor
kernel it has seven hwrev variants with a dts file for each - but four
of them are identical to three of the others. We can make a
significant saving on image size by shipping one of each of the
differing dts files and adding the board-id values of the other
identical hwrevs to each.
2021-06-27 23:24:52 +01:00
Daniel Barlow
8bb3ff7610 add a real partition table to replace the addison one 2021-06-27 23:24:52 +01:00
Daniel Barlow
20c45b6ffa review readme and comments 2021-06-27 23:24:47 +01:00
Daniel Barlow
d5f79c4746 delete untested 32 bit stuff 2021-06-27 23:24:15 +01:00
Daniel Barlow
00040f9e11 add modem firmware (same process as addison)
I haven't tested this extensively, but it causes wlan0 to exist, so
we're on the right track at least
2021-06-27 23:24:06 +01:00
Samuel Dionne-Riel
85557dca93
Merge pull request #365 from samueldr-wip/fix/demo
examples/demo: Misc fixes
2021-06-19 13:57:46 -04:00
Samuel Dionne-Riel
f4441658ee
Merge pull request #311 from samueldr-wip/wip/amazon-austin
amazon-austin: Init
2021-06-19 01:46:28 -04:00
Samuel Dionne-Riel
69c59d5568 examples/demo: Fix build 2021-06-19 01:43:15 -04:00
Samuel Dionne-Riel
3b19b45566 examples/demo: Use v4l workaround 2021-06-19 01:43:15 -04:00
Samuel Dionne-Riel
03c7282a85 amazon-austin: Use flashable zip to install 2021-06-19 01:33:14 -04:00
Samuel Dionne-Riel
f5e3c6789b amazon-austin: Use vendor kernel
Though the vendor kernel is "self-hosted" by Mobile NixOS for
convenience.
2021-06-18 23:57:35 -04:00