Skip to content

Instantly share code, notes, and snippets.

@avafinger
Last active September 22, 2022 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avafinger/dc6197622f87708e99662e04f0e61a9e to your computer and use it in GitHub Desktop.
Save avafinger/dc6197622f87708e99662e04f0e61a9e to your computer and use it in GitHub Desktop.
NanoPi R5S
rock@nanopi5:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
rock@nanopi5:~$
rock@nanopi5:~$ uname -ra
Linux nanopi5 5.10.110-debug #4 SMP Fri Sep 16 22:42:41 -03 2022 aarch64 aarch64 aarch64 GNU/Linux
rock@nanopi5:~$
rock@nanopi5:~$ blkid
/dev/mmcblk0p1: LABEL_FATBOOT="boot" LABEL="boot" UUID="3FCB-5891" TYPE="vfat" PARTLABEL="uboot" PARTUUID="32e0bfb1-c86a-a741-b857-133acaa7ba06"
/dev/mmcblk0p2: LABEL="rootfs" UUID="aa7349f4-0d9a-4a6c-b226-54b884bd672b" TYPE="ext4" PARTUUID="3185eabe-b6ba-3f49-8ff1-6e52e0e607d9"
rock@nanopi5:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk2 179:0 0 7.3G 0 disk
mmcblk2boot0 179:32 0 4M 1 disk
mmcblk2boot1 179:64 0 4M 1 disk
mmcblk0 179:96 0 59.5G 0 disk
├─mmcblk0p1 179:97 0 512M 0 part
└─mmcblk0p2 179:98 0 59G 0 part /
rock@nanopi5:~$ ifconfig
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.254.231 netmask 255.255.0.0 broadcast 192.168.255.255
inet6 2804:7f4:3590:2b7a:3939:616:6897:214c prefixlen 64 scopeid 0x0<global>
inet6 2804:7f4:3590:2b7a:b5e0:b450:3d1e:ae5d prefixlen 64 scopeid 0x0<global>
inet6 2804:7f4:3590:2b7a:cc64:b00a:5c31:7762 prefixlen 64 scopeid 0x0<global>
inet6 2804:7f4:3590:2b7a:1983:91d:b020:2dac prefixlen 64 scopeid 0x0<global>
inet6 2804:7f4:3590:2b7a:77b:c211:f0b8:a02c prefixlen 64 scopeid 0x0<global>
inet6 fe80::f80f:8353:c71d:885d prefixlen 64 scopeid 0x20<link>
ether ee:7b:64:c0:06:49 txqueuelen 1000 (Ethernet)
RX packets 752 bytes 79053 (79.0 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 715 bytes 121827 (121.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth2: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 3a:d6:6e:26:07:cc txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 50 bytes 4200 (4.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 50 bytes 4200 (4.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
-- FriendlyElec working kernel --
[ 7.445351] rk_gmac-dwmac fe2a0000.ethernet: User ID: 0x30, Synopsys ID: 0x51
-- My setup cannot read Version ID ---
id = stmmac_get_id(priv, GMAC4_VERSION);
[ 6.767315] rk_gmac-dwmac fe2a0000.ethernet: ioaddr: 0000000055a104cd + GMAC4_VERSION
[ 6.776036] rk_gmac-dwmac fe2a0000.ethernet: Version ID not available
-- kernel crash ---
[ 16.792339] WARNING: CPU: 2 PID: 313 at drivers/base/core.c:1237 device_links_driver_bound+0x240/0x298
[ 16.792343] Modules linked in: joydev r8169 snd_soc_rk817 cfg80211 8021q garp stp mrp llc sch_fq_codel ip_tables
[ 16.792378] CPU: 2 PID: 313 Comm: NetworkManager Tainted: G W 5.10.110-debug #4
[ 16.792382] Hardware name: FriendlyElec NanoPi R5S (DT)
[ 16.792387] pstate: 80400009 (Nzcv daif +PAN -UAO -TCO BTYPE=--)
[ 16.792395] pc : device_links_driver_bound+0x240/0x298
[ 16.792400] lr : device_links_driver_bound+0x1d0/0x298
[ 16.792402] sp : ffffffc014363090
[ 16.792405] x29: ffffffc014363090 x28: ffffff80054a2098
[ 16.792411] x27: ffffff8003854c10 x26: 0000000000000003
[ 16.792417] x25: ffffffc012491d38 x24: ffffffc011665000
[ 16.792424] x23: 0000000000000001 x22: ffffffc0143630f8
[ 16.792433] x21: ffffffc012491000 x20: ffffff80054a20b8
[ 16.792439] x19: ffffff80054a2000 x18: 0000000000000000
[ 16.792444] x17: 0000000000000000 x16: 0000000000000000
[ 16.792450] x15: 000000558828fc00 x14: 0000000000000000
[ 16.792457] x13: 0000000000000000 x12: 0000000000000020
[ 16.792465] x11: 0101010101010101 x10: 7f7f7f7f7f7f7f7f
[ 16.792471] x9 : fefefeff7164686b x8 : 7f7f7f7f7f7f7f7f
[ 16.792477] x7 : 6f6f74725e716e65 x6 : 0000000080808080
[ 16.792482] x5 : 0000000000000000 x4 : ffffff80020b8e80
[ 16.792488] x3 : 0000000000000000 x2 : ffffff80020b8e80
[ 16.792494] x1 : 0000000000000001 x0 : ffffff800394d400
[ 16.792503] Call trace:
[ 16.792509] device_links_driver_bound+0x240/0x298
[ 16.792514] driver_bound+0x78/0x110
[ 16.792517] device_bind_driver+0x5c/0x70
[ 16.792523] phy_attach_direct+0x23c/0x2d8
[ 16.792529] phylink_of_phy_connect+0x90/0x120
[ 16.792534] stmmac_open+0xa70/0xd78
[ 16.792544] __dev_open+0x134/0x1e0
[ 16.792547] __dev_change_flags+0x1a0/0x1f8
[ 16.792551] dev_change_flags+0x3c/0x78
[ 16.792555] do_setlink+0x360/0xdf0
[ 16.792559] __rtnl_newlink+0x404/0x778
[ 16.792562] rtnl_newlink+0x54/0x80
[ 16.792568] rtnetlink_rcv_msg+0x12c/0x370
[ 16.792574] netlink_rcv_skb+0x64/0x130
[ 16.792581] rtnetlink_rcv+0x28/0x38
[ 16.792585] netlink_unicast+0x1dc/0x288
[ 16.792589] netlink_sendmsg+0x2d4/0x430
[ 16.792595] sock_sendmsg+0x54/0x60
[ 16.792598] ____sys_sendmsg+0x254/0x278
[ 16.792602] ___sys_sendmsg+0x90/0xd0
[ 16.792606] __sys_sendmsg+0x7c/0xd0
[ 16.792610] __arm64_sys_sendmsg+0x2c/0x38
[ 16.792618] el0_svc_common.constprop.4+0xa8/0x1b8
[ 16.792625] do_el0_svc+0x34/0xa0
[ 16.792631] el0_svc+0x1c/0x28
[ 16.792635] el0_sync_handler+0x88/0xb0
[ 16.792640] el0_sync+0x15c/0x180
[ 16.792645]
[ 16.523065] rk_gmac-dwmac fe2a0000.ethernet eth0: validation of rgmii with support 0000000,00000000,00006280 and advertisement 0000000,00000000,00006280 failed: -22
[ 16.523158] rk_gmac-dwmac fe2a0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -22)
[ 16.248475] phy_attach_direct+0x23c/0x2d8
[ 16.248482] phylink_of_phy_connect+0x90/0x120
[ 16.255787] phy_attach_direct+0x23c/0x2d8
[ 16.255796] phylink_connect_phy+0x60/0xe0
[ 16.262529] phy_attach_direct+0x23c/0x2d8
[ 16.262534] phylink_connect_phy+0x60/0xe0
[ 16.286106] phy_attach_direct+0x23c/0x2d8
[ 16.286112] phylink_of_phy_connect+0x90/0x120
[ 16.293109] phy_attach_direct+0x23c/0x2d8
[ 16.293115] phylink_of_phy_connect+0x90/0x120
[ 16.300552] phy_attach_direct+0x23c/0x2d8
[ 16.300558] phylink_connect_phy+0x60/0xe0
[ 16.307398] phy_attach_direct+0x23c/0x2d8
[ 16.307403] phylink_connect_phy+0x60/0xe0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment