Skip to content

Commit

Permalink
revert kernel 3.14 s9xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
150balbes committed Dec 1, 2018
1 parent fe2c0d5 commit 391ff61
Show file tree
Hide file tree
Showing 1,748 changed files with 21,800 additions and 9,877 deletions.
Binary file modified s9xxx/boot/aml_autoscript
Binary file not shown.
Binary file removed s9xxx/boot/boot.scr
Binary file not shown.
4,649 changes: 4,649 additions & 0 deletions s9xxx/boot/config-3.14.29

Large diffs are not rendered by default.

5,195 changes: 0 additions & 5,195 deletions s9xxx/boot/config-4.18.0-aml-s9xxx

This file was deleted.

27 changes: 0 additions & 27 deletions s9xxx/boot/create-mbr-linux.sh

This file was deleted.

Binary file added s9xxx/boot/dtb/gxbb_p200.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_p200_1G_100M.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_p200_1G_100M_RealtekWiFi.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_p200_1G_1Gbit.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_p200_1G_1Gbit_RealtekWiFi.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_p200_1G_mxq_pro_4k.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_p200_1G_wetek_hub.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_p200_2G.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_p200_2G_100M.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_p200_2G_100M_RealtekWiFi.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_p200_2G_1Gbit.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_p200_2G_1Gbit_OTG_Port.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_p200_2G_1Gbit_RealtekWiFi.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_p200_2G_m8s+_k3_pro.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_p200_2G_minix_neo_u1.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_p200_2G_wetek_play_2.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_p200_k1_plus.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_p200_k2_pro.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_p201.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_p201_2G.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxbb_skt.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_p212_1g.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_p212_1g_AB.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_p212_1g_coowell_v5.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_p212_1g_lepotato.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_p212_1g_nand.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_p212_1g_slowemmc.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_p212_2g.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_p212_2g_AB.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_p212_2g_kvim.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_p212_2g_lepotato.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_p212_2g_nand.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_p212_2g_slowemmc.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_p212_3g.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_p230_2g.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_p230_k1_pro.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_p231_1g.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_p231_1g_dvb.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_p231_2g.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_p231_2g_dvb.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_pxp.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxl_skt.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxm_kvim2.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxm_q200_1g.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxm_q200_2g.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxm_q200_2g_minix_neo_u9.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxm_q200_3g.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxm_q200_k3_pro.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxm_q201_1g.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxm_q201_2g.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxm_q201_3g.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxm_skt.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxtvbb_9023_skt.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxtvbb_p300.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxtvbb_p301.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxtvbb_p310.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxtvbb_p311.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxtvbb_pxp.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxtvbb_skt.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/gxtvbb_t966_skt.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/kvim.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/kvim2_android.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/kvim2_linux.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/kvim2_multios.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/kvim_android.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/kvim_linux.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/kvim_multios.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-axg-s400.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxbb-nanopi-k2.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxbb-nexbox-a95x.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxbb-odroidc2.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxbb-p200.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxbb-p201.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxbb-vega-s95-meta.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxbb-vega-s95-pro.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxbb-vega-s95-telos.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxbb-wetek-hub.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxbb-wetek-play2.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxl-s805x-p241.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxl-s905d-p230.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxl-s905d-p231.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxl-s905w-p281.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxl-s905w-tx3-mini.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxl-s905x-hwacom-amazetv.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxl-s905x-khadas-vim.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxl-s905x-libretech-cc.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxl-s905x-nexbox-a95x.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxl-s905x-p212.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxm-khadas-vim2.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxm-nexbox-a1.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxm-q200.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxm-q201.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxm-rbox-pro.dtb
Binary file not shown.
Binary file removed s9xxx/boot/dtb/meson-gxm-vega-s96.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/odroidc2.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/txl_p320.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/txl_p321.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/txl_p321_512m.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/txl_p321_v2.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/txl_p341.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/txl_pxp.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/txl_skt.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/txl_t950_skt.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/txl_t960_p346.dtb
Binary file not shown.
Binary file added s9xxx/boot/dtb/txl_t960_skt.dtb
Binary file not shown.
Binary file removed s9xxx/boot/emmc_autoscript
Binary file not shown.
Binary file removed s9xxx/boot/s905_autoscript
Binary file not shown.
9 changes: 9 additions & 0 deletions s9xxx/boot/s905_autoscript.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
setenv env_addr "0x10400000"
setenv kernel_addr "0x11000000"
setenv initrd_addr "0x13000000"
setenv boot_start booti ${kernel_addr} ${initrd_addr} ${dtb_mem_addr}
if fatload mmc 0 ${kernel_addr} zImage; then if fatload mmc 0 ${initrd_addr} uInitrd; then if fatload mmc 0 ${env_addr} uEnv-volumio.ini; then env import -t ${env_addr} ${filesize};fi; if fatload mmc 0 ${dtb_mem_addr} dtb.img; then run boot_start; else store dtb read ${dtb_mem_addr}; run boot_start;fi;fi;fi;
if fatload usb 0 ${kernel_addr} zImage; then if fatload usb 0 ${initrd_addr} uInitrd; then if fatload usb 0 ${env_addr} uEnv-volumio.ini; then env import -t ${env_addr} ${filesize};fi; if fatload usb 0 ${dtb_mem_addr} dtb.img; then run boot_start; else store dtb read ${dtb_mem_addr}; run boot_start;fi;fi;fi;
if fatload usb 1 ${kernel_addr} zImage; then if fatload usb 1 ${initrd_addr} uInitrd; then if fatload usb 1 ${env_addr} uEnv-volumio.ini; then env import -t ${env_addr} ${filesize};fi; if fatload usb 1 ${dtb_mem_addr} dtb.img; then run boot_start; else store dtb read ${dtb_mem_addr}; run boot_start;fi;fi;fi;
if fatload usb 2 ${kernel_addr} zImage; then if fatload usb 2 ${initrd_addr} uInitrd; then if fatload usb 2 ${env_addr} uEnv-volumio.ini; then env import -t ${env_addr} ${filesize};fi; if fatload usb 2 ${dtb_mem_addr} dtb.img; then run boot_start; else store dtb read ${dtb_mem_addr}; run boot_start;fi;fi;fi;
if fatload usb 3 ${kernel_addr} zImage; then if fatload usb 3 ${initrd_addr} uInitrd; then if fatload usb 3 ${env_addr} uEnv-volumio.ini; then env import -t ${env_addr} ${filesize};fi; if fatload usb 3 ${dtb_mem_addr} dtb.img; then run boot_start; else store dtb read ${dtb_mem_addr}; run boot_start;fi;fi;fi;
1 change: 1 addition & 0 deletions s9xxx/boot/uEnv-volumio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bootargs=imgpart=LABEL=volumio imgfile=/volumio_current.sqsh bootpart=LABEL=BOOT datapart=LABEL=volumio_data rootwait rw console=ttyS0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 mac=${mac} bootdelay=5
Binary file added s9xxx/boot/volumio_emmc.scr
Binary file not shown.
Binary file modified s9xxx/boot/zImage
Binary file not shown.
87 changes: 87 additions & 0 deletions s9xxx/etc/fan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
#!/bin/sh

