Skip to content

Commit

Permalink
update driver * solve the T2 problem * solve dual problem
Browse files Browse the repository at this point in the history
  • Loading branch information
arn354 authored and captain committed Nov 21, 2019
1 parent 75e71df commit 011cb2c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require gigablue-platform-util.inc

SRCDATE = "20190502.r1"
SRCDATE = "20191121.r0"

KV = "4.1.20"

SRC_URI[md5sum] = "2839b9d8908e7eb10ea63b0e1824e73d"
SRC_URI[sha256sum] = "2257a9ea46adf82dcad96be6cc06e012614e42f595d683af3cc20ad8a50747e3"
SRC_URI[md5sum] = "dec2146a3174ed1bda3101bad56ed293"
SRC_URI[sha256sum] = "482e722075b645c78cf0d4c6d033a18fe918172544ec91d1289da0cab1e8a2b8"
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ fi

if [ -d /home/root/platform ]; then
echo -n "Updating gigablue-platform-util..."
if [ -d /usr/share/platform ]; then
rm -rf /usr/share/platform
fi
mv -f /home/root/platform /usr/share/
chmod +x /usr/share/platform/*
mv -f /usr/share/platform/*.so /usr/lib
if [ -e /usr/share/platform/config ]; then
mv -f /usr/share/platform/config /usr/bin
fi
mkdir -p /lib/modules/4.1.20-1.9/extra/
mkdir -p /usr/share/platform/
chmod +x /home/root/platform/*
cp -rf /home/root/platform/* /usr/share/platform/
cp -rf /usr/share/platform/*.ko /lib/modules/4.1.20-1.9/extra/
cp -rf /usr/share/platform/*.so /usr/lib/
ln -sf /usr/share/platform/config /usr/bin/config
ln -sf /usr/share/platform/dvb_init /usr/bin/dvb_init
ln -sf /usr/share/platform/nxserver /usr/bin/nxserver
rm -rf /home/root/platform/
sync
echo -n "gigablue-platform-util updated!"
fi
Expand All @@ -33,27 +34,16 @@ case "$1" in
[ -f /etc/dropbear/dropbear_rsa_host_key ]
echo -n "Starting gigablue-platform-util..."

if [ ! -e /tmp/nxserver_is_running ]; then
export PATH=.:$PATH
export B_REFSW_BOXMODE=5
insmod /usr/share/platform/nexus.ko
cd /usr/share/platform/
usleep 1000
./nxserver -maxDataRate 108 -remux -fbsize 1920,1080 &
while [ ! -e /tmp/nxserver_is_running ]; do
usleep 1000
done
fi
DRV_PATH=/lib/modules/4.1.20-1.9/extra
export B_REFSW_BOXMODE=5

if [ ! -e /tmp/dvb_init_is_running ]; then
insmod /usr/share/platform/dvb.ko
./dvb_init.bin &
while [ ! -e /tmp/dvb_init_is_running ]; do
usleep 1000
done
if [ ! -e /tmp/nxserver_ipc ]; then
insmod $DRV_PATH/nexus.ko
/usr/bin/nxserver &
/usr/bin/dvb_init $DRV_PATH/dvb.ko &
fi

while [ ! -e /proc/stb/info/chipset ]; do
while [ ! -c /dev/fb0 ]; do
usleep 1000
done

Expand Down

0 comments on commit 011cb2c

Please sign in to comment.