dch

dch / ten64 dual 1G testing

Last active 1 month ago

Like 0

dch revised this gist 6 months ago · 8bc9182

No changes

dch revised this gist 6 months ago · 3f8c298

1 file changed, 16 insertions, 9 deletions

ten64_dual_1g_linux_revC.md renamed to ten64_dual_1g_linux.md
@@ -1,12 +1,10 @@
1 1
2 - # switch to RevC, same result
2 + # testing in recovery mode on revD
3 3
4 4 ```
5 5 doas cu -l /dev/cuaU0 -s 115200
6 6 Connected
7 - }�ɁjR��"U�
8 - SH(��
9 - Ɂ�jRINFO: checksum 0x9c5886cb
7 + INFO: checksum 0x9c5886cb
10 8 INFO: n_ranks 2
11 9 INFO: rank_density 0x400000000
12 10 INFO: capacity 0x800000000
@@ -307,8 +305,11 @@ INFO: BL31: cortex_a53: CPU workaround for 855873 was applied
307 305 INFO: BL31: Preparing for EL3 exit to normal world
308 306 INFO: Entry point address = 0x82000000
309 307 INFO: SPSR = 0x3c9
308 + ```
310 309
310 + ## U-Boot
311 311
312 + ```
312 313 U-Boot 2020.07-rc1-ga94e0d21 (Mar 15 2022 - 03:55:15 +0000)
313 314 Micron SPI NAND was found.
314 315 256 MiB, block size: 128 KiB, page size: 2048, OOB size: 128
@@ -371,8 +372,11 @@ INFO: RNG Desc SUCCESS with status 0
371 372 INFO: result b250db9659414a63
372 373 TEN64 ft_board_setup end
373 374
374 - Starting kernel ...
375 + ```
376 +
377 + ## Starting kernel ...
375 378
379 + ```
376 380 [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
377 381 [ 0.000000] Linux version 5.10.64 (build@runner-isgbxbcc-project-4881630-concurrent-0) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 8.4.0 r0+16341-7f361f5a1c) 8.4.0, GNU ld (GNU Binutils) 2.34) #0 SMP Wed Oct 13 05:51:35 2021
378 382 [ 0.000000] Machine model: Traverse Ten64
@@ -960,11 +964,11 @@ Please press Enter to activate this console.
960 964 [ 14.240201] br-lan: port 4(eth3) entered disabled state
961 965 [ 14.247628] device eth3 entered promiscuous mode
962 966 [ 14.260521] fsl_dpaa2_eth dpni.3 eth6: configuring for inband/qsgmii link mode
967 + ```
963 968
969 + ## BusyBox v1.33.1 (2021-10-13 05:51:35 UTC) built-in shell (ash)
964 970
965 -
966 - BusyBox v1.33.1 (2021-10-13 05:51:35 UTC) built-in shell (ash)
967 -
971 + ````
968 972 _ __ ___ ___ ___ __ __ ___ _ __ _ _
969 973 | '__|/ _ \ / __|/ _ \\ \ / // _ \| '__|| | | |
970 974 | | | __/| (__| (_) |\ V /| __/| | | |_| |
@@ -1020,7 +1024,11 @@ root@recovery000afa242b15:/#
1020 1024 [ 88.279460] fsl_dpaa2_eth dpni.1 eth8: Link Event: state down
1021 1025 [ 89.280005] fsl_dpaa2_eth dpni.1 eth8: Link Event: state up
1022 1026
1027 + ```
1028 +
1029 + # i2c digging
1023 1030
1031 + ```
1024 1032 root@recovery000afa242b15:/# i2cdetect 4
1025 1033 WARNING! This program can confuse your I2C bus, cause data loss and worse!
1026 1034 I will probe file /dev/i2c-4.
@@ -1184,7 +1192,6 @@ PING 10.0.0.11 (10.0.0.11): 56 data bytes
1184 1192 [ 1047.300377] fsl_dpaa2_eth dpni.1 eth8: Link Event: state up
1185 1193 ```
1186 1194
1187 -
1188 1195 # switch to RevC, same result
1189 1196
1190 1197 ```

dch revised this gist 6 months ago · c1d3835

2 files changed, 4818 insertions

ten64_dual_1g_linux_revC.md (file created)

Diff is too large to be shown

ten64_dual_1g_tests_revD.md (file created)
@@ -0,0 +1,74 @@
1 + # mce1 connected to dpni9
2 +
3 + ```
4 + ### a disconnected interface
5 + # ifconfig mce0
6 + mce0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
7 + options=66ef07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,NV,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS,HWRXTSTMP,MEXTPG,VXLAN_HWCSUM,VXLAN_HWTSO>
8 + ether 6c:b3:11:79:5f:42
9 + media: Ethernet autoselect <full-duplex,rxpause,txpause>
10 + status: no carrier (Cable is unplugged.)
11 + nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
12 + ### a connected interface with dpni9 / xg1 at the other end
13 + # ifconfig mce1
14 + mce1: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
15 + options=66ef07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,NV,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS,HWRXTSTMP,MEXTPG,VXLAN_HWCSUM,VXLAN_HWTSO>
16 + ether 6c:b3:11:79:5f:43
17 + inet 10.0.0.11 netmask 0xffffff00 broadcast 10.0.0.255
18 + media: Ethernet 1000Base-CX-SGMII <full-duplex,rxpause,txpause>
19 + status: active
20 + nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
21 + # ping -S 10.0.0.11 10.0.0.9
22 + 64 bytes from 10.0.0.9: icmp_seq=82 ttl=64 time=0.515 ms
23 + 64 bytes from 10.0.0.9: icmp_seq=83 ttl=64 time=0.205 ms
24 + 64 bytes from 10.0.0.9: icmp_seq=84 ttl=64 time=0.247 ms
25 + ```
26 +
27 + ## ten64 seeing the sweet sweet pings
28 +
29 + ```
30 + root@r02:~ # tcpdump -vvveni dpni9
31 + tcpdump: listening on dpni9, link-type EN10MB (Ethernet), snapshot length 262144 bytes
32 + 00:12:24.777847 6c:b3:11:79:5f:43 > 00:0a:fa:24:2f:7e, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 64, id 5505, offset 0, flags [none], proto ICMP (1), length 84)
33 + 10.0.0.11 > 10.0.0.9: ICMP echo request, id 32704, seq 87, length 64
34 + 00:12:24.777902 00:0a:fa:24:2f:7e > 6c:b3:11:79:5f:43, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 64, id 59547, offset 0, flags [none], proto ICMP (1), length 84)
35 + 10.0.0.9 > 10.0.0.11: ICMP echo reply, id 32704, seq 87, length 64
36 + 00:12:25.135710 6c:b3:11:79:5f:43 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 63: (tos 0x0, ttl 64, id 4630, offset 0, flags [none], proto UDP (17), length 49)
37 + 10.0.0.11.14048 > 10.0.0.255.32414: [udp sum ok] UDP, length 21
38 + 00:12:25.135726 6c:b3:11:79:5f:43 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 63: (tos 0x0, ttl 64, id 36047, offset 0, flags [none], proto UDP (17), length 49)
39 + ```
40 +
41 +
42 + ## swap dpni9 → dpni8
43 +
44 + ```
45 + root@r02:~ # ifconfig dpni8
46 + dpni8: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
47 + options=2b<RXCSUM,TXCSUM,VLAN_MTU,JUMBO_MTU>
48 + ether 00:0a:fa:24:2f:7d
49 + inet 10.0.0.8 netmask 0xffffff00 broadcast 10.0.0.255
50 + media: Ethernet 1000baseT
51 + status: active
52 + nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
53 + ```
54 +
55 + ```
56 + root@wintermute /h/dch# ifconfig mce1
57 + mce1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
58 + options=66ef07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,NV,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS,HWRXTSTMP,MEXTPG,VXLAN_HWCSUM,VXLAN_HWTSO>
59 + ether 6c:b3:11:79:5f:43
60 + inet 10.0.0.11 netmask 0xffffff00 broadcast 10.0.0.255
61 + media: Ethernet autoselect <rxpause,txpause> <------------ bad
62 + status: no carrier (No issue was observed) <------------ bad
63 + nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
64 +
65 + root@wintermute /h/dch# ifconfig mce1 media 1000Base-CX-SGMII mediaopt full-duplex
66 + root@wintermute /h/dch# ifconfig mce1
67 + mce1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
68 + options=66ef07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,NV,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS,HWRXTSTMP,MEXTPG,VXLAN_HWCSUM,VXLAN_HWTSO>
69 + ether 6c:b3:11:79:5f:43
70 + inet 10.0.0.11 netmask 0xffffff00 broadcast 10.0.0.255
71 + media: Ethernet autoselect
72 + status: no carrier (Negotiation failure)
73 + nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
74 + ```