Commit Graph
110 Commits
Author SHA1 Message Date
tmakin f1ddf3d100 jc_setup: update bash path
Change-Id: I05b3b4e57969f3343f56493227f73f8dd4ff96f9
2025-04-21 22:55:10 +00:00
tmakin 43d30991c7 nx: allow bootloader-passed oc
- Update uscript to check oc, max cpu and gpu freqs
- Update init to poke node to allow max scaling

Perf mode on perfmgr already allows full kernel scaling, so this
will just allow that to rise to max.

A better impl later may involve editing the json to have higher
game profiles etc, but for now this is more than fine.

Change-Id: I669fa523944dc0a99c2c9d6a6360593ee0a4bd8c
2025-04-01 20:52:22 +00:00
Nolen Johnson b953d8c717 nx: chown DC node for devicesettings
* Broke turn screen off while docked toggle.

Change-Id: Ide62a1d0ca00d8f10bdfaeec181008f5fd755837
2025-02-19 23:29:27 -05:00
tmakin 6fe016e60e nx: migrate to perfmgr OSS power HAL
- Exercise greater control over hinting, power profiles, specific
  behavior, etc.
- Better support in the future vs maintaining phs
- Totally nuke nvcpl to remove variables in display handling and
  power profiles

Change-Id: If9076248fcacfdc8165bd814ad78786134997b97
2025-02-14 12:52:37 -05:00
tmakin 43ac071958 nx: migrate most prebuilts to blueprint
Change-Id: Iaa62c84a09613f986e48b51a748f4b498ab905c8
2024-10-31 15:34:54 -04:00
tmakin f70094e0ce nx: rename frig to fric
`fric` is the actual NVIDIA board name. Use for semantics and compat with L4T.

Change-Id: I1995f24e7a289e3a39ecd3385d1f5546df781b6a
2024-10-31 15:34:42 -04:00
Nolen Johnson 535f79a227 nx: Properly set permissions on OLED backlight
Change-Id: I7819cf88d828bc178999954630a710d3cbe33925
2024-07-13 12:36:26 -04:00
Nolen Johnson d535e8dde5 nx: initfiles: lmk_loader_target: Change cfg module name
* For newer base.

Change-Id: I68c70b5125c54320e3db579c5353f8fd2154f49a
2024-07-12 20:24:55 -04:00
Nolen Johnson bac88dd586 nx: Nuke wifi_reset from orbit
* New cypress-fmac works with sleep!

Change-Id: I62655f9b4f6ac2b1f5240f28305eb0578f934bfd
2024-07-12 16:10:32 +00:00
Nolen Johnson f26b25bbd6 Revert "nx: initfiles: wifi_reset: Sleep 2s"
This reverts commit 5fc8371426.

Reason for revert: SELinux was the true issue,

Change-Id: I46c46f24d42baefee500df2885b052b95a8cff17
2024-06-02 16:41:01 +00:00
Nolen Johnson 5fc8371426 nx: initfiles: wifi_reset: Sleep 2s
* To avoid a race.

Change-Id: I1bc3ed46e404ba93a639f1d0cf18869cbd69ee37
2024-06-02 06:32:30 +00:00
tmakin cb90242a59 nx: power: Rework again
Looks like cpl doesn't parse more than 3 properly.

Change-Id: Ic67132c4df86f986e2777a2d9580f6b9f96b89a2
2024-05-28 19:55:24 +00:00
Nolen Johnson 4114a4720b nx: jc_setup: Rework factory partition mounting/unmounting
* Makes sepolicy far easier.
* Use `exec_start` instead of `start` to ensure jc_setup exits before
  `umount` is run.

Change-Id: I64d4f4eac991310db5ba9444044566b04bfbbedb
2024-05-28 04:51:41 +00:00
tmakin 70f2992638 nx: fstab: Set zram to 50%
Change-Id: Ibfb2083f5676624158249363174e2e39e15f6c53
2024-04-17 23:10:55 +00:00
Aaron Kling ac2a2389aa initfiles: Remove some unsued properties
Most are denied by upstream policy, so just remove them to silence
errors.

Change-Id: I81f83a460705aac45cfdd9583e1457834df98463
2024-03-01 04:42:48 +00:00
tmakin 14af49d754 nx: Pretend to be launched to dynamic partitions
* We are aren't launched with Android at all to, but
  our partitions were origianlly set up to match
  foster, as it is our closest hardware counterpart.

* Those partition sizes are now to small to fit
  almost any form of GMS.

* The fact that users have to exploit their console,
  run a custom first stage bootloader (Hekate), and
  applications bootloader (u-boot) that we control
  means that instead of retrofitting dynamic partitions
  we can just _launch with them_ (as we have yet to ship
  this device).

* Treat this device as if it has always had dynamic
  partitions and let Hekate set us up to reflect that.

* Do away with SAR in the process, as Hekate can turn
  that off.

* Nuke MDA, we don't support hardware backed encryption
  anyway, so it doesn't make any sense to house.

Reference: https://github.com/CTCaer/hekate/pull/922
Change-Id: I1e5d8c309d08559873ea3c93ac5b4b6e197b528e
2024-02-05 00:57:38 +00:00
Aaron Kling 794230d2cd Move pci-tegra kmod load to lkm target script
cypress-fmac depends on this

Change-Id: I741796e6e657fb1f8fb753a8ea98b8c3b2143143
2024-01-29 13:43:29 -05:00
Aaron Kling e9fcb8d869 Disable FDE
Android T removed support for fde

Change-Id: If92ba08aa411d4f490db6ca7bfe4184b784c91de
2024-01-29 13:43:29 -05:00
Nolen Johnson ae5fe736a2 nx: initfiles: Fix jc_setup delaration
Change-Id: I134d215f8958ecb9cd3f6b78456a5d34d4ab689c
2024-01-29 13:42:44 -05:00
Aaron Kling 607c394c66 Remove twrp build support
Change-Id: Ifeb70c254ac21aa60311fec50d0194bdcef80e57
2024-01-29 11:58:41 -05:00
Aaron Kling 76d396dda5 lkm: Use insmod for cypress_fmac
Since this is built out of tree, it is not included in modules.dep,
thus modprobe does not work properly.

Change-Id: I3071e641040d777f82f6f42f136540e0498b33a1
2024-01-29 11:58:41 -05:00
Aaron Kling fa691ac954 Remove pbc references
This fails to initialize even on stock rel-shield-r

Change-Id: I153062cbbb5284b10f9165c1343b9788e3831bbc
2024-01-29 11:58:41 -05:00
Aaron Kling ba8c478824 Switch to modules.load for lkm
Change-Id: I1a44f93747c37db7faea2a54cce90bfdbdb7ae1c
2024-01-29 11:58:41 -05:00
tmakin 9979bdb8df nx: power: rework power profiles
Change-Id: I33495393f8503ed69caf1ab7769f8b80b1112c82
2024-01-25 15:54:02 -05:00
tmakin 2ef2da1d0f nx: use intel iio/sysfs sensor hal
Set up in polling mode--trigger and event mode will need testing. Will
also require testing for generalized calib profile for max range.

Change-Id: I8e58cac0288ba8b53f3451c239c15c0a906db8d4
2024-01-25 15:54:02 -05:00
Nolen Johnson dbc20dcbae nx: Label /mnt/vendor/factory
* On odin boards, factory is used for mounting the hos-data
  partition on the SD card which is FAT32.
* Just label in fstab instead.

Change-Id: I3477813906c5ce37df87bf9b170cc21d0fe1300b
2024-01-25 15:54:02 -05:00
tmakin 7d8d7f10f8 nx: cec: switch checked prop to cec_disable
This works together with a change to U-Boot to allow kernel and
userspace HDMI-CEC functionality to be disabled manually (or
automatically on vali). Now users who do not care about CEC do not
have to suffer from the CEC volume UI platform bug.

Change-Id: I34a89c78052193c38dc8217841a816615f135fb2
2024-01-25 15:54:02 -05:00
tmakin 4c4e9d36da nx: Override and hide cec on vali
* Again, we do not plan to support vali display hacks for the
  time being. If so, we will add env and do it that way.

* filter-out CEC for vali because common trees assume that unified
  devices will all support CEC or none.

Change-Id: I1df0d895de870a3ebd76825fe278997e83435922
2024-01-25 15:54:02 -05:00
Billy Laws ef6a02e5f6 nx: Add Wi-Fi reset script
Change-Id: Ica5129d824253b5a2576b68f290555d90dd31116
2024-01-25 15:54:02 -05:00
Billy Laws 37a52bc997 nx: joycons: Add serdev joycon driver modules
Change-Id: I25659a940d3367162a089749b966d991d8855509
2024-01-25 15:54:02 -05:00
tmakin 18f3ced0a6 nx: joycons: Add auto-pairing scripts
Change-Id: I24d093638eb6b8ff1d4ad218f7cc2f303711766a
2024-01-25 15:54:02 -05:00
tmakin 0bcbb773ae nx: devicesettings: Add OLED panel preference
* Adds selection for Samsung OLED panel modes.

Change-Id: Ifd90e764deb8b481b81c04911e8680a4bb577ac6
2024-01-25 15:54:02 -05:00
tmakin 1148c4d66d nx: initfiles: Deduplicate overridden/nonexistant entries
Change-Id: Ic670d7fe13deafee03d3d48185ce61b9bc745451
2024-01-25 15:54:02 -05:00
Billy Laws 222288f085 nx: Add upstream brcmfmac support
Change-Id: I75d23cac951610f23c3a6f8f7a9e0dea573de243
2024-01-25 15:54:02 -05:00
c9d5a295bd nx: lkm_loader: Remove irrelevant modules/guards
* We don't care about other nv devices.

Co-authored-by: Nolen Johnson <johnsonnolen@gmail.com>
Co-authored-by: Thomas Makin <halorocker89@gmail.com>
Co-authored-by: Billy Laws <blaws05@gmail.com>
Change-Id: Ib2f7711c87df2b25d8497eebdb9e71975566a3ab
2024-01-25 15:54:02 -05:00
tmakin 5147f676ae nx: Set secureos prop to default to sw gatekeeper
* We have no TLK to interact with here.

Change-Id: Icae71062246b448f483f63368aa6b2adf4760a42
2024-01-25 15:54:02 -05:00
Nolen Johnson c043f8fde0 nx: Inherit loki_foster_e_common instead of loki_e_common
* We don't need `update_js_touch_fw.sh` which is the only
  thing housed in `init.loki_e_common.rc`.

Change-Id: I0025fc0fd7297af276964a73e54195cd30513be6
2024-01-25 14:56:46 -05:00
Nolen Johnson d77796eebe nx: Remove support for EKS2
* Useless on devies without L1 keys, which `nx` devices
  clearly don't have.

Change-Id: I8e2cd27fbfe278bcc70eb35bff2d0a594b1c63f3
2024-01-25 14:56:46 -05:00
c03875880c nx: Intial rebrand from foster
* This is a tree for all Nintendo Switch variants:
  `odin`, `modin`, `vali`, and `frig`.
* `ro.hardware` will be NX on all variants with
   `ro.hardware.sku` being set per variant by u-boot.

Changes are as follows:
* At the moment the packaged DTB is only for `odin`, more to follow.
 * Note: We may make `modin`, `vail`, and `frig` device-tree-overlays
   on the `odin` base DTB to simplify things.
* Use darcy's thermal config as it's the most lenient, and is a same SoC STB.
* Unlike `icosa_sr` previously did, we will use the BCM HAL for BT over
  BTLinux, as A2DP is tested and verified, no need to deviate.

Changes that will require follow-up commits to build out:
* Update init to reflect nx's needs - will need more work to support devices
  other than `odin`.

Removals are as follows:
* Remove all non-nx device support files.

Co-authored-by: Thomas Makin <halorocker89@gmail.com>
Co-authored-by: Billy Laws <blaws05@gmail.com>
Co-authored-by: Aaron Kling <webgeek1234@gmail.com>
Co-authored-by: CTCaer <ctcaer@gmail.com>
Co-authored-by: John Smith <nemui3353@gmail.com>
Co-authored-by: langerhans <langerhans@users.noreply.github.com>
Co-authored-by: Nolen Johnson <johnsonnolen@gmail.com>
Change-Id: I9bab4d94c6e94a9c6e2a7cf04d16c4b76c0b6ac5
2024-01-25 14:56:45 -05:00
Aaron Kling 10358f96ec Remove gatekeeper declaration from no tos variants
The devkits have no usable tos and loki_e has an inaccessible tos on
newer android versions.

Change-Id: I9616fab31b844b11e46900c9246dba984714f1d2
2023-03-27 20:08:51 -05:00
Aaron Kling 2de1ada59e Rebrand icosa to nx
Change-Id: Ic97a429c449dd6f7c7d0d5999ebc9b9640d2e8f0
2023-03-09 21:38:47 -06:00
Aaron Kling 1e0fc826e9 Revert "Enable reboot2payload for icosa"
This reverts commit ca71fa80a1.

Newer r2p no longer requires manually loading binaries

Change-Id: Id5ad50b414773bc9a179519def033549fe46ad57
2023-03-09 21:38:47 -06:00
Aaron Kling 0011a5b622 icosa: Use sf rotation
Change-Id: I9613f46ad427a66af3782daaf413257e789ff4e0
2023-03-09 21:38:47 -06:00
Aaron Kling 70c4973514 Move dragon recovery partition symlinks to init scripts
Change-Id: I98e3a5bc51a6015784e20196569063b3befe9dd7
2022-10-20 01:20:58 -05:00
Aaron Kling 06f6a95711 Correct dragon vendor partition name
Change-Id: I4ae2a8570f5a57ad8f2c53ac34108ef4df6b7602
2022-10-19 23:09:10 -05:00
Aaron Kling bcbec1a902 Load foster lightbar module earlier
The light hal is currently not picking up the lightbar since the
module finishes loading after the hal starts.

Change-Id: I7fd77d1e93a1966d98879aa98ca565247d7479c0
2022-10-18 21:15:54 -05:00
Aaron Kling 71627a2f0e Add vendor to dragon fstab
OTA generation requires a vendor entry in the recovery fstab

Change-Id: I970649a8b68464e298e6babd4f78aaa14f3c75fe
2022-10-17 17:01:01 -05:00
Aaron Kling 55c95da42e Support unified audio machine driver
Change-Id: I57589fd9d47379f02db8ae8eca82a5459c4e5a67
2022-04-26 03:13:05 -05:00
Aaron Kling 2fd83c2309 loki: Fix fct mount in recovery
Change-Id: I7e88f0e67dc6ee7e20afa5e95c6ea843987529ad
2022-04-19 19:14:24 -05:00
Aaron Kling a77bfea14e Refactor recovery usb init
USB configfs is now set at build time by tegra-common
Recovery usb init was simplified

Change-Id: Ie424b5d9359b43fd4f64894720d01026a361f8c5
2022-04-19 19:14:23 -05:00