-
-
Notifications
You must be signed in to change notification settings - Fork 129
Add t31_lite_zte-k545 device profile (ZTE K545, SC4336, ATBM6012B Wi-Fi) #151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tagbug
wants to merge
1
commit into
OpenIPC:master
Choose a base branch
from
tagbug:device/t31_lite_zte-k545
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
71 changes: 71 additions & 0 deletions
71
devices/t31_lite_zte-k545/br-ext-chip-ingenic/configs/t31_lite_zte-k545_defconfig
This file contains hidden or 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,71 @@ | ||
| # Architecture | ||
| BR2_mipsel=y | ||
| BR2_mips_xburst=y | ||
| # BR2_MIPS_SOFT_FLOAT is not set | ||
| BR2_MIPS_FP32_MODE_32=y | ||
|
|
||
| # Toolchain | ||
| BR2_TOOLCHAIN_EXTERNAL=y | ||
| BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y | ||
| BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y | ||
| BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/openipc/firmware/releases/download/$(OPENIPC_TOOLCHAIN).tgz" | ||
| BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="mipsel-openipc-linux-musl" | ||
| BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_10=y | ||
| BR2_TOOLCHAIN_EXTERNAL_CUSTOM_MUSL=y | ||
| BR2_TOOLCHAIN_EXTERNAL_CXX=y | ||
|
|
||
| # Kernel | ||
| BR2_LINUX_KERNEL=y | ||
| BR2_LINUX_KERNEL_CUSTOM_TARBALL=y | ||
| BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/openipc/linux/archive/$(OPENIPC_KERNEL).tar.gz" | ||
| BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y | ||
| BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(EXTERNAL_VENDOR)/board/$(OPENIPC_SOC_FAMILY)/t31.generic.config" | ||
| BR2_LINUX_KERNEL_LZMA=y | ||
|
|
||
| # Filesystem | ||
| BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL)/package/busybox/busybox.config" | ||
| BR2_PACKAGE_UBOOT_TOOLS=y | ||
| BR2_PACKAGE_ZLIB=y | ||
| # BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set | ||
| # BR2_PACKAGE_WIREGUARD_LINUX_COMPAT is not set | ||
| # BR2_PACKAGE_WIREGUARD_TOOLS is not set | ||
| BR2_PACKAGE_WIRELESS_TOOLS=y | ||
| BR2_PACKAGE_WPA_SUPPLICANT=y | ||
| BR2_PACKAGE_WPA_SUPPLICANT_CLI=y | ||
| BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y | ||
| BR2_TARGET_ROOTFS_CPIO=y | ||
| BR2_TARGET_ROOTFS_SQUASHFS=y | ||
| BR2_TARGET_ROOTFS_SQUASHFS4_XZ=y | ||
|
|
||
| # OpenIPC | ||
| BR2_OPENIPC_SOC_VENDOR="ingenic" | ||
| BR2_OPENIPC_SOC_MODEL="t31" | ||
| BR2_OPENIPC_SOC_FAMILY="t31" | ||
| BR2_OPENIPC_SNS_MODEL="sc4336" | ||
| BR2_OPENIPC_VARIANT="lite" | ||
| BR2_OPENIPC_FLASH_SIZE="8" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2. Firmware targets wrong flash size BR2_OPENIPC_FLASH_SIZE is set to 8 even though the newly documented K545 hardware has 16 MiB NOR flash. Every build selected through this defconfig therefore uses an 8 MiB target for the 16 MiB board, propagating the incorrect capacity into firmware generation. Agent Prompt
|
||
|
|
||
| # Packages | ||
| BR2_PACKAGE_ATBM60XX=y | ||
| BR2_PACKAGE_ATBM60XX_MODEL_603X=y | ||
| BR2_PACKAGE_DROPBEAR_OPENIPC=y | ||
| BR2_PACKAGE_INGENIC_OSDRV_T31=y | ||
| BR2_PACKAGE_IPCTOOL=y | ||
| BR2_PACKAGE_LIBCURL_OPENIPC=y | ||
| BR2_PACKAGE_LIBCURL_OPENIPC_CURL=y | ||
| # BR2_PACKAGE_LIBCURL_OPENIPC_PROXY_SUPPORT is not set | ||
| # BR2_PACKAGE_LIBCURL_OPENIPC_COOKIES_SUPPORT is not set | ||
| # BR2_PACKAGE_LIBCURL_OPENIPC_EXTRA_PROTOCOLS_FEATURES is not set | ||
| BR2_PACKAGE_LIBEVENT_OPENIPC=y | ||
| BR2_PACKAGE_LIBOGG_OPENIPC=y | ||
| BR2_PACKAGE_MAJESTIC_FONTS=y | ||
| BR2_PACKAGE_MAJESTIC_WEBUI=y | ||
| BR2_PACKAGE_MAJESTIC=y | ||
| BR2_PACKAGE_MBEDTLS_OPENIPC=y | ||
| # BR2_PACKAGE_MOTORS is not set | ||
| BR2_PACKAGE_GPIO_MOTORS=y | ||
| BR2_PACKAGE_OPUS_OPENIPC=y | ||
| BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT=y | ||
| # BR2_PACKAGE_QUIRC_OPENIPC=y | ||
| # BR2_PACKAGE_VTUND_OPENIPC is not set | ||
| BR2_PACKAGE_YAML_CLI=y | ||
50 changes: 50 additions & 0 deletions
50
devices/t31_lite_zte-k545/general/overlay/usr/share/openipc/customizer.sh
This file contains hidden or 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,50 @@ | ||
| #!/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-k545-nor.tgz' | ||
| # | ||
| # | ||
| # Set custom majestic settings | ||
| # | ||
| cli -s .nightMode.irCutPin1 57 | ||
| cli -s .nightMode.irCutPin2 58 | ||
| cli -s .nightMode.colorToGray true | ||
| cli -s .nightMode.backlightPin 11 | ||
| cli -s .video0.codec h264 | ||
| cli -s .audio.speakerPin 64 | ||
| cli -s .audio.speakerPinInvert true | ||
| # | ||
| # | ||
| # Set wlan device and credentials if need | ||
|
|
||
| # | ||
| fw_setenv wlandev atbm603x-t31-zte-k540 | ||
| #fw_setenv wlanssid Router | ||
| #fw_setenv wlanpass 12345678 | ||
| # | ||
| # | ||
| # Set ptz motor pins | ||
| # | ||
| fw_setenv ptz_control gpio | ||
| fw_setenv ptz_gpio '49 63 62 61 59 52 53 54' | ||
| # | ||
| # | ||
| # Set osmem and rmem | ||
| # | ||
| fw_setenv osmem 64M | ||
| fw_setenv rmem 64M@0x4000000 | ||
| # | ||
| # Status LEDs (active low: 0 = on, 1 = off): | ||
| # Blue: GPIO 10 | ||
| # Red: GPIO 16 | ||
| # Green: GPIO 17 | ||
| # | ||
| # Example to turn on green LED on boot: | ||
| # echo 17 > /sys/class/gpio/export 2>/dev/null | ||
| # echo out > /sys/class/gpio/gpio17/direction 2>/dev/null | ||
| # echo 0 > /sys/class/gpio/gpio17/value 2>/dev/null | ||
| # | ||
| exit 0 | ||
13 changes: 13 additions & 0 deletions
13
...1_lite_zte-k545/general/package/all-patches/linux/0001-change-mmc-detect-gpio-to-50.patch
This file contains hidden or 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,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 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. New camera lacks filesystem exclusions
📘 Rule violation≡ CorrectnessAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools