From 70db99f88508298c9cfd4fac8719633cf0ece9c3 Mon Sep 17 00:00:00 2001 From: Richard Hsu Date: Fri, 2 Jul 2021 14:28:55 -0700 Subject: [PATCH] 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 --- conf/init.gs201.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/init.gs201.rc b/conf/init.gs201.rc index 0c13221d..e099d724 100644 --- a/conf/init.gs201.rc +++ b/conf/init.gs201.rc @@ -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