Added fixes regarding Lemaker Guitar

This commit is contained in:
Igor Pečovnik
2015-12-27 19:28:10 +01:00
parent 696ddcd4bd
commit e10e5f0991
4 changed files with 14 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
setenv bootargs "earlyprintk clk_ignore_unused selinux=0 scandelay root=/dev/mmcblk1p2 rw console=tty0 rootfstype=ext4 console=ttyS3 loglevel=4 rootwait"
setenv bootargs "earlyprintk clk_ignore_unused selinux=0 scandelay root=/dev/mmcblk0p2 rw console=tty0 rootfstype=ext4 console=ttyS3 loglevel=1 rootwait"
setenv os_type linux
fatload mmc 0:1 0x04000000 dtb/lemaker_guitar_bbb.dtb
fatload mmc 0:1 0x7fc0 zImage

View File

@@ -248,7 +248,7 @@
OFFSET="16"
BOOTSIZE="16"
BOOTCONFIG="s500_defconfig"
MODULES="ethernet wlan_8723bs bonding"
MODULES="ethernet wlan_8723bs"
MODULES_NEXT=""
SERIALCON="ttyS3"
;;

View File

@@ -48,6 +48,10 @@ if [ "$ARCH" = "armv7l" ]; then
if [ $HARDWARE = "ODROID-XU3" ]; then
ID="Odroid"
fi
if [ $HARDWARE = "gs705a" ]; then
ID="Guitar"
fi
if [ $HARDWARE = "sun4i" ] || [ $HARDWARE = "Allwinner" ]; then
ID="Cubieboard"
fi

View File

@@ -46,6 +46,12 @@ TEMP=$(cat /sys/devices/virtual/thermal/thermal_zone0/temp)
TEMP=$(echo "scale=1;${TEMP}/1000" | bc)
fi
# thermal zone on lemaker guitar
if [[ -d "/sys/devices/virtual/thermal/thermal_zone1/" && $TEMP == "0" ]]; then
TEMP=$(cat /sys/devices/virtual/thermal/thermal_zone1/temp)
TEMP=$(echo "scale=1;${TEMP}/1000" | bc)
fi
if [[ -n $TEMP ]]; then
OUT="${OUT}- Board: ${TEMP}${CEL} "
fi