mirror of
https://github.com/tsukumijima/libmali-rockchip.git
synced 2026-01-24 00:10:50 +01:00
add overlay for rk3288 and px3se
Change-Id: If0115b6acc8102bebf0f1b1bdaf412e810497997 Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com>
This commit is contained in:
parent
8c54a9d284
commit
9840771868
3 changed files with 63 additions and 0 deletions
31
overlay/S10libmali_px3se
Executable file
31
overlay/S10libmali_px3se
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Start px3seBase for px3se...
|
||||
#
|
||||
|
||||
function get_emmcblk() {
|
||||
MMC=/dev/mmcblk2
|
||||
for i in `seq 0 2`; do
|
||||
TYPE=`cat /sys/bus/mmc/devices/mmc${i}*/type 2>/dev/null`
|
||||
if [ "${TYPE}"x == "MMCx" ]; then
|
||||
MMC=$i;
|
||||
fi
|
||||
done
|
||||
|
||||
echo /dev/mmcblk$MMC
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
px3seBase -i $(get_emmcblk)
|
||||
;;
|
||||
stop)
|
||||
printf "stop finished"
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
32
overlay/S10libmali_rk3288
Executable file
32
overlay/S10libmali_rk3288
Executable file
|
|
@ -0,0 +1,32 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Create libmali link for rk3288....
|
||||
#
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
|
||||
# create libmali.so link depend on chips type in the runtime
|
||||
GPU_VERSION=$(cat /sys/devices/platform/*gpu/gpuinfo)
|
||||
cd /usr/lib
|
||||
if [ "$GPU_VERSION" = 'Mali-T76x MP4 r1p0 0x0750' -o "$GPU_VERSION" = 'Mali-T76x 4 cores r1p0 0x0750' ];
|
||||
then
|
||||
#rk3288W, r1 version gpu chip
|
||||
ln -s libmali-midgard-t76x-r14p0-r1p0-wayland.so libmali.so
|
||||
else
|
||||
#rk3288, rk3288-C, rk3288-CG
|
||||
ln -s libmali-midgard-t76x-r14p0-r0p0-wayland.so libmali.so
|
||||
fi
|
||||
cd -
|
||||
|
||||
;;
|
||||
stop)
|
||||
printf "stop finished"
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
exit 0
|
||||
|
||||
BIN
overlay/px3seBase
Executable file
BIN
overlay/px3seBase
Executable file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue