Previously, we ran modprobe command for every .ko file listed in
init.insmod.*.cfg. Let's move to a different approach where we call
modprobe with the following command line.
modprobe -b --all=/vendor/lib/modules/modules.load
This will insmod all modules listed in modules.load except for those
that are mentioned in the blocklist at
/vendor/lib/modules/modules.blocklist
A common reason for a module to be on the blocklist is that it must only
be loaded under a certain condition like when a specific service is
launched.
Bug: 192241728
Change-Id: I518426308d0bfc358c8c815a69d431e27ebcf6e4
Kernel modules on the blocklist are not automatically loaded during
second stage init. Modules are often put on the blocklist if we want
them to get loaded only under certain circumstances.
Bug: 192241728
Change-Id: I05d55f8a2854619b92defcf3fb11cc2b87a8dab6
Previously, we copied all available kernel modules into the vendor_boot
ramdisk except for approx. 14 modules that we explicitly excluded.
Going forward, the kernel build will distribute the two additional files
vendor_boot.modules.load and vendor_dlkm.modules.load which define,
respectively, the lists of modules that should be loaded from
vendor_boot and vendor_dlkm.
The contents of the two *.modules.load files will be copied almost
verbatim into modules.load files in the respective images except for the
fact that the directory names of the .ko files are stripped. So, for
example, kernel/net/core/pktgen.ko becomes just pktgen.ko.
Additionally, we only copy those .ko files into the vendor_boot image
that are listed in vendor_boot.modules.load. On the other hand, the
vendor_dlkm partition image will contain all .ko files regardless of
whether they are listed in vendor_dlkm.modules.load.
Bug: 190652328
Change-Id: I6fc41a0143e7253f193cac509ba30506feb4e2d9
This allows EdgeTPU component to build different components
per target chip.
Bug: 192096682
Test: tested on prebuilt.
Change-Id: Id9ee7de22648c591f8a540c5441ad375a9ee3439
This partially reverts commit 28140b7240.
USB will hold a wakelock preventing suspend to happen
Bug: 188796118
Signed-off-by: Thierry Strudel <tstrudel@google.com>
Change-Id: Idc583a025e429a5b5f13a94b732717e9491e4e55
Give TPU device path (/dev/janeiro) the same access permission as /dev/abrolhos. This change is similar
to what we did for WCH, but for PRO.
Bug: 191185522
Test: run_tflite_test_odc passes.
https://paste.googleplex.com/5466657955774464
Change-Id: If735e699c0c9ec842f915ebc7b59d0896f4c776c
This required disabling the GPU-related PRODUCT_SOONG_NAMESPACES so that
we don't get an installed-path collision between the prebuilt gs201
libOpenCL and the gs101 libOpenCL that we build from source. Once we're
able to build both gs101 and gs201 from the same source (b/185349920)
we'll need to re-add the namespaces.
Bug: 190424017
Test: gfx-score
Change-Id: I9095e099a120494fab0c33fc6bd1ace2c69f3bc4
They aren't needed for first-stage boot, and can be loaded from
`/vendor` and `/vendor_dlkm`.
Bug: 189506395
Test: boot to home
Change-Id: Ib4c708c8631586cf25e1535035b8bc81f727ef5f
Include the com.android.virt APEX in the cloudripper image to bundle the
pKVM user space components.
Test: atest VirtualizationTestCases
Bug: 181324461
Change-Id: If84c957b74dc59faefc88edf6b7f500894eef38b
Bug: 189703449
Test: read contaminant status normally
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: Iff31b2846cec2e960e5c5db83371ca3e983a4a3b
This is a workaround to get adb working while USB is being brought up.
(cherry-pick from device/google/cloudripper)
Bug: 188672439
Signed-off-by: Pat Tjin <pattjin@google.com>
Change-Id: Ie114c1f67198a10a6c0dda49d1ed2ee85c8b2bf5
Hold wakelock on boot to mitigate b/188796118
(cherry-pick from device/google/cloudripper)
Bug: 188796118
Signed-off-by: Pat Tjin <pattjin@google.com>
Change-Id: Ia75d355eaed0d469f791f126aaed1c0059df0abd
Prevent crashing of settings when going into Connected Devices.
E SystemServiceRegistry: No service published for: usb
followed by NPE:
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.android.settings/com.android.settings.Settings$ConnectedDeviceDashboardActivity}:
java.lang.NullPointerException: Attempt to invoke virtual method
'java.util.List android.hardware.usb.UsbManager.getPorts()'
on a null object reference
Bug: 189904047
Test: check settings doesn't crash anymore
Signed-off-by: Pat Tjin <pattjin@google.com>
Change-Id: I1dd8df5cf70500b3dbb95009783dc2ba89e5ce13
Add bt_vendor_overlay.conf for customizing project configuration
* If the overlay config has same config item with origin config, it
will overwrite it.
Bug: 189727579
Test: build pass, Bluetooth can up successfully.
Change-Id: I48f160ab87b5d512b78884d4502c790587724cd9