Problem with NAT/ip_forward

Yes, I’m fixed merge-conflict.

And here the result from tcpdump -i wan on this 5.3 kernel with merged hdmi+phylink.

root@bpi-iot-ros-ai:~# tcpdump -i wan
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on wan, link-type EN10MB (Ethernet), capture size 262144 bytes
23:31:21.938623 IP 10.10.0.143.65245 > 239.255.255.250.1900: UDP, length 174

and when dhcpcd finished with timeout:

23:31:22.145968 ARP, Request who-has 10.10.1.19 tell 10.10.0.1, length 46
23:31:22.159713 ARP, Request who-has 35.224.99.156 tell 10.10.0.47, length 46
23:31:22.159726 ARP, Request who-has 35.224.99.156 tell 10.10.0.47, length 46
23:31:22.159735 ARP, Request who-has 35.224.99.156 tell 10.10.0.47, length 46
23:31:22.159743 ARP, Request who-has 35.224.99.156 tell 10.10.0.47, length 46
23:31:22.415871 IP6 fe80::a5b:eff:feab:fc2c > ff02::1:ff6e:376: ICMP6, neighbor solicitation, who has fe80::ec4:7aff:fe6e:376, length 32
23:31:42.231409 IP 10.10.0.106.54599 > 239.255.255.250.1900: UDP, length 167
23:32:02.546275 ARP, Request who-has 10.10.1.19 tell 10.10.0.1, length 46
23:32:22.032568 IP 10.10.0.252.36785 > 239.255.255.250.1900: UDP, length 167
23:32:22.040774 IP 10.10.0.145.50096 > 239.255.255.250.1900: UDP, length 167
23:32:22.212497 IP 10.10.0.62.58180 > 239.255.255.250.1900: UDP, length 167

IP was not received from dhcp :confused: [in a few minutes I will check on the other BPI-R2 board, on which NAT works OK with kernel 4.16 :slight_smile: ]

So, NAT works good on this kernel 5.3 (marged from hdmi and phylink branches). wget result from test-PC:

root@slackware:~# /usr/bin/wget http://noc.pirx.pl/100mb.bin -O /dev/null
--2009-03-08 23:53:29--  http://noc.pirx.pl/100mb.bin
Resolving noc.pirx.pl (noc.pirx.pl)... 217.73.181.197
Connecting to noc.pirx.pl (noc.pirx.pl)|217.73.181.197|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: '/dev/null'

/dev/null                                     34%[===============================>                                                              ]  34.99M  9.33MB/s    eta 8s     ^C

DHCP client not work on wan port on all three BPI-R2 boards. Works on lan ports. I made dhcp-client test on three different BPI-R2 boards :expressionless:

Is wan up and do you “see” mac/request from the other end (dhcp-server)

Sure, wan interface is up before running dhcp-client. I’m not able to check dhcp request from dhcp server side /it is fortigate box/

After assigning IP manually for wan interface and default route, everything work as should.

Have I the same problem :

I don’t understand very good english…

I not need wifi. I want use BPI-R2 as a router. So correctly working NAT (ip_forward) is required.

I want use BPI-R2 as a router : it’s don’t work. Now, I use my BPI-R2 as a raspberry PI with a SDD. If it’s works as router, I want use the WiFi to.

On which kernel you try to run NAT?

I have try this the last time :

root@bpi-r2-e:~#  uname -r
4.19.26-bpi-r2-main

Are you sure it is no firewall-problem? It is strange that only dhcp does not work…

Btw please check if you have no duplicate mac-address…on some kernels i force a mac in dtb to have a Fixed one

@frank-w If you ask me, yes - I’m sure, I’m very sure that it is not a problem on firewall. When I boot this BPI-R2 with kernel where we use mainline net driver DHCP client works OK on wan interface.

root@bpi-iot-ros-ai:~# uptime && uname -a && dhcpcd wan && ip a s wan 
 22:14:10 up 2 min,  3 users,  load average: 1.09, 0.55, 0.22
Linux bpi-iot-ros-ai 5.3.0-rc1-bpi-r2-hdmi #1 SMP Thu Aug 1 14:43:56 CEST 2019 armv7l GNU/Linux
DUID 00:01:00:01:21:26:5f:14:b8:27:eb:fe:3f:2b
wan: IAID 40:4a:30:b7
wan: rebinding lease of 10.10.1.15
wan: leased 10.10.1.15 for 604800 seconds
wan: changing route to 10.10.0.0/16
wan: changing default route via 10.10.0.1
forked to background, child pid 1164
4: wan@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether da:e4:40:4a:30:b7 brd ff:ff:ff:ff:ff:ff
    inet 10.10.1.15/16 brd 10.10.255.255 scope global wan
       valid_lft forever preferred_lft forever
    inet6 fe80::c4d1:29c7:30a4:db72/64 scope link 
       valid_lft forever preferred_lft forever

How I can check this on a compiled kernel on running OS?

Is not a fixed mac…(have done it only on lts-kernels 4.14+4.19)

Need some time to check this on my machine…

have tried it with my R2’s (5.3-phylink,debian buster)

client:

root@bpi-r2:~# ip link set wan up                                                                              
[  167.906672] mtk_soc_eth 1b100000.ethernet wan: PHY [mdio-bus:00] driver [Generic PHY]                       
[  167.914645] mtk_soc_eth 1b100000.ethernet wan: configuring for phy/rgmii link mode                          
root@bpi-r2:~# [  172.469276] mt7530 mdio-bus:1f lan0: Link is Down                                            
[  176.228894] mtk_soc_eth 1b100000.ethernet wan: Link is Up - 1Gbps/Full - flow control off                   
[  176.237102] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready                                          
                                                                                                               
root@bpi-r2:~# dhclient wan                                                                                    
root@bpi-r2:~# ip a                                                                                            
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000                    
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00                                                      
    inet 127.0.0.1/8 scope host lo                                                                             
       valid_lft forever preferred_lft forever                                                                 
    inet6 ::1/128 scope host                                                                                   
       valid_lft forever preferred_lft forever                                                                 
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000          
    link/ether 6a:56:5e:a0:a9:ec brd ff:ff:ff:ff:ff:ff                                                         
    inet6 fe80::6856:5eff:fea0:a9ec/64 scope link                                                              
       valid_lft forever preferred_lft forever                                                                 
3: wan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000           
    link/ether 4a:47:94:6c:08:89 brd ff:ff:ff:ff:ff:ff                                                         
    inet 192.168.0.105/24 brd 192.168.0.255 scope global dynamic wan                                           
       valid_lft 172783sec preferred_lft 172783sec                                                             
    inet6 fe80::4847:94ff:fe6c:889/64 scope link                                                               
       valid_lft forever preferred_lft forever                                                                 
4: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000                                   
    link/sit 0.0.0.0 brd 0.0.0.0                                                                               
5: lan0@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN group default qle
n 1000                                                                                                         
    link/ether 08:00:00:00:00:01 brd ff:ff:ff:ff:ff:ff                                                         
    inet6 fe80::a00:ff:fe00:1/64 scope link                                                                    
       valid_lft forever preferred_lft forever                                                                 
6: lan1@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000                     
    link/ether 6a:56:5e:a0:a9:ec brd ff:ff:ff:ff:ff:ff                                                         
