mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Added fixes regarding Lemaker Guitar
This commit is contained in:
@@ -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
|
setenv os_type linux
|
||||||
fatload mmc 0:1 0x04000000 dtb/lemaker_guitar_bbb.dtb
|
fatload mmc 0:1 0x04000000 dtb/lemaker_guitar_bbb.dtb
|
||||||
fatload mmc 0:1 0x7fc0 zImage
|
fatload mmc 0:1 0x7fc0 zImage
|
||||||
|
|||||||
@@ -248,7 +248,7 @@
|
|||||||
OFFSET="16"
|
OFFSET="16"
|
||||||
BOOTSIZE="16"
|
BOOTSIZE="16"
|
||||||
BOOTCONFIG="s500_defconfig"
|
BOOTCONFIG="s500_defconfig"
|
||||||
MODULES="ethernet wlan_8723bs bonding"
|
MODULES="ethernet wlan_8723bs"
|
||||||
MODULES_NEXT=""
|
MODULES_NEXT=""
|
||||||
SERIALCON="ttyS3"
|
SERIALCON="ttyS3"
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -46,8 +46,12 @@ done
|
|||||||
|
|
||||||
if [ "$ARCH" = "armv7l" ]; then
|
if [ "$ARCH" = "armv7l" ]; then
|
||||||
if [ $HARDWARE = "ODROID-XU3" ]; then
|
if [ $HARDWARE = "ODROID-XU3" ]; then
|
||||||
ID="Odroid"
|
ID="Odroid"
|
||||||
fi
|
fi
|
||||||
|
if [ $HARDWARE = "gs705a" ]; then
|
||||||
|
ID="Guitar"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $HARDWARE = "sun4i" ] || [ $HARDWARE = "Allwinner" ]; then
|
if [ $HARDWARE = "sun4i" ] || [ $HARDWARE = "Allwinner" ]; then
|
||||||
ID="Cubieboard"
|
ID="Cubieboard"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -46,6 +46,12 @@ TEMP=$(cat /sys/devices/virtual/thermal/thermal_zone0/temp)
|
|||||||
TEMP=$(echo "scale=1;${TEMP}/1000" | bc)
|
TEMP=$(echo "scale=1;${TEMP}/1000" | bc)
|
||||||
fi
|
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
|
if [[ -n $TEMP ]]; then
|
||||||
OUT="${OUT}- Board: ${TEMP}${CEL} "
|
OUT="${OUT}- Board: ${TEMP}${CEL} "
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user