Re: [OpenWrt-Devel] gpio-led bug

2009-12-25 Thread Gabor Juhos
Nuno Gonçalves írta:
 The follow commands cause a reboot on a WRT160NL:
 
 cd $1  echo netdev  trigger  echo $2  device_name  echo $3  mode
 
 where
 
 $1 is in:
 /sys/class/leds/wrt160nl\:amber\:wps/
 /sys/class/leds/wrt160nl\:blue\:power/
 /sys/class/leds/wrt160nl\:blue\:wlan/
 /sys/class/leds/wrt160nl\:blue\:wps/
 
 $2 is in:
 eth0
 eth1
 br-lan
 
 $3 is in:
 tx
 rx
 
 
 example 1:
 
 cd /sys/class/leds/wrt160nl\:blue\:wlan/
 echo netdev  trigger
 echo eth0  device_name
 echo rx  mode
 [unexpected reboot]
 
 example 2:
 
 [WAN cable disconnected]
 cd /sys/class/leds/wrt160nl\:blue\:wlan/
 echo netdev  trigger
 echo eth1  device_name
 echo rx  mode
 [...]
 [I connect WAN cable]
 [unexpected reboot]
 
 
 Regards,

Fixed with: https://dev.openwrt.org/changeset/18925

Thanks for reporting!

-Gabor
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] gpio-led bug

2009-12-24 Thread Nuno Gonçalves
CPU 0 Unable to handle kernel paging request at virtual address , epc =c
Oops[#1]:
Cpu 0
$ 0   :  8030  0001
$ 4   : 81ef3000 80dd7a00 adc7 001e7ddd
$ 8   : 00987553 0059 9f4e c4653600
$12   : 3b9aca00  80d73800 0048
$16   : 80dd7a00 0100 801c283c 802b9e50
$20   : 80306fe8 80306de8 80306be8 803069e8
$24   :  80071854
$28   : 802b8000 802b9e20 00200200 801c28cc
Hi: 001e7ddd
Lo: 6647e889
epc   :  (null)
Not tainted
ra: 801c28cc netdev_trig_timer+0x90/0x1b0
Status: 1000fc03KERNEL EXL IE
Cause : 1088
BadVA : 
PrId  : 00019374 (MIPS 24Kc)
Modules linked in: ohci_hcd nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrao
Process swapper (pid: 0, threadinfo=802b8000, task=802ba170, tls=)
Stack : 0059 1e6601aa 802bdbf0  803061e0 803061e0 0100 800862b0
0002 0001 8028621c 800709d0 802b9e50 802b9e50 0100 803060b0
 0004 000a 8030 80281c64 802be320 803060ac 80081714
802c01c4 0007 802fb66d 81ff8000 81ff8000 81fe58a0  802f0e5c
802fb66d 81ff8000 81ff8000 81fe58a0  81ff8000  800817f4
...
Call Trace:
[800862b0] run_timer_softirq+0x14c/0x1d8
[800709d0] c0_compare_interrupt+0x50/0x60
[80081714] __do_softirq+0x90/0x128
[81fe58a0] usb_hcd_poll_rh_status+0xc8/0x160 [usbcore]
[81fe58a0] usb_hcd_poll_rh_status+0xc8/0x160 [usbcore]
[800817f4] do_softirq+0x48/0x6c
[8006082c] ret_from_irq+0x0/0x4
[80060a00] r4k_wait+0x0/0x40
[81fe58a0] usb_hcd_poll_rh_status+0xc8/0x160 [usbcore]
[8006af74] ar71xx_gpio_get_value+0x0/0x20
[8006c3a8] cpu_idle+0x24/0x4c
[80060a20] r4k_wait+0x20/0x40
[802d4a0c] start_kernel+0x324/0x33c
[802d4370] unknown_bootoption+0x0/0x304
[81fe6020] usb_hcd_submit_urb+0x7c/0x8a0 [usbcore]


Code: (Bad address in epc)

Disabling lock debugging due to kernel taint
Kernel panic - not syncing: Fatal exception in interrupt
Rebooting in 3 seconds..�

U-Boot 1.1.5 (Apr  6 2009 - 13:54:11)

DRAM:  ar7100_ddr_initial_config(237) enter!
ar7100_ddr_initial_config(269) exit!

-- 
\ Nuno Gonçalves
/
\ Bugs? Features!
/
\ nuno...@gmail.com
/ PORTUGAL


 Message: 2
 Date: Thu, 24 Dec 2009 11:38:34 +0100
 From: Felix Fietkau n...@openwrt.org
 To: openwrt-devel@lists.openwrt.org
 Subject: Re: [OpenWrt-Devel] gpio-led bug
 Message-ID: 4b3344aa.2020...@openwrt.org
 Content-Type: text/plain; charset=ISO-8859-1

 On 2009-12-23 9:19 PM, Stefan Bethke wrote:
 Am 23.12.2009 um 12:48 schrieb Nuno Gon?alves:

 The follow commands cause a reboot on a WRT160NL:

 cd $1  echo netdev  trigger  echo $2  device_name  echo $3  mode

 I've noticed similar problems on an TP-Link tl-wr941nd.
 Do you guys have a serial console connected? Do you get a kernel crash
 log when the system reboots?
 If so, then please rebuild with Compile the kernel with symbol table
 information enabled under Global build settings and send over all the
 kernel messages that you're receiving.

 - Felix
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] gpio-led bug

2009-12-23 Thread Nuno Gonçalves
The follow commands cause a reboot on a WRT160NL:

cd $1  echo netdev  trigger  echo $2  device_name  echo $3  mode

where

$1 is in:
/sys/class/leds/wrt160nl\:amber\:wps/
/sys/class/leds/wrt160nl\:blue\:power/
/sys/class/leds/wrt160nl\:blue\:wlan/
/sys/class/leds/wrt160nl\:blue\:wps/

$2 is in:
eth0
eth1
br-lan

$3 is in:
tx
rx


example 1:

cd /sys/class/leds/wrt160nl\:blue\:wlan/
echo netdev  trigger
echo eth0  device_name
echo rx  mode
[unexpected reboot]

example 2:

[WAN cable disconnected]
cd /sys/class/leds/wrt160nl\:blue\:wlan/
echo netdev  trigger
echo eth1  device_name
echo rx  mode
[...]
[I connect WAN cable]
[unexpected reboot]


Regards,
-- 
\ Nuno Gonçalves
/
\ Bugs? Features!
/
\ nuno...@gmail.com
/ PORTUGAL
Sent from Coimbra, 06, Portugal
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] gpio-led bug

2009-12-23 Thread Stefan Bethke
Am 23.12.2009 um 12:48 schrieb Nuno Gonçalves:

 The follow commands cause a reboot on a WRT160NL:
 
 cd $1  echo netdev  trigger  echo $2  device_name  echo $3  mode

I've noticed similar problems on an TP-Link tl-wr941nd.


Stefan

-- 
Stefan Bethke s...@lassitu.de   Fon +49 151 14070811




___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel