找回密码
 立即注册
楼主: wty9734

[讨论] 猫盘刷debian,ubuntu,群晖有的会报网卡上传crc错误

[复制链接]

4

主题

259

回帖

656

积分

版主

积分
656
发表于 2019-11-19 15:51:19 | 显示全部楼层
我看了下我的网卡市1819,板号3.2,2018.1.18,目前没有发现什么问题,单/双群晖都试过没问题

5

主题

35

回帖

127

积分

初级渣柚V2

积分
127
 楼主| 发表于 2019-11-21 14:11:51 | 显示全部楼层
i6941 发表于 2019-11-19 15:39" W9 s! ]  ]8 G* |  G. i
我的也半死不活了
2 H- A, Z+ i9 `( h- I
我买个usb hub加一个usb3.0的千兆网卡之后刷单linux可以但是有个教程的uboot有点问题0 }0 N5 Y0 q- W- T  H% H4 b

46

主题

617

回帖

2764

积分

中级渣柚V3

积分
2764
发表于 2019-11-21 15:02:06 | 显示全部楼层
wty9734 发表于 2019-11-21 14:11
2 v% ~# ~" N  N* q- k" h$ F2 ?我买个usb hub加一个usb3.0的千兆网卡之后刷单linux可以但是有个教程的uboot有点问题& C7 r$ a" C! I  R
...
6 j) s7 m6 \. I3 p3 ]. q
这个是U2接口U3千兆跑不满。

0

主题

16

回帖

133

积分

初级渣柚V2

积分
133
发表于 2019-11-21 21:40:07 | 显示全部楼层
虽然报错,但是不掉IP,就不管了

1

主题

19

回帖

115

积分

初级渣柚V2

积分
115
发表于 2019-11-26 01:13:39 | 显示全部楼层
本帖最后由 recfox 于 2019-11-27 22:42 编辑 9 ?% O2 q$ ^9 |2 N9 e9 L
2 w9 w7 ^+ A; p* X* x
查了日志,是udhcpc执行的时候,网卡down掉了,导致获取不到ip,自动分了169.254.x.x的ip,甚至因为网卡整个down直接不分IP。udhcpc不会运行第二次,之后一直crc错误0 W9 u# Y  I0 p6 T$ K0 \" J
; i) }; H& `7 H1 n; X% F
目前测试,把emmc里面的内容抹掉,重新写入full.bin的数据,清空emmc并重写full.bin后必然可以获取到IP  [* k( \9 [) q
然后写入完整的DSM系统即可
% P' R7 H5 e. q首先进shell:(坛子还不给上传代码,自己敲部分代码贴Google就能找到了)
9 u- W( g5 r; k' f C6A5CC68-9AE4-4097-B786-E6B5CFE0FE8D.png " e+ s& T( G* [* Y* ?
$ S4 z1 f/ e' m2 x& N& F
然后重写emmc,可以参考板块里猫盘一键刷群辉命令脚本重写full.bin,我是下载到U盘然后sh执行,修改成本地路径不走github,太慢。  Y+ _1 o: ~) B9 z6 s" h+ q, J% w
这样重启以后,能获取到ip。
- G4 z1 g5 v- J. v1 Y1 R6 ? QQ20191126-011752@2x.png 5 S; _3 W# p+ u( h0 D
8 B! g3 D3 t2 B3 o) G1 S
根据这情况,我猜测,应该是网卡驱动或者系统问题,让emmc里面的某些文件,记录了某些不该有的东西,或者执行了某些操作,导致dhcp失败+crc error。' `8 S0 u* {7 R; W) C7 r
接下来的思路我想这么搞
( e/ a4 |: R- G# L! u/ m+ z7 }" H* k" g2 n6 I0 o6 n6 l  Z3 [# i
思路A:
6 l# `7 ?) n  i- m/ z导出重写emmc后第一次和第二次执行的日志,diff对比。
& Q3 j3 D/ E+ O8 i- Q0 A. g精确到时间。6 C. _! _8 v5 Q, b4 e; y: t  P

' j0 f7 @  \+ Q1 n思路B:8 `5 i5 i! Q& d" T& S+ }
1.按照上面的方法,分别dump写入镜像后和第一次开机后的emmc里的文件' e3 W6 F- P+ O$ }8 I3 J
2.提取出来后diff检查哪些文件被修改过(注意连带权限也一起检查,可能是某些文件权限问题导致的)
/ i$ w5 @/ a, p( ]5 V( Z3.筛选网络和dhcp相关的文件,进一步分析
0 f8 q, T1 _) \8 l4.想办法整到udhcpc的日志,分析(测试与其无关)
& @, U" x2 }$ `- ]# f& m) S5.分析不到或者拿不到的话,直接设置权限禁止那部分目录的写入试试,或者整个/目录禁止写入?
% b$ s4 {! I9 {, @; e7 }
+ K4 q0 Q% M6 _7 n思路C(我觉得可能跟udhcpc关系不大):
/ N9 B! n- L1 F$ Z% b  ?2 R8 O2 I测试无效。dhclient返回找不到网卡。
4 K5 d  _+ E& |/ q  S) {1 T! y
  1. 1970-01-01T08:07:57+08:00 a dhclient: Failed to get interface index: No such device
    + ^& g! R! `! r8 ?2 B" p
  2. 1970-01-01T08:07:57+08:00 a dhclient: + Q* [5 A" b: d# b
  3. 1970-01-01T08:07:57+08:00 a dhclient: If you think you have received this message due to a bug rather
    7 i. ^! K% U5 a$ G
  4. 1970-01-01T08:07:57+08:00 a dhclient: than a configuration issue please read the section on submitting
    . c! S5 i1 o) w+ P/ C1 \- l. t
  5. 1970-01-01T08:07:57+08:00 a dhclient: bugs on either our web page at www.isc.org or in the README file
    & d/ b8 {2 V! {. P- v# d
  6. 1970-01-01T08:07:57+08:00 a dhclient: before submitting a bug.  These pages explain the proper
    ! v: f0 ^  s2 y1 M( M" t
  7. 1970-01-01T08:07:57+08:00 a dhclient: process and the information we find helpful for debugging..' }6 Z/ w6 m2 ]: J0 @5 S
  8. 1970-01-01T08:07:57+08:00 a dhclient:
    $ p7 E; K. A' p) ~- z: N9 {
  9. 1970-01-01T08:07:57+08:00 a dhclient: exiting.
    3 `1 r$ |3 n( ~* ~& C
复制代码
& \& d! f, _4 ^* M" {
1.升级udhcpc看看能否解决& W7 q( E3 H, c% ^) z* q5 L& \
2.不能的话,想办法让udhcpc执行前用其他方法给dhcp到,比如kill掉然后重新执行8 A$ G3 E# J3 N  w9 a. [- a
3.换其他dhcp client尝试

" v% f( S. X* w3 ~! a: U* n. R0 \" L) R7 j: w2 s; d6 {
思路D:& p/ e# p: i  c/ V0 B1 h
按照前述方案dd emmc,然后第一次启动时按部就班写好DSM/Linux。此时因为需要出厂设置,在设置期间down掉的网卡会重新up回来。
9 _' H( F2 Q1 R+ R5 _) D. E' o然后设置static ip/升级udhcpc等方法尝试
# v8 J  l' u6 _9 K8 A5 x9 q3 y  x' b  F
思路E(最简单,或许可行):, B! ~4 U6 j; @" k
直接在udhcpc执行后sleep一分钟。

( T2 i& N; x& G# X' Q0 b' f
) G/ I( d! n- V; b$ Z
上述方法CDE无效,进入系统后强制重新up网卡,系统提示找不到eth05 @+ f- E0 Z* @; }6 [/ h9 c+ }; W
应该是系统或者网卡驱动问题了,跟dhcp client关系应该不大0 H- s8 w6 T$ L( S. N0 D8 \
接下来测试udhcpc运行之前网卡是否正常,然后分析前后日志看看
" _8 v* u: g. D+ a- A; O; K8 F5 @5 n8 T
6 V) V% ?6 i# e3 ]' a
思路F:
7 w/ V6 J; P( D; t% M升级emmc里的网卡驱动/把x3p或者猫盘原系统的驱动移植过来看看
4 [$ q* Y8 A6 h, A( l. _
4 Q' T' B( x) N+ D) U明天出差,三周才能回来,希望有大佬尝试下。% g9 c' m! |5 R+ m" b7 Q/ z
如果没有大佬帮忙整小的回来再整。9 b2 R" \! z6 _; r6 z% H

1

主题

71

回帖

223

积分

中级渣柚V1

积分
223
发表于 2019-11-26 10:42:56 | 显示全部楼层
希望大佬能研究出来,我就是这个问题解决不了

1

主题

71

回帖

223

积分

中级渣柚V1

积分
223
发表于 2019-11-26 19:13:03 | 显示全部楼层
recfox 发表于 2019-11-26 01:13
  D) @. z/ p+ J3 Z- T  ?查了日志,是udhcpc执行的时候,网卡down掉了,导致获取不到ip,自动分了169.254.x.x的ip,甚至因为网卡整 ...
, }$ X0 `1 L2 w; V+ J
请教高手能否详细说一下,怎么操作,我刷机后就一直无法分配ip, x. l  H: c7 _& A' n8 P( v
:: Starting syslogd ... [  OK  ]: x- H3 \2 ^% x2 F- P
/etc/rc: line 273: /usr/syno/bin/syno_pstore_collect: not found
' \# P7 K, e$ a( s:: Starting scemd
7 {& B& W' P9 |! P$ r[   15.265002] mvneta d0030000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off0 W3 r- x( \2 F* e
:: Starting services in background
5 G+ e" |: P) O0 ~! T1 O. d# p: xStarting findhostd in flash_rd...2 Q* \) T( H( t$ [& R" b$ \
Starting services in flash_rd...
. L9 m2 a% Q( G# p* H0 M% {7 KRunning /usr/syno/etc/rc.d/J01httpd.sh...+ T% j- |  C. A& z2 [* p
Starting httpd:80 in flash_rd...
6 `& h$ d0 \- p* w0 c3 }: y4 RStarting httpd:5000 in flash_rd...9 }! f: c* v0 x) Q% B& E3 K
Running /usr/syno/etc/rc.d/J03ssdpd.sh...
0 N! D& b* i" K( H/usr/bin/minissdpd -i eth0
1 ]/ X& J% K8 B3 O(15): upnp:rootdevice/ l. a/ u* h0 `0 _- d) R
(51): uuid:upnp_SynologyNAS-001132a0c703::upnp:rootdevice. {/ h/ `. k1 M* S0 E6 i3 G8 W
(60): Synology/synology_armada37xx_ds119j/6.2-24922/169.254.16.2013 R- s  L, N: f0 u3 b/ b7 P- w
(47): http://169.254.16.201:5000/description-eth0.xml+ C  r$ D- \3 w
Connected.3 U1 ]0 T3 k/ ^/ z8 ?  g& e, s
done.
* H5 t# h9 G) |6 S  q. j/usr/syno/bin/reg_ssdp_service 169.254.16.201 001132a0c703 6.2-24922 synology_armada37xx_ds119j eth0% H/ S) i' n5 e7 _* \
Running /usr/syno/etc/rc.d/J04synoagentregisterd.sh...3 P" A; @1 d! T% a; ]. b0 A
Starting synoagentregisterd..." u% r' r3 V; J* q, u4 @& B
Running /usr/syno/etc/rc.d/J30DisableNCQ.sh...
8 N; \+ K# ?* V4 D* }8 d* WRunning /usr/syno/etc/rc.d/J80ADTFanControl.sh...
) K/ l8 R! D0 g- \; k# }) kRunning /usr/syno/etc/rc.d/J98nbnsd.sh...
( y: S' x' \- K  F$ sStarting nbnsd...% P, ~# J  c; p8 x8 q
Running /usr/syno/etc/rc.d/J99avahi.sh...; l8 y/ J, L- w6 d7 w
Starting Avahi mDNS/DNS-SD Daemon
3 M" z6 A, G% m5 _[   21.533652] random: avahi-daemon: uninitialized urandom read (4 bytes read, 100 bits of entropy available)
) `# `1 v  r# P2 Kcname_load_conf failed:/var/tmp/nginx/avahi-aliases.conf
1 L3 D: E! T) {: m5 \6 R  b8 Q$ l[   21.549276] random: avahi-daemon: uninitialized urandom read (8 bytes read, 100 bits of entropy available)
3 i( x% M( T3 a[   21.598391] random: sfdisk: uninitialized urandom read (16 bytes read, 104 bits of entropy available)8 }. t8 |! A* j: i* D
[   21.610860] random: sfdisk: uninitialized urandom read (16 bytes read, 105 bits of entropy available)/ M8 H/ T; \" O% S* U

6

主题

76

回帖

362

积分

中级渣柚V1

积分
362
发表于 2019-11-27 09:40:18 来自手机 | 显示全部楼层
我觉得这个问题和系统关系不大,我xp3 也是这样,始终找不到ip

3

主题

31

回帖

127

积分

初级渣柚V2

积分
127
发表于 2019-11-27 12:39:59 | 显示全部楼层
这个贴技术含量有点高,关注一下
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|矿渣社区 ( 黔ICP备2024020525号-1 )

GMT+8, 2025-7-14 05:27 , Processed in 0.066989 second(s), 4 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表