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

[原创] 完美解决猫盘群晖掉IP问题

 火... [复制链接]

0

主题

14

回帖

158

积分

初级渣柚V2

积分
158
mai852852 发表于 2023-1-14 21:57:46 | 显示全部楼层 IP:–河南–郑州 联通
学习一下

2

主题

5

回帖

51

积分

初级渣柚V2

积分
51
QQ
xietao2007a 发表于 2023-1-17 15:37:30 | 显示全部楼层 IP:–陕西–西安 电信
感谢分享。

0

主题

2

回帖

11

积分

初级渣柚V1

积分
11
QQ
chen95 发表于 2023-1-17 21:24:14 | 显示全部楼层 IP:–广东–深圳–盐田区 电信
看看怎么解决

1

主题

3

回帖

46

积分

初级渣柚V1

积分
46
gray19 发表于 2023-1-17 21:58:38 | 显示全部楼层 IP:–陕西 移动/全省通用
谢谢谢谢谢谢谢谢谢

0

主题

7

回帖

21

积分

初级渣柚V1

积分
21
QQ
nas66xcom 发表于 2023-1-18 09:18:32 | 显示全部楼层 IP:–河北–唐山 电信
转发:我好像解决部分猫盘刷群晖后掉IP的问题了( I; Z5 `9 N8 Q, @; g8 S2 _9 X
5 X2 w0 T( F4 @' w, c3 U
aquila995. \2 m# b: g0 m8 J# _2 K
  M- x2 Y8 D8 D: r7 ~
于 2020-06-24 16:37:11 发布; i7 w: k& Z) W! w- l! @
7 F8 `& F" o, Y6 y
13215, P6 v+ W+ h$ v
收藏 13
& I% f, E5 w2 H0 _分类专栏: 群晖
; a: U* j. J8 y; ^8 S版权, D0 Y: P" Z3 l& F

! E/ ?# [1 [- ~2 b, C( n/ J7 S群晖
+ ?9 E! G7 b9 W专栏收录该内容
  Q5 o  R# F2 l0 F4 k1 篇文章0 订阅
- p  a( X" S% S  J订阅专栏
0 T4 u  R6 g- K( z我好像解决部分猫盘刷群晖后掉IP的问题了- P3 K9 K, ~7 R" E1 }% x

; F7 E( C# U5 ^5 M0 O我好像解决部分猫盘刷群晖后掉IP的问题了
  q# l3 m. B+ E, _, Z 8 ]) J7 }9 B. m
先说我的情况,xianyu上的,到手发现刷群晖后第一次没挂硬盘时可见ip,关机,上硬盘,再开机就一直见不到ip了,没敢一直重启,心疼硬盘。0 {3 @. i4 S9 ], |
然后刷个X3P用了一段时间,还是想用群晖。上了块固态,试了多次后,应该解决掉IP的问题了,现在挂的是500G普通盘,一直正常。
  N, f" {8 \' i- [  g+ ?* d/ s" D
  u6 H4 l+ E9 `跳过刷机说重点,每次重刷完群晖都是可以连上的,但重启后就不行了,所以应该不是所谓的虚焊问题,应该是某个设置没有达到,网卡没有工作。/ z, L. x3 i4 ?, y
# c& i- m* E' N0 e) a) z6 t$ ?
然后发现的情况是,如果进到env环境(我也不知道叫什么,反正就是在xshell下一直按回车的环境),网卡是工作的,只是再进到群晖启动时没有工作。
' j' ]8 [/ `$ E- \' m 9 A: J8 k4 b5 V) w: p, p2 o
先看了下有什么可用的命令:$ Y, m; F5 j' {; F1 s9 A6 ~# x1 x
. e+ x( @  X0 d2 ]1 z0 H3 c6 u
Marvell>> help/ k+ d) I: ~9 e' R! \
?       - alias for 'help'  Y+ q2 Y5 u3 b/ X; ^( A8 x' U
base    - print or set address offset
4 F) T% V  E- J. Y; u1 Vbdinfo  - print Board Info structure
# R# l5 H/ T) ublkcache- block cache diagnostics and control& W# P: l2 j, w! g* M' d
boot    - boot default, i.e., run 'bootcmd'
) s1 g* A3 N' a# O% Gbootd   - boot default, i.e., run 'bootcmd'0 Q+ E1 }) O% e, U
bootefi - Boots an EFI payload from memory
1 x( X+ A/ U. d' X; k- Q  Ibootelf - Boot from an ELF image in memory
! h2 x, n4 x0 V& x: z3 gbooti   - boot arm64 Linux Image image from memory+ o. b1 A8 j: `4 @; M
bootm   - boot application image from memory
4 U' z) Z- s" V5 }+ c: j============================================================4 h# o; c6 J( x9 U. b( X% r0 ~
bootp   - boot image via network using BOOTP/TFTP protocol. q  l0 x. B5 Y! n6 b* |6 \0 h: A! O! N
============================================================1 x8 {% m) Z0 O" t8 _
bootvx  - Boot vxWorks from an ELF image
5 O; w$ r& r, l5 lbubt    - Burn a u-boot image to flash( [. p1 u( s" Q; z* U, {
cmp     - memory compare( Q$ q# Y" j; h+ K. K& c
coninfo - print console devices and information
, Y: `' E: K2 S! t+ }* v* J. A$ acp      - memory copy
1 m9 e, n3 D# _! ?" \4 w8 hcrc32   - checksum calculation8 C" @9 N+ t1 ?
dcache  - enable or disable data cache' v9 [7 j# ?, @3 K+ H
-------------------------------------------------------------
" H, x8 R6 g/ k- v9 [$ f# X  edhcp    - boot image via network using DHCP/TFTP protocol
$ u- |5 f  R9 c-------------------------------------------------------------* k' F3 H( s! Z, d: x" Q0 k
dm      - Driver model low level access
! @6 ]7 U, s: B) w8 U9 [echo    - echo args to console6 ?0 L; I% x5 e0 T/ u( r" M
editenv - edit environment variable. y7 r& U) R# u
env     - environment handling commands, N% _1 [8 q  s1 x* j/ r4 Y+ F
exit    - exit script6 o. G2 \$ V2 t" m
ext2load- load binary file from a Ext2 filesystem
1 h2 s0 @3 P3 P# Z0 ^' [ext2ls  - list files in a directory (default /)
8 b9 h* u  h# `ext4load- load binary file from a Ext4 filesystem
  d6 f7 b3 t1 D: u, \ext4ls  - list files in a directory (default /)1 d/ ?+ B; e% |7 z' |$ Y
ext4size- determine a file's size
1 c6 E. R& y, h/ N/ n' Uext4write- create a file in the root directory
" @& S4 m6 R: V8 \# ^% Afalse   - do nothing, unsuccessfully5 }3 k9 r  p2 B3 k
fatinfo - print information about filesystem3 R3 m. p! R0 E) j5 w: |
fatload - load binary file from a dos filesystem
0 ?- u- x7 U. K' `$ K" Ifatls   - list files in a directory (default /)1 S1 A% X: B9 k, Z9 t/ F. n
fatsize - determine a file's size
/ S% u1 ]) [. \$ ^4 d  _0 f+ }fdt     - flattened device tree utility commands
) V. F! V6 h% m, A  j5 G. {fstype  - Look up a filesystem type- _: T; u; w2 S8 r5 z2 S, _9 F
go      - start application at address 'addr'
% U0 H3 R) X; Z8 Lgpio    - query and control gpio pins
  e7 l! z  O. g5 J3 Yhelp    - print command description/usage
