summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* am65xevm: sepolicy: Allow ueventd to insert modulesRuslan Trofymenko2018-10-301-0/+4
| | | | | | | | Allow ueventd daemon to load modules in response to modalias events. This patch makes dynamic kernel module loading work in 'enforcing' mode. Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org> Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
* am65xevm: Fix selinux warningsMykhailo Sopiha2018-10-3010-0/+22
| | | | | | | | | | | | This patch fixes selinux warnings during bootup process and video playback. Additionally to dontaudit and allow rules for basic objects one more object was declared - mmc_block_device (data partition) to include fsck permissions for it. Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org> Acked-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
* am65xevm: Pulling sepolicies from am57xevmMykhailo Sopiha2018-10-308-0/+35
| | | | | | | | This patch includes minimal sepolicies for enabling boot up in enforcing mode for trebleized device. Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org> Acked-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
* am65xevm: fastboot.sh: update flashing bootloader imagesPraneeth Bajjuri2018-10-291-7/+7
| | | | | | | update fastboot flash script to include oem format and reboot-bootloader command for updating bootloader images. Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
* am65xevm: Add support for 64b and 32b appsPraneeth Bajjuri2018-10-262-0/+8
| | | | | | | | | | | | | | | Set TARGET_SUPPORTS_32_BIT_APPS and TARGET_SUPPORTS_64_BIT_APPS, TARGET_PREFERS_32_BIT_APPS get apps to build for 32-bit only, and leaves TARGET_SUPPORTS_64_BIT_APPS unset. This confuses zygote64 because it finds an empty 64-bit ABI list and causes zygote* process to fail on android init. Hence Enabling support for both 32b and 64b apps. and making 64b as primary , 32b as secondary Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
* am65xevm: Enable dex-preoptimizationPraneeth Bajjuri2018-10-261-1/+1
| | | | | | | | | Enable dex-preoptimization to speed up the first boot sequence Enabling this feature also increases the system image size close to 1GB. Increasing the size of system image partition. Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
* Revert "TEMP: Disable optimizing DEX code at build time"Praneeth Bajjuri2018-10-251-2/+0
| | | | | | | | This reverts commit e0535a783ba932377bc2ad580daab578f336ad89. following commits on the top enables DEXPREOPT Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
* am65xevm: Enable PRODUCT_TREBLEPraneeth Bajjuri2018-10-173-4/+38
| | | | | | | | | | | | | | | This patch sets ro.treble.enable=true - turned on legacy PRODUCT_COMPATIBILITY_MATRIX_LEVEL - Enabled FULL_TREBLE and vndk support in device*.mk - Enforced VINFT manifest as part of treble requirements - Added compatibility matrix to match device manifest and pass prebuild checks - Added missing services for compatibility matrix - Extended device manifest with missing hals - removed unused audio packages - re-arranged device*.mk and BoardConfig.mk Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
* am65xevm: enable property ro.sf.lcd_densityPraneeth Bajjuri2018-10-171-0/+1
| | | | | | | | | | | | | 01-01 00:00:09.413 158 219 E SurfaceFlinger: ro.sf.lcd_density must be defined as a build property. this message is seen when ro.sf.lcd_density is not set in device*.mk. If this build parameter is not set, then xdpi from hwc display is used for density. when ro.sf.lcd_density is set,it is used as primary for Surfaceflinger DisplayInfo objects Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
* am65xevm: media_codecs.xml: add default codecsPraneeth Bajjuri2018-10-172-0/+30
| | | | | | add default audio and video codecs Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
* am65xevm: move touchscreen to later boot stagePraneeth Bajjuri2018-10-171-1/+4
| | | | | | | | | | | | having touchscreen driver loaded at early-init stage causing dialog box appear on home screen "System not responding and contact device manufacturer" moving touschreen to post boot complete for now. This issue is seen and reported on touchscreen on am57x gpevm and idk too. and seems to be due to android input subsystem not ready in time. Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
* am65xevm: Add initial manifest and compatibility_matrixPraneeth Bajjuri2018-10-174-4/+152
| | | | | | | | Inital manifest and compatibility matrix Needed to enable treble configuration Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
* am65xevm: Include goodix touchscreen modulePraneeth Bajjuri2018-10-151-1/+2
| | | | | | Include goodix touchscreen module in init.am65xevmboard.rc Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
* am65xevm: Initial fastboot scriptPraneeth Bajjuri2018-10-151-0/+202
| | | | | | | Initial Fastboot flashing script to flash all android images on am65xevm Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
* am65xevm: Add 64bit binderPraneeth Bajjuri2018-10-151-0/+2
| | | | Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
* Add device settings overlaysAndrew F. Davis2018-10-153-0/+126
| | | | | | These define some default behaviors and interface settings. Signed-off-by: Andrew F. Davis <afd@ti.com>
* Add device feature permissionsAndrew F. Davis2018-10-152-2/+32
| | | | Signed-off-by: Andrew F. Davis <afd@ti.com>
* TEMP: Disable optimizing DEX code at build timeAndrew F. Davis2018-10-081-0/+2
| | | | | | | | This works around a boot error preventing boot, but also drastically increases first time boot so this should be reverted when the error is root-caused. Signed-off-by: Andrew F. Davis <afd@ti.com>
* Add Audio and Security related packagesAndrew F. Davis2018-10-081-2/+17
| | | | | | | This also stops a boot error loop when looking for an audio device for audioserver service. Signed-off-by: Andrew F. Davis <afd@ti.com>
* am65x_evm: workaround: Set UDC controller manuallySam Protsenko2018-10-042-1/+7
| | | | | | | | | | | | Ideally should have been done in Android init.cpp But due to loading dwc3.ko dynamically we can't rely on it as set_usb_controller() executed before early-init This workaround needs to be removed once dwc3 can work as built-in Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
* am65x-evm: workaround: configure adb as defaultPraneeth Bajjuri2018-10-041-0/+2
| | | | | | | | | | | | more details of history from device/ti/am57xevm: commit dda6d31bf1a2 "workaround: configure adb as default." Need to configure as adb by default till UI is up. This needs to be reverted once home screen is up Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
* am65x-evm: Enable USB configuration for ADB supportPraneeth Bajjuri2018-10-043-0/+58
| | | | | | | | Reference from device/ti/am57xevm: commit 626cf2cc64be "am57xevm: Sync USB init script with Hikey" Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
* Allow U-Boot to manually apply overlaysAndrew F. Davis2018-10-041-11/+14
| | | | | | | | | | U-Boot no longer hard-codes the list of overlays to apply based on the board type (EVM, IDK) rather detects daughter-cards individually and applies and overlay for each. To allow the same with FIT keep each overlay as a separate configuration. Signed-off-by: Andrew F. Davis <afd@ti.com>
* Remove ramdisk load address from FIT fileAndrew F. Davis2018-10-041-2/+0
| | | | | | | | The ramdisk image does not need to be loaded at a particular address. To prevent it from getting overwritten do not specify any load address to let U-Boot manage it for us. Signed-off-by: Andrew F. Davis <afd@ti.com>
* Move data partition in fstab to eMMCAndrew F. Davis2018-10-031-2/+1
| | | | | | | | The SD card was used for testing. With fastboot support we can write this partition to eMMC. Also drop the boot partition as this is not a filesystem type partition. Signed-off-by: Andrew F. Davis <afd@ti.com>
* Add initial SEpolicy files to enable init and pvr servicesAndrew F. Davis2018-09-263-0/+55
| | | | | | | Even in permissive mode services cannot be launched from init without a base SE policy string in place. Add this here. Signed-off-by: Andrew F. Davis <afd@ti.com>
* Add minimal fstab file to mount boot and data partitionsAndrew F. Davis2018-09-263-1/+15
| | | | Signed-off-by: Andrew F. Davis <afd@ti.com>
* Add all kernel modules to vendor imageAndrew F. Davis2018-09-131-3/+2
| | | | Signed-off-by: Andrew F. Davis <afd@ti.com>
* Increase vendor partition size to 512MBAndrew F. Davis2018-09-131-1/+1
| | | | | | | | The vendor partition hold all the kernel modules, for the 64-bit build these modules take more space than 256MB, grow the vendor partition accordingly. Signed-off-by: Andrew F. Davis <afd@ti.com>
* Add DT overlays to boot_fit.imgAndrew F. Davis2018-09-122-5/+59
| | | | Signed-off-by: Andrew F. Davis <afd@ti.com>
* Add init files needed for graphics supportAndrew F. Davis2018-09-123-2/+13
| | | | | | | Start the PVR service and give the created device nodes proper permissions. Signed-off-by: Andrew F. Davis <afd@ti.com>
* Revert "Switch from add_lunch_combo to COMMON_LUNCH_CHOICES"Praneeth Bajjuri2018-09-052-5/+20
| | | | | | | | | | | | | This reverts commit 911fc231a4ec417e605fac433c145b4ed1c1c0e6. The associated changes for COMMON_LUNCH_CHOICES is only available in AOSP master. on Oreo-MR1 lunch command doesnt show am65xevm-* as target option. So reverting the change for Oreo, The original patch is good for AOSP master Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
* Build FIT imageAndrew F. Davis2018-09-042-0/+71
| | | | | | | | | | | | | | | | | | | In addition to already generated regular boot.img, build also FIT image containing: - Image - ramdisk - dtb files - dtbo files - boards configurations info Resulting image will be named boot_fit.img and will be placed to $(PRODUCT_OUT) dir. One can disable the generation of FIT boot image by disabling TARGET_BOOTIMAGE_FIT option in BoardConfig.mk file. Based on the same by: Sam Protsenko <semen.protsenko@linaro.org> Signed-off-by: Andrew F. Davis <afd@ti.com>
* Fix product model nameAndrew F. Davis2018-09-041-1/+1
| | | | Signed-off-by: Andrew F. Davis <afd@ti.com>
* Remove cache and recovery imagesAndrew F. Davis2018-09-041-5/+2
| | | | | | | Cache is not used anymore and recovery is not needed as we can boot from an SD card to recover. Signed-off-by: Andrew F. Davis <afd@ti.com>
* Switch from add_lunch_combo to COMMON_LUNCH_CHOICESAndrew F. Davis2018-09-042-20/+5
| | | | Signed-off-by: Andrew F. Davis <afd@ti.com>
* Add libgbm to project buildAndrew F. Davis2018-09-041-0/+1
| | | | | | This is used by our graphics buffer allocator. Signed-off-by: Andrew F. Davis <afd@ti.com>
* am65xevm: Initial device project baselineAndrew F. Davis2018-06-275-0/+192
| | | | | | | | | | | | | | | Initial content is based on am57xevm device project. AM65x SoC is lead device of K3 Multicore SoC architecture platform Targeted for broad/catalog market and industrial control to meet product needs of modern embedded devices and platforms. More Info on Processor: http://www.ti.com/lit/ug/spruid7/spruid7.pdf Signed-off-by: Andrew F. Davis <afd@ti.com> [praneeth@ti.com: updated commitmsg] Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
* Initial empty commitAndrew F. Davis2018-06-180-0/+0