The problem of wmac based leds on WZR-HP-AG300H stimulated
some research on status of led support on other buffalo
units with wmac based leds.

The following results and observations are based on the
trunk revision r32910.

COMMON
- Wmac based leds do not appear in the /sys/class/leds
  directory until the corresponding phy is recognized and
  initialized, which happens during regular init.
  This suggest that we can not use wmac based leds to
  indicate the boot/init progress.

WZR-HP-G300NH2
- Current /etc/diag.sh uses buffalo:red:diag for indicating
  boot/init progress. This led is connected to the platform's
  gpio, so it works. However, the problem is that it "REMAINS
  LIT" when the boot/init completes. VERY mis-leading.

- Wmac leds works fine WITHOUT phy initialization (by means
  of wifi command execution).

WZR-HP-G450H
- Current /etc/diag.sh does not support boot/init progress
  indication.

- Wmac leds works fine WITHOUT phy initialization (by means
  of wifi command execution).

WZR-HP-AG300H
- Current /etc/diag.sh does not support boot/init progress
  indication.

- Wmac leds REQUIRES phy initialization (by means of wifi
  command execution) to start working. After the first
  phy initialization, they continue to work fine.

OBSERVATION
- If we can initiate the phy recognition before preinit,
  it would solve the entire problem, but I suspect this is
  extremely hard.

- Using the buffalo:red:diag in the /etc/diag.sh seems to be the
  only solution, but it must be turned off when "done".

- The dependency on phy initialization on AG300H must be investigated.
  As WZR-HP-G300NH2 and WZR-HP-AG300H uses the same phy driver,
  there must be some discrepancy between AR9220/AR9223 and AR9280.

- I wonder if other non-buffalo units with wmac leds are dealing
  with the problem. 

Comments are welcome.

--- shinoda

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to