Hi,
I am having some problems getting some of the functions work on my
ralink3052 platform.
===========================================================================
Problem 1. The Reset button doesn't work.
The settings for GPIO are
#define WIWI300N_GPIO_BUTTON_RESET 10
#define WIWI300N_GPIO_LED_WIFI 7
#define WIWI300N_BUTTONS_POLL_INTERVAL 20
and the init code for the button is
static struct gpio_button wiwi300n_gpio_buttons[] __initdata = {
{
.desc = "reset",
.type = EV_KEY,
.code = KEY_RESTART,
.threshold = 3,
.gpio = WIWI300N_GPIO_BUTTON_RESET,
.active_low = 1,
}
};
and the platform init function is
static void __init wiwi300n_init(void)
{
rt305x_gpio_init(RT305X_GPIO_MODE_GPIO << RT305X_GPIO_MODE_UART0_SHIFT);
rt305x_register_flash(0, &wiwi300n_flash_data);
rt305x_register_ethernet();
ramips_register_gpio_leds(-1, ARRAY_SIZE(wiwi300n_leds_gpio),
wiwi300n_leds_gpio);
ramips_register_gpio_buttons(-1, WIWI300N_BUTTONS_POLL_INTERVAL,
ARRAY_SIZE(wiwi300n_gpio_buttons),
wiwi300n_gpio_buttons);
rt305x_register_wifi();
rt305x_register_wdt();
// rt305x_register_usb();
}
==============================================================================
Problem 2: WiFi LED always stays solid green. Does anybody know how it can
be modified to blink/flash based on activity? I have tried to change the
trigger in wifi sys with no luck.
/sys/devices/platform/leds-gpio/leds/wiwi-300n:green:wifi# cat trigger
[none] timer default-on netdev phy0rx phy0tx phy0assoc phy0radio
==============================================================================
Problem 3: Both WAN and LAN share the same MAC. I am able to retrieve two
MAC addresses from the flash mtdblock 3. Now, how do I program the second
MAC to either WAN or LAN or VLAN?
Thanks and Regards.
-Vincent
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel