diff --git a/iopsys-brcm63xx-arm/base-files/etc/board-db/boards/EX600 b/iopsys-brcm63xx-arm/base-files/etc/board-db/boards/EX600 new file mode 100644 index 0000000000000000000000000000000000000000..262fdbeb1bcc471fc61d4b984e935265ffac8015 --- /dev/null +++ b/iopsys-brcm63xx-arm/base-files/etc/board-db/boards/EX600 @@ -0,0 +1,188 @@ + +config board 'board' + # Specs + option hasAdsl '0' + option hasVdsl '0' + option hasVoice '0' + option hasDect '0' + option hasUsb '1' + option hasCatv '0' + option hasSfp '0' + option hasWifi '1' + # Ethernet + option ethernetPorts '3' + option ethernetWanPort 'eth4' + option ethernetPortNames 'LAN1 LAN2 WAN' + option ethernetPortOrder 'eth1 eth3 eth4' + option ethernetLanPorts 'eth1 eth3' + # GPIO + option sk9822_attr_file '/sys/devices/platform/canyon_led/sk9822/led_color' + option sk9822_brightness_file '/sys/devices/platform/canyon_led/sk9822/led_brightness' + +############################################################################### +# Button config, start +############### gpio buttons, driver config + +config gpio_button gpio_buttons + list buttons gpio_reset + list buttons gpio_wps + +config gpio_button gpio_reset + option addr 0 + option active low + +config gpio_button gpio_wps + option addr 21 + option active low + +############### mapping function button to driver button +config button RESET + list button gpio_reset + option minpress 0 + option minpress_indicator 0 + option longpress 10000 + option longpress_indicator 1 + option hotplug softresetbutton + option hotplug_long resetbutton + +config button WPS + list button gpio_wps + option minpress 3000 + option minpress_indicator 0 + option longpress 10000 + option longpress_indicator 0 + option hotplug wpsbutton + option hotplug_long wpsbutton_noaction + +############################################################################### +# Led config, start +# + +config gpio_led gpio_leds + list leds wan_yellow + list leds wan_green + list leds lan1_green + list leds lan1_yellow + list leds lan2_green + list leds lan2_yellow + list leds statusled_red + list leds statusled_blue + list leds statusled_green + list leds statusled_yellow + list leds statusled_off + +config gpio_led wan_yellow + option active high + option sysfs_attr 4 + option mode led_linux + +config gpio_led wan_green + option active high + option sysfs_attr 61 + option mode led_linux + +config gpio_led lan1_yellow + option active high + option sysfs_attr 69 + option mode led_linux + +config gpio_led lan1_green + option active high + option sysfs_attr 66 + option mode led_linux + +config gpio_led lan2_yellow + option active high + option sysfs_attr 67 + option mode led_linux + +config gpio_led lan2_green + option active high + option sysfs_attr 65 + option mode led_linux + + +# RGB LED: virtual LED for each color +config gpio_led statusled_red +option rgb_color ff0000 +option mode led_sk9822 + +config gpio_led statusled_blue +option rgb_color 0000ff +option mode led_sk9822 + +config gpio_led statusled_green +option rgb_color 006000 +option mode led_sk9822 + +config gpio_led statusled_yellow +option rgb_color ffa000 +option mode led_sk9822 + +config gpio_led statusled_off +option rgb_color 000000 +option mode led_sk9822 + +############### mapping led function to driver led +config led_map led_map + list press_indicator led_lan + list press_indicator led_wan + list press_indicator led_composite + list functions lan + list functions wan + list functions status + list functions internet + list functions upgrade + list functions wps + list functions composite + +config led_map led_wan + list led_action_ok 'wan_green = ON' + list led_action_ok 'wan_yellow = ON' + list led_action_off 'wan_green = OFF' + list led_action_off 'wan_yellow = OFF' + +config led_map led_lan + list led_action_ok 'lan1_green = ON' + list led_action_ok 'lan1_yellow = ON' + list led_action_ok 'lan2_green = ON' + list led_action_ok 'lan2_yellow = ON' + list led_action_off 'lan1_green = OFF' + list led_action_off 'lan1_yellow = OFF' + list led_action_off 'lan2_green = OFF' + list led_action_off 'lan2_yellow = OFF' + +config led_map led_status +config led_map led_internet +config led_map led_upgrade +config led_map led_wps + +config led_map led_composite + list led_action_off 'statusled_off = ON' + list super_off 'status_off, internet_off, wps_off' + + list led_action_ok 'statusled_green = ON' + list super_ok 'status_ok, internet_ok, wps_off' + list super_ok 'status_off, internet_ok, wps_off' + list super_ok 'status_ok, internet_off, wps_off' + + list led_action_eok 'statusled_green = FLASH_SLOW' + list super_eok 'status_notice, internet_ok, wps_off' + list super_eok 'status_notice, internet_off, wps_off' + list super_eok 'status_ok, internet_error, wps_off' + list super_eok 'status_off, internet_error, wps_off' + + list led_action_alert 'statusled_red = ON' + list super_alert 'status_error' + list super_alert 'upgrade_error' + + list led_action_notice 'statusled_blue = ON' + list super_notice 'status_ok, wps_ok' + list super_notice 'status_off, wps_ok' + + list led_action_error 'statusled_blue = FLASH_SLOW' + list super_error 'status_ok, wps_notice' + list super_error 'status_off, wps_notice' + + list led_action_custom 'statusled_yellow = FLASH_SLOW' + list super_custom 'upgrade_notice' diff --git a/iopsys-brcm63xx-arm/base-files/lib/upgrade/broadcom.sh b/iopsys-brcm63xx-arm/base-files/lib/upgrade/broadcom.sh index 20d8654e3874a54522a19f5c265614a9982d4cbc..3adb06f0a534fa2591d767d4d8869553cd76d8bb 100644 --- a/iopsys-brcm63xx-arm/base-files/lib/upgrade/broadcom.sh +++ b/iopsys-brcm63xx-arm/base-files/lib/upgrade/broadcom.sh @@ -10,7 +10,7 @@ bcm_get_chip_id() { case $chip_id in 6313?) echo 63138 ;; 6315?) echo 63158 ;; - 6752) echo 63178 ;; + 6752|6750) echo 63178 ;; *) echo $chip_id ;; esac } diff --git a/iopsys-brcm63xx-arm/config/eagle/config b/iopsys-brcm63xx-arm/config/eagle/config new file mode 100644 index 0000000000000000000000000000000000000000..dc0fa29b530f7e5db142aa06c8b1b268b7cefeb6 --- /dev/null +++ b/iopsys-brcm63xx-arm/config/eagle/config @@ -0,0 +1,10 @@ +CONFIG_TARGET_FAMILY="EAGLE" +CONFIG_BCM_KERNEL_PROFILE="96750GW" +CONFIG_BCM_CHIP_ID="63178" + +CONFIG_BCM_FIRMWARE_TYPE_NAND_SQUASHFS=y +# CONFIG_BCM_VOICE is not set +# CONFIG_BCM_DSL is not set +# CONFIG_PACKAGE_libdsl is not set +# CONFIG_PACKAGE_dslmngr is not set +# CONFIG_PACKAGE_mwan3 is not set diff --git a/iopsys-brcm63xx-arm/eagle/base-files/etc/hotplug.d/button/20-softresetbutton b/iopsys-brcm63xx-arm/eagle/base-files/etc/hotplug.d/button/20-softresetbutton new file mode 100644 index 0000000000000000000000000000000000000000..3aa70b276921fb45d23ce09b50147b93c5d519b0 --- /dev/null +++ b/iopsys-brcm63xx-arm/eagle/base-files/etc/hotplug.d/button/20-softresetbutton @@ -0,0 +1,12 @@ +#!/bin/sh + +case "$ACTION" in + add|register) + [ "softresetbutton" == "$INTERFACE" ] && { + printf "\n\nSoft reset button is pressed\n\n" > /dev/console + reboot + } + ;; + remove|unregister) + ;; +esac diff --git a/iopsys-brcm63xx-arm/eagle/base-files/etc/init.d/udevtrigger b/iopsys-brcm63xx-arm/eagle/base-files/etc/init.d/udevtrigger new file mode 100755 index 0000000000000000000000000000000000000000..3057dbc2b572a860d525afdf89a255a2c0a24b3f --- /dev/null +++ b/iopsys-brcm63xx-arm/eagle/base-files/etc/init.d/udevtrigger @@ -0,0 +1,9 @@ +#!/bin/sh /etc/rc.common + +START=8 + + +boot() { + # Cold plug trigger - USB LED etc.. + udevtrigger +} diff --git a/iopsys-brcm63xx-arm/eagle/base-files/etc/wlan/nvram/EX600.nvm b/iopsys-brcm63xx-arm/eagle/base-files/etc/wlan/nvram/EX600.nvm new file mode 100644 index 0000000000000000000000000000000000000000..5ce9f3dcb9a321d09ee98a873555734df37397d8 Binary files /dev/null and b/iopsys-brcm63xx-arm/eagle/base-files/etc/wlan/nvram/EX600.nvm differ diff --git a/iopsys-brcm63xx-arm/image/Config.in b/iopsys-brcm63xx-arm/image/Config.in index 70c85dc6b60810456257320c948f68e467ba44de..dea10515854abf01f60b955742c15002006fd16a 100644 --- a/iopsys-brcm63xx-arm/image/Config.in +++ b/iopsys-brcm63xx-arm/image/Config.in @@ -150,6 +150,7 @@ config TARGET_NAND_DEVSZ default "268435456" if TARGET_iopsys_brcm63xx_arm_dg400prime default "268435456" if TARGET_iopsys_brcm63xx_arm_tiger default "268435456" if TARGET_iopsys_brcm63xx_arm_panther + default "268435456" if TARGET_iopsys_brcm63xx_arm_eagle default "268435456" if TARGET_iopsys_brcm63xx_arm_xug534 default "536870912" if TARGET_iopsys_brcm63xx_arm_panda range 67108864 4294967296 @@ -164,6 +165,7 @@ config TARGET_NAND_BLOCKSZ default "131072" if TARGET_iopsys_brcm63xx_arm_dg400prime default "131072" if TARGET_iopsys_brcm63xx_arm_tiger default "131072" if TARGET_iopsys_brcm63xx_arm_panther + default "131072" if TARGET_iopsys_brcm63xx_arm_eagle default "131072" if TARGET_iopsys_brcm63xx_arm_xug534 default "262144" if TARGET_iopsys_brcm63xx_arm_panda range 16384 1048576 @@ -179,6 +181,7 @@ config TARGET_NAND_PAGESZ default "2048" if TARGET_iopsys_brcm63xx_arm_tiger default "2048" if TARGET_iopsys_brcm63xx_arm_panther default "4096" if TARGET_iopsys_brcm63xx_arm_panda + default "2048" if TARGET_iopsys_brcm63xx_arm_eagle default "2048" if TARGET_iopsys_brcm63xx_arm_xug534 range 256 65536 depends on NAND_SUPPORT diff --git a/iopsys-brcm63xx-arm/profiles/iopsys.mk b/iopsys-brcm63xx-arm/profiles/iopsys.mk index b03749902977a9f9f896a46ba3c59c3cd1e0e502..e0c3d663a4e90dafce62c1432555515aea187bc0 100644 --- a/iopsys-brcm63xx-arm/profiles/iopsys.mk +++ b/iopsys-brcm63xx-arm/profiles/iopsys.mk @@ -83,6 +83,18 @@ define Profile/panda/Description endef $(eval $(call Profile,panda)) +======= +#################### EAGLE +define Profile/eagle + NAME:=eagle + PACKAGES:=i2c-tools +endef + +define Profile/eagle/Description + eagle profile +endef + +$(eval $(call Profile,eagle)) #################### Xavi xug534 define Profile/xug534