added i2c_mangle.ko, ethtool, change AXE modules loading

This commit is contained in:
Jaroslav Kysela
2015-04-20 15:43:32 +02:00
parent bc5a8c6301
commit fc81c50197
7 changed files with 254 additions and 17 deletions

View File

@@ -2,9 +2,15 @@
# SATIP AXE firmware configuration
#
CFGVER="8"
HOSTNAME="satip-axe"
KMODULES="drivers/usb/serial/cp210x.ko drivers/usb/serial/pl2303.ko drivers/usb/serial/ftdi_sio.ko"
#
# STV6210 baseband amplifier gain (0dB .. 16dB - 2dB step)
#
STV6210_BAMP="16dB"
#
# ttyUSB names
#

View File

@@ -54,12 +54,14 @@ fi
ifconfig lo 127.0.0.1 netmask 255.255.255.0
# AXE modules and AXE hw initialization
sync
logger -p local0.notice "AXE drivers load start"
axehelper i2c_reg_read 0xd0 0xf000 > /dev/null 2> /dev/null || logger -p local0.notice "I2C Demod #1(D0) failed"
axehelper i2c_reg_read 0xd2 0xf000 > /dev/null 2> /dev/null || logger -p local0.notice "I2C Demod #2(D2) failed"
d=/lib/modules/axe
insmod $d/stapi_core_stripped.ko
insmod $d/stapi_ioctl_stripped.ko
insmod $d/axe_i2c.ko
echo "i2c_dbg_trans 1" > /proc/bus/ivo_i2c
insmod $d/i2c_mangle.ko
insmod $d/axe_fe.ko
insmod $d/axe_fp.ko
insmod $d/axe_dmx.ko
@@ -102,11 +104,9 @@ for i in $(cat /proc/devices); do
maj=
done
/etc/init.d/axe &
axehelper wait 5000 -10 /tmp/axe-done
axehelper wait 2000 -10
#nc -l 127.0.0.1:1001 -e /bin/true
nc -l 127.0.0.1:1001 -e /bin/true
rm -f /root/main_init.sh /tmp/axe-done
echo "i2c_dbg_trans 0" > /proc/bus/ivo_i2c
logger -p local0.notice "AXE drivers load finish"
# hostname
test -r /etc/sysconfig/config && . /etc/sysconfig/config

View File

@@ -6,12 +6,16 @@ if test "$MINISATIP" != "yes"; then
exit 0
fi
. /etc/init.d/axe-settings
# renice kernel demuxers
a=""
for i in $(ps -o pid,nice,comm | grep "kdmxts_64" | cut -d 'k' -f 1); do
if test "$i" -gt 15; then a="$a $i"; fi
done
renice -15 $a
if test "$DEMUXERS_RENICE" = "yes"; then
a=""
for i in $(ps -o pid,nice,comm | grep "kdmxts_64" | cut -d 'k' -f 1); do
if test "$i" -gt 15; then a="$a $i"; fi
done
renice -15 $a
fi
cd /tmp
while test ! -f /tmp/nosatip; do
@@ -20,8 +24,8 @@ while test ! -f /tmp/nosatip; do
done
. /etc/sysconfig/config
nice -5 minisatip -f -g $MINISATIP_OPTS
logger "minisatip exited $?, restarting"
logger -p local0.notice "minisatip exited $?, restarting"
if test -f /tmp/nosatip; then
sleep 87323123
fi
done
if test -f /tmp/nosatip; then
sleep 87323123
fi