gs201: add compatibility path for TPU

This is to expose a common path to runtime. This is the gs201 version of the WCH change ag/15100070. It alias /dev/janeiro to /dev/edgetpu. This is a temporary measure to make /dev/edgetpu work. Once the TPU kernel driver is refactored to produce /dev/edgetpu by default, we'll remove this symlink.

Test: Manual. Verified edgetpu_logging works with modified path
Bug: 191193044

Change-Id: Icc70264c0c7d20ea7b6aa43903e109d9180dd022
This commit is contained in:
Richard Hsu 2021-07-02 14:28:55 -07:00
parent 160e6929aa
commit 70db99f885

View file

@ -311,6 +311,10 @@ on post-fs-data
mkdir /data/vendor/edgetpu 0770 system system
mkdir /data/vendor/edgetpu/cache 0770 system system
# Compatibility path for TPU
symlink /dev/janeiro /dev/edgetpu
on zygote-start
# For PixelLogger configuration file.
chmod 0771 /data/vendor/wifi