7: lan2@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000                     
    link/ether 6a:56:5e:a0:a9:ec brd ff:ff:ff:ff:ff:ff                                                         
8: lan3@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000                     
    link/ether 6a:56:5e:a0:a9:ec brd ff:ff:ff:ff:ff:ff                                                         
root@bpi-r2:~# 
root@bpi-r2:~# uname -a                                                                                        
Linux bpi-r2 5.3.0-rc1-bpi-r2-phylink-2.5 #283 SMP Tue Jul 23 12:55:20 CEST 2019 armv7l GNU/Linux

server:

Aug 10 15:32:02 bpi-r2-e dnsmasq-dhcp[2389]: DHCPDISCOVER(lan0) 4a:47:94:6c:08:89
Aug 10 15:32:02 bpi-r2-e dnsmasq-dhcp[2389]: DHCPOFFER(lan0) 192.168.0.105 4a:47:94:6c:08:89
Aug 10 15:32:02 bpi-r2-e dnsmasq-dhcp[2389]: DHCPREQUEST(lan0) 192.168.0.105 4a:47:94:6c:08:89
Aug 10 15:32:02 bpi-r2-e dnsmasq-dhcp[2389]: DHCPACK(lan0) 192.168.0.105 4a:47:94:6c:08:89 bpi-r2

so something is wrong in your setup…

Hi @frank-w and thanks for your tests. I should have use recompiled tools from your repo with each kernel separetly?

From my merged kkernel hdmi+phylink i na few seconds after system UP:

root@bpi-iot-ros-ai:~# dmesg | grep wan                                                                                                                                               
[    5.457102] mtk_soc_eth 1b100000.ethernet wan: mediatek frame engine at 0xe1080000, irq 222
[   21.358740] mtk_soc_eth 1b100000.ethernet wan: PHY [mdio-bus:00] driver [Generic PHY]
[   21.358759] mtk_soc_eth 1b100000.ethernet wan: phy: setting supported 00,00000000,000062ef advertising 00,00000000,000062ef
[   21.359375] mtk_soc_eth 1b100000.ethernet wan: configuring for phy/rgmii link mode
[   21.359392] mtk_soc_eth 1b100000.ethernet wan: phylink_mac_config: mode=phy/rgmii/Unknown/Unknown adv=00,00000000,000062ef pause=10 link=0 an=1
[   21.361014] mtk_soc_eth 1b100000.ethernet wan: phy link down rgmii/Unknown/Unknown
[   25.531933] mtk_soc_eth 1b100000.ethernet wan: phy link up rgmii/1Gbps/Full
[   25.531964] mtk_soc_eth 1b100000.ethernet wan: phylink_mac_config: mode=phy/rgmii/1Gbps/Full adv=00,00000000,00000000 pause=00 link=1 an=0
[   25.531984] mtk_soc_eth 1b100000.ethernet wan: Link is Up - 1Gbps/Full - flow control off
root@bpi-iot-ros-ai:~# uname  -a
Linux bpi-iot-ros-ai 5.3.0-rc1-bpi-r2-hdmi-phylink #2 SMP Tue Aug 6 11:06:35 CEST 2019 armv7l GNU/Linux
root@bpi-iot-ros-ai:~# uptime 
 15:19:33 up 5 min,  3 users,  load average: 0.01, 0.12, 0.07
root@bpi-iot-ros-ai:~# ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 22:d7:e8:17:fa:37 brd ff:ff:ff:ff:ff:ff
    inet 169.254.73.233/16 brd 169.254.255.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::f58f:861d:21ff:9a98/64 scope link 
       valid_lft forever preferred_lft forever
3: wan: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state DORMANT group default qlen 1000
    link/ether 92:b8:cd:30:ec:97 brd ff:ff:ff:ff:ff:ff
4: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
5: lan0@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN group default qlen 1000
    link/ether 22:d7:e8:17:fa:37 brd ff:ff:ff:ff:ff:ff
6: lan1@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN group default qlen 1000
    link/ether 22:d7:e8:17:fa:37 brd ff:ff:ff:ff:ff:ff
7: lan2@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN group default qlen 1000
    link/ether 22:d7:e8:17:fa:37 brd ff:ff:ff:ff:ff:ff
8: lan3@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN group default qlen 1000
    link/ether 22:d7:e8:17:fa:37 brd ff:ff:ff:ff:ff:ff
root@bpi-iot-ros-ai:~# ps -ef | grep dhcp
root       423     1  0 15:14 ?        00:00:00 /sbin/dhcpcd -q -b
root      1141   921  0 15:19 ttyS0    00:00:00 grep dhcp

And when I done:

root@bpi-iot-ros-ai:~# ip link set wan down
root@bpi-iot-ros-ai:~# ip link set wan up
root@bpi-iot-ros-ai:~# dhcpcd wan
DUID 00:01:00:01:21:26:5f:14:b8:27:eb:fe:3f:2b
wan: IAID cd:30:ec:97
wan: adding address fe80::a210:8f31:e4a8:8b92
wan: soliciting an IPv6 router
wan: rebinding lease of 10.10.0.130
wan: reject NAK via 10.10.0.1
wan: reject NAK via 10.10.0.1
wan: probing for an IPv4LL address
wan: DHCP lease expired
wan: soliciting a DHCP lease
wan: offered 10.10.0.205 from 10.10.0.1
wan: probing address 10.10.0.205/16
wan: using IPv4LL address 169.254.139.96
wan: adding route to 169.254.0.0/16
forked to background, child pid 1256
root@bpi-iot-ros-ai:~# ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 22:d7:e8:17:fa:37 brd ff:ff:ff:ff:ff:ff
    inet 169.254.73.233/16 brd 169.254.255.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::f58f:861d:21ff:9a98/64 scope link 
       valid_lft forever preferred_lft forever
3: wan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 92:b8:cd:30:ec:97 brd ff:ff:ff:ff:ff:ff
    inet 10.10.0.205/16 brd 10.10.255.255 scope global wan
       valid_lft forever preferred_lft forever
    inet6 fe80::a210:8f31:e4a8:8b92/64 scope link 
       valid_lft forever preferred_lft forever
4: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
5: lan0@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN group default qlen 1000
    link/ether 22:d7:e8:17:fa:37 brd ff:ff:ff:ff:ff:ff
6: lan1@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN group default qlen 1000
    link/ether 22:d7:e8:17:fa:37 brd ff:ff:ff:ff:ff:ff
7: lan2@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN group default qlen 1000
    link/ether 22:d7:e8:17:fa:37 brd ff:ff:ff:ff:ff:ff
8: lan3@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN group default qlen 1000
    link/ether 22:d7:e8:17:fa:37 brd ff:ff:ff:ff:ff:ff
root@bpi-iot-ros-ai:~# uptime 
 15:24:14 up 10 min,  3 users,  load average: 0.75, 0.30, 0.15

Hmm, dhcp-client can’t received IP on system boot-up :frowning:

And, from dmesg on ...link down, ...link up

[  536.502061] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready
[  536.502593] mtk_soc_eth 1b100000.ethernet wan: phy link down rgmii/1Gbps/Full
[  536.502640] mtk_soc_eth 1b100000.ethernet wan: Link is Down
[  557.676820] mtk_soc_eth 1b100000.ethernet wan: PHY [mdio-bus:00] driver [Generic PHY]
[  557.676839] mtk_soc_eth 1b100000.ethernet wan: phy: setting supported 00,00000000,000062ef advertising 00,00000000,000062ef
[  557.676848] mtk_soc_eth 1b100000.ethernet wan: configuring for phy/rgmii link mode
[  557.676862] mtk_soc_eth 1b100000.ethernet wan: phylink_mac_config: mode=phy/rgmii/Unknown/Unknown adv=00,00000000,000062ef pause=10 link=0 an=1
[  557.677332] mtk_soc_eth 1b100000.ethernet wan: phy link down rgmii/Unknown/Unknown
[  560.811867] mtk_soc_eth 1b100000.ethernet wan: phy link up rgmii/1Gbps/Full
[  560.811895] mtk_soc_eth 1b100000.ethernet wan: phylink_mac_config: mode=phy/rgmii/1Gbps/Full adv=00,00000000,00000000 pause=00 link=1 an=0
[  560.811913] mtk_soc_eth 1b100000.ethernet wan: Link is Up - 1Gbps/Full - flow control off
[  560.811939] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready

OK - problem with dhcp-client solved. This occure on Raspbian OS. When I booted using slackarm, dhcp-client works as should. Ufff… Stone from my heart :slight_smile:

This looks strange…

Other issue - when we try to build the bridge interface from lan ports. When we setup bridge interface without connected cable to one of lan ports everything is OK, but when we connect cable to one of lan ports on console we receive:

slackarm login: [   38.611644] 8<--- cut here ---
[   38.620228] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[   38.633919] pgd = 9c2602ba
[   38.644235] [00000000] *pgd=00000000
[   38.655360] Internal error: Oops: 80000007 [#1] SMP ARM
[   38.665019] Modules linked in: spi_mt65xx pwm_mediatek mtk_thermal mt6577_auxadc nvmem_mtk_efuse
[   38.678313] CPU: 3 PID: 317 Comm: kworker/3:2 Not tainted 5.3.0-rc1-bpi-r2-hdmi-phylink #2
[   38.691038] Hardware name: Mediatek Cortex-A7 (Device Tree)
[   38.701008] Workqueue: events switchdev_deferred_process_work
[   38.711108] PC is at 0x0
[   38.717951] LR is at dsa_switch_event+0x5e0/0x6c8
[   38.726973] pc : [<00000000>]    lr : [<c09fc6c8>]    psr: 800f0013
[   38.737616] sp : d8571cb0  ip : 00000000  fp : d8571cf4
[   38.747211] r10: 0000000c  r9 : da9ae088  r8 : d830ef90
[   38.756768] r7 : 00000006  r6 : da9ae040  r5 : c1104c48  r4 : da9ae04c
[   38.767598] r3 : 00000000  r2 : d830ef90  r1 : 00000006  r0 : da9ae040
[   38.778377] Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[   38.789788] Control: 10c5387d  Table: 9872006a  DAC: 00000051
[   38.799803] Process kworker/3:2 (pid: 317, stack limit = 0xb77dd235)
[   38.810400] Stack: (0xd8571cb0 to 0xd8572000)
[   38.818943] 1ca0:                                     a1f50000 daec8040 0000001f c1104c48
[   38.831390] 1cc0: d8571cec 917bd366 c06db2c8 ffffffff d8571d3c 00000005 00000000 00000000
[   38.843885] 1ce0: c1104c48 c09fb5dc d8571d1c d8571cf8 c014d448 c09fc0f4 c1104c48 d8571e38
[   38.856429] 1d00: d9fa4800 00000000 c09f9efc c1104c48 d8571d34 d8571d20 c014d5a8 c014d400
[   38.869001] 1d20: 00000000 0f093a97 d8571d64 d8571d38 c09f9618 c014d58c c94d5892 d830ef90
[   38.881600] 1d40: d8571e73 00000000 00000006 917bd366 d8571db4 00000000 d8571d74 d8571d68
[   38.894258] 1d60: c09fb638 c09f95cc d8571dac d8571d78 c0b51850 c09fb5e8 d83938c0 917bd366
[   38.906948] 1d80: 000003a4 ffffffff d8571e38 00000006 00000000 00000000 c11c51f0 db5b9205
[   38.919651] 1da0: d8571dbc d8571db0 c0b51878 c0b51784 d8571dcc d8571dc0 c09fb464 c0b5186c
[   38.932358] 1dc0: d8571df4 d8571dd0 c014d448 c09fb420 00000006 c11bc920 d8571e38 ffffffff
[   38.945060] 1de0: 00000000 c11c51f0 d8571e1c d8571df8 c014d8b4 c014d400 00000000 00000009
[   38.957779] 1e00: c1104c48 d8571e73 d9fa4800 d830ef90 d8571e34 d8571e20 c014d8f4 c014d868
[   38.970514] 1e20: 00000000 c0164e60 d8571e64 d8571e38 c0b514fc c014d8d8 d9fa4800 00000000
[   38.983286] 1e40: d830ef90 d8571e73 00000001 917bd366 c1104c48 d8571e73 d8571e9c d8571e68
[   38.996091] 1e60: c0b51604 c0b514b4 00000000 c014d448 00571ea4 917bd366 c014d448 d830ef80
[   39.008922] 1e80: d830ef90 d9fa4800 00000100 00000000 d8571ebc d8571ea0 c0b516a4 c0b5156c
[   39.021786] 1ea0: d830ef80 c11bc918 c123516c 00000100 d8571ee4 d8571ec0 c0b512f0 c0b5168c
[   39.034651] 1ec0: 6f504bff c08a1c54 c11bc93c daa5dd80 db5b6100 db5b9200 d8571ef4 d8571ee8
[   39.047563] 1ee0: c0b513a0 c0b51278 d8571f34 d8571ef8 c0145364 c0b51390 d8570000 d8393840
[   39.060502] 1f00: d8571f1c 00000000 c0146ea8 daa5dd80 db5b6100 daa5dd94 00000008 c1103d00
[   39.073478] 1f20: db5b6118 d8570000 d8571f74 d8571f38 c01456ec c01451f4 d8393840 c0e597d4
[   39.086519] 1f40: c11c4a39 db5b6100 c014b48c d98e4c80 d8308b80 00000000 d8570000 daa5dd80
[   39.099594] 1f60: d98e4c9c da963e74 d8571fac d8571f78 c014b984 c01456a0 ffffe000 c0145694
[   39.112707] 1f80: d8571fac d8308b80 c014b848 00000000 00000000 00000000 00000000 00000000
[   39.125868] 1fa0: 00000000 d8571fb0 c01010e8 c014b854 00000000 00000000 00000000 00000000
[   39.139037] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   39.152199] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[   39.165324] Backtrace: 
[   39.172713] [<c09fc0e8>] (dsa_switch_event) from [<c014d448>] (notifier_call_chain+0x54/0x94)
[   39.186320]  r10:c09fb5dc r9:c1104c48 r8:00000000 r7:00000000 r6:00000005 r5:d8571d3c
[   39.199211]  r4:ffffffff
[   39.206729] [<c014d3f4>] (notifier_call_chain) from [<c014d5a8>] (raw_notifier_call_chain+0x28/0x30)
[   39.220999]  r9:c1104c48 r8:c09f9efc r7:00000000 r6:d9fa4800 r5:d8571e38 r4:c1104c48
[   39.233915] [<c014d580>] (raw_notifier_call_chain) from [<c09f9618>] (dsa_port_mdb_add+0x58/0x84)
[   39.248025] [<c09f95c0>] (dsa_port_mdb_add) from [<c09fb638>] (dsa_slave_port_obj_add+0x5c/0x78)
[   39.262079]  r4:00000000
[   39.269844] [<c09fb5dc>] (dsa_slave_port_obj_add) from [<c0b51850>] (__switchdev_handle_port_obj_add+0xd8/0xe8)
[   39.285332] [<c0b51778>] (__switchdev_handle_port_obj_add) from [<c0b51878>] (switchdev_handle_port_obj_add+0x18/0x24)
[   39.301563]  r10:db5b9205 r9:c11c51f0 r8:00000000 r7:00000000 r6:00000006 r5:d8571e38
[   39.314952]  r4:ffffffff
[   39.322993] [<c0b51860>] (switchdev_handle_port_obj_add) from [<c09fb464>] (dsa_slave_switchdev_blocking_event+0x50/0xb0)
[   39.339693] [<c09fb414>] (dsa_slave_switchdev_blocking_event) from [<c014d448>] (notifier_call_chain+0x54/0x94)
[   39.355625] [<c014d3f4>] (notifier_call_chain) from [<c014d8b4>] (__blocking_notifier_call_chain+0x58/0x70)
[   39.371295]  r9:c11c51f0 r8:00000000 r7:ffffffff r6:d8571e38 r5:c11bc920 r4:00000006
[   39.385008] [<c014d85c>] (__blocking_notifier_call_chain) from [<c014d8f4>] (blocking_notifier_call_chain+0x28/0x30)
[   39.401558]  r7:d830ef90 r6:d9fa4800 r5:d8571e73 r4:c1104c48
[   39.413216] [<c014d8cc>] (blocking_notifier_call_chain) from [<c0b514fc>] (switchdev_port_obj_notify+0x54/0xb8)
[   39.429467] [<c0b514a8>] (switchdev_port_obj_notify) from [<c0b51604>] (switchdev_port_obj_add_now+0xa4/0x120)
[   39.445702]  r5:d8571e73 r4:c1104c48
[   39.455421] [<c0b51560>] (switchdev_port_obj_add_now) from [<c0b516a4>] (switchdev_port_obj_add_deferred+0x24/0x70)
[   39.472114]  r8:00000000 r7:00000100 r6:d9fa4800 r5:d830ef90 r4:d830ef80
[   39.485051] [<c0b51680>] (switchdev_port_obj_add_deferred) from [<c0b512f0>] (switchdev_deferred_process+0x84/0x118)
[   39.501930]  r7:00000100 r6:c123516c r5:c11bc918 r4:d830ef80
[   39.513949] [<c0b5126c>] (switchdev_deferred_process) from [<c0b513a0>] (switchdev_deferred_process_work+0x1c/0x24)
[   39.530900]  r7:db5b9200 r6:db5b6100 r5:daa5dd80 r4:c11bc93c
[   39.543072] [<c0b51384>] (switchdev_deferred_process_work) from [<c0145364>] (process_one_work+0x17c/0x4ac)
[   39.559435] [<c01451e8>] (process_one_work) from [<c01456ec>] (worker_thread+0x58/0x568)
[   39.574193]  r10:d8570000 r9:db5b6118 r8:c1103d00 r7:00000008 r6:daa5dd94 r5:db5b6100
[   39.588741]  r4:daa5dd80
[   39.597977] [<c0145694>] (worker_thread) from [<c014b984>] (kthread+0x13c/0x16c)
[   39.612146]  r10:da963e74 r9:d98e4c9c r8:daa5dd80 r7:d8570000 r6:00000000 r5:d8308b80
[   39.626767]  r4:d98e4c80
[   39.636042] [<c014b848>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[   39.650076] Exception stack(0xd8571fb0 to 0xd8571ff8)
[   39.661907] 1fa0:                                     00000000 00000000 00000000 00000000
[   39.676923] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   39.691899] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   39.705232]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c014b848
[   39.719771]  r4:d8308b80
[   39.728942] Code: bad PC value
[   39.738778] ---[ end trace a81843dec73e2fd1 ]---

The console (via serial) stop response and on monitor (via hdmi) is nothing - black screen only with info from monitor (no signal), but on serial console from BPI-R2 I got (when connect monitor to hdmi port):

[ 2012.441290] [drm:drm_helper_hpd_irq_event] [CONNECTOR:32:HDMI-A-1] status updated from connected to connected
[ 2012.458034] [drm:drm_helper_hpd_irq_event] [CONNECTOR:32:HDMI-A-1] status updated from connected to disconnected
[ 2012.474879] [drm:drm_sysfs_hotplug_event] generating hotplug event
[ 2012.487759] [drm:drm_fb_helper_hotplug_event.part.5] 
[ 2012.499680] [drm:drm_client_modeset_probe] 
[ 2012.510424] [drm:drm_mode_object_get] OBJ ID: 32 (4)
[ 2012.521904] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:32:HDMI-A-1]
[ 2012.535921] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:32:HDMI-A-1] status updated from disconnected to connected
[ 2012.581421] [drm:drm_detect_monitor_audio] Monitor has basic audio support
[ 2012.594912] [drm:drm_add_display_info] non_desktop set to 0
[ 2012.607044] [drm:drm_add_display_info] HDMI: DVI dual 0, max TMDS clock 0 kHz
[ 2012.620749] [drm:drm_add_edid_modes] ELD monitor PL2377
[ 2012.632475] [drm:drm_add_edid_modes] HDMI: latency present 0 0, video latency 0 0, audio latency 0 0
[ 2012.648162] [drm:drm_add_edid_modes] ELD size 32, SAD count 1
[ 2012.660467] [drm:drm_add_display_info] non_desktop set to 0
[ 2012.672507] [drm:drm_add_display_info] HDMI: DVI dual 0, max TMDS clock 0 kHz
[ 2012.687129] [drm:drm_mode_debug_printmodeline] Modeline "1280x1024": 60 108879 1280 1360 1496 1712 1024 1025 1028 1060 0x20 0x6
[ 2012.705224] [drm:drm_mode_prune_invalid] Not using 1280x1024 mode: STALE
[ 2012.718567] [drm:drm_mode_debug_printmodeline] Modeline "1920x1080": 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x48 0x5
[ 2012.736857] [drm:drm_mode_prune_invalid] Not using 1920x1080 mode: VIRTUAL_X
[ 2012.750694] [drm:drm_mode_debug_printmodeline] Modeline "1920x1080": 50 148500 1920 2448 2492 2640 1080 1084 1089 1125 0x40 0x5
[ 2012.769028] [drm:drm_mode_prune_invalid] Not using 1920x1080 mode: VIRTUAL_X
[ 2012.782894] [drm:drm_mode_debug_printmodeline] Modeline "1920x1080i": 50 74250 1920 1936 1980 2640 1080 1084 1094 1125 0x40 0x15
[ 2012.801367] [drm:drm_mode_prune_invalid] Not using 1920x1080i mode: VIRTUAL_X
[ 2012.815371] [drm:drm_mode_debug_printmodeline] Modeline "1680x1050": 0 119000 1680 1728 1760 1840 1050 1053 1059 1080 0x40 0x9
[ 2012.833695] [drm:drm_mode_prune_invalid] Not using 1680x1050 mode: VIRTUAL_X
[ 2012.847640] [drm:drm_mode_debug_printmodeline] Modeline "1600x1200": 0 162000 1600 1664 1856 2160 1200 1201 1204 1250 0x40 0x5
[ 2012.866013] [drm:drm_mode_prune_invalid] Not using 1600x1200 mode: VIRTUAL_X
[ 2012.880004] [drm:drm_mode_debug_printmodeline] Modeline "1440x900": 0 88750 1440 1488 1520 1600 900 903 909 926 0x40 0x9
[ 2012.897852] [drm:drm_mode_prune_invalid] Not using 1440x900 mode: VIRTUAL_X
[ 2012.911731] [drm:drm_mode_debug_printmodeline] Modeline "1440x900": 0 136750 1440 1536 1688 1936 900 903 909 942 0x40 0x6
[ 2012.929645] [drm:drm_mode_prune_invalid] Not using 1440x900 mode: VIRTUAL_X
[ 2012.943542] [drm:drm_mode_debug_printmodeline] Modeline "640x480": 0 25175 640 656 752 800 480 490 492 525 0x40 0xa
[ 2012.960927] [drm:drm_mode_prune_invalid] Not using 640x480 mode: CLOCK_LOW
[ 2012.974688] [drm:drm_mode_debug_printmodeline] Modeline "1920x1080": 0 148500 1920 2448 2492 2640 1080 1084 1089 1125 0x40 0x5
[ 2012.993031] [drm:drm_mode_prune_invalid] Not using 1920x1080 mode: VIRTUAL_X
[ 2013.006980] [drm:drm_mode_debug_printmodeline] Modeline "1920x1080i": 0 74250 1920 2448 2492 2640 1080 1084 1094 1125 0x40 0x15
[ 2013.025413] [drm:drm_mode_prune_invalid] Not using 1920x1080i mode: VIRTUAL_X
[ 2013.039435] [drm:drm_mode_debug_printmodeline] Modeline "720x576i": 0 13500 720 732 795 864 576 580 586 625 0x40 0x101a
[ 2013.057138] [drm:drm_mode_prune_invalid] Not using 720x576i mode: CLOCK_LOW
[ 2013.070970] [drm:drm_mode_debug_printmodeline] Modeline "720x576i": 0 13500 720 732 795 864 576 580 586 625 0x40 0x101a
[ 2013.088665] [drm:drm_mode_prune_invalid] Not using 720x576i mode: CLOCK_LOW
[ 2013.102473] [drm:drm_mode_debug_printmodeline] Modeline "1920x1080": 0 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x40 0x5
[ 2013.120759] [drm:drm_mode_prune_invalid] Not using 1920x1080 mode: VIRTUAL_X
[ 2013.134638] [drm:drm_mode_debug_printmodeline] Modeline "1920x1080i": 0 74250 1920 2008 2052 2200 1080 1084 1094 1125 0x40 0x15
[ 2013.152998] [drm:drm_mode_prune_invalid] Not using 1920x1080i mode: VIRTUAL_X
[ 2013.166954] [drm:drm_mode_debug_printmodeline] Modeline "720x480i": 0 13500 720 739 801 858 480 488 494 525 0x40 0x101a
[ 2013.184586] [drm:drm_mode_prune_invalid] Not using 720x480i mode: CLOCK_LOW
[ 2013.198340] [drm:drm_mode_debug_printmodeline] Modeline "720x480i": 0 13500 720 739 801 858 480 488 494 525 0x40 0x101a
[ 2013.215965] [drm:drm_mode_prune_invalid] Not using 720x480i mode: CLOCK_LOW
[ 2013.229743] [drm:drm_mode_debug_printmodeline] Modeline "640x480": 0 25175 640 656 752 800 480 490 492 525 0x40 0xa
[ 2013.247060] [drm:drm_mode_prune_invalid] Not using 640x480 mode: CLOCK_LOW
[ 2013.260791] [drm:drm_mode_debug_printmodeline] Modeline "1920x1080": 60 148352 1920 2008 2052 2200 1080 1084 1089 1125 0x40 0x5
[ 2013.279216] [drm:drm_mode_prune_invalid] Not using 1920x1080 mode: VIRTUAL_X
[ 2013.293188] [drm:drm_mode_debug_printmodeline] Modeline "640x480": 60 25200 640 656 752 800 480 490 492 525 0x40 0xa
[ 2013.310703] [drm:drm_mode_prune_invalid] Not using 640x480 mode: CLOCK_LOW
[ 2013.324553] [drm:drm_mode_debug_printmodeline] Modeline "1920x1080i": 60 74176 1920 2008 2052 2200 1080 1084 1094 1125 0x40 0x15
[ 2013.343182] [drm:drm_mode_prune_invalid] Not using 1920x1080i mode: VIRTUAL_X
[ 2013.357399] [drm:drm_mode_debug_printmodeline] Modeline "720x480i": 60 13514 720 739 801 858 480 488 494 525 0x40 0x101a
[ 2013.375483] [drm:drm_mode_prune_invalid] Not using 720x480i mode: CLOCK_LOW
[ 2013.389667] [drm:drm_mode_debug_printmodeline] Modeline "720x480i": 60 13514 720 739 801 858 480 488 494 525 0x40 0x101a
[ 2013.407837] [drm:drm_mode_prune_invalid] Not using 720x480i mode: CLOCK_LOW
[ 2013.422154] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:32:HDMI-A-1] probed modes :
[ 2013.438352] [drm:drm_mode_debug_printmodeline] Modeline "1280x1024": 75 135000 1280 1296 1440 1688 1024 1025 1028 1066 0x40 0x5
[ 2013.457286] [drm:drm_mode_debug_printmodeline] Modeline "1280x1024": 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5
[ 2013.476209] [drm:drm_mode_debug_printmodeline] Modeline "1152x864": 75 108000 1152 1216 1344 1600 864 865 868 900 0x40 0x5
[ 2013.494660] [drm:drm_mode_debug_printmodeline] Modeline "1280x720": 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[ 2013.513041] [drm:drm_mode_debug_printmodeline] Modeline "1280x720": 60 74176 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[ 2013.531393] [drm:drm_mode_debug_printmodeline] Modeline "1280x720": 50 74250 1280 1720 1760 1980 720 725 730 750 0x40 0x5
[ 2013.549721] [drm:drm_mode_debug_printmodeline] Modeline "1280x720": 50 74250 1280 1720 1760 1980 720 725 730 750 0x40 0x5
[ 2013.567977] [drm:drm_mode_debug_printmodeline] Modeline "1024x768": 75 78750 1024 1040 1136 1312 768 769 772 800 0x40 0x5
[ 2013.586221] [drm:drm_mode_debug_printmodeline] Modeline "1024x768": 70 75000 1024 1048 1184 1328 768 771 777 806 0x40 0xa
[ 2013.604369] [drm:drm_mode_debug_printmodeline] Modeline "1024x768": 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
[ 2013.622460] [drm:drm_mode_debug_printmodeline] Modeline "832x624": 75 57284 832 864 928 1152 624 625 628 667 0x40 0xa
[ 2013.640224] [drm:drm_mode_debug_printmodeline] Modeline "800x600": 75 49500 800 816 896 1056 600 601 604 625 0x40 0x5
[ 2013.657969] [drm:drm_mode_debug_printmodeline] Modeline "800x600": 72 50000 800 856 976 1040 600 637 643 666 0x40 0x5
[ 2013.675668] [drm:drm_mode_debug_printmodeline] Modeline "800x600": 60 40000 800 840 968 1056 600 601 605 628 0x40 0x5
[ 2013.693313] [drm:drm_mode_debug_printmodeline] Modeline "800x600": 56 36000 800 824 896 1024 600 601 603 625 0x40 0x5
[ 2013.710941] [drm:drm_mode_debug_printmodeline] Modeline "720x576": 50 27000 720 732 796 864 576 581 586 625 0x40 0xa
[ 2013.728493] [drm:drm_mode_debug_printmodeline] Modeline "720x576": 50 27000 720 732 796 864 576 581 586 625 0x40 0xa
[ 2013.745922] [drm:drm_mode_debug_printmodeline] Modeline "720x576": 50 27000 720 732 796 864 576 581 586 625 0x40 0xa
[ 2013.763229] [drm:drm_mode_debug_printmodeline] Modeline "720x480": 60 27027 720 736 798 858 480 489 495 525 0x40 0xa
[ 2013.780444] [drm:drm_mode_debug_printmodeline] Modeline "720x480": 60 27027 720 736 798 858 480 489 495 525 0x40 0xa
[ 2013.797540] [drm:drm_mode_debug_printmodeline] Modeline "720x480": 60 27000 720 736 798 858 480 489 495 525 0x40 0xa
[ 2013.814519] [drm:drm_mode_debug_printmodeline] Modeline "720x480": 60 27000 720 736 798 858 480 489 495 525 0x40 0xa
[ 2013.831378] [drm:drm_mode_debug_printmodeline] Modeline "640x480": 75 31500 640 656 720 840 480 481 484 500 0x40 0xa
[ 2013.848152] [drm:drm_mode_debug_printmodeline] Modeline "640x480": 73 31500 640 664 704 832 480 489 492 520 0x40 0xa
[ 2013.864819] [drm:drm_mode_debug_printmodeline] Modeline "640x480": 67 30240 640 704 768 864 480 483 486 525 0x40 0xa
[ 2013.881394] [drm:drm_mode_debug_printmodeline] Modeline "720x400": 70 28320 720 738 846 900 400 412 414 449 0x40 0x6
[ 2013.897890] [drm:drm_client_modeset_probe] connector 32 enabled? yes
[ 2013.910162] [drm:drm_client_modeset_probe] Not using firmware configuration
[ 2013.922969] [drm:drm_client_modeset_probe] looking for cmdline mode on connector 32
[ 2013.936410] [drm:drm_client_modeset_probe] found mode 1280x1024
[ 2013.948028] [drm:drm_client_modeset_probe] picking CRTCs for 1280x1024 config
[ 2013.960816] [drm:drm_mode_object_put] OBJ ID: 32 (4)
[ 2013.971349] [drm:drm_client_modeset_probe] desired mode 1280x1024 set on crtc 37 (0,0)
[ 2013.984852] [drm:drm_mode_object_get] OBJ ID: 32 (3)
[ 2013.995325] [drm:drm_mode_object_put] OBJ ID: 32 (4)
[ 2014.005697] mediatek-drm 14000000.dispsys: [drm:drm_client_dev_hotplug] fbdev: ret=0
[ 2014.018910] [drm:drm_helper_hpd_irq_event] [CONNECTOR:32:HDMI-A-1] status updated from connected to connected
[ 2014.034631] [drm:drm_sysfs_hotplug_event] generating hotplug event
[ 2014.046258] [drm:drm_fb_helper_hotplug_event.part.5] 
[ 2014.056649] [drm:drm_client_modeset_probe] 
[ 2014.066072] [drm:drm_mode_object_get] OBJ ID: 32 (4)
[ 2014.076209] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:32:HDMI-A-1]
[ 2014.116394] [drm:drm_detect_monitor_audio] Monitor has basic audio support
[ 2014.128396] [drm:drm_add_display_info] non_desktop set to 0
[ 2014.138991] [drm:drm_add_display_info] HDMI: DVI dual 0, max TMDS clock 0 kHz
[ 2014.151108] [drm:drm_mode_object_put] OBJ ID: 42 (1)
[ 2014.160974] [drm:drm_add_edid_modes] ELD monitor PL2377
[ 2014.171019] [drm:drm_add_edid_modes] HDMI: latency present 0 0, video latency 0 0, audio latency 0 0
[ 2014.184990] [drm:drm_add_edid_modes] ELD size 32, SAD count 1
[ 2014.195492] [drm:drm_add_display_info] non_desktop set to 0
[ 2014.205748] [drm:drm_add_display_info] HDMI: DVI dual 0, max TMDS clock 0 kHz
[ 2014.218645] [drm:drm_mode_debug_printmodeline] Modeline "1920x1080": 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x48 0x5
[ 2014.234875] [drm:drm_mode_prune_invalid] Not using 1920x1080 mode: VIRTUAL_X
[ 2014.246604] [drm:drm_mode_debug_printmodeline] Modeline "1920x1080": 50 148500 1920 2448 2492 2640 1080 1084 1089 1125 0x40 0x5
[ 2014.262811] [drm:drm_mode_prune_invalid] Not using 1920x1080 mode: VIRTUAL_X
[ 2014.274543] [drm:drm_mode_debug_printmodeline] Modeline "1920x1080i": 50 74250 1920 1936 1980 2640 1080 1084 1094 1125 0x40 0x15
[ 2014.290901] [drm:drm_mode_prune_invalid] Not using 1920x1080i mode: VIRTUAL_X
[ 2014.302835] [drm:drm_mode_debug_printmodeline] Modeline "1680x1050": 0 119000 1680 1728 1760 1840 1050 1053 1059 1080 0x40 0x9
[ 2014.319028] [drm:drm_mode_prune_invalid] Not using 1680x1050 mode: VIRTUAL_X
[ 2014.330786] [drm:drm_mode_debug_printmodeline] Modeline "1600x1200": 0 162000 1600 1664 1856 2160 1200 1201 1204 1250 0x40 0x5
[ 2014.346949] [drm:drm_mode_prune_invalid] Not using 1600x1200 mode: VIRTUAL_X
[ 2014.358715] [drm:drm_mode_debug_printmodeline] Modeline "1440x900": 0 88750 1440 1488 1520 1600 900 903 909 926 0x40 0x9
[ 2014.374351] [drm:drm_mode_prune_invalid] Not using 1440x900 mode: VIRTUAL_X
[ 2014.386055] [drm:drm_mode_debug_printmodeline] Modeline "1440x900": 0 136750 1440 1536 1688 1936 900 903 909 942 0x40 0x6
[ 2014.401823] [drm:drm_mode_prune_invalid] Not using 1440x900 mode: VIRTUAL_X
[ 2014.413614] [drm:drm_mode_debug_printmodeline] Modeline "640x480": 0 25175 640 656 752 800 480 490 492 525 0x40 0xa
[ 2014.428950] [drm:drm_mode_prune_invalid] Not using 640x480 mode: CLOCK_LOW
[ 2014.440715] [drm:drm_mode_debug_printmodeline] Modeline "1920x1080": 0 148500 1920 2448 2492 2640 1080 1084 1089 1125 0x40 0x5
[ 2014.457163] [drm:drm_mode_prune_invalid] Not using 1920x1080 mode: VIRTUAL_X
[ 2014.469319] [drm:drm_mode_debug_printmodeline] Modeline "1920x1080i": 0 74250 1920 2448 2492 2640 1080 1084 1094 1125 0x40 0x15
[ 2014.486080] [drm:drm_mode_prune_invalid] Not using 1920x1080i mode: VIRTUAL_X
[ 2014.498527] [drm:drm_mode_debug_printmodeline] Modeline "720x576i": 0 13500 720 732 795 864 576 580 586 625 0x40 0x101a
[ 2014.514744] [drm:drm_mode_prune_invalid] Not using 720x576i mode: CLOCK_LOW
[ 2014.527195] [drm:drm_mode_debug_printmodeline] Modeline "720x576i": 0 13500 720 732 795 864 576 580 586 625 0x40 0x101a
[ 2014.543555] [drm:drm_mode_prune_invalid] Not using 720x576i mode: CLOCK_LOW
[ 2014.556106] [drm:drm_mode_debug_printmodeline] Modeline "1920x1080": 0 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x40 0x5
[ 2014.573236] [drm:drm_mode_prune_invalid] Not using 1920x1080 mode: VIRTUAL_X
[ 2014.586066] [drm:drm_mode_debug_printmodeline] Modeline "1920x1080i": 0 74250 1920 2008 2052 2200 1080 1084 1094 1125 0x40 0x15
[ 2014.603479] [drm:drm_mode_prune_invalid] Not using 1920x1080i mode: VIRTUAL_X
[ 2014.616547] [drm:drm_mode_debug_printmodeline] Modeline "720x480i": 0 13500 720 739 801 858 480 488 494 525 0x40 0x101a
[ 2014.633424] [drm:drm_mode_prune_invalid] Not using 720x480i mode: CLOCK_LOW
[ 2014.646538] [drm:drm_mode_debug_printmodeline] Modeline "720x480i": 0 13500 720 739 801 858 480 488 494 525 0x40 0x101a
[ 2014.663605] [drm:drm_mode_prune_invalid] Not using 720x480i mode: CLOCK_LOW
[ 2014.676911] [drm:drm_mode_debug_printmodeline] Modeline "640x480": 0 25175 640 656 752 800 480 490 492 525 0x40 0xa
[ 2014.693837] [drm:drm_mode_prune_invalid] Not using 640x480 mode: CLOCK_LOW
[ 2014.707265] [drm:drm_mode_debug_printmodeline] Modeline "1920x1080": 60 148352 1920 2008 2052 2200 1080 1084 1089 1125 0x40 0x5
[ 2014.725447] [drm:drm_mode_prune_invalid] Not using 1920x1080 mode: VIRTUAL_X
[ 2014.739240] [drm:drm_mode_debug_printmodeline] Modeline "640x480": 60 25200 640 656 752 800 480 490 492 525 0x40 0xa
[ 2014.756630] [drm:drm_mode_prune_invalid] Not using 640x480 mode: CLOCK_LOW
[ 2014.770388] [drm:drm_mode_debug_printmodeline] Modeline "1920x1080i": 60 74176 1920 2008 2052 2200 1080 1084 1094 1125 0x40 0x15
[ 2014.788910] [drm:drm_mode_prune_invalid] Not using 1920x1080i mode: VIRTUAL_X
[ 2014.803027] [drm:drm_mode_debug_printmodeline] Modeline "720x480i": 60 13514 720 739 801 858 480 488 494 525 0x40 0x101a
[ 2014.820984] [drm:drm_mode_prune_invalid] Not using 720x480i mode: CLOCK_LOW
[ 2014.835047] [drm:drm_mode_debug_printmodeline] Modeline "720x480i": 60 13514 720 739 801 858 480 488 494 525 0x40 0x101a
[ 2014.853140] [drm:drm_mode_prune_invalid] Not using 720x480i mode: CLOCK_LOW
[ 2014.867329] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:32:HDMI-A-1] probed modes :
[ 2014.883375] [drm:drm_mode_debug_printmodeline] Modeline "1280x1024": 75 135000 1280 1296 1440 1688 1024 1025 1028 1066 0x40 0x5
[ 2014.902201] [drm:drm_mode_debug_printmodeline] Modeline "1280x1024": 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5
[ 2014.921027] [drm:drm_mode_debug_printmodeline] Modeline "1152x864": 75 108000 1152 1216 1344 1600 864 865 868 900 0x40 0x5
[ 2014.939401] [drm:drm_mode_debug_printmodeline] Modeline "1280x720": 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[ 2014.957641] [drm:drm_mode_debug_printmodeline] Modeline "1280x720": 60 74176 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[ 2014.975781] [drm:drm_mode_debug_printmodeline] Modeline "1280x720": 50 74250 1280 1720 1760 1980 720 725 730 750 0x40 0x5
[ 2014.993879] [drm:drm_mode_debug_printmodeline] Modeline "1280x720": 50 74250 1280 1720 1760 1980 720 725 730 750 0x40 0x5
[ 2015.011939] [drm:drm_mode_debug_printmodeline] Modeline "1024x768": 75 78750 1024 1040 1136 1312 768 769 772 800 0x40 0x5
[ 2015.030008] [drm:drm_mode_debug_printmodeline] Modeline "1024x768": 70 75000 1024 1048 1184 1328 768 771 777 806 0x40 0xa
[ 2015.048031] [drm:drm_mode_debug_printmodeline] Modeline "1024x768": 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
[ 2015.065984] [drm:drm_mode_debug_printmodeline] Modeline "832x624": 75 57284 832 864 928 1152 624 625 628 667 0x40 0xa
[ 2015.083602] [drm:drm_mode_debug_printmodeline] Modeline "800x600": 75 49500 800 816 896 1056 600 601 604 625 0x40 0x5
[ 2015.101217] [drm:drm_mode_debug_printmodeline] Modeline "800x600": 72 50000 800 856 976 1040 600 637 643 666 0x40 0x5
[ 2015.118790] [drm:drm_mode_debug_printmodeline] Modeline "800x600": 60 40000 800 840 968 1056 600 601 605 628 0x40 0x5
[ 2015.136345] [drm:drm_mode_debug_printmodeline] Modeline "800x600": 56 36000 800 824 896 1024 600 601 603 625 0x40 0x5
[ 2015.153849] [drm:drm_mode_debug_printmodeline] Modeline "720x576": 50 27000 720 732 796 864 576 581 586 625 0x40 0xa
[ 2015.171250] [drm:drm_mode_debug_printmodeline] Modeline "720x576": 50 27000 720 732 796 864 576 581 586 625 0x40 0xa
[ 2015.188608] [drm:drm_mode_debug_printmodeline] Modeline "720x576": 50 27000 720 732 796 864 576 581 586 625 0x40 0xa
[ 2015.205918] [drm:drm_mode_debug_printmodeline] Modeline "720x480": 60 27027 720 736 798 858 480 489 495 525 0x40 0xa
[ 2015.223136] [drm:drm_mode_debug_printmodeline] Modeline "720x480": 60 27027 720 736 798 858 480 489 495 525 0x40 0xa
[ 2015.240231] [drm:drm_mode_debug_printmodeline] Modeline "720x480": 60 27000 720 736 798 858 480 489 495 525 0x40 0xa
[ 2015.257210] [drm:drm_mode_debug_printmodeline] Modeline "720x480": 60 27000 720 736 798 858 480 489 495 525 0x40 0xa
[ 2015.274066] [drm:drm_mode_debug_printmodeline] Modeline "640x480": 75 31500 640 656 720 840 480 481 484 500 0x40 0xa
[ 2015.290837] [drm:drm_mode_debug_printmodeline] Modeline "640x480": 73 31500 640 664 704 832 480 489 492 520 0x40 0xa
[ 2015.307504] [drm:drm_mode_debug_printmodeline] Modeline "640x480": 67 30240 640 704 768 864 480 483 486 525 0x40 0xa
[ 2015.324077] [drm:drm_mode_debug_printmodeline] Modeline "720x400": 70 28320 720 738 846 900 400 412 414 449 0x40 0x6
[ 2015.340570] [drm:drm_client_modeset_probe] connector 32 enabled? yes
[ 2015.352835] [drm:drm_client_modeset_probe] Not using firmware configuration
[ 2015.365636] [drm:drm_client_modeset_probe] looking for cmdline mode on connector 32
[ 2015.379071] [drm:drm_client_modeset_probe] found mode 1280x1024
[ 2015.390684] [drm:drm_client_modeset_probe] picking CRTCs for 1280x1024 config
[ 2015.403467] [drm:drm_mode_object_put] OBJ ID: 32 (4)
[ 2015.413995] [drm:drm_client_modeset_probe] desired mode 1280x1024 set on crtc 37 (0,0)
[ 2015.427493] [drm:drm_mode_object_get] OBJ ID: 32 (3)
[ 2015.437964] [drm:drm_mode_object_put] OBJ ID: 32 (4)
[ 2015.448333] mediatek-drm 14000000.dispsys: [drm:drm_client_dev_hotplug] fbdev: ret=0

