summaryrefslogtreecommitdiff
path: root/shared/utils
AgeCommit message (Collapse)Author
2023-09-01rb5: Set Ethernet MAC address on bootAmit Pundir
Just like DB845c devboards, RB5 do not have unique Ethernet MAC addresses. All the boards share the same MAC address and it cause problems while running CTS tests in the lab with multiple RB5 boards connected. So set the Ethernet MAC address based on board's unique serial number as we do for DB845c. Change-Id: I103e18c34a34c4d36d6cc71e7a7f964bcd0417b4 Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2023-08-17dlkm_loader: Add vendor_ramdisk modules.blocklistAmit Pundir
This is a list of kernel modules that are known to be broken on Dragonboards and should not be loaded automatically. Suggested-by: Ramji Jiyani <ramjiyani@google.com> Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: Ia179ce34e91bf994bb4c9b16ab76a9b8357d2e90
2023-08-01dragonboards: Enable system_dlkm partition supportHEADmasterAmit Pundir
Enabling system_dlkm partition support. We plan to use it to flash and use system_dlkm.img prebuilt from ci.android.com directly. For now this partition is just a stub or place holder while we segregate vendor kernel modules into vendor_ramdisk and vendor_dlkm groups. We are re-using dlkm_vendor service, hosted by Cuttelfish project, which will take care of modprobing kernel modules. Change-Id: I7291fcd430ec76e4f33c9d2d23c4ee8aef159c76 Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2023-07-19utils: eth_mac_addr: Refactor ethernet mac addr scriptAmit Pundir
Refactored the scripts which we use on DB845c to set Ethernet MAC address. Updated the .sh script to fall back to parsing bootconfig file to lookup androidboot.serialno bootarg, if it is not found in /proc/cmdline (boot image header v4 for example). Fixed a typo s/db45c/db845c in .rc script which was blocking this service to run. Renamed the script from eth_mac_addr to set_ethaddr to follow the nomenclature we have used everywhere else and moved them to common shared/utils/ directory. And updated the sepolicies accordingly. Change-Id: Ia25e464b7c13934ffd8ab66a6aa2d892d7cd5a7b Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2023-07-19utils: bdaddr: Fallback to bootconfig to read serialnoAmit Pundir
In boot image header v4 builds, androidboot.* bootargs are part of bootconfig (/proc/bootconfig). So fall back to parsing bootconfig file to lookup androidboot.serialno bootarg, if it is not found in /proc/cmdline. Change-Id: Ie28aed52c379bd02aa0d50d31bbbe0982ed9b5b4 Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2023-07-14utils: bdaddr: Add service to set Bluetooth device (MAC) addressStephan Gerhold
The Bluetooth chip does not come with a unique Bluetooth device (MAC) address configured out of the box. This means that we manually need to configure the device address. Otherwise BT will stop working from v6.5 kernel version onwards. Reference: https://bugs.linaro.org/show_bug.cgi?id=5998 Link: https://github.com/me176c-dev/android_device_asus_K013/commit/cbb7066 [AmitP: Kanged the service from above link, updated the commit message, built an rc and shell script around this service, and added SELinux policies.] Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I79a364917e0a4d879e4319b45b4c0f7cc7df83d3
2023-07-12Rename qcom folder to utilsAmit Pundir
We have used qcom/ folder to host various services, scripts and utilites, and naming the folder to qcom/, to begin with, was very shortsighted from my end. So we are renaming it to utils/ and moving it under a new shared/ folder which should hopefully be our go to destination for similar common tools/HALs going forward. Change-Id: I15fe45dbe5bc4752d6a2ee87a3fbed4924a66f08 Signed-off-by: Amit Pundir <amit.pundir@linaro.org>