Re: [OpenWrt-Devel] Ralink MT76228 port to Linux 4.0, set new IP address fail

2015-06-14 Thread Roman Yeryomin
On 12 June 2015 at 19:45, Baptiste Clenet bapcle...@gmail.com wrote:
 Watchdog problem solved thanks to Mingyu Li.
 Patch the file ralink_soc_eth.c

 @@ -983,8 +983,11 @@ static int fe_poll(struct napi_struct *napi, int budget)

 if (!tx_again  (rx_done  budget)) {
 status = fe_reg_r32(FE_REG_FE_INT_STATUS);
 -   if (status  (tx_intr | rx_intr ))
 +   if (status  (tx_intr | rx_intr )) {
 +   /* let napi poll again */
 +   rx_done = budget;
 goto poll_again;
 +   }

 napi_complete(napi);

 This solution is related to the ralink board only.


OK, similar fix works for ag71xx, will submit a patch...

Regards,
Roman
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Ralink MT76228 port to Linux 4.0, set new IP address fail

2015-06-12 Thread Baptiste Clenet
2015-06-11 16:31 GMT+02:00 Roman Yeryomin leroi.li...@gmail.com:
 On 11 June 2015 at 16:36, Baptiste Clenet bapcle...@gmail.com wrote:
 Hi,

 I've edited patches from Linux 3.18 to make the MT7628 work with Linux 4.0.
 OpenWRT launches, I have access to the shell.
 Next step, I configure the IP address with /etc/config/network and
 /etc/init.d/network reload. Ifconfig shows me my new address IP.

 But, I can't connect via ssh to my board and if I reboot the board, I
 get errors at boot:
 [   10.23] jffs2: jffs2_scan_inode_node(): CRC failed on node at
 0x004725bc: Read 0x, calculated 0x149094b5
 I would say it appears one hundred times with different calculated CRC.
 and finally the last line is:
 [   11.00] jffs2: notice: (305) jffs2_build_xattr_subsystem:
 complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan)
 and 0 of xref (0 dead, 0 orphan) found.


 Then, I'm able to access to the shell but I still can't connect via
 ssh. The board constantly reports:

 [ 2410.01] ralink_soc_eth 1010.ethernet eth0: transmit timed out
 [ 2410.02] ralink_soc_eth 1010.ethernet eth0: dma_cfg:0055
 [ 2410.03] ralink_soc_eth 1010.ethernet eth0: tx_ring=0,
 base=00dce000, max=128, ctx=126, dtx=126, fdx=123
 [ 2410.05] ralink_soc_eth 1010.ethernet eth0: rx_ring=0,
 base=01a36000, max=128, calc=121, drx=54
 [ 2415.01] ralink_soc_eth 1010.ethernet eth0: transmit timed out
 [ 2415.02] ralink_soc_eth 1010.ethernet eth0: dma_cfg:0055
 [ 2415.03] ralink_soc_eth 1010.ethernet eth0: tx_ring=0,
 base=00dce000, max=128, ctx=126, dtx=126, fdx=123
 [ 2415.05] ralink_soc_eth 1010.ethernet eth0: rx_ring=0,
 base=01a36000, max=128, calc=121, drx=60

 It seems to be related to ethernet driver. Does anyone know those errors?


 I have the transmit queue time out error on ar71xx with 4.0.5 also.
 Situation is very similar because ralink and ar71xx ethernet drivers
 are maintained in OpenWrt only.
 I believe it is related to recent timer/clock changes in kernel (in
 3.19 AFAIK). But I don't know neither timers nor network Linux stack
 so well to tell what/where is the problem exactly.

 If somebody with more experience could point to a possible place to
 look at that would be awesome.


 Regards,
 Roman

Ok, let's see if someone can bring his knowledge on those parts and help us.
Thanks

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


Re: [OpenWrt-Devel] Ralink MT76228 port to Linux 4.0, set new IP address fail

2015-06-12 Thread Roman Yeryomin
On 12 June 2015 at 14:30, Baptiste Clenet bapcle...@gmail.com wrote:
 2015-06-12 11:12 GMT+02:00 Baptiste Clenet bapcle...@gmail.com:
 2015-06-11 16:31 GMT+02:00 Roman Yeryomin leroi.li...@gmail.com:
 On 11 June 2015 at 16:36, Baptiste Clenet bapcle...@gmail.com wrote:
 Hi,

 I've edited patches from Linux 3.18 to make the MT7628 work with Linux 4.0.
 OpenWRT launches, I have access to the shell.
 Next step, I configure the IP address with /etc/config/network and
 /etc/init.d/network reload. Ifconfig shows me my new address IP.

 But, I can't connect via ssh to my board and if I reboot the board, I
 get errors at boot:
 [   10.23] jffs2: jffs2_scan_inode_node(): CRC failed on node at
 0x004725bc: Read 0x, calculated 0x149094b5
 I would say it appears one hundred times with different calculated CRC.
 and finally the last line is:
 [   11.00] jffs2: notice: (305) jffs2_build_xattr_subsystem:
 complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan)
 and 0 of xref (0 dead, 0 orphan) found.


 Then, I'm able to access to the shell but I still can't connect via
 ssh. The board constantly reports:

 [ 2410.01] ralink_soc_eth 1010.ethernet eth0: transmit timed out
 [ 2410.02] ralink_soc_eth 1010.ethernet eth0: dma_cfg:0055
 [ 2410.03] ralink_soc_eth 1010.ethernet eth0: tx_ring=0,
 base=00dce000, max=128, ctx=126, dtx=126, fdx=123
 [ 2410.05] ralink_soc_eth 1010.ethernet eth0: rx_ring=0,
 base=01a36000, max=128, calc=121, drx=54
 [ 2415.01] ralink_soc_eth 1010.ethernet eth0: transmit timed out
 [ 2415.02] ralink_soc_eth 1010.ethernet eth0: dma_cfg:0055
 [ 2415.03] ralink_soc_eth 1010.ethernet eth0: tx_ring=0,
 base=00dce000, max=128, ctx=126, dtx=126, fdx=123
 [ 2415.05] ralink_soc_eth 1010.ethernet eth0: rx_ring=0,
 base=01a36000, max=128, calc=121, drx=60

 It seems to be related to ethernet driver. Does anyone know those errors?


 I have the transmit queue time out error on ar71xx with 4.0.5 also.
 Situation is very similar because ralink and ar71xx ethernet drivers
 are maintained in OpenWrt only.
 I believe it is related to recent timer/clock changes in kernel (in
 3.19 AFAIK). But I don't know neither timers nor network Linux stack
 so well to tell what/where is the problem exactly.

 If somebody with more experience could point to a possible place to
 look at that would be awesome.


 Regards,
 Roman

 Ok, let's see if someone can bring his knowledge on those parts and help us.
 Thanks

 Baptiste


 I'm adding some details about the bug. after reloading
 /etc/init.d/network (with an IP modified), WATCHDOG raises an error:

 root@OpenWrt:/# [ 6426.01] [ cut here ]
 [ 6426.01] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:303
 dev_watchdog+0x1d8/0x25c()
 [ 6426.03] NETDEV WATCHDOG: eth0 (ralink_soc_eth): transmit queue
 0 timed out

yes, exactly the same issue here with ar71xx:
http://p.tet.rtu.lv/pbzn5sspm/wvtsep/raw
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Ralink MT76228 port to Linux 4.0, set new IP address fail

2015-06-12 Thread Baptiste Clenet
2015-06-12 11:12 GMT+02:00 Baptiste Clenet bapcle...@gmail.com:
 2015-06-11 16:31 GMT+02:00 Roman Yeryomin leroi.li...@gmail.com:
 On 11 June 2015 at 16:36, Baptiste Clenet bapcle...@gmail.com wrote:
 Hi,

 I've edited patches from Linux 3.18 to make the MT7628 work with Linux 4.0.
 OpenWRT launches, I have access to the shell.
 Next step, I configure the IP address with /etc/config/network and
 /etc/init.d/network reload. Ifconfig shows me my new address IP.

 But, I can't connect via ssh to my board and if I reboot the board, I
 get errors at boot:
 [   10.23] jffs2: jffs2_scan_inode_node(): CRC failed on node at
 0x004725bc: Read 0x, calculated 0x149094b5
 I would say it appears one hundred times with different calculated CRC.
 and finally the last line is:
 [   11.00] jffs2: notice: (305) jffs2_build_xattr_subsystem:
 complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan)
 and 0 of xref (0 dead, 0 orphan) found.


 Then, I'm able to access to the shell but I still can't connect via
 ssh. The board constantly reports:

 [ 2410.01] ralink_soc_eth 1010.ethernet eth0: transmit timed out
 [ 2410.02] ralink_soc_eth 1010.ethernet eth0: dma_cfg:0055
 [ 2410.03] ralink_soc_eth 1010.ethernet eth0: tx_ring=0,
 base=00dce000, max=128, ctx=126, dtx=126, fdx=123
 [ 2410.05] ralink_soc_eth 1010.ethernet eth0: rx_ring=0,
 base=01a36000, max=128, calc=121, drx=54
 [ 2415.01] ralink_soc_eth 1010.ethernet eth0: transmit timed out
 [ 2415.02] ralink_soc_eth 1010.ethernet eth0: dma_cfg:0055
 [ 2415.03] ralink_soc_eth 1010.ethernet eth0: tx_ring=0,
 base=00dce000, max=128, ctx=126, dtx=126, fdx=123
 [ 2415.05] ralink_soc_eth 1010.ethernet eth0: rx_ring=0,
 base=01a36000, max=128, calc=121, drx=60

 It seems to be related to ethernet driver. Does anyone know those errors?


 I have the transmit queue time out error on ar71xx with 4.0.5 also.
 Situation is very similar because ralink and ar71xx ethernet drivers
 are maintained in OpenWrt only.
 I believe it is related to recent timer/clock changes in kernel (in
 3.19 AFAIK). But I don't know neither timers nor network Linux stack
 so well to tell what/where is the problem exactly.

 If somebody with more experience could point to a possible place to
 look at that would be awesome.


 Regards,
 Roman

 Ok, let's see if someone can bring his knowledge on those parts and help us.
 Thanks

 Baptiste


I'm adding some details about the bug. after reloading
/etc/init.d/network (with an IP modified), WATCHDOG raises an error:

root@OpenWrt:/# [ 6426.01] [ cut here ]
[ 6426.01] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:303
dev_watchdog+0x1d8/0x25c()
[ 6426.03] NETDEV WATCHDOG: eth0 (ralink_soc_eth): transmit queue
0 timed out
[ 6426.05] Modules linked in: pppoe ppp_async iptable_nat pppox
ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT
ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_recent xt_nat
xt_multiport xt_mark xt_mac xt_limit xt_id xt_helper xt_conntrack
xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT
xt_LOG xt_CT spidev slhc rfcomm nf_reject_ipv4 nf_nat_redirect
nf_nat_masquerade_ipv4 nf_nat_ftp nf_nat nf_log_ipv4 nf_defrag_ipv6
nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_ftp iptable_raw
iptable_mangle iptable_filter ip_tables hidp hci_uart btusb bnep
bluetooth mac802154 crc_ccitt aead ieee802154_socket ieee802154
act_connmark nf_conntrack act_skbedit act_mirred em_u32 cls_u32
cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress 6lowpan hid
evdev input_core i2c_ralink i2c_dev ledtrig_usbdev ip6t_REJECT
nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle
ip6table_filter ip6_tables x_tables regmap_spi regmap_i2c i2c_core
regmap_core lzo_decompress lzo_compress ipv6 ecb crypto_blkcipher
leds_gpio ohci_platform ohci_hcd ehci_platform ehci_hcd
gpio_button_hotplug usbcore nls_base usb_common crc16 crypto_hash
[ 6426.25] CPU: 0 PID: 0 Comm: swapper Not tainted 4.0.4 #1
[ 6426.26] Stack :   0001  802b86a4
80311de3  8035342c
  80312148 00f9 0002 0001 0004 80049318
0003 802bd644
  012f 00f9 802bbc48 8030dc6c 0004 8004785c
0006 80fa5240
       
 
       
 
  ...
[ 6426.33] Call Trace:
[ 6426.34] [8001475c] show_stack+0x48/0x70
[ 6426.34] [80025260] warn_slowpath_common+0xa0/0xd0
[ 6426.36] [800252bc] warn_slowpath_fmt+0x2c/0x38
[ 6426.37] [802021d4] dev_watchdog+0x1d8/0x25c
[ 6426.37] [80050558] call_timer_fn.isra.39+0x24/0x84
[ 6426.38] [80050d70] run_timer_softirq+0x1bc/0x1f8
[ 6426.40] [80027794] __do_softirq+0x150/0x288
[ 6426.40] [80027af0] irq_exit+0x54/0x70
[ 6426.41] 

Re: [OpenWrt-Devel] Ralink MT76228 port to Linux 4.0, set new IP address fail

