mirror of
https://github.com/nikdoof/builder.git
synced 2025-12-13 23:52:17 +00:00
add zte k540 (#9)
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
#
|
||||
Experimental system for building OpenIPC firmware for known devices
|
||||
#
|
||||
12
devices/t31_lite_zte-k540/general/overlay/etc/wireless/usb
Executable file
12
devices/t31_lite_zte-k540/general/overlay/etc/wireless/usb
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
set_gpio() {
|
||||
[ "$2" -eq 1 ] && gpio set $1 || gpio clear $1
|
||||
sleep 1
|
||||
}
|
||||
|
||||
if [ "$1" = "atbm603x_wifi_usb" ]; then
|
||||
set_gpio 51 0
|
||||
modprobe atbm603x_wifi_usb
|
||||
exit 0
|
||||
fi
|
||||
@@ -0,0 +1,33 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Perform basic settings on a known IP camera
|
||||
#
|
||||
#
|
||||
# Set custom upgrade url
|
||||
#
|
||||
fw_setenv upgrade 'https://github.com/OpenIPC/builder/releases/download/latest/t31_lite_zte-k540-nor.tgz'
|
||||
#
|
||||
#
|
||||
# Set custom majestic settings
|
||||
#
|
||||
cli -s .nightMode.enabled true
|
||||
cli -s .nightMode.irCutPin1 57
|
||||
cli -s .nightMode.irCutPin2 58
|
||||
cli -s .nightMode.backlightPin 11
|
||||
cli -s .video0.codec h264
|
||||
cli -s .audio.speakerPin 64
|
||||
#
|
||||
#
|
||||
# Set wlan device and credentials if need
|
||||
#
|
||||
fw_setenv wlandev atbm603x_wifi_usb
|
||||
#fw_setenv wlanssid Router
|
||||
#fw_setenv wlanpass 12345678
|
||||
#
|
||||
#
|
||||
# Set osmem and rmem
|
||||
#
|
||||
fw_setenv osmem 64M
|
||||
fw_setenv rmem 64M@0x4000000
|
||||
#
|
||||
exit 0
|
||||
@@ -0,0 +1,9 @@
|
||||
diff --git a/kernel/sensors/t31/Kbuild b/kernel/sensors/t31/Kbuild
|
||||
index caf668b..07367bb 100644
|
||||
--- a/kernel/sensors/t31/Kbuild
|
||||
+++ b/kernel/sensors/t31/Kbuild
|
||||
@@ -18,3 +18,4 @@ include $(src)/sensors/$(SOC)/sc2336/Kbuild
|
||||
include $(src)/sensors/$(SOC)/sc3338/Kbuild
|
||||
include $(src)/sensors/$(SOC)/sc5235/Kbuild
|
||||
include $(src)/sensors/$(SOC)/sc4236/Kbuild
|
||||
+include $(src)/sensors/$(SOC)/sc4336/Kbuild
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git a/arch/mips/xburst/soc-t31/chip-t31/isvp/Swan/board.h b/arch/mips/xburst/soc-t31/chip-t31/isvp/Swan/board.h
|
||||
index d9058e1271..b53c252c64 100644
|
||||
--- a/arch/mips/xburst/soc-t31/chip-t31/isvp/Swan/board.h
|
||||
+++ b/arch/mips/xburst/soc-t31/chip-t31/isvp/Swan/board.h
|
||||
@@ -32,7 +32,7 @@
|
||||
/* ****************************GPIO MMC START******************************** */
|
||||
#define GPIO_MMC_RST_N -1
|
||||
#define GPIO_MMC_RST_N_LEVEL LOW_ENABLE
|
||||
-#define GPIO_MMC_CD_N GPIO_PB(27)
|
||||
+#define GPIO_MMC_CD_N GPIO_PB(18)
|
||||
#define GPIO_MMC_CD_N_LEVEL LOW_ENABLE
|
||||
#define GPIO_MMC_PWR -1
|
||||
#define GPIO_MMC_PWR_LEVEL HIGH_ENABLE
|
||||
@@ -0,0 +1,30 @@
|
||||
################################################################################
|
||||
#
|
||||
# ingenic-osdrv-t31
|
||||
#
|
||||
################################################################################
|
||||
|
||||
INGENIC_OSDRV_T31_VERSION =
|
||||
INGENIC_OSDRV_T31_SITE =
|
||||
INGENIC_OSDRV_T31_LICENSE = MIT
|
||||
INGENIC_OSDRV_T31_LICENSE_FILES = LICENSE
|
||||
|
||||
define INGENIC_OSDRV_T31_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 755 -d $(TARGET_DIR)/etc/sensor
|
||||
$(INSTALL) -m 644 -t $(TARGET_DIR)/etc/sensor $(INGENIC_OSDRV_T31_PKGDIR)/files/sensor/*.yaml
|
||||
# $(INSTALL) -m 644 -t $(TARGET_DIR)/etc/sensor $(INGENIC_OSDRV_T31_PKGDIR)/files/sensor/params/*.bin
|
||||
|
||||
$(INSTALL) -m 644 -t $(TARGET_DIR)/etc/sensor $(INGENIC_OSDRV_T31_PKGDIR)/files/sensor/params/sc4336-t31.bin
|
||||
|
||||
# Modules for T31 are built from the openingenic repository sources, so we don't need to copy them.
|
||||
# $(INSTALL) -m 755 -d $(TARGET_DIR)/lib/modules/3.10.14__isvp_swan_1.0__/ingenic
|
||||
# $(INSTALL) -m 644 -t $(TARGET_DIR)/lib/modules/3.10.14__isvp_swan_1.0__/ingenic $(INGENIC_OSDRV_T31_PKGDIR)/files/kmod/*.ko
|
||||
|
||||
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin
|
||||
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(INGENIC_OSDRV_T31_PKGDIR)/files/script/load*
|
||||
|
||||
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/lib
|
||||
$(INSTALL) -m 644 -t $(TARGET_DIR)/usr/lib/ $(INGENIC_OSDRV_T31_PKGDIR)/files/lib/*.so
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1,70 @@
|
||||
/etc/sensor/gc2053-t31.bin
|
||||
/etc/sensor/gc2083-t31.bin
|
||||
/etc/sensor/gc4023-t31.bin
|
||||
/etc/sensor/gc4653-t31.bin
|
||||
/etc/sensor/imx307-t31.bin
|
||||
/etc/sensor/imx327-t31.bin
|
||||
/etc/sensor/jxf37-t31.bin
|
||||
/etc/sensor/jxh62-t31.bin
|
||||
/etc/sensor/jxq03-t31.bin
|
||||
/etc/sensor/jxq03p-t31.bin
|
||||
/etc/sensor/os03b10-t31.bin
|
||||
/etc/sensor/sc200ai-t31.bin
|
||||
/etc/sensor/sc2232h-t31.bin
|
||||
/etc/sensor/sc2335-t31.bin
|
||||
/etc/sensor/sc2336-t31.bin
|
||||
/etc/sensor/sc3335-t31.bin
|
||||
/etc/sensor/sc3338-t31.bin
|
||||
/etc/sensor/sc4236-t31.bin
|
||||
/etc/sensor/sc5235-t31.bin
|
||||
#
|
||||
/etc/sensor/gc2053.yaml
|
||||
/etc/sensor/gc2083.yaml
|
||||
/etc/sensor/gc4023.yaml
|
||||
/etc/sensor/gc4653.yaml
|
||||
/etc/sensor/imx307.yaml
|
||||
/etc/sensor/imx327.yaml
|
||||
/etc/sensor/imx335.yaml
|
||||
/etc/sensor/jxf22.yaml
|
||||
/etc/sensor/jxf23.yaml
|
||||
/etc/sensor/jxf37.yaml
|
||||
/etc/sensor/jxh42.yaml
|
||||
/etc/sensor/jxh62.yaml
|
||||
/etc/sensor/jxh63.yaml
|
||||
/etc/sensor/jxk04.yaml
|
||||
/etc/sensor/jxq03.yaml
|
||||
/etc/sensor/jxq03p.yaml
|
||||
/etc/sensor/os03b10.yaml
|
||||
/etc/sensor/ov2735.yaml
|
||||
/etc/sensor/ov2735b.yaml
|
||||
/etc/sensor/ov4689.yaml
|
||||
/etc/sensor/ps5260.yaml
|
||||
/etc/sensor/sc200ai.yaml
|
||||
/etc/sensor/sc2232.yaml
|
||||
/etc/sensor/sc2232h.yaml
|
||||
/etc/sensor/sc2335.yaml
|
||||
/etc/sensor/sc2336.yaml
|
||||
/etc/sensor/sc3335.yaml
|
||||
/etc/sensor/sc3338.yaml
|
||||
/etc/sensor/sc4236.yaml
|
||||
/etc/sensor/sc5235.yaml
|
||||
#
|
||||
/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_gc2053_t31.ko
|
||||
/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_gc2083_t31.ko
|
||||
/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_gc4023_t31.ko
|
||||
/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_gc4653_t31.ko
|
||||
/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_imx307_t31.ko
|
||||
/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_imx327_t31.ko
|
||||
/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_jxf37_t31.ko
|
||||
/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_jxh62_t31.ko
|
||||
/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_jxh63_t31.ko
|
||||
/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_jxq03_t31.ko
|
||||
/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_jxq03p_t31.ko
|
||||
/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_os03b10_t31.ko
|
||||
/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc200ai_t31.ko
|
||||
/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc2232h_t31.ko
|
||||
/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc2335_t31.ko
|
||||
/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc2336_t31.ko
|
||||
/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc3338_t31.ko
|
||||
/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc4236_t31.ko
|
||||
/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc5235_t31.ko
|
||||
Reference in New Issue
Block a user