5 W% `4 m) Z: V% u: z  |i2c     - I2C sub-system
. _+ X' v" B; D$ oicache  - enable or disable instruction cache# o/ Y* Z6 r+ V1 d9 e7 n
iminfo  - print header information for application image# ?8 A. A2 [# r5 `* ^
ir      - ir    - Reading and changing internal register values.
) d8 L2 H7 s! U( \4 U1 V 9 w) e3 I" o5 s/ B- Y9 e4 x+ M
) g0 [# x/ U8 C# f, M' ]) v
itest   - return true/false on integer compare, o  j$ D2 t  {
load    - load binary file from a filesystem- X0 Y' J3 D' Y! ^. E/ U3 O4 X7 G
loadb   - load binary file over serial line (kermit mode)
: r$ |5 R7 _1 B4 M7 _& m( Rloads   - load S-Record file over serial line
4 ~# a$ P- V4 B) k& L6 |4 z, dloadx   - load binary file over serial line (xmodem mode)9 l* z% x' _* {" u( H4 A  Z$ `$ d! c
loady   - load binary file over serial line (ymodem mode)
7 G! m: k6 W8 b& l7 y' Bloop    - infinite loop on address range7 o1 T, T  z5 L0 Z$ ]0 O3 a
ls      - list files in a directory (default /)( J0 J4 T/ z8 R# {0 n4 @
lzmadec - lzma uncompress a memory region
& d! [1 h& e/ b" {% Emd      - memory display
3 l4 S% Y# t( n9 x0 H  ]. gmdio    - MDIO utility commands5 O% i/ M3 b3 ?1 k* P) p: c
mii     - MII utility commands& f# w- D$ ]$ J% [/ i1 g" }
mm      - memory modify (auto-incrementing address)6 N6 l( y3 v7 x1 E1 E+ k# f/ S1 s
mmc     - MMC sub system
0 E% O' E) b  G. ]mmcinfo - display MMC info9 J. H3 e4 \1 f
mw      - memory write (fill)& `: i7 m; c3 s8 G  R
nfs     - boot image via network using NFS protocol
1 n: e# ^. K; Snm      - memory modify (constant address)# u3 m% W/ _5 r) [
part    - disk partition related commands1 ~* _7 N& m$ W; a1 |
ping    - send ICMP ECHO_REQUEST to network host
% I$ P- `5 g( ?- p2 Mprintenv- print environment variables
! w+ s- E! s' d# y1 m2 x6 M: e* a! Upxe     - commands to get and boot from pxe files
& G" {8 O& b3 Hregulator- uclass operations
$ M) B7 L( }9 `# Breset   - Perform RESET of the CPU# E4 E; p5 }& X
run     - run commands in an environment variable- D& i2 u$ D* C  l
save    - save file to a filesystem
3 O8 K" Y5 S& a- s. msaveenv - save environment variables to persistent storage& A4 W: I* X' G; E# g& ~0 x5 p0 V
scsi    - SCSI sub-system9 Z6 q5 L* A* M; u' q0 j; H
scsiboot- boot from SCSI device( ~4 {7 @7 C( i8 E/ i( W
setenv  - set environment variables/ i0 D5 H1 A3 H% ]8 m3 r
sf      - SPI flash sub-system
& D/ @6 q+ a' ?6 ]showvar - print local hushshell variables* z* d6 z- K+ ^6 g
size    - determine a file's size
3 b, r8 K0 s: n" z- @/ N+ H3 u0 o9 v6 tsleep   - delay execution for some time" w, ]4 s8 ?. ]& `: o, h  ?1 a
source  - run script from memory
* m2 G6 t8 F5 E' |( d' Ysspi    - SPI utility command
2 u; g: f& K2 J" ~2 Lsysboot - command to get and boot from syslinux files
. I$ _% Q# b: E0 ^test    - minimal test like /bin/sh
( _( ?0 S) q( Itftpboot- boot image via network using TFTP protocol
3 y$ q  e/ r. I9 z. `time    - run commands and summarize execution time
# ]4 \' j/ M) Q. x9 ctrue    - do nothing, successfully% s) T$ l; P/ Z$ G& C3 \
usb     - USB sub-system0 t( V* u6 Q/ z6 E9 c4 k) d8 j( x( T8 A
usbboot - boot from USB device3 X0 [( f0 }) E8 }
version - print monitor, compiler and linker version
) A% V% m8 V; x " ?0 i3 ^* P9 P# \
发现了gpio
1 b5 E2 I& Y* b& o5 b 7 E3 ?% _0 w0 I( s! g( e  @( R
arvell>> gpio
  m2 `' A5 J2 J, g5 d) X7 C1 kgpio - query and control gpio pins
" `3 U( o  q0 U  V 9 |* |6 V( J# W3 C: |( P

3 `. A+ I+ r3 U2 WUsage:
# d& ?. x  s9 I& Bgpio <input|set|clear|toggle> <pin>8 g- a, s" l+ h
    - input/set/clear/toggle the specified pin
! W% C/ r, P0 `' @gpio status [-a] [<bank> | <pin>]  - show [all/claimed] GPIOs
. V0 O% n, }0 i) }% V
5 R; y7 I: C( Y2 ?* r1 G4 k ( V& i. M& F/ `/ R% f8 N& p
Marvell>> gpio status, O# k5 _3 ^4 k+ M
Bank GPIO2:+ L0 ^3 O1 ~: x" R
GPIO20: output: 1 [x] sata_pwr
1 Q5 Y3 y: S: W/ a1 J. YGPIO221: output: 1 [x] phy_reset
. z$ @- H3 s+ q, e' X% k
+ \; q7 V4 }+ B% t可见的io脚
! y6 u+ }7 j/ J; W$ X+ P1 i3 J . a) P1 d' s# ~6 k3 G( ?& [
Marvell>> gpio status -a
  W( v! n. z5 s& E. BBank GPIO1:8 Z# ?  c3 Y) u. }  @
GPIO10: input: 0 [ ]; p0 l' a2 j0 e9 O+ {
GPIO11: input: 0 [ ]
3 u7 W& n2 g2 S$ z" EGPIO12: input: 1 [ ]
' v% I+ v* x* wGPIO13: input: 1 [ ], p& L8 U8 d% {6 Z" t  P& ?
GPIO14: input: 1 [ ]
, B( v6 Y$ c8 {, ]GPIO15: input: 1 [ ]  Z9 Z7 T4 i, e! Z
GPIO16: input: 0 [ ]) H; h, E$ |, I! F. |& K$ {
GPIO17: input: 0 [ ]
, T& K' c# a. y( n. B, {GPIO18: input: 0 [ ]9 P5 Y% ]1 F- f' k& h% w5 X
GPIO19: input: 0 [ ]
- B6 R* N! d3 a8 FGPIO110: input: 1 [ ], X  i. Y2 f2 E
GPIO111: input: 0 [ ]6 |6 O* x- h' \- ]0 Q) N9 P# m( z
GPIO112: input: 0 [ ]* C5 e9 }8 y- m# K2 i7 O1 B5 o
GPIO113: input: 0 [ ]
0 q# w7 p: v+ [( F) sGPIO114: input: 0 [ ]7 y5 t: F0 p2 `8 H6 \4 s5 y
GPIO115: input: 1 [ ]
9 N* W5 T: j' Z7 r7 S$ @7 J5 @. ~6 TGPIO116: input: 1 [ ]2 E" X# {5 H0 L! m
GPIO117: input: 1 [ ]$ x0 i3 a8 s& Y. A. K  g; ]# I
GPIO118: input: 1 [ ]: t0 E5 E6 c! w. ^9 W
GPIO119: input: 1 [ ]4 w; W# O0 l0 _3 R! \2 C' @
GPIO120: input: 0 [ ]
) y+ j% e6 X9 ?5 sGPIO121: input: 0 [ ]
: ?1 ~" G6 e; F) x8 fGPIO122: input: 0 [ ]
2 J" b  j+ V  W2 Q$ Y) e+ lGPIO123: input: 0 [ ]2 |" _1 x) Y7 `# ?
GPIO124: input: 0 [ ]( w( n& u) D" S- J8 d" J0 Y2 h. J
GPIO125: input: 0 [ ]
* h: \+ F9 J  BGPIO126: input: 0 [ ]
2 ^6 |9 X3 V' Y  K' N! uGPIO127: input: 0 [ ]
4 S* w6 N6 v  l) v0 GGPIO128: input: 0 [ ]7 w( H* ~  r& B. q1 p8 U) K
GPIO129: input: 0 [ ]/ e+ o  s1 n' o- e2 ^, X( p$ C- e; l
GPIO130: input: 0 [ ]# o4 H3 f) X7 `/ S- T- I
GPIO131: input: 0 [ ], {8 M- G. Y3 B$ E3 H  v) x
GPIO132: input: 0 [ ]3 s% w6 _, Y+ S# ~0 z& p; e
GPIO133: input: 0 [ ]2 ]0 |9 A7 k. I, G
GPIO134: input: 0 [ ]9 @7 t3 k# m! x( I- I7 B
GPIO135: input: 0 [ ]" `9 h) w& f% ~5 m* e5 B7 t- y

; t6 S  R5 l% W: Y! |' a% M " ?& V7 _% O5 U' j. i
Bank GPIO2:
. J! C* K& }$ J# {. k4 n7 lGPIO20: output: 1 [x] sata_pwr
& T" l: l! V1 |" QGPIO21: input: 0 [ ]
6 {" S0 R8 G2 LGPIO22: input: 1 [ ]) T, I! Q3 h5 {" a" C. \
GPIO23: input: 1 [ ]
9 }: A" v2 G& b" i. X/ q( r' zGPIO24: input: 1 [ ]2 R" ^  @# G7 B/ j2 X. V; }
GPIO25: input: 1 [ ]
( e0 W4 r5 ]5 T! Y; ?GPIO26: input: 0 [ ]
# F! v4 T# K: _* Y' D" X& BGPIO27: input: 1 [ ]
( |  g: |  P1 E& y# TGPIO28: input: 1 [ ]
5 m# I/ [9 l% {% ?) h# xGPIO29: input: 1 [ ]
; i+ m! \- v9 i8 t7 _GPIO210: input: 1 [ ]
7 p. z; o. h' ~( @7 \' OGPIO211: input: 1 [ ]
2 S$ s7 H- ]8 z' sGPIO212: input: 0 [ ]
4 G2 R4 ^! {7 ]GPIO213: input: 0 [ ]
* C' V. p6 X6 d' m+ j) X( kGPIO214: input: 1 [ ]
. K( x; F' m6 A6 d1 s7 i  oGPIO215: input: 1 [ ]4 r. b, m3 ^- Y/ y9 u- g
GPIO216: input: 1 [ ]
! v" x2 a7 ?* q. m, ?( l) WGPIO217: input: 1 [ ]
+ `; M) J0 m$ S4 V0 }+ o' V+ }GPIO218: input: 1 [ ]1 c6 P. \) c! j# j  y* O
GPIO219: input: 1 [ ]
0 o7 Q5 i! Q, S9 ?( tGPIO220: input: 0 [ ]
" f$ G- i1 l1 l0 UGPIO221: output: 1 [x] phy_reset" j5 o# l: O' d
GPIO222: input: 1 [ ]
; e) \: ^7 g' SGPIO223: input: 1 [ ]+ d4 Q3 Y8 x8 @8 p$ s' _
GPIO224: input: 1 [ ]) n. ]1 L! t9 B$ A& J3 J4 o/ q
GPIO225: input: 1 [ ]
, u3 v% f% C8 C& L; TGPIO226: input: 1 [ ]! M$ j* ^4 T/ i" |' X1 M+ Z7 z
GPIO227: input: 0 [ ]
0 c. Z! w# {' r( TGPIO228: input: 0 [ ]7 [9 W) g* `2 n- W8 @, r. s- E
GPIO229: input: 0 [ ]
) v" x( m' k5 O0 p) V ; ]( e' b8 K! z, N3 P3 }+ t2 u' Q
别的看不懂,只看到一个是硬盘的供电,一个是phy_reset,不知道干什么的。
- E4 k8 D3 ~8 B" m) O
5 t5 N+ @- G! c+ s/ o- v& QMarvell>> gpio
& x7 M/ t9 ~* [) i/ ogpio - query and control gpio pins, B/ O5 h* C, u& P  }9 h

3 R9 ~) D  q8 x# I& ~
7 [3 Q( D, m* R( G  n2 ~5 K+ dUsage:! w$ B! ^& b( A1 R8 ~7 O5 U
gpio <input|set|clear|toggle> <pin>
+ K6 s9 U5 w. }/ W& O, c" ]    - input/set/clear/toggle the specified pin) u: ~# I# w: @  W
gpio status [-a] [<bank> | <pin>]  - show [all/claimed] GPIOs% p* T: ?5 f  E& m
9 u. G  Q) b. N) M; ?
set是置1,clear是置0,toggle八成就是翻转(初中级英语,没办法,全靠猜)  J0 U5 F$ N3 V0 b8 h# W
1 Q  d  v; A  t! n& i
然后看到env有地方是参数设置,类似dos的环境变量吧
+ \1 I4 @* Z# H) i
2 Y" y2 o) d" Z3 n# H5 ZMarvell>> env print$ D) ^0 s+ `+ f! I2 t2 ^8 `# v
arch=arm
' Z- _/ {% u# d* E# m' K  B* q( g' Vbaudrate=115200' O; L7 W( r7 r; g9 }- m+ Z3 Y
board=mvebu_armada-37xx( f0 Q8 m$ \: c5 Y3 N
board_name=mvebu_armada-37xx
  E% Z6 ?" k) j% A+ _/ tboot_mmc0p1= setenv bootdev mmc 0:1; ext4load ${bootdev} ${scriptaddr} /boot/boot.scr && source ${scriptaddr};, O( R' j2 O. m9 W4 L# u3 X
boot_mmc0p2= setenv bootdev mmc 0:2; ext4load ${bootdev} ${scriptaddr} /boot/boot.scr && source ${scriptaddr};
8 Y* v* [  p- i) F  s# H9 xboot_sata=scsi scan; setenv bootdev scsi 0:1; ext4load ${bootdev} ${scriptaddr} /boot/boot.scr && source ${scriptaddr};
- e# l( v) ^9 Y2 @boot_targets=usb mmc0p1 mmc0p2 sata( z" L, k" \4 @; V5 m& O
boot_usb=usb start; setenv bootdev usb 0:1; ext4load ${bootdev} ${scriptaddr} /boot/boot.scr && source ${scriptaddr};
, {! {; J6 u! |# A3 `9 Gbootcmd=gpio input GPIO23; if test $? = 0 ;then echo "Enter button mode";run bootcmd_button;else echo "Enter nomal Mode";run bootcmd_normal;fi1 j* C5 g+ M" W! g
bootcmd_button=for target in ${boot_targets};do run boot_${target}; done;8 \8 e( [4 ]: |- p2 y" `- ~7 S
bootcmd_normal=run bootcmd_syno;
2 B9 L2 G0 p% f. G3 r/ Y" qbootcmd_syno=run syno_bootargs;sf probe;sf read $loadaddr 0x0D5000 0x306000;echo "syno: start decompressing kernel... ";lzmadec $loadaddr $kernel_addr;sf read $initrd_addr 0x3DB000 0x410000;sf read $fdt_addr 0xd2000 0x3000;booti $kernel_addr $initrd_addr $fdt_addr;6 ], u8 y: w/ c  f0 D
bootdelay=1/ P/ L& Z2 o1 O' E
bootdev=scsi 0:17 k7 E* g3 \0 v
console=console=ttyMV0,115200 earlycon=ar3700_uart,0xd0012000' M' A+ R. m- _+ u
cpu=armv8' o& i. m/ E! R- ~/ S& E
ethact=neta@30000
1 J9 ~1 }& {$ s! O% qethaddr=00:11:32:11:22:00
' d; W3 l) o+ _6 G- Q. B+ Y- Aethprime=eth04 q$ b% [; g* j' u9 l
fdt_addr=0x6000000
  D# K1 c3 P4 vfdt_high=0xffffffffffffffff
; t( I0 X! i5 ^8 K7 Hfdtcontroladdr=1f6437d0( A. U/ n, D1 R# `" g+ g
gatewayip=192.168.1.254
- ?' K( b7 e1 `* e: U! X$ c4 `. yhostname=catdrive: P5 C, J; V" D; M+ G: i6 y
image_name=/vmlinuz' ~) ^3 j1 a, a- _
initrd_addr=0x1100000
+ t+ z  E  @  V* K/ \; C7 H% finitrd_size=0x2000000
% e: c0 N/ i  ]' o  eipaddr=192.168.1.119$ Y+ o! j  i1 U2 K3 A2 R( s
kernel_addr=0x7000000
' U9 s9 a7 u# \! m3 L, q, qloadaddr=0x8000000
7 H( Y, ~9 E9 W3 V4 L; E% cnetdev=eth06 f+ s( ^' O, c2 o: i
netmask=255.255.255.0
% Z' ?7 q" w7 V, V$ }0 Frootpath=/srv/nfs/8 q& W% R- r& d
scriptaddr=0x6d00000; C. N7 d/ B' v+ w) p
serverip=192.168.1.254/ [# d3 h2 P, C' Z! V
soc=mvebu
- Q; P9 b" K& R3 }% |3 ~stderr=serial@12000
7 Q( c3 V* b5 `" R' E6 pstdin=serial@120002 x) E; O# e( q1 Z1 ^( P
stdout=serial@12000
; J+ x; G7 m: R- Msyno_bootargs=setenv bootargs console=ttyS0,115200 ip=off root=/dev/sda1 rw swiotlb=2048 syno_hw_version=DS119j syno_fw_version=M.246 syno_hdd_powerup_seq=1 ihd_num=1 netif_num=1 syno_hdd_enable=40 syno_hdd_act_led=10 flash_size=8 vendor=Marvell: \- Q  B. x" \. ~
vendor=Marvell
( ~& F) |- z, _$ P
) A9 n, [9 H  J3 V6 G
' |6 K) y# N) K. ^Environment size: 2001/8188 bytes
1 E$ l. ~9 w; n! Q! KMarvell>>
: e3 [+ q. m+ }' ?# v6 l
- N  D. h7 u7 Y$ _9 ^& X  }看到有一个GPIO23,试了下,原来是reset按钮检测,没什么用。但它有两个启动项,主要是bootcmd_normal,而这又指向bootcmd_syno." O; t8 a3 J* n# O# D* e7 q9 M
bootcmd_syno=run syno_bootargs;sf probe;sf read $loadaddr 0x0D5000 0x306000;echo "syno: start decompressing kernel... ";lzmadec $loadaddr $kernel_addr;sf read $initrd_addr 0x3DB000 0x410000;sf read $fdt_addr 0xd2000 0x3000;booti $kernel_addr $initrd_addr $fdt_addr;) k6 T! X; O* u% g/ s
7 E4 x9 H; w! I$ I
这里好像是群晖引导,一条一条的命令,我又不会改linux的启动呀内核呀,只能在这儿动手了2 @6 T- A2 [; m% s/ [  P* d
bootdelay=10 ,启动等待时间,1秒,太少,我都来不及按,改成10秒6 F9 l0 N2 {' |4 F7 {4 M1 c

1 _( I+ C- a7 ^6 [. I! p: @! _. |7 |0 N& ~bootcmd_syno=gpio clear GPIO221;sleep 10;gpio clear GPIO20;sleep 10;gpio set GPIO221;sleep 10;gpio set GPIO20;sleep 10;run syno_bootargs;sf probe;sf read $loadaddr 0x0D5000 0x306000;echo "syno: start decompressing kernel... ";lzmadec $loadaddr $kernel_addr;sf read $initrd_addr 0x3DB000 0x410000;sf read $fdt_addr 0xd2000 0x3000;booti $kernel_addr $initrd_addr $fdt_addr;" p- v& _9 Q5 F
4 J# [2 h, U. j3 }: j  P9 @0 o' ^, Y
注意我划掉的那部分,是先给硬盘断电,一会儿再通电,在固态硬盘可用,可能因为固态硬盘启动电流小,冲击小,当用普通盘时,有一定几率会死机,所以用普通盘时,我去掉了。( h( O  |8 M5 {+ m( f
思路是:& F- d/ M' \) S; }
启动前先把phy那个=0,等10秒,关硬盘,等10秒,phy那个置1,开硬盘。之后正常启动。
- c! n7 O) F: w! F9 N& D' w  X
& c! Y3 s% n" s3 {( O- S5 c) W这样有时能得到IP,但还是会有一定几率不行,所以又加上了网上流行的ping 60秒不通时重启
6 y7 l, ^2 s8 ], }2 v& Q # {' n/ f3 g) g
控制面板,任务计划-新增-触发的任务-用户定义脚本,开机启动,开机60秒得不到ip 重启
* [5 @8 w& R9 M  j3 ?#!/bin/bash
# N- C. j2 n3 ~dt=`date '+%d/%m/%Y %H:%M:%S'`, h+ F. Y+ v/ {# F
echo "$dt"& _% ^7 @+ J( o; ^9 w/ k9 J
sleep 60
0 ^$ w  V8 ^4 @num=`ping -c20 114.114.114.114 | tail -2 | head -1 | cut -f 3 -d"," | cut -f 1 -d"%" | cut -f 2 -d" "`7 I8 b8 p8 Z: j( E2 A! _
echo $num6 T) ], S( C+ ?% j6 P' h
echo $?
/ _; ]2 m3 r7 D) r% |if [ $? -eq 0 -a $num -eq 0 ]; then
/ ^( u  ~) P! C  G$ ^- B4 y0 e    echo "$dt ok" >> /result.txt
9 ?7 @; O- L& K3 |4 r0 A. B; a# W8 Uelse' E$ R, h5 f4 _; H0 U( k  \. Y
    echo "$dt noip loss $num reboot" >> /result.txt- @+ `# A+ x. N2 n
    reboot, L; ~* }& U  a5 t4 ~
fi
$ t. W, p" M# ~0 \& G1 \9 j ; M$ W( p8 a2 r5 A5 Y/ L  f4 S
第五行,ping后边的IP自己改,我用了一个外网的IP。9 P* C8 F! m; L) z
0 K* e4 u4 _4 F1 j7 M, N
总是思路就是,第一次刷完群晖会有ip,挂着硬盘,装系统,设置60秒脚本,重启,如果找不到IP,改bootcmd_syno,再重启等着进系统。5 L& z1 w( b0 c" [9 U4 C

( `$ @5 [3 g/ L/ k6 K/ g- J0 o我反正试了几天,刚上电,等一会儿根本没有IP,60秒后,会重启,这次绝对有IP。但总要用ttl+shell盯着测试太麻烦,所以又加了一个正常启动后闪led灯的脚本,从网上抄的,忘记上谁发的了,侵权见谅。
4 A# `, R1 b3 f2 L6 ?& u# |# V, j: m 9 Q2 [7 }% G. ?
还是上边60秒的地方,再加一条
& W$ R: D  x6 o" c8 E4 u9 }3 n 6 X4 n8 V6 j% u" k: |8 E
- e8 a" N* a- U2 H! O+ [3 t
2cset -y -f 0 0x45 0x00 0x55; ^2 o" T5 x+ B6 y6 ?3 W1 _
i2cset -y -f 0 0x45 0x01 0x01
) T  c; F  d8 i/ mi2cset -y -f 0 0x45 0x30 0x076 O$ `6 Y5 U) c. Z
i2cset -y -f 0 0x45 0x31 0x72
0 e8 y1 |1 y. i6 n* bi2cset -y -f 0 0x45 0x32 0x72
5 O# S) g: i: H8 Yi2cset -y -f 0 0x45 0x33 0x722 [4 J# `2 Q2 ^' x8 S- Y7 Y
#调节三个灯灯每周期上升沿和最高亮度时间
7 g' m  u; |  X$ D' W- b. N: [#想要白色的话,把三个灯时间改为一样的就可以了,比如全部设为0x44! v/ ?* A5 T5 ~8 V% \, z; L3 ^
i2cset -y -f 0 0x45 0x37 0x44
, Z; I& E2 E  h! L* m* E8 h- |i2cset -y -f 0 0x45 0x3a 0x55
/ a! @) `* v/ U& k3 f. Hi2cset -y -f 0 0x45 0x3d 0x66
1 x2 T+ Z$ s6 C' o( Q#调节三个灯每周期下降沿时间和关机时间
9 @$ x. U) n! {. ]+ ui2cset -y -f 0 0x45 0x38 0x448 P5 A6 }" l# y7 ^4 m3 L3 x
i2cset -y -f 0 0x45 0x3b 0x551 Q; c2 Q5 F# C" {8 y
i2cset -y -f 0 0x45 0x3e 0x66
' j7 m% Z/ g, C5 ]" G( |i2cset -y -f 0 0x45 0x39 0x40
6 Z0 q/ R% t. O1 Q# ai2cset -y -f 0 0x45 0x3c 0x40
* k7 S! i' P4 U* Y& S5 mi2cset -y -f 0 0x45 0x3f 0x40
: W/ [4 V' P* `; G# 0-255,更亮
; |9 p* V1 B3 @% r3 ?0 zi2cset -y -f 0 0x45 0x34 128
* q. q& u$ P: p# C$ j  |i2cset -y -f 0 0x45 0x35 128
. m% U; j8 g( L% Q5 |. ^i2cset -y -f 0 0x45 0x36 128' E- ~9 O, P  I

- ]/ [; g/ L$ u/ w% ~然后在这条设置里有一个“先行任务”,设置成上边的60秒,也就是60秒那条执行完才执行这条。而60秒那条,没有ip就会重启,有ip就完成了,就会执行亮灯% n+ R+ p: x) v; h+ k+ H2 }

4 A8 ]0 V* L. G) [2 ~9 X0 z6 J
1 z! c  j+ M' \我知道很多大神会做内核解决各种问题,我也知道看起来很小的问题,工作量是非常大的,可能要几个月才能解决,所以大神做的东西是不可能轻易免费发出来的,人家也要吃饭,不可能靠爱发电(我也在公司做简单的技术,知道技术无价的道理)。我从99年学电脑开始,绝大部分的东西都是从网上找来学的,所以非常感谢所有把知识发到网上共享的大神们。
1 I8 H( P0 s5 Q. T/ d3 C ' }! S! q- Y# ~  t/ X; T
希望大家有条件能测试一下这个方法,如果可行,请发出去让更多的人看到,如果有改进的方法,也请共享出来,因为这个方法换盘好像不方便。) \! j; J3 S& k  ^

1

主题

4

回帖

262

积分

中级渣柚V1

积分
262
ggjy6689 发表于 2023-1-18 14:08:36 | 显示全部楼层 IP:–江苏–泰州 电信
时间问题?

5

主题

34

回帖

302

积分

中级渣柚V1

积分
302
binglongl 发表于 2023-2-1 16:28:20 | 显示全部楼层 IP:–辽宁 联通
多谢分享!!
: \( q+ L: ^# e* G; y1 G, N

2

主题

15

回帖

282

积分

中级渣柚V1

积分
282
安然若夏 发表于 2023-2-1 18:25:22 来自手机 | 显示全部楼层 IP:–江苏–苏州 电信
看一看学习

3

主题

32

回帖

330

积分

中级渣柚V1

积分
330
54hxz 发表于 2023-2-1 22:18:59 来自手机 | 显示全部楼层 IP:–广东–深圳 移动
学习学习
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-9-24 00:28 , Processed in 0.056893 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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