So, I think that the monitor is recognized but (maybe) fbdev crashed.

Oops/crash above happens is null-pointer-ref in dsa_switch_event. so it’s problem in network-stack

i test this with phylink only and report to rene

edit: seems not happen on basic phylink-branch

[   23.519202] mt7530 mdio-bus:1f lan0: phy link up gmii/1Gbps/Full                                                                                 
[   23.519234] mt7530 mdio-bus:1f lan0: phylink_mac_config: mode=phy/gmii/1Gbps/Full adv=00,00000000,00000000 pause=00 link=1 an=0                  
[   23.519636] mt7530 mdio-bus:1f lan0: Link is Up - 1Gbps/Full - flow control off                                                                  
[   23.526980] IPv6: ADDRCONF(NETDEV_CHANGE): lan0: link becomes ready                                                                              
[  104.953246] br0: port 1(lan0) entered blocking state                                                                                             
[  104.958231] br0: port 1(lan0) entered disabled state                                                                                             
[  104.963865] device lan0 entered promiscuous mode

oh, crash happens when i put the bridge up

[  269.192408] Unable to handle kernel NULL pointer dereference at virtual address 00000000                                                         
[  269.200552] pgd = ca633ada                                                                                                                       
[  269.203261] [00000000] *pgd=00000000                                                                                                             
[  269.206848] Internal error: Oops: 80000005 [#1] SMP ARM                                                                                          
[  269.212073] Modules linked in:                                                                                                                   
[  269.215134] CPU: 3 PID: 118 Comm: kworker/3:2 Not tainted 5.3.0-rc1-bpi-r2-phylink-2.5 #283                                                      
[  269.223483] Hardware name: Mediatek Cortex-A7 (Device Tree)                                                                                      
[  269.229068] Workqueue: events switchdev_deferred_process_work                                                                                    
[  269.234818] PC is at 0x0                                                                                                                         
[  269.237353] LR is at dsa_switch_event+0x640/0x6e8
...
[  269.508191] Backtrace:                                                                                                                           
[  269.510649] [<c09f3004>] (dsa_switch_event) from [<c014d4a8>] (notifier_call_chain+0x58/0x94)                                                    
[  269.519183]  r10:00000000 r9:c09f2514 r8:00000000 r7:00000005 r6:ea4b7d54 r5:00000000                                                            
[  269.527014]  r4:ffffffff                                                                                                                         
[  269.529551] [<c014d450>] (notifier_call_chain) from [<c014d608>] (raw_notifier_call_chain+0x28/0x30)                                             
[  269.538692]  r9:c09f2514 r8:c09f0e68 r7:ea2a4800 r6:00000000 r5:c1104c48 r4:c1104c48                                                             
[  269.546442] [<c014d5e0>] (raw_notifier_call_chain) from [<c09f0544>] (dsa_port_mdb_add+0x58/0x84)                                                
[  269.555323] [<c09f04ec>] (dsa_port_mdb_add) from [<c09f2570>] (dsa_slave_port_obj_add+0x5c/0x78)                                                 
[  269.564111]  r4:ea4b7e38                                                                                                                         
[  269.566649] [<c09f2514>] (dsa_slave_port_obj_add) from [<c0b482ec>] (__switchdev_handle_port_obj_add+0x64/0xe4)                                  
[  269.576745] [<c0b48288>] (__switchdev_handle_port_obj_add) from [<c0b48384>] (switchdev_handle_port_obj_add+0x18/0x24)                           
[  269.587448]  r10:00000000 r9:00000000 r8:00000000 r7:00000006 r6:ea4b7e38 r5:00000000                                                            
[  269.595278]  r4:ffffffff                                                                                                                         
[  269.597816] [<c0b4836c>] (switchdev_handle_port_obj_add) from [<c09f239c>] (dsa_slave_switchdev_blocking_event+0x50/0xb0)                        
[  269.608782] [<c09f234c>] (dsa_slave_switchdev_blocking_event) from [<c014d4a8>] (notifier_call_chain+0x58/0x94)

test now with 5.3 without phylink (and other) Patches…also happens there…so it is no phylink-problem, so i test first upgrade kernel-source to rc4

root@bpi-r2:~# ip addr del 192.168.0.11/24 dev lan0                                                                                                 
root@bpi-r2:~# brctl addbr br0                                                                                                                      
root@bpi-r2:~# ip addr add 192.168.0.11/24 dev br0                                                                                                  
root@bpi-r2:~# brctl addif br0 lan0                                                                                                                 
[   47.731914] br0: port 1(lan0) entered blocking state                                                                                             
[   47.736898] br0: port 1(lan0) entered disabled state                                                                                             
[   47.742586] device lan0 entered promiscuous mode                                                                                                 
root@bpi-r2:~# ip link set br0 up

still happens on rc4 ;(

I do all the test on kernel from merged branches hdmi+phylink-2.5 as I must have working hdmi and nat :wink: as a very stable without any surprises :smile: