forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-02-17 557c24d082b6ecb9bfe5407b77ae43fa7650a5dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
### BEGIN INIT INFO
# Provides:          rockchip npu initial script
# Required-Start:
# Required-Stop:
# Should-Start:      mountvirtfs
# Should-stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: Custom initial script for chromium browser
### END INIT INFO
 
{
   unset FW_TYPE
   [ -e "/sys/devices/platform/f8000000.pcie/pcie_reset_ep" ] && \
       FW_TYPE="_pcie"
 
   cd /usr/share/npu_fw${FW_TYPE}
 
   npu_upgrade${FW_TYPE} MiniLoaderAll.bin uboot.img trust.img boot.img
   sleep 1
   npu_transfer_proxy
} &
 
exit 0