Kernel too big
This commit is contained in:
parent
d1734d7e96
commit
6b42235772
5446
.config.csac
Normal file
5446
.config.csac
Normal file
File diff suppressed because it is too large
Load Diff
@ -200,6 +200,11 @@ yuncore,a770)
|
|||||||
ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
|
ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
|
||||||
ucidef_set_led_switch "lan" "LAN" "$boardname:green:lan" "switch0" "0x10"
|
ucidef_set_led_switch "lan" "LAN" "$boardname:green:lan" "switch0" "0x10"
|
||||||
;;
|
;;
|
||||||
|
csac,III)
|
||||||
|
ucidef_set_led_switch "status" "STATUS" "csac:blue:sys" "switch0" "0x10"
|
||||||
|
ucidef_set_led_wlan "wlan5g" "WLAN5G" "csac:blue:wlan5g" "phy0tpt"
|
||||||
|
ucidef_set_led_wlan "wlan2g" "WLAN2G" "csac:blue:wlan2g" "phy1tpt"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
board_config_flush
|
board_config_flush
|
||||||
|
@ -123,6 +123,7 @@ ath79_setup_interfaces()
|
|||||||
iodata,wn-ac1600dgr|\
|
iodata,wn-ac1600dgr|\
|
||||||
iodata,wn-ac1600dgr2|\
|
iodata,wn-ac1600dgr2|\
|
||||||
iodata,wn-ag300dgr|\
|
iodata,wn-ag300dgr|\
|
||||||
|
csac,III|\
|
||||||
pcs,cr5000)
|
pcs,cr5000)
|
||||||
ucidef_add_switch "switch0" \
|
ucidef_add_switch "switch0" \
|
||||||
"0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
|
"0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
|
||||||
@ -355,6 +356,11 @@ ath79_setup_macs()
|
|||||||
wd,mynet-wifi-rangeextender)
|
wd,mynet-wifi-rangeextender)
|
||||||
lan_mac=$(nvram get et0macaddr)
|
lan_mac=$(nvram get et0macaddr)
|
||||||
;;
|
;;
|
||||||
|
xwrt,csac)
|
||||||
|
wan_mac=$(mtd_get_mac_binary art 0)
|
||||||
|
lan_mac=$(macaddr_add "$wan_mac" 1)
|
||||||
|
label_mac=$wan_mac
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac
|
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac
|
||||||
|
@ -189,6 +189,11 @@ case "$FIRMWARE" in
|
|||||||
ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
|
ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
|
||||||
/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
|
/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
|
||||||
;;
|
;;
|
||||||
|
csac,III)
|
||||||
|
ath10kcal_extract "art" 20480 12064
|
||||||
|
ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
|
||||||
|
/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
174
target/linux/ath79/dts/qca9563_csac_III.dts
Normal file
174
target/linux/ath79/dts/qca9563_csac_III.dts
Normal file
@ -0,0 +1,174 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||||
|
/dts-v1/;
|
||||||
|
|
||||||
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
#include <dt-bindings/input/input.h>
|
||||||
|
|
||||||
|
#include "qca956x.dtsi"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
model = "CSAC";
|
||||||
|
compatible = "csac,III", "qca,qca9563";
|
||||||
|
|
||||||
|
aliases {
|
||||||
|
led-boot = &led_sys;
|
||||||
|
led-failsafe = &led_sys;
|
||||||
|
led-running = &led_sys;
|
||||||
|
led-upgrade = &led_sys;
|
||||||
|
};
|
||||||
|
|
||||||
|
chosen {
|
||||||
|
bootargs = "console=ttyS0,115200n8";
|
||||||
|
};
|
||||||
|
|
||||||
|
leds {
|
||||||
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
|
led_sys: sys {
|
||||||
|
label = "csac:blue:sys";
|
||||||
|
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
|
wlan2g {
|
||||||
|
label = "csac:blue:wlan2g";
|
||||||
|
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
|
wlan5g {
|
||||||
|
label = "csac:blue:wlan5g";
|
||||||
|
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
keys {
|
||||||
|
compatible = "gpio-keys";
|
||||||
|
|
||||||
|
reset {
|
||||||
|
linux,code = <KEY_RESTART>;
|
||||||
|
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
||||||
|
debounce-interval = <60>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&gpio {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&pcie {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&spi {
|
||||||
|
num-cs = <1>;
|
||||||
|
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
flash@0 {
|
||||||
|
compatible = "jedec,spi-nor";
|
||||||
|
reg = <0>;
|
||||||
|
spi-max-frequency = <25000000>;
|
||||||
|
|
||||||
|
partitions {
|
||||||
|
compatible = "fixed-partitions";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
partition@0 {
|
||||||
|
label = "u-boot";
|
||||||
|
reg = <0x000000 0x40000>;
|
||||||
|
read-only;
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@40000 {
|
||||||
|
label = "u-boot-env";
|
||||||
|
reg = <0x040000 0x10000>;
|
||||||
|
read-only;
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@50000 {
|
||||||
|
compatible = "denx,uimage";
|
||||||
|
label = "firmware";
|
||||||
|
reg = <0x050000 0xfa0000>;
|
||||||
|
|
||||||
|
/*
|
||||||
|
compatible = "fixed-partitions";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
partition@0 {
|
||||||
|
label = "rootfs";
|
||||||
|
reg = <0x000000 0xe30000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@e30000 {
|
||||||
|
label = "kernel";
|
||||||
|
reg = <0xe30000 0x170000>;
|
||||||
|
};
|
||||||
|
*/
|
||||||
|
};
|
||||||
|
|
||||||
|
art: partition@ff0000 {
|
||||||
|
label = "art";
|
||||||
|
reg = <0xff0000 0x010000>;
|
||||||
|
read-only;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&usb_phy0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usb0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usb_phy1 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usb1 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio0 {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
phy-mask = <0>;
|
||||||
|
|
||||||
|
phy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
phy-mode = "sgmii";
|
||||||
|
|
||||||
|
qca,ar8327-initvals = <
|
||||||
|
0x04 0x00080080 /* PORT0 PAD MODE CTRL */
|
||||||
|
0x10 0x81000080 /* POWER_ON_STRIP */
|
||||||
|
0x50 0xcc35cc35 /* LED_CTRL0 */
|
||||||
|
0x54 0xcb37cb37 /* LED_CTRL1 */
|
||||||
|
0x58 0x00000000 /* LED_CTRL2 */
|
||||||
|
0x5c 0x00f3cf00 /* LED_CTRL3 */
|
||||||
|
0x7c 0x0000007e /* PORT0_STATUS */
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
ð0 {
|
||||||
|
status = "okay";
|
||||||
|
mtd-mac-address = <&art 0x0>;
|
||||||
|
|
||||||
|
pll-data = <0x03000101 0x00000101 0x00001919>;
|
||||||
|
|
||||||
|
phy-mode = "sgmii";
|
||||||
|
phy-handle = <&phy0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&wmac {
|
||||||
|
status = "okay";
|
||||||
|
mtd-cal-data = <&art 0x1000>;
|
||||||
|
};
|
@ -58,6 +58,20 @@ define Build/nec-fw
|
|||||||
mv $@.new $@
|
mv $@.new $@
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/csac-factory
|
||||||
|
-[ -f "$@" ] && \
|
||||||
|
mkdir -p "$@.tmp" && \
|
||||||
|
mv "$@" "$@.tmp/UploadBrush-bin.img" && \
|
||||||
|
binmd5=$$($(STAGING_DIR_HOST)/bin/mkhash md5 "$@.tmp/UploadBrush-bin.img" | head -c32) && \
|
||||||
|
oemmd5=$$(echo -n TB-CSAC10-QCA9563_9886-ROUTE-CSAC10 | $(STAGING_DIR_HOST)/bin/mkhash md5 | head -c32) && \
|
||||||
|
echo -n $${binmd5}$${oemmd5} | $(STAGING_DIR_HOST)/bin/mkhash md5 | head -c32 >"$@.tmp/bin_random_oem.txt" && \
|
||||||
|
echo -n V4.4-201910201745 >"$@.tmp/version.txt" && \
|
||||||
|
$(TAR) -czf $@.tmp.tgz -C "$@.tmp" UploadBrush-bin.img bin_random_oem.txt version.txt && \
|
||||||
|
$(STAGING_DIR_HOST)/bin/openssl aes-256-cbc -md md5 -salt -in $@.tmp.tgz -out "$@" -k QiLunSmartWL && \
|
||||||
|
printf %32s CSAC10 >>"$@" && \
|
||||||
|
rm -rf "$@.tmp"
|
||||||
|
endef
|
||||||
|
|
||||||
define Device/seama
|
define Device/seama
|
||||||
KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
|
KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
|
||||||
KERNEL_INITRAMFS := $$(KERNEL) | seama
|
KERNEL_INITRAMFS := $$(KERNEL) | seama
|
||||||
@ -626,6 +640,27 @@ define Device/phicomm_k2t
|
|||||||
endef
|
endef
|
||||||
TARGET_DEVICES += phicomm_k2t
|
TARGET_DEVICES += phicomm_k2t
|
||||||
|
|
||||||
|
define Device/csac_III
|
||||||
|
ATH_SOC := qca9563
|
||||||
|
DEVICE_TITLE := CSAC III
|
||||||
|
IMAGE_SIZE := 16000k
|
||||||
|
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
|
||||||
|
DEVICE_PACKAGES := kmod-leds-reset kmod-ath10k-ct ath10k-firmware-qca9888-ct kmod-usb-core kmod-usb2
|
||||||
|
endef
|
||||||
|
TARGET_DEVICES += csac_III
|
||||||
|
|
||||||
|
# define Device/csac_III
|
||||||
|
# ATH_SOC := qca9563
|
||||||
|
# DEVICE_TITLE := CSAC III
|
||||||
|
# KERNEL_SIZE := 1472k
|
||||||
|
# IMAGE_SIZE := 16000k
|
||||||
|
# IMAGES += factory.bin
|
||||||
|
# IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | pad-to 14528k | append-kernel | append-metadata | check-size $$$$(IMAGE_SIZE)
|
||||||
|
# IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | csac-factory $(1)
|
||||||
|
# DEVICE_PACKAGES := kmod-leds-reset kmod-ath10k-ct ath10k-firmware-qca9888-ct kmod-usb-core kmod-usb2
|
||||||
|
# endef
|
||||||
|
# TARGET_DEVICES += csac_III
|
||||||
|
|
||||||
define Device/rosinson_wr818
|
define Device/rosinson_wr818
|
||||||
ATH_SOC := qca9563
|
ATH_SOC := qca9563
|
||||||
DEVICE_TITLE := ROSINSON WR818
|
DEVICE_TITLE := ROSINSON WR818
|
||||||
|
Loading…
Reference in New Issue
Block a user