T_AUTO=true

T_MIN=30000
T_MIDI=60000
T_MAX=70000

TIMER_SEC=2
TIMER_W=2

K_VER=`uname -r`

if [ $K_VER = "3.14.29" ]; then
echo "kernel 3.14.29"
PIN1=218
PIN2=219
elif [ $K_VER = "4.9.26" ]; then
echo "kernel 4.9.26"
PIN1=73
PIN2=74
elif [ $K_VER = "4.9.40" ]; then
echo "kernel 4.9.40"
PIN1=74
PIN2=75
fi

echo $PIN1 > /sys/class/gpio/export
echo $PIN2 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio$PIN1/direction
echo out > /sys/class/gpio/gpio$PIN2/direction

#test fan
# enable min
echo 1 > /sys/class/gpio/gpio$PIN1/value
echo 0 > /sys/class/gpio/gpio$PIN2/value
sleep 2
# enable midi
echo 0 > /sys/class/gpio/gpio$PIN1/value
echo 1 > /sys/class/gpio/gpio$PIN2/value
sleep 2
# enable max
echo 1 > /sys/class/gpio/gpio$PIN1/value
echo 1 > /sys/class/gpio/gpio$PIN2/value
sleep 2
# stop
echo 0 > /sys/class/gpio/gpio$PIN1/value
echo 0 > /sys/class/gpio/gpio$PIN2/value
sleep 2

if [ $T_AUTO = true ]; then

K_TEMPER=`cat /sys/class/thermal/thermal_zone0/temp`
#echo "Start " $K_TEMPER

while true
do
sleep $TIMER_SEC
K_TEMPER_NEW=`cat /sys/class/thermal/thermal_zone0/temp`
# echo $K_TEMPER_NEW

if [ $K_TEMPER_NEW != $K_TEMPER ]; then
if [ $K_TEMPER_NEW -ge $T_MAX ]; then
echo 1 > /sys/class/gpio/gpio$PIN1/value
echo 1 > /sys/class/gpio/gpio$PIN2/value
K_TEMPER=$K_TEMPER_NEW
sleep $TIMER_W
elif [ $K_TEMPER_NEW -ge $T_MIDI ]; then
echo 0 > /sys/class/gpio/gpio$PIN1/value
echo 1 > /sys/class/gpio/gpio$PIN2/value
K_TEMPER=$K_TEMPER_NEW
sleep $TIMER_W
elif [ $K_TEMPER_NEW -ge $T_MIN ]; then
echo 1 > /sys/class/gpio/gpio$PIN1/value
echo 0 > /sys/class/gpio/gpio$PIN2/value
K_TEMPER=$K_TEMPER_NEW
sleep $TIMER_W
else
echo 0 > /sys/class/gpio/gpio$PIN1/value
echo 0 > /sys/class/gpio/gpio$PIN2/value
K_TEMPER=$K_TEMPER_NEW
sleep $TIMER_W
fi
fi
done

fi
32 changes: 32 additions & 0 deletions s9xxx/etc/fw_env.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Configuration file for fw_(printenv/setenv) utility.
# Up to two entries are valid, in this case the redundant
# environment sector is assumed present.
# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.
# Futhermore, if the Flash sector size is ommitted, this value is assumed to
# be the same as the Environment size, which is valid for NOR and SPI-dataflash

# NOR example
# MTD device name Device offset Env. size Flash sector size Number of sectors
#/dev/mtd1 0x0000 0x4000 0x4000
#/dev/mtd2 0x0000 0x4000 0x4000

# MTD SPI-dataflash example
# MTD device name Device offset Env. size Flash sector size Number of sectors
#/dev/mtd5 0x4200 0x4200
#/dev/mtd6 0x4200 0x4200

# NAND example
#/dev/mtd0 0x4000 0x4000 0x20000 2

# Block device example
#/dev/mmcblk0 0xc0000 0x20000

# VFAT example
#/boot/uboot.env 0x0000 0x4000

# Amlogic NAND
#/dev/nand_env 0x000000 0x10000 0x10000

# Amlogic eMMC
/dev/env 0x000000 0x10000 0x10000
#/dev/mtd1 0x000000 0x10000 0x01000
40 changes: 40 additions & 0 deletions s9xxx/etc/hdmi.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/sh

#bpp=32
bpp=24

#mode=1080p60hz
mode=720p60hz

case $mode in
1080*)
fbset -fb /dev/fb0 -g 1920 1080 1920 2160 $bpp
fbset -fb /dev/fb1 -g 32 32 32 32 32
echo $mode > /sys/class/display/mode
echo 0 > /sys/class/graphics/fb0/free_scale
echo 1 > /sys/class/graphics/fb0/freescale_mode
echo 0 0 1919 1079 > /sys/class/graphics/fb0/free_scale_axis
echo 0 0 1919 1079 > /sys/class/graphics/fb0/window_axis
echo 0 > /sys/class/graphics/fb1/free_scale
;;
*)
fbset -fb /dev/fb0 -g 1280 720 1280 1440 $bpp
fbset -fb /dev/fb1 -g 32 32 32 32 32
echo $mode > /sys/class/display/mode
echo 0 > /sys/class/graphics/fb0/free_scale
echo 1 > /sys/class/graphics/fb0/freescale_mode
echo 0 0 1279 719 > /sys/class/graphics/fb0/free_scale_axis
echo 0 0 1279 719 > /sys/class/graphics/fb0/window_axis
echo 0 > /sys/class/graphics/fb1/free_scale
;;
esac

# Enable framebuffer device
echo 0 > /sys/class/graphics/fb0/blank

# Blank fb1 to prevent static noise
echo 1 > /sys/class/graphics/fb1/blank

#echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink

#su -c 'hciattach /dev/ttyS1 any'
Binary file added s9xxx/lib/firmware/BCM4345C0.hcd
Binary file not shown.
Loading

0 comments on commit 391ff61

Please sign in to comment.