2015-06-11 Thread Roman Yeryomin
On 11 June 2015 at 16:36, Baptiste Clenet bapcle...@gmail.com wrote:
 Hi,

 I've edited patches from Linux 3.18 to make the MT7628 work with Linux 4.0.
 OpenWRT launches, I have access to the shell.
 Next step, I configure the IP address with /etc/config/network and
 /etc/init.d/network reload. Ifconfig shows me my new address IP.

 But, I can't connect via ssh to my board and if I reboot the board, I
 get errors at boot:
 [   10.23] jffs2: jffs2_scan_inode_node(): CRC failed on node at
 0x004725bc: Read 0x, calculated 0x149094b5
 I would say it appears one hundred times with different calculated CRC.
 and finally the last line is:
 [   11.00] jffs2: notice: (305) jffs2_build_xattr_subsystem:
 complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan)
 and 0 of xref (0 dead, 0 orphan) found.


 Then, I'm able to access to the shell but I still can't connect via
 ssh. The board constantly reports:

 [ 2410.01] ralink_soc_eth 1010.ethernet eth0: transmit timed out
 [ 2410.02] ralink_soc_eth 1010.ethernet eth0: dma_cfg:0055
 [ 2410.03] ralink_soc_eth 1010.ethernet eth0: tx_ring=0,
 base=00dce000, max=128, ctx=126, dtx=126, fdx=123
 [ 2410.05] ralink_soc_eth 1010.ethernet eth0: rx_ring=0,
 base=01a36000, max=128, calc=121, drx=54
 [ 2415.01] ralink_soc_eth 1010.ethernet eth0: transmit timed out
 [ 2415.02] ralink_soc_eth 1010.ethernet eth0: dma_cfg:0055
 [ 2415.03] ralink_soc_eth 1010.ethernet eth0: tx_ring=0,
 base=00dce000, max=128, ctx=126, dtx=126, fdx=123
 [ 2415.05] ralink_soc_eth 1010.ethernet eth0: rx_ring=0,
 base=01a36000, max=128, calc=121, drx=60

 It seems to be related to ethernet driver. Does anyone know those errors?


I have the transmit queue time out error on ar71xx with 4.0.5 also.
Situation is very similar because ralink and ar71xx ethernet drivers
are maintained in OpenWrt only.
I believe it is related to recent timer/clock changes in kernel (in
3.19 AFAIK). But I don't know neither timers nor network Linux stack
so well to tell what/where is the problem exactly.

If somebody with more experience could point to a possible place to
look at that would be awesome.


Regards,
Roman
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Ralink MT76228 port to Linux 4.0, set new IP address fail

2015-06-11 Thread Baptiste Clenet
Hi,

I've edited patches from Linux 3.18 to make the MT7628 work with Linux 4.0.
OpenWRT launches, I have access to the shell.
Next step, I configure the IP address with /etc/config/network and
/etc/init.d/network reload. Ifconfig shows me my new address IP.

But, I can't connect via ssh to my board and if I reboot the board, I
get errors at boot:
[   10.23] jffs2: jffs2_scan_inode_node(): CRC failed on node at
0x004725bc: Read 0x, calculated 0x149094b5
I would say it appears one hundred times with different calculated CRC.
and finally the last line is:
[   11.00] jffs2: notice: (305) jffs2_build_xattr_subsystem:
complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan)
and 0 of xref (0 dead, 0 orphan) found.


Then, I'm able to access to the shell but I still can't connect via
ssh. The board constantly reports:

[ 2410.01] ralink_soc_eth 1010.ethernet eth0: transmit timed out
[ 2410.02] ralink_soc_eth 1010.ethernet eth0: dma_cfg:0055
[ 2410.03] ralink_soc_eth 1010.ethernet eth0: tx_ring=0,
base=00dce000, max=128, ctx=126, dtx=126, fdx=123
[ 2410.05] ralink_soc_eth 1010.ethernet eth0: rx_ring=0,
base=01a36000, max=128, calc=121, drx=54
[ 2415.01] ralink_soc_eth 1010.ethernet eth0: transmit timed out
[ 2415.02] ralink_soc_eth 1010.ethernet eth0: dma_cfg:0055
[ 2415.03] ralink_soc_eth 1010.ethernet eth0: tx_ring=0,
base=00dce000, max=128, ctx=126, dtx=126, fdx=123
[ 2415.05] ralink_soc_eth 1010.ethernet eth0: rx_ring=0,
base=01a36000, max=128, calc=121, drx=60

It seems to be related to ethernet driver. Does anyone know those errors?

Regards,

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