GitHub/LineageOS/G12/android_device_radxa_radxa0.git
5 months agoradxa0: Add aml_install to RADIO_IMAGES
Nolen Johnson [Fri, 14 Jun 2024 05:42:39 +0000 (01:42 -0400)]
radxa0: Add aml_install to RADIO_IMAGES

* For infra.

Change-Id: I467a8004dc19b3e3599ddc0966cd3632b1e7761d
(cherry picked from commit 5bf8b541277d2b023119fb97c89bd549e1f3daa7)

5 months agoradxa0: Add AML install packages to target-files
Aaron Kling [Tue, 4 Jun 2024 02:32:56 +0000 (21:32 -0500)]
radxa0: Add AML install packages to target-files

To allow the official download portal to offer them

Change-Id: I729c5b95c10527ecdf25b70d9ead23c52ef373ab
(cherry picked from commit 7403b533bd3fd40925f491b5086ba5b6bdad837f)

6 months agoradxa0: wifi: Reflect FW and NVRAM path changes
Bruno Martins [Thu, 25 Apr 2024 15:22:32 +0000 (16:22 +0100)]
radxa0: wifi: Reflect FW and NVRAM path changes

BCMDHD driver has been updated in order to use Linux firmware
loading API. The paths are now relative to /vendor/firmware/.

Update STA path as well for HAL awareness.

Change-Id: Iffef47a0dccbdc48cdcec142ba59d282ca9dd760

8 months agoradxa0: Default to the latest Broadcom DHD driver version
Bruno Martins [Fri, 23 Feb 2024 12:57:10 +0000 (12:57 +0000)]
radxa0: Default to the latest Broadcom DHD driver version

The older versions of the driver no longer seem to be compatible with
newer versions of Android, causing the Wi-Fi service to crash when
disabling/enabling the radio, at least on Android 13 where the issue
was noticed. Use the new one as it works just fine in conjunction with
the latest firmware for AP6256, the chip used in Radxa Zero board.

Change-Id: If2bc24f5e5b8ffb0db0e71762b552ad68c2e05aa

8 months agoradxa0: Fix WiFi STA FW filename and remove path to AP FW
Bruno Martins [Thu, 22 Feb 2024 16:33:54 +0000 (16:33 +0000)]
radxa0: Fix WiFi STA FW filename and remove path to AP FW

Removing the path to AP FW results in not trigerring a reload when
enabling soft AP, which is actually desired in this case since the
firmware file is the same.

Change-Id: I3b833e2675ec87d63623f84becb362d606aafcef

8 months agoradxa0: init: Do not change permissions of WiFi FW reload sysfs paths
Bruno Martins [Thu, 22 Feb 2024 16:40:44 +0000 (16:40 +0000)]
radxa0: init: Do not change permissions of WiFi FW reload sysfs paths

This is a quite old leftover since the proper permissions are already
set in init.amlogic.wifi.rc script.

Change-Id: Ib4fca6008ac9ba70d105040bd29ecd762235d0ef

9 months agoradxa0: Refactor how we handle installation
Nolen Johnson [Thu, 25 Jan 2024 02:00:21 +0000 (21:00 -0500)]
radxa0: Refactor how we handle installation

Change-Id: I6ebc47378dee9cf602215bac20005a358b391123
(cherry picked from commit cef861a609f1869ad43d8be6c069ac5ede5ed826)

10 months agoradxa0: Disable the GMS SetupWraith pairing wizard
Nolen Johnson [Wed, 17 Jan 2024 04:07:36 +0000 (23:07 -0500)]
radxa0: Disable the GMS SetupWraith pairing wizard

* Users can still send the keye vnet for, or press the
  upgrade key (treated as pairing button) on the deivce
  to open BT pairing - resolves all the complaints about
  not being able to use USB keyboards, etc because SetupWraith
  prevents moving past the pairing wizard screen without
  successfully pairing a remote.

Change-Id: I23d5e455d52899aec069fa0897b684433566350c

12 months agoradxa0: Migrate deprecated BT profile configs into sysprops
Bruno Martins [Fri, 27 Oct 2023 12:14:29 +0000 (13:14 +0100)]
radxa0: Migrate deprecated BT profile configs into sysprops

Google moved all these into sysprops except for "profile_supported_hdp"
which is obsolete since Android 8.0.

This effectivelly disables Hands-Free Profile (HFP) Audio Gateway role,
Object Push Profile (OPP) and Phonebook Access Profile (PBAP) server
role.

Change-Id: I6f96862611b7f21b30157188e6373984561342aa

12 months agoradxa0: Properly overlay Bluetooth apex
Bruno Martins [Fri, 27 Oct 2023 12:11:54 +0000 (13:11 +0100)]
radxa0: Properly overlay Bluetooth apex

Change-Id: I87c4f1136fd68490bd55bda4033f36988cbd57f1

12 months agoradxa0: Replace BTM_DEF_LOCAL_NAME with a sysprop
Sal Savage [Fri, 15 Apr 2022 22:38:17 +0000 (15:38 -0700)]
radxa0: Replace BTM_DEF_LOCAL_NAME with a sysprop

Change-Id: I2c90efac01e61500eb1be23bb0ae6f96c2acdc53

12 months agoradxa0: bluetooth: Remove BTA_DM_COD
Bruno Martins [Thu, 26 Oct 2023 21:10:27 +0000 (22:10 +0100)]
radxa0: bluetooth: Remove BTA_DM_COD

BTA_DM_COD can no longer be defined. Instead, the class of the device
is now set via bluetooth.device.class_of_device sysprop, which Google
configures for ATV devices (in device/google/atv project) as follows:

 Class of Device
   Service Class: 0x2C -> 44 (Rendering, Capturing, Audio)
   Major Device Class: 0x04 -> 4 (Audio/Video)
   Minor Device Class: 0x20 -> 32 (Set-top box) // default value, should be set to 0x3C for a TV

Change-Id: Ie54d6528d4e8a31a1f7a4e06ab577488e337c184

12 months agoradxa0: bluetooth: Remove BLE_PRIVACY_SPT
Arne Coucheron [Sat, 14 Sep 2019 22:07:46 +0000 (00:07 +0200)]
radxa0: bluetooth: Remove BLE_PRIVACY_SPT

Change-Id: Ic9b3282cd43a07779c31c932877295d1716f697b

12 months agoradxa0: bluetooth: Remove KERNEL_MISSING_CLOCK_BOOTTIME_ALARM define
Arne Coucheron [Sun, 21 May 2017 04:09:26 +0000 (06:09 +0200)]
radxa0: bluetooth: Remove KERNEL_MISSING_CLOCK_BOOTTIME_ALARM define

We're using the new alarmtimer interface in the kernel now,
and thus have CLOCK_BOOTTIME_ALARM.

Change-Id: I147f6a08e31f5bbe8629f11cfa31e10e61d3685c

12 months agoradxa0: Move tablet builds support to the proper tree
Bruno Martins [Wed, 25 Oct 2023 13:57:24 +0000 (14:57 +0100)]
radxa0: Move tablet builds support to the proper tree

Otherwise EPPE is broken since it expects the following path:
device/*/$(LINEAGE_BUILD)/$(TARGET_PRODUCT).mk

Change-Id: Iadef814f0a3bf4f1948da73b8fe437b10ebba8ed

12 months agoradxa0: Move TARGET_HAS_TEE flag to the proper place
Bruno Martins [Wed, 25 Oct 2023 14:05:05 +0000 (15:05 +0100)]
radxa0: Move TARGET_HAS_TEE flag to the proper place

Change-Id: Idd4380e022aa6498a740fe8909a3ce02cc9e6a39

16 months agoradxa0: Allow radxa0_tab to build aml_*_image
Nolen Johnson [Sat, 15 Jul 2023 03:09:43 +0000 (23:09 -0400)]
radxa0: Allow radxa0_tab to build aml_*_image

Change-Id: I273e2b127b007bc809af833e027a518c3235f754

16 months agoradxa0: Allow tablet builds
Nolen Johnson [Sat, 8 Jul 2023 22:28:14 +0000 (18:28 -0400)]
radxa0: Allow tablet builds

Change-Id: Ib400d6c6d87e4d663335f2fb73b47297462561a6

16 months agoradxa0: Use full super image size
Nolen Johnson [Tue, 11 Jul 2023 20:57:03 +0000 (16:57 -0400)]
radxa0: Use full super image size

Change-Id: I78293436e7db69d356acbe7c14a22cb49e12b905

16 months agoradxa0: Create aml_install phony target
Nolen Johnson [Sun, 9 Jul 2023 19:34:00 +0000 (15:34 -0400)]
radxa0: Create aml_install phony target

It's just a super slim package, containing a bootloader that
forces booting into recovery mode and a super_empty image.

Quicker, more reliable flashing process, plus solves the issue of
entering recovery without buttons.

Change-Id: I04fb916098006f9ac82ddaf379fdc1b357eef7c0

16 months agoradxa0: Fix aml_upgrade
Bruno Martins [Thu, 6 Jul 2023 13:41:03 +0000 (14:41 +0100)]
radxa0: Fix aml_upgrade

There is a dependency on logo.img, so make sure to explicitely build it.

Change-Id: Ie918142bf4472ab4e43a43a9fb9aaa9bda7c8728

18 months agoradxa0: Align extractors with templates
Nolen Johnson [Wed, 17 May 2023 13:07:23 +0000 (09:07 -0400)]
radxa0: Align extractors with templates

* These now directly support VENDOR_COMMON!

Change-Id: I6c4e2226fea90be3dcc29dccbd7e23d24b2473f5

23 months agoradxa0: Declare our Wi-Fi chipset vendor
Nolen Johnson [Sat, 10 Dec 2022 03:32:40 +0000 (22:32 -0500)]
radxa0: Declare our Wi-Fi chipset vendor

* Now the node permissions are commonized, and guarded by these
  properties which are set by the multihal on stock, but here
  we'll just leave it to devices to declare their vendor as we
  use standalone vendor HALs.

Change-Id: If0720482862de75abbcbf09d3ad502728737867a

2 years agoradxa0: factory: Move u-boot somewhere accessible
Nolen Johnson [Fri, 17 Jun 2022 21:13:40 +0000 (17:13 -0400)]
radxa0: factory: Move u-boot somewhere accessible

Change-Id: Ifa1f6eb8f4830e7b23f98bedced4eedbf1c8a435

2 years agoradxa0: Inherit common tree after device vars are set
Nolen Johnson [Thu, 9 Jun 2022 02:41:02 +0000 (22:41 -0400)]
radxa0: Inherit common tree after device vars are set

* Allows several variables to be read in common tree.

Change-Id: Ic8f3a4d210568254d814b013b67d8f06efff5e63

2 years agoradxa0: Unset DEVICE_PATH in the product makefile
Bruno Martins [Thu, 9 Jun 2022 14:08:33 +0000 (15:08 +0100)]
radxa0: Unset DEVICE_PATH in the product makefile

There's no need for this, make use of LOCAL_PATH instead.

Change-Id: I94642c86049d85d1b4f372309bc5899f9876ffe3

2 years agoradxa0: Set ro.soc.model
Nolen Johnson [Tue, 19 Apr 2022 17:24:00 +0000 (13:24 -0400)]
radxa0: Set ro.soc.model

* Differs from deadpool.

Change-Id: I7a9f45d5bf0740e86688ebf6e05670d2e1bad9d5

2 years agoradxa0: Decommonize vendor.media.support.dolbyvision
Nolen Johnson [Tue, 19 Apr 2022 17:16:42 +0000 (13:16 -0400)]
radxa0: Decommonize vendor.media.support.dolbyvision

Change-Id: I884adf58c0dbffdcd0bc51b53d26bbce242b6dfb

2 years agoradxa0: Decommonize ro.vendor.platform.support.dolbyvision
Nolen Johnson [Tue, 19 Apr 2022 17:08:56 +0000 (13:08 -0400)]
radxa0: Decommonize ro.vendor.platform.support.dolbyvision

Change-Id: Ie7f134d2b40e8ab38a2b217230f5dc6769a22637

2 years agoradxa0: set fingerprint to a whitelisted one
Jan Altensen [Mon, 12 Jul 2021 19:45:04 +0000 (21:45 +0200)]
radxa0: set fingerprint to a whitelisted one

 * ATV SUW whitelists fingerprints/descriptions.

Change-Id: Ied0cf87769be2a92f356bf24aecea422d62ff9f8

3 years agoradxa0: Use correct DHD version
Jan Altensen [Tue, 14 Sep 2021 12:33:00 +0000 (14:33 +0200)]
radxa0: Use correct DHD version

Change-Id: I422621cdeb58aa53c7fd4775ebf36d70163674cb

3 years agoradxa0: include broadcom firmware makefile
Jan Altensen [Thu, 16 Sep 2021 08:30:07 +0000 (10:30 +0200)]
radxa0: include broadcom firmware makefile

Change-Id: I491f42dd0464aaa7aa92b77fdd2375c0666a4c5b

3 years agoradxa0: fix factory image creation
Jan Altensen [Thu, 16 Sep 2021 19:56:35 +0000 (21:56 +0200)]
radxa0: fix factory image creation

 * if the source and $OUT are on different drives hardlinking fails, copy instead
 * fix bootloader path while at it

Change-Id: I425a7c4bb0fe7e2408abcda8d0993320416c015f

3 years agoradxa0: factory: also search in vendor/firmware for the bootloader
Jan Altensen [Sun, 1 Aug 2021 22:03:28 +0000 (00:03 +0200)]
radxa0: factory: also search in vendor/firmware for the bootloader

Change-Id: I99ae1d625565e66ccdcaeeaf58fff74e0963086c

3 years agoradxa0: factory: do not verify partitions
Jan Altensen [Tue, 6 Jul 2021 20:31:19 +0000 (22:31 +0200)]
radxa0: factory: do not verify partitions

 * since we can only generate V1 upgrade packages we can not do partition verification as the usb burning tool requires sha1sums which are only included in the V2 upgrade packages

Change-Id: Icfa928622003d4a9787d27adcff2ef68cf32ab55

3 years agoradxa0: add aml_upgrade build target
Jan Altensen [Sat, 3 Jul 2021 00:50:53 +0000 (02:50 +0200)]
radxa0: add aml_upgrade build target

 * will be neded for initial flashing

Change-Id: Ife02f48a7b07421079470e06c05d459556b68930

3 years agoradxa0: specify that we have no TEE
Jan Altensen [Fri, 2 Jul 2021 08:13:38 +0000 (10:13 +0200)]
radxa0: specify that we have no TEE

Change-Id: I56420abca95e4c6df1bbab69febaf0cefcde1a79

3 years agoradxa0: Decommonize init.amlogic.wifi_buildin.rc
Nolen Johnson [Thu, 1 Jul 2021 21:11:57 +0000 (17:11 -0400)]
radxa0: Decommonize init.amlogic.wifi_buildin.rc

* Only deadpool/wade/sabrina have Broadcom Wi-Fi/Bluetooth,
  dopinder/beast have Realtek, and will need different modules
  and node permissions changed.

Change-Id: I204e5c22a1dc306c9c932a3634f5e6534a438ee5

3 years agoradxa0: Configure Broadcom Bluetooth/Wi-Fi HALs
Nolen Johnson [Fri, 25 Jun 2021 05:05:35 +0000 (01:05 -0400)]
radxa0: Configure Broadcom Bluetooth/Wi-Fi HALs

* We're not unifying things, and the stock MultiHAL requires
  framework side magic, so we're going with the hardware/broadcom
  solution.

* Set Bluetooth overlays based on stock.

* bdroid_buildcfg header and vnd_$device.txt configuration are
  loosely taken from OEM uploads of Amlogic BCM Wi-Fi/BT device
  sources.

Change-Id: Ie8e0f2d2a5f1cb8337ebe88b903fb18a71602f18

3 years agoradxa0: Build Broadcom DHD module inline
Aaron Kling [Fri, 25 Jun 2021 05:04:25 +0000 (01:04 -0400)]
radxa0: Build Broadcom DHD module inline

Change-Id: I042931d6361420868f53f682c70fee8c5a2b589d

3 years agoradxa0: Build device specific DTB
Stricted [Fri, 25 Jun 2021 05:24:03 +0000 (01:24 -0400)]
radxa0: Build device specific DTB

Change-Id: I882a5f2481802cabe28204ee9c65905d1a80f984

3 years agoradxa0: Initial Commit
Nolen Johnson [Thu, 17 Jun 2021 04:43:04 +0000 (00:43 -0400)]
radxa0: Initial Commit

Change-Id: I5bbc92935d81897929edf3daefb27a9e09691f60