#17839: Reboot command causes sometimes hanging router with TL-WDR3600 (HW V1.5)
and TL-WDR4300 (HW V1.7)
--------------------------+-----------------------------------
  Reporter:  michaeluray  |      Owner:  developers
      Type:  defect       |     Status:  new
  Priority:  high         |  Milestone:  Barrier Breaker 14.07
 Component:  base system  |    Version:  Barrier Breaker 14.07
Resolution:               |   Keywords:  reboot
--------------------------+-----------------------------------

Comment (by michaeluray):

 Replying to [comment:51 anonymous]:
 > I think this change could not be the final solution because this code
 will be used by all Atheros devices and I have no experience in kernel
 programming.
 >
 > But may be this could leads to the right direction.

 Thanks for the information, I think this will help.

 So far as I have seen the reset register gets written correctly in the
 OpenWRT program code. Your solution as well as the OpenWRT solution sets
 the bit 24 which is the "FULL_CHIP_RESET" bit.

 FULL_CHIP_RESET:
 ''"Used to command a full chip reset. This is the software
 equivalent of pulling the reset pin. The system will reboot with
 PLL disabled. Always zero when read."''

 Maybe the register gets overwritten in a interrupt routine which raises
 under some circumstances and this causes that the reboot problem occurs
 not all the time.
 If my assumption is right, then is probably somewhere a interrupt routine
 which does not write on the right way to this register, or maybe is there
 is a failure in the chip which resets this bit under some circumstances.

 I have also no experience with kernel programming neither with more
 hardware near programming, but I will try to compile and test BB with the
 following changed function to fix this problem:

 {{{
 static void ath79_restart(char *command)
 {
         for (;;)
         {
                 ath79_device_reset_set(AR71XX_RESET_FULL_CHIP);
                 if (cpu_wait)
                         cpu_wait();
         }
 }
 }}}

 I will probably find tomorrow some time to verify if this solution works
 on the involved routers.

--
Ticket URL: <https://dev.openwrt.org/ticket/17839#comment:52>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to