summaryrefslogtreecommitdiff
path: root/db845c
AgeCommit message (Collapse)Author
2022-03-21db845c: rb5: Enable console access on android13-5.15 kernel versionAmit Pundir
android13-5.15 commit 98f1e6b5a0db ("ANDROID: gki_defconfig: Disable SERIAL_QCOM_GENI_CONSOLE_DEFAULT_ENABLED") broke console access on DB845c and RB5. Renable the console access by adding qcom_geni_serial.con_enabled=1 to the kernel cmdline as suggested in the commit message. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: Ibce09eecd4cbb44d7b3d2841956eec0b6bf042d1
2022-03-02db845c: Make TARGET_USES_BOOT_HDR_V3 visible to vendor packageAmit Pundir
Move TARGET_USES_BOOT_HDR_V3 build flag from db845c/BoardConfig.mk to db845c.mk, so that TARGET_USES_BOOT_HDR_V3 flag can be used in vendor/ firmware package' .mk files. Needed for certain conditional PRODUCT_COPY_FILES in vendor package to work correctly. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: Ia81e4cad55d7a8de20d5353e7cfd3d297fa6482c
2022-02-28Merge changes from topics ↵Peter Collingbourne
"master-I2a659a980d32912bec5a1c0869c88e06a29cf9ce", "master-I6852683ad14a8fa6b0fc22f39e0c9c7823d1da2c", "master-I8f8b467a4dfad68f6e2e53954b5944c6155de782", "master-I9ef8e57207aa96ec1f8193e8d8cd5dfc47567d38", "master-Id17d162d142a2595e54e163f5faaf7dcf9b68e35" * changes: Add a sm8450_mini target. Create a mini configuration for the dragonboards. Factor out the full device configuration. Move the architecture definitions into the device-specific BoardConfigs. Remove pixel3_mainline target.
2022-02-18Factor out the full device configuration.Peter Collingbourne
In an upcoming patch we are going to add "mini" device configurations that avoid most of the usual driver dependencies. This requires splitting out the device-specific configuration from the configuration required for a full device image. Bug: 217455793 Change-Id: Id17d162d142a2595e54e163f5faaf7dcf9b68e35
2022-02-18Move the architecture definitions into the device-specific BoardConfigs.Peter Collingbourne
Newer SOC generations may have different levels of CPU feature support (e.g. SM8450 which is ARMv9), so let's allow the individual boards to specify their own sets of features. Bug: 217455793 Change-Id: I6852683ad14a8fa6b0fc22f39e0c9c7823d1da2c
2022-02-12db845c/BoardConfig.mk: set bootv3 as the defaultYongqin Liu
Re-enable vendor_boot by default for the db845c build This was earlier enabled and then reverted. But should be ok to re-enable now, as long as everyone is using the flash-all.sh script that flashes vendor_boot. Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I819532a5a4d0e1ca41ac4947dd18f4932ecb2a78
2022-02-10db845c: Add rb5 support in db845c-userdebug build targetAmit Pundir
* Enabled multiple appended DTBs support to allow db845c boot.img/vendor_boot.img to boot on rb5 as well. * Introduced a vendor.hw property which will be used to run device specific services. * Folded Caleb's HDMI audio routing fix. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I779d01946ae359d5c405d959419e29460083e5df
2022-01-14dragonboards: Move firmware files to external vendor overlay packageAmit Pundir
Moving all the vendor binaries (including bootloader, qdl and firmware binaries) to an external vendor.tgz package to be downloaded from: https://releases.linaro.org/android/aosp-linaro-vendor-package/extract-linaro_devices-20220106.tgz BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES build flag is used to copy a few vendor firmware files to ramdisk or vendor_ramdisk to work-around the dependency of their drivers on FW_LOADER_USER_HELPER_FALLBACK kernel config. And for that we needed to bump up the boot and vendor_boot partition sizes as well. Also folded John's installer script changes into this patch. Change-Id: I1b46ee17f4a218c735e2ac8d81759364b3bf7332 Signed-off-by: Amit Pundir <amit.pundir@linaro.org> [Reworked to handle versioned vendor/linaro/<dev> paths] Signed-off-by: John Stultz <john.stultz@linaro.org>
2021-12-10dragonboards: Move common device.mk configs to device-common.mkAmit Pundir
Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I8ec9dbd971d7d7590d0342ca3e8bc3ddaa116c9c
2021-07-30init.common.usb.rc: Do not hardcode sys.usb.controller propertyAmit Pundir
Upstream commit eb9b7bfd5954 ("arm64: dts: qcom: Harmonize DWC USB3 DT nodes name") (v5.14-rc1) changed the DTS USB node names, breaking the sys.usb.controller property hardcoded in the platfrom specific init.usb.common.rc This script will get rid of the static/hardcoded proprty name and set the property to the available on-board USB controller from /sys/class/udc instead. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I1255cd9a3456510d93437989e7e378d9e6bc0c8b
2021-07-07db845c: Update PRODUCT_SHIPPING_API_LEVEL to 31 and FCM to 6android-s-beta-4android-s-beta-3John Stultz
Update PRODUCT_SHIPPING_API_LEVEL and FCM for db845c so they are at 31 and 6 respectively. This also dropps the dummy memtrack HAL, as its no longer required. Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I96fb44dbb54d8f51dee917175342ee734c074512
2021-06-23db845c: Set ro.sf.lcd_density=160Amit Pundir
Set ro.sf.lcd_density to 160 at build time because the default density (FALLBACK_DENSITY=213) is a bit too high for the device. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I33fb0f028199aa236a775347ab442ba1d384da18
2021-05-05db845c: firmware: Update numerous firmware files from linux-firmwareJohn Stultz
Copy in the latest firmware files from linux-firmware as of commit ecdfcf8e2ca1 ("Merge branch 'adlp_dmc_firmware' of git://anongit.freedesktop.org/drm/drm-firmware into main") from: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/ This fixes the use of new firmware names which was causing regressions with upstream kernels. Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I419a15c6f2ce64fa68560000eb273a861e238e17
2021-04-06db845c: Add SOC information for CTS BuildTestWill McVicker
This adds the properties: * ro.soc.model * ro.soc.manufacturer Bug: 181845848 Signed-off-by: Will McVicker <willmcvicker@google.com> Change-Id: Ia8f75103d32a2679931f792be2ccb08a918663be
2021-03-30db845c: firmware: Update a630_sqe.fw from linux-firmwareJohn Stultz
Copy in the latest a630_sqe.fw from linux-firmware as of commit 3f026a2f13a8 ("rtl_bt: Update RTL8822C BT(UART I/F) FW to 0x59A_76A3") from: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/ This resolves boot issues caused by kernels 5.12+ requiring newer seq ucode. Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I45ff1d87a1686fe1afa7ed8df275abb2837ef40e
2021-03-29Revert "db845c/BoardConfig.mk: set bootv3 as the default"Todd Kjos
This reverts commit 63f8e16a54cbeffac39255f6b60b5bfbfcb070fa. Reason for revert: Appears to break boot in lab (odd since firmware was updated) Bug: 183952621 Change-Id: I98d5a6e651c421ab7dd41c1b4b5b0d8d79d76033 Signed-off-by: Todd Kjos <tkjos@google.com>
2021-03-25db845c/BoardConfig.mk: set bootv3 as the defaultYongqin Liu
enable vendor_boot by default for the db845c build Test: boot tested with the bootv3 images Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org> Change-Id: I792eefc4b825cb936ccd0d942fe2b94457d1e06c
2021-03-18Reserve space in super for dynamic partition metadataTianjie
The maximum size of all dynamic partition groups should not exceed the super size - DAP metadata size. Today the configuration of the device doesn't take the metadata into acount. Since we recommend 4M to partners, reserve 4M here. Bug: 182431975 Test: build Change-Id: I648017e4737a96d663449b8b27f1c6c19730e6cd
2021-01-19db845c: Enable boot image header v3 supportAmit Pundir
To enable boot image header v3 support, set "TARGET_USES_BOOT_HDR_V3=true" while building AOSP images for db845c. Build will fall back to boot image header v2 otherwise. Boot image header v3 support depends on the latest bootloader binaries. Run device/linaro/dragonboard/installer/db845c/flash-all-aosp.sh script to update the bootloader binaries on db845c. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: Iaf565fc25c731a9d42c8fbc550686b588caba5df
2021-01-12db845c: Make it a Virtual A/B deviceAmit Pundir
All dynamic partitions are A/B. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I9650626b5a463ff9f368680ae8c32b8432fee1e8
2020-10-21enable bootctrol for db845c buildYongqin Liu
so that it will be possible to work with GSI image Test: boot to homescreen console:/ # getprop init.svc.vendor.boot-hal-1-1 running console:/ # VtsHalBootV1_0TargetTest and VtsHalBootV1_1TargetTest Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org> Change-Id: I147f04de1c8bc7fd506d351f514498341ef7388c
2020-10-07db845c: BoardConfig: Correct the super partition sizeAmit Pundir
Super partition size is not set correctly. I rounded off to 10G during initial porting days. Reset it to the correct size mentioned in the bootloader ptable. It fixes the following warning we see during adb remount: [liblp]Device size does not match (got 12437225472, expected 10737418240) [liblp]Block device super size mismatch (expected10737418240, got 12437225472) Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I89d74070893c14796e24cc8286fd794725b48717
2020-10-06db845c: Unify fstab files to fix issues w/ adb remountJohn Stultz
The overlayfs remount handling of superpartitions expects the fstab to have all the partitions in it. This means we can't use the split between the ramdisk fstab and the vendor fstab that we have been previously. So this patch merges the two fstabs together. With this change "adb root; adb remount" works now. Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: Iad408d5d3b1e4c9291a947cd44ee65f4aaef5c45
2020-07-09Revert "qcom: qrtr: Disable qrtr-ns and qrtr-cfg"android-r-beta-3android-r-beta-2Amit Pundir
This reverts commit 2cf92a4173d774ad491709f80fe8fe3aa1698e6a. Needed to get WiFi working on android-5.4 kernel. Otherwise we need to backport a chunk of in-kernel qrtr ns patches from upstream (v5.7-rc1) kernel. Userspace qrtr-ns tool is compatible with upstream kernel as well, check: https://android-review.googlesource.com/c/1286419 Change-Id: Icf9654ed415fe77c8f22592feccd7c68f46bd765 Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2020-07-08Revert "db845c: Add fw_devlink=permissive to the boot arguments"Saravana Kannan
This reverts commit 05e94c35cb0cdba07582fa0055805f9553ab0bf3. Reason for revert: No longer necessary as default fw_devlink=on works Change-Id: I906341051416c3e622f29cf1df4a4e54368de83c
2020-05-11db845c: Add fw_devlink=permissive to the boot argumentsAmit Pundir
android-mainline commit ("ANDROID: GKI: driver core: Set fw_devlink=on by default"), https://android-review.googlesource.com/c/1305327 broke db845c. Set fw_devlink=permissive while we debug it further. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: If49ed679632a0a5c3ffc26bcc4fff62619f474d4
2020-04-25qcom: qrtr: Disable qrtr-ns and qrtr-cfgAmit Pundir
No need to run qrtr-ns and qrtr-cfg services explicitly. They are moved to kernel now starting from v5.7-rc1. We are keeping qrtr-lookup around for debugging. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I02d72e73ef3d64fed1c024a97cec3560241aff22
2020-04-25db845c: firmware: Add adsp and modem jason fileAmit Pundir
Downloaded from: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/qcom/sdm845 at commit 64dba0fedb22 ("Merge branch 'a630-zap' of https://github.com/andersson/linux-firmware") Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I95e8bd0ef30c7aa58db4fc8e269f13fa62727022
2020-04-25db845c: Set Ethernet MAC address on bootAmit Pundir
db845c development boards do not have unique Ethernet MAC address. All boards share same MAC address and it cause problems while running CTS tests on db845c in a lab with multiple db845c boards connected. Set the Ethernet MAC address based on board's unique serial number as a workaround for now. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I1c5b63b7d6cbf5e55ac40980b5823cc6bb4f44d3
2020-04-21db845c: move the normal fstab path to /vendor/etc/fstab.db845cYongqin Liu
as it is required by the GetFstabPath funtion defined here: https://android.googlesource.com/platform/system/core/+/refs/heads/master/fs_mgr/fs_mgr_fstab.cpp#411 and the fstab.ramdisk.common does not need to be copied to vendor partition. Test: boot up db845c with android-5.4 and android-mainline kernels, and tested with vts-kernel -m VtsKernelEncryptionTest Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org> Change-Id: Ib2ec7277e3b4e912546841174bdcb5638578ed33
2020-04-17db845c: Add deferred_probe_timeout=30 to the boot argumentsJohn Stultz
With changes landing in 5.7-rc, adding deferred_probe_timeout=30 argument on the boot line allows modules dependencies to be able to be resolved after init. Otherwise we may see some modules fail to load due to missing dependencies and then if the dependencies are loaded after init begins, the modules waiting will fail to get EPROBE_DEFER errors and will just fail for good. Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I0715ae5099ec5511e0154b7c88c098a16fde9fb8
2020-03-27db845c/BoardConfig.mk: fix the value of androidboot.boot_devicesYongqin Liu
which should be soc@0/1d84000.ufshc, as the soc item defined in the dts is "soc: soc@0" like here: https://android.googlesource.com/kernel/common/+/refs/heads/android-mainline/arch/arm64/boot/dts/qcom/sdm845.dtsi#705 otherwise links like /dev/block/by-name/super won't be created during the boot, and will get problem like this: [ 8.807222] init: Loaded kernel module /lib/modules/xhci-plat-hcd.ko [ 8.814077] init: [libfs_mgr]ReadFstabFromDt(): failed to read fstab from dt [ 8.821719] init: Using Android DT directory /proc/device-tree/firmware/android/ [ 8.852403] init: realpath failed: /dev/block/by-name/super: No such file or directory [ 8.860633] init: Failed to mount required partitions early ... [ 8.867386] init: InitFatalReboot: signal 6 and vts test failures for following test cases: VtsKernelLiblpTest#DeviceTest.BlockDeviceInfo VtsKernelLiblpTest#DeviceTest.ReadSuperPartitionCurrentSlot VtsKernelLiblpTest#DeviceTest.ReadSuperPartitionOtherSlot Test: checked that /dev/block/by-name/super is there, and the failures of VtsKernelLiblpTest#DeviceTest passed Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org> Change-Id: I33e3a4dbd7c0435d561f694dc3103736382791e0
2020-03-24db845c: firmware: Restrict to db845cSumit Semwal
Include the db845c/firmware directory in build only for db845c target. This allows us to add locally the firmware for pixel3_mainline target. Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org> Change-Id: I4f3ebcb290243be7e168b42c24a826b994791020
2020-03-17db845c: firmware: Fix checkbuild failureandroid-r-preview-4android-r-preview-3android-r-preview-2John Stultz
Apparently I mistyped the filename and didn't notice it until I recently ran checkbuild against aosp/master. This fixes it up. Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I09df293e7d5ba7e8b3e4e8d8e99d0fb7481c3b2b
2020-03-17db845c: qcom: Add init.qcom.rc to start up remoteproc services/wifiJohn Stultz
Adds the init.qcom.rc file to the build so the qcom remoteproc userland code can be started and wifi can be initialized. This pach was split out from earlier patch by Amit Pundir <amit.pundir@linaro.org> Change-Id: I2032e7c2d3d5d3a10b7afd387f97a93235a908cf Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-03-17db845c: qcom: Add userspace tools to talk to dsp and modemAmit Pundir
Add Qcom userspace tools and their respective sepolicy rules. Userspace tools are downloaded from following github: To trigger loading of wlan firmware on SDM845 git clone https://github.com/andersson/pd-mapper Userspace reference for net/qrtr in the Linux kernel git clone https://github.com/andersson/qrtr Qualcomm Remote Filesystem Service Implementation git clone https://github.com/andersson/rmtfs Trivial File Transfer Protocol server over AF_QIPCRTR git clone https://github.com/andersson/tqftpserv Change-Id: Ic466af6fef010a9b71c90e38205f49a876b001e2 Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-03-16db845c: firmware: Fix install paths for wifi/modem firmware filesJohn Stultz
We've previously not used the remoteproc, modem or wifi firmware files we've installed, so we haven't noticed that we are placing them to the wrong path, as the kernel expects them to be under firmware/qcom/sdm845/. Fix this so the kernel can find the files when it looks for them. Change-Id: Iea8415ed53f05b22f446274bc6d73d4267988ec2 Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-03-16db845c: firmware: Add ath10k WCN3990 board-2.bin for wifiJohn Stultz
Adds board-2.bin file from: https://github.com/andersson/linux-firmware/tree/db845c-wifi/ath10k/WCN3990/hw1.0 Change-Id: I5d5a46e02503b9c63066ffe3b4d9c52353e98944 Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-03-16db845c: firmware: Add updated ath10k/WCN3990 firmwareJohn Stultz
Update ath10k/WCN3990 firmware files to match files here: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/ath10k/WCN3990/hw1.0 Change-Id: I7e9571ca12bb94dd1d5a166488ae389743a6489c Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-03-16db845c: firmware: Add modem and mba firmware filesJohn Stultz
Add modem and mba firmware files from: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/qcom/sdm845 Change-Id: Ifbaf76c2e46e16a62e732106460036d83944f9a0 Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-03-09db845c: add super.img to update imageTodd Kjos
super.img was not included in the update image and was therefore not visible to update tools Signed-off-by: Todd Kjos <tkjos@google.com> Change-Id: I63961fb8889c6a65dc92e9292559ca8ed7ad47a3
2020-02-26db845c: firmware: Use qcom/sdm845/ prefix on gpu firmware filesJohn Stultz
This copies the gpu firmware files to be under firmware/qcom/sdm845/ since that is where they will be expected to be with newer kernels. One note: v5.6+ kernels not only expect a different path but also expect a different filename postfix. So this copies the a630_zap.mdt to a630_zap.mbn. For compatiblility with older kernels, we keep the existing firmware as is. Change-Id: I3ae4706f9a8ef36c72a98e34ae50cac562071d86 Signed-off-by: John Stultz <john.stultz@lianro.org>
2020-01-15db845c: Enable earlycon on bootargsJohn Stultz
While earlycon doesn't help when the serial driver is a module, enable earlycon in the boot arguments so we can be able to debug some of the issues folks are seeing with boots failing. Change-Id: Ib46b12e2f6c5c44092935742837253128559890a Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-01-14db845c: Update userland build to use dragonboard-kernel project and build ↵John Stultz
boot.img This patch updates the userland build to built a boot.img from prebuilt kernel/modules in the dragonboard-kernel project. At the moment, there is nothing in the dragonboard-kernel project, but once we do add the prebuilt files, we'll want this change. Change-Id: I6b9ce745c378ea50e176e9c8ed67336953766fa2 Signed-off-by: John Stultz <john.stultz@linaro.org>
2019-12-06db845c: firmware: Update Qcom RB3 firmware to v4Amit Pundir
Update db845c firmware package from Qcom RB3 v3 to v4. * devcfg.mbn is updated for improved i2c and SPI support. Qcom firmwares and license downloaded from: http://releases.linaro.org/96boards/dragonboard845c/qualcomm/firmware/RB3_firmware_20190529180356-v4.zip Change-Id: I202873ad4833255d20ca19ce9efa559cf5cd023f Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2019-09-24db845c: firmware: Add upstream BT QCA firmware filesAmit Pundir
Add BT firmware files (qca/cr*) and NOTICE from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/qca HEAD: 70e43940b05e ("linux-firmware: rsi: add firmware image for redpine 9116 chipset") Change-Id: I60bec0a609563abd9dddd95bd288fb5c434590af Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2019-09-24db845c: firmware: Add Qcom RB3 firmware filesAmit Pundir
Copied Qcom firmware files and license from RB3_firmware_20190529180356-v3.zip http://releases.linaro.org/96boards/dragonboard845c/qualcomm/firmware/RB3_firmware_20190529180356-v3.zip Also added utils.mk helper script which will contain useful build/install macros going forward. add-qcom-firmware() to start with. Change-Id: Iabef654d79ba2562929ae99c5d36f1439802b408 Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2019-09-24db845c: Add support for AOSP on dragonboard db845cAmit Pundir
Boots dragonboard db845c to console. HDMI display broken due to missing firmware files. Change-Id: I820aeb7b7ab2536a362f9ae37cc44906be0a6190 Signed-off-by: Amit Pundir <amit.pundir@linaro.org>