forked from Power535/platform-aml
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,748 changed files
with
21,800 additions
and
9,877 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Oops, something went wrong.