找回密码
 立即注册
楼主: 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的问题了
( Q1 S) |( M) T* N/ e( B2 H
; I7 ~0 x) z4 ?& R  u( A" ~aquila9953 d! M! j" K! l! k) ?
. F" m/ t& ~7 B9 D. q
于 2020-06-24 16:37:11 发布) a$ ^: x# D" S, ]" c6 ~9 `
! N" Z6 {, h  F
13215
# n) X. M" F0 G% {; G 收藏 13
1 j! B) e& O/ [# n分类专栏: 群晖6 Z" Y  E2 b5 |
版权; ]% u: ]" H3 I$ b9 s7 N

+ A* M% a# J' ^群晖3 l# K: f1 W8 n2 c
专栏收录该内容3 u- B. W% Y" U1 r1 p- Y
1 篇文章0 订阅' I( }- t& E/ K4 I6 X
订阅专栏: C7 D& w2 T# u8 a7 i- S
我好像解决部分猫盘刷群晖后掉IP的问题了$ K- @" o. V9 b2 W  [! o
, X/ W/ w; o- w) X, m
我好像解决部分猫盘刷群晖后掉IP的问题了, ]% K0 i9 z1 k( j9 }

+ d3 M0 M7 k' O" F! T先说我的情况,xianyu上的,到手发现刷群晖后第一次没挂硬盘时可见ip,关机,上硬盘,再开机就一直见不到ip了,没敢一直重启,心疼硬盘。3 x% h# K9 z6 X0 ~9 _
然后刷个X3P用了一段时间,还是想用群晖。上了块固态,试了多次后,应该解决掉IP的问题了,现在挂的是500G普通盘,一直正常。
1 A& r  P+ f, F+ ], }
, ^# K: z1 N: D+ Y2 K" q跳过刷机说重点,每次重刷完群晖都是可以连上的,但重启后就不行了,所以应该不是所谓的虚焊问题,应该是某个设置没有达到,网卡没有工作。, P0 k/ B- p6 F+ ^7 L
1 e  W9 @& N  A; i& {1 c
然后发现的情况是,如果进到env环境(我也不知道叫什么,反正就是在xshell下一直按回车的环境),网卡是工作的,只是再进到群晖启动时没有工作。0 o9 @; ^1 Q. v# Y, b1 @& i
& d) N" {. j2 q, k
先看了下有什么可用的命令:/ \7 P' b0 K- \% R
3 V0 q; v6 s1 W
Marvell>> help: D4 T- `$ k+ I' l
?       - alias for 'help'
1 p: _1 w" h- B# u8 b2 P* ]7 Dbase    - print or set address offset  @( @2 Y1 ?6 R: Z7 C
bdinfo  - print Board Info structure
; _( L6 D7 D- `: [! B+ Pblkcache- block cache diagnostics and control  \! V' @* ]6 n, [9 ^7 y# U
boot    - boot default, i.e., run 'bootcmd'* h/ N7 B# \8 a- |
bootd   - boot default, i.e., run 'bootcmd'; k- j3 {! H$ _$ }3 E* V- `
bootefi - Boots an EFI payload from memory
7 [) k" ]- K, _% j8 M5 ~1 cbootelf - Boot from an ELF image in memory' Z) D1 j9 ^# ]# D
booti   - boot arm64 Linux Image image from memory# n9 Q1 M9 `- M' c
bootm   - boot application image from memory/ N1 L" l0 l( X' @. t1 \  E
============================================================
5 s5 y) p. t7 a' j1 S: Q  Ibootp   - boot image via network using BOOTP/TFTP protocol
$ }: L, @# }/ Y8 b" @$ A============================================================
6 y+ B& @8 D4 O% x( Bbootvx  - Boot vxWorks from an ELF image
% s5 w" h4 T& L' X: abubt    - Burn a u-boot image to flash
$ h- {3 b' G/ i! g1 ucmp     - memory compare
; a8 T% u5 @% m+ a0 ^coninfo - print console devices and information
3 D( I4 @, V, C! ^. g2 _+ Fcp      - memory copy
, r9 d* }; \* j% d* T" Mcrc32   - checksum calculation
! O8 `# U! |' [' U% y$ j1 T4 Tdcache  - enable or disable data cache
7 e: P2 G, d. s- l-------------------------------------------------------------
2 T/ J# c$ J: Y$ Cdhcp    - boot image via network using DHCP/TFTP protocol! G8 z5 U9 A) e/ y0 C5 s( F, E0 _
-------------------------------------------------------------
5 y$ ]$ C9 K/ G5 l1 z' }dm      - Driver model low level access
% g' V/ P* q: t7 i" \echo    - echo args to console3 Y' T. X& R% y$ j' o, n
editenv - edit environment variable
* D+ R) M" O6 E2 d4 F: |, R$ n$ _$ uenv     - environment handling commands, S6 ~1 Z& c7 D
exit    - exit script
/ i# ]5 C$ Y: T9 P# gext2load- load binary file from a Ext2 filesystem
+ l1 w( b. H; U$ I; f. o2 eext2ls  - list files in a directory (default /)6 l; q4 Q% C1 G6 P1 C8 N; n# I
ext4load- load binary file from a Ext4 filesystem
9 P/ `4 D! ^4 P7 Sext4ls  - list files in a directory (default /). n8 {. j/ W+ u5 `7 @9 w
ext4size- determine a file's size
8 M. U8 w3 P, ~+ C2 `& ^ext4write- create a file in the root directory
( e. X& k0 Y+ _$ n0 Wfalse   - do nothing, unsuccessfully
4 f3 X3 G* R" ~- I" Z/ V5 Efatinfo - print information about filesystem& d7 H. ^( F. q- i+ D! b
fatload - load binary file from a dos filesystem
7 }0 G$ d9 E2 w, q9 x' V0 Bfatls   - list files in a directory (default /)
6 y" s% ~0 r! M  Xfatsize - determine a file's size
9 v" B, N6 w* ffdt     - flattened device tree utility commands, R: _. J. D& z( E$ n; v( ]  B! p
fstype  - Look up a filesystem type9 y# W# }  `* z/ C  ~: v
go      - start application at address 'addr'
; @& B6 q9 \3 \  L) Ggpio    - query and control gpio pins4 F* d( o3 `, H  Y2 k
help    - print command description/usage- I9 _" O9 H1 H9 L6 Z0 t6 \
i2c     - I2C sub-system' P. ~: W+ r% V4 e
icache  - enable or disable instruction cache4 p- v7 S) K  t1 W) @: t( C
iminfo  - print header information for application image/ s! I! G, y/ k% m
ir      - ir    - Reading and changing internal register values.
2 y5 b  F& f9 X' l 9 M1 r' Z  s1 B7 d
1 v, K2 D5 o. q1 ]" b) B
itest   - return true/false on integer compare
3 a6 ]& d1 N2 T) w8 O& dload    - load binary file from a filesystem
* g. E( {8 J* e, I% _+ x% rloadb   - load binary file over serial line (kermit mode)
$ J1 t8 N+ Y; Gloads   - load S-Record file over serial line* u9 f; u8 Q. L* l+ H% R
loadx   - load binary file over serial line (xmodem mode)2 j- M$ b6 ^; D
loady   - load binary file over serial line (ymodem mode)1 J( g9 E. O& ^2 j
loop    - infinite loop on address range9 w0 ^5 g) n/ {9 A! M
ls      - list files in a directory (default /)
) d; }$ N- w, [5 D+ wlzmadec - lzma uncompress a memory region2 a. B3 Z$ M% I1 m
md      - memory display) L' O6 z' {2 K: p7 i: O
mdio    - MDIO utility commands
- Q# a: g+ A. e: l5 bmii     - MII utility commands
3 }: W% c) y& f3 bmm      - memory modify (auto-incrementing address)
* E, y1 d( A+ ~/ A7 E$ l: Cmmc     - MMC sub system+ |# b& g  {! z/ ?0 A0 r  f
mmcinfo - display MMC info7 W# ?, [5 E. G2 F$ z# f7 k, Y
mw      - memory write (fill)& t5 `7 Y1 c) M2 L8 d" b* E
nfs     - boot image via network using NFS protocol
( w! \( P5 O+ A0 I, Ynm      - memory modify (constant address). V# Z4 O5 O+ y- G6 u
part    - disk partition related commands( A" m1 Z: h6 i3 W4 [2 }
ping    - send ICMP ECHO_REQUEST to network host) g6 I) g( F$ u' D* j# e
printenv- print environment variables  w- ?; a7 j3 x: Q$ u8 @# ]. j
pxe     - commands to get and boot from pxe files5 E/ G" }5 I3 K" X. {! G* P% P
regulator- uclass operations2 r  b+ K" _! \
reset   - Perform RESET of the CPU
- {8 h' t/ p) m  Wrun     - run commands in an environment variable, a7 E- `* @! I. M( e0 ~; Y
save    - save file to a filesystem& i7 M- B, Y: w/ E3 B1 `! y  g1 j
saveenv - save environment variables to persistent storage
9 k' e6 D) ?& U+ Lscsi    - SCSI sub-system7 I0 y: M. U. C$ L0 l' Z
scsiboot- boot from SCSI device% L  R6 U6 f0 O& b+ y/ z
setenv  - set environment variables3 r2 s& p3 |+ b. H' x) w; [
sf      - SPI flash sub-system7 L$ E! ^' L! H9 ]! C' l1 h$ Q$ e* j
showvar - print local hushshell variables
: \, r- A& j( A* _  n0 E4 ssize    - determine a file's size. v/ W! L7 g* O. C
sleep   - delay execution for some time. z9 T) ~$ {6 Q! ?1 d
source  - run script from memory
6 y* T9 A  ~" B7 }+ O* g% ?9 \sspi    - SPI utility command
. {" P% Y: o; ~9 ~sysboot - command to get and boot from syslinux files6 Z& ~1 T, C2 E7 s1 m6 x, s
test    - minimal test like /bin/sh
" f4 W$ [9 o5 l# ~( mtftpboot- boot image via network using TFTP protocol
5 a- L, f6 J- g+ f; R  X1 mtime    - run commands and summarize execution time! N' Z9 j$ z6 o
true    - do nothing, successfully
3 g/ Y- n0 [, x, @7 Iusb     - USB sub-system
/ A/ f2 [) b. A) g3 Iusbboot - boot from USB device/ ]8 z; j1 b8 ^5 S% \  z
version - print monitor, compiler and linker version
# x# W; y: A0 V; G5 I$ W; d6 C
3 ^+ Y# z6 y7 i4 T发现了gpio, i' p: Q9 P2 c. b" |
( |# o$ K; ?. \# S5 Q3 c7 D% |* C
arvell>> gpio
6 h1 ]3 q. w& n+ I# C2 ngpio - query and control gpio pins
" G% _3 |! l4 H, G% e . l0 W' ]: K  {: D9 \
" w& |* Z2 q* t: L0 f% F3 ?5 _. F
Usage:
* v* O1 ?6 n. u* }gpio <input|set|clear|toggle> <pin>
+ U2 H" `0 R& |( p; T6 Q) T' _    - input/set/clear/toggle the specified pin
; O. i1 Y1 `$ A% wgpio status [-a] [<bank> | <pin>]  - show [all/claimed] GPIOs
. |5 x! k- z; I' s. a1 a # Q$ G) b$ g5 ?; A0 f3 @, y

1 r6 B9 E( ~5 b- x% w  V) lMarvell>> gpio status, P+ ?# h3 G) h- C
Bank GPIO2:/ D+ M7 R8 P7 w6 S  s) w% U3 u
GPIO20: output: 1 [x] sata_pwr
- w- r( \4 Q! {GPIO221: output: 1 [x] phy_reset. r; t8 r8 ^: `! f4 l
( _- }+ T/ {  {6 R  ?
可见的io脚6 h! \& z* V5 d+ e; @

# g, z+ t; [$ M! e" x- MMarvell>> gpio status -a
" g" Q' T- T1 K1 @( I' D( {Bank GPIO1:. h  j$ `0 R! m& r0 V
GPIO10: input: 0 [ ]1 ^9 M, \" X7 l9 R
GPIO11: input: 0 [ ]
2 y* u5 g# @" D1 u2 J9 {9 KGPIO12: input: 1 [ ]
4 t2 x# U0 |5 ]" K- s4 C7 pGPIO13: input: 1 [ ]
! g7 W/ v' a- TGPIO14: input: 1 [ ]; ]; e$ n2 Z- {1 r# d
GPIO15: input: 1 [ ]3 ?5 }" H/ T# K8 t7 y4 z2 o
GPIO16: input: 0 [ ]+ k+ J5 \/ y+ [; U5 e
GPIO17: input: 0 [ ]0 z6 `1 G" A& N) f8 l6 Z7 N
GPIO18: input: 0 [ ]6 @1 g; C/ Z. i6 S8 d
GPIO19: input: 0 [ ]7 k( u/ e* d- }( v; {4 h# [
GPIO110: input: 1 [ ]
$ U$ Z8 V/ N2 I4 K- w& W* q, iGPIO111: input: 0 [ ]) ?2 H% H' P5 Q. |! V) E5 m! L
GPIO112: input: 0 [ ]
: l# x* ]/ H5 IGPIO113: input: 0 [ ]! I# E) ?, s8 A: K; z* Y% N" `
GPIO114: input: 0 [ ]$ ~, T0 b! u# U: B+ i
GPIO115: input: 1 [ ]1 F) K; d! Y# n
GPIO116: input: 1 [ ]
3 ~+ G# v4 j- f8 ^1 s$ _GPIO117: input: 1 [ ]6 n/ {2 `% k+ h. w. B1 U
GPIO118: input: 1 [ ]
- e/ L, P; }( oGPIO119: input: 1 [ ]
3 y$ r% G3 S; p" R' Y9 {% W9 RGPIO120: input: 0 [ ]: n. l# G: f3 L7 U( t# X/ \' S3 N
GPIO121: input: 0 [ ]
5 j! I3 o4 ]& r; u5 BGPIO122: input: 0 [ ]/ e" G6 M; e# n
GPIO123: input: 0 [ ]! ]- o, U! b4 J+ j
GPIO124: input: 0 [ ]5 h" f1 F4 H/ C3 H/ c
GPIO125: input: 0 [ ]2 O- Y" X3 S; `0 v
GPIO126: input: 0 [ ]" ]2 Q3 T2 Y/ d) |
GPIO127: input: 0 [ ]
/ P, l* J  l5 u1 Q9 \$ [' O8 ^GPIO128: input: 0 [ ]
4 ^7 i; G- u  F4 c" o1 S, X  Y4 UGPIO129: input: 0 [ ]- d$ b" ?" G- e% Q/ A; Q
GPIO130: input: 0 [ ]
) A- V9 w/ k) H1 T6 ~GPIO131: input: 0 [ ]
% U, ^$ a7 T% U3 G. L7 ~- [$ e  c9 ~GPIO132: input: 0 [ ]
; b. F" b. m! [GPIO133: input: 0 [ ]# m. t9 Z* k' T: X8 |+ F( X
GPIO134: input: 0 [ ]
( f  J7 U: d7 CGPIO135: input: 0 [ ]
7 H5 O4 D$ J- D" O- q1 C* q $ M0 W% Y: P, _
! d8 U. y3 l# P8 x  X0 N
Bank GPIO2:
& O8 q# _' [, d" fGPIO20: output: 1 [x] sata_pwr
1 `* G6 W6 B6 W6 RGPIO21: input: 0 [ ]! h9 D. ^# s% g! o0 Q. }/ Y  j# B. o
GPIO22: input: 1 [ ]
* ?. h* o: Z7 e; `$ W( sGPIO23: input: 1 [ ]
- L. n& Y# K3 V: c1 ]6 fGPIO24: input: 1 [ ]
9 e5 h" V; u( ]9 S! E& u9 p5 TGPIO25: input: 1 [ ]0 l5 t; z. T$ S& n+ O
GPIO26: input: 0 [ ]
$ T( V5 h/ f- d5 P  |GPIO27: input: 1 [ ]
8 I3 l+ o' n" A" I  bGPIO28: input: 1 [ ]
  U3 x. F& }) _/ R4 Y/ [( yGPIO29: input: 1 [ ]
9 d2 ^( y2 [+ o& F+ y+ h$ r/ {# i# }2 TGPIO210: input: 1 [ ]+ ?6 m  l5 G3 F9 m/ W
GPIO211: input: 1 [ ]  ^4 ]5 t& p# c, F  D2 [) u
GPIO212: input: 0 [ ]& q! J6 L. @; s; a0 o
GPIO213: input: 0 [ ]# t7 \8 V5 K8 M' V7 \' T
GPIO214: input: 1 [ ]
0 H7 N* p1 r) O( J& ^( c! J! CGPIO215: input: 1 [ ]' M$ a% S2 L& R% X3 F) E
GPIO216: input: 1 [ ]1 y; L% U; h# z7 C6 t8 d* G
GPIO217: input: 1 [ ]
5 o* r2 d- z$ D+ _& l3 aGPIO218: input: 1 [ ]
& b8 C: S" n2 G+ [) fGPIO219: input: 1 [ ]5 E( e" L/ `% @. ^$ y* W
GPIO220: input: 0 [ ]+ Z$ O7 Q) e# t
GPIO221: output: 1 [x] phy_reset
% L( X3 R; P3 R- B4 x" y+ v) fGPIO222: input: 1 [ ]0 e$ C  S7 d) S8 C' R
GPIO223: input: 1 [ ]
2 g; A" A$ G. O; _0 \' FGPIO224: input: 1 [ ]& T1 `$ l" N. p
GPIO225: input: 1 [ ]8 f, R8 A* e1 M) U# s1 t
GPIO226: input: 1 [ ]
/ f3 k) c# [9 i. KGPIO227: input: 0 [ ]
! n8 g# u- O" v2 `8 g# Z5 H% F) gGPIO228: input: 0 [ ]
7 o% l! ]% W9 Q% I/ f. ^! l, k' KGPIO229: input: 0 [ ]' G% \) ]+ f( m. ^: \
  `" y- B, R4 h) u; y; |
别的看不懂,只看到一个是硬盘的供电,一个是phy_reset,不知道干什么的。
  D4 W4 }: a# \; o1 l% i! D# ?
7 i' b* w2 A7 @4 d- U5 ~" y0 UMarvell>> gpio* v/ [+ a9 }1 Q
gpio - query and control gpio pins! [, |* X. w1 i4 |

3 @; P' ?* {! V  y9 a8 [  a6 d
/ {# S3 @+ S: ?7 k2 RUsage:( v" i9 z/ F  P& n1 h
gpio <input|set|clear|toggle> <pin>* D5 ]$ H4 E# _6 Y
    - input/set/clear/toggle the specified pin
% e" U9 N9 k+ dgpio status [-a] [<bank> | <pin>]  - show [all/claimed] GPIOs: _) d" B+ u4 K

$ l- l, F% \" e: h/ tset是置1,clear是置0,toggle八成就是翻转(初中级英语,没办法,全靠猜)  `& t- d: c) }) T

9 Z/ T# z1 ~/ e: B6 O" c然后看到env有地方是参数设置,类似dos的环境变量吧! v4 A( O% M% o) X/ M

7 p9 H' c8 r. `$ z6 }Marvell>> env print/ ^4 P4 O7 q0 Q5 c
arch=arm
+ j1 W# @) o, J8 k1 Y, `baudrate=115200
0 l' e0 C6 w# D: m/ yboard=mvebu_armada-37xx
# M) ~4 f+ S1 Y4 ]board_name=mvebu_armada-37xx, \# m, k% ]4 S9 U/ I6 Q. U
boot_mmc0p1= setenv bootdev mmc 0:1; ext4load ${bootdev} ${scriptaddr} /boot/boot.scr && source ${scriptaddr};% W4 w/ O5 h! q- f
boot_mmc0p2= setenv bootdev mmc 0:2; ext4load ${bootdev} ${scriptaddr} /boot/boot.scr && source ${scriptaddr};" m9 z( C; D7 x" Y- e: J; B3 j9 R
boot_sata=scsi scan; setenv bootdev scsi 0:1; ext4load ${bootdev} ${scriptaddr} /boot/boot.scr && source ${scriptaddr};( G# R  n* z" g0 Q1 q" T  _% [* E. [
boot_targets=usb mmc0p1 mmc0p2 sata
6 j" h" C3 A0 L2 C8 }0 i  f. Xboot_usb=usb start; setenv bootdev usb 0:1; ext4load ${bootdev} ${scriptaddr} /boot/boot.scr && source ${scriptaddr};2 _& n9 \) v! z: c/ b
bootcmd=gpio input GPIO23; if test $? = 0 ;then echo "Enter button mode";run bootcmd_button;else echo "Enter nomal Mode";run bootcmd_normal;fi9 v9 i* [3 c- G2 S' X/ T
bootcmd_button=for target in ${boot_targets};do run boot_${target}; done;! z2 G$ f' r: W( b
bootcmd_normal=run bootcmd_syno;
$ y' v9 {) i5 d! S$ U; ^# ]! z) _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;% ^9 v# g1 G& j8 `7 o
bootdelay=1
" |0 y' U5 j1 A" B. \/ |bootdev=scsi 0:13 Z+ O- q  t- A( n) Y) E/ c
console=console=ttyMV0,115200 earlycon=ar3700_uart,0xd0012000/ o8 j8 x# y' D* V5 O. q0 T
cpu=armv8& c' t8 t, G  k7 V* H( s
ethact=neta@300004 k" ~( q4 O! Z
ethaddr=00:11:32:11:22:00  o1 }" H+ h- |$ q: j& f* R" B; j
ethprime=eth0
6 L% Y; g: ?' \% L- Hfdt_addr=0x6000000! L0 [+ _% h  [2 A
fdt_high=0xffffffffffffffff: u" ]9 e. }# o  m7 `+ n
fdtcontroladdr=1f6437d0" _+ S6 X9 x* e7 T- D( L% M
gatewayip=192.168.1.254
! j9 A/ r3 e% v4 S; W* V+ Ihostname=catdrive
6 C5 u6 e7 n) F- ^5 fimage_name=/vmlinuz5 {5 e2 Q1 a5 O* u* u4 R9 b- Y. E
initrd_addr=0x1100000. m; X$ z: w2 j0 A# `
initrd_size=0x2000000
) ], m: k- g/ }2 z2 z' x% P$ Cipaddr=192.168.1.1192 U% i* m4 C/ j& D- u
kernel_addr=0x7000000
0 K( ]3 ~# z3 A7 sloadaddr=0x8000000
, d& R' v1 P/ R# s8 j$ X! T% Qnetdev=eth00 S* W- V1 [7 ?( n; p4 f
netmask=255.255.255.0: r. I1 ~" J) ]+ M3 N1 ~" x
rootpath=/srv/nfs/) A# D/ a# I6 V, I* o( u* Y+ T
scriptaddr=0x6d00000/ {) t% A# h( o, n& O, [
serverip=192.168.1.254# u  E5 o  e4 A6 F' U1 j4 {4 P; @
soc=mvebu0 }% o( \0 N$ S9 t2 H
stderr=serial@12000
8 V5 V$ T( P# f5 h5 T7 T7 z4 O4 W$ V- ?stdin=serial@12000
2 s7 }' M9 y; z) G" c- F2 Wstdout=serial@12000
7 r( ]: n! L( f/ i6 d. Bsyno_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
+ M* m/ X. b  Y/ w" I( hvendor=Marvell, v" v/ ^+ I% ]/ [" N
9 t& M: N$ n) ?' H6 O

2 C  c3 s# @- z; ^8 kEnvironment size: 2001/8188 bytes+ y2 n- O3 v& Q/ x) X6 W
Marvell>>$ s# D" t& n  f5 W/ J
/ S9 A, H: d/ y$ t; I
看到有一个GPIO23,试了下,原来是reset按钮检测,没什么用。但它有两个启动项,主要是bootcmd_normal,而这又指向bootcmd_syno.6 }. \0 S' {0 i, {7 A" b/ T/ @$ e) Q
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;) I1 H+ e8 G4 I# o- T/ M* b
0 ?% e% v/ }/ K' l$ W9 B0 k% s
这里好像是群晖引导,一条一条的命令,我又不会改linux的启动呀内核呀,只能在这儿动手了* t; a; B* s+ [
bootdelay=10 ,启动等待时间,1秒,太少,我都来不及按,改成10秒! U4 C& ], ]. Q7 M+ u1 l/ h

, ^9 I  K/ m( F$ u- M! _, Zbootcmd_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;1 F" G7 p2 W( w7 G( H3 K1 G) Z* }
/ e9 ^5 a" e5 ]2 c# W
注意我划掉的那部分,是先给硬盘断电,一会儿再通电,在固态硬盘可用,可能因为固态硬盘启动电流小,冲击小,当用普通盘时,有一定几率会死机,所以用普通盘时,我去掉了。
/ y( A+ S& v$ S1 l0 x" B: y思路是:* Y& W, g% }# @
启动前先把phy那个=0,等10秒,关硬盘,等10秒,phy那个置1,开硬盘。之后正常启动。6 _; W7 v" y0 Z2 U
  R1 c( I" ]+ u5 l
这样有时能得到IP,但还是会有一定几率不行,所以又加上了网上流行的ping 60秒不通时重启
5 M" a: b' B" |: Q# U
: z$ ]9 `9 M9 ]7 ]4 b0 H! i控制面板,任务计划-新增-触发的任务-用户定义脚本,开机启动,开机60秒得不到ip 重启3 N# Z6 Y2 t' _9 \7 {$ X% @
#!/bin/bash
. }6 Y6 g3 N9 Wdt=`date '+%d/%m/%Y %H:%M:%S'`4 `. n3 Y  s* }4 r# {# E
echo "$dt"
) r' h. {3 Z* n; Y5 [! k. usleep 60
5 M& w0 _9 \0 V- g8 O4 A$ onum=`ping -c20 114.114.114.114 | tail -2 | head -1 | cut -f 3 -d"," | cut -f 1 -d"%" | cut -f 2 -d" "`9 C2 E0 t" u9 v$ b  J, r$ C
echo $num: o/ T, T7 }5 \# {  b) |2 C
echo $?
$ ~/ v9 G5 n( I( Jif [ $? -eq 0 -a $num -eq 0 ]; then. q1 l" R) T  K, G
    echo "$dt ok" >> /result.txt
4 N8 r$ l) \4 Melse7 A4 ~/ _# M- b
    echo "$dt noip loss $num reboot" >> /result.txt: B4 \8 h, ^, J% T
    reboot0 e( |7 M) F# A+ \
fi8 Z5 e( C7 V- j5 ~

% D& F3 s/ K9 e# I* m/ A. v第五行,ping后边的IP自己改,我用了一个外网的IP。
! t+ |2 y) I( B, _. c5 `* W
9 j. |' B! ]- u总是思路就是,第一次刷完群晖会有ip,挂着硬盘,装系统,设置60秒脚本,重启,如果找不到IP,改bootcmd_syno,再重启等着进系统。7 [6 I, A; L  r, Y
' M" Q+ A& r" s, d9 u" N( ]: T( T
我反正试了几天,刚上电,等一会儿根本没有IP,60秒后,会重启,这次绝对有IP。但总要用ttl+shell盯着测试太麻烦,所以又加了一个正常启动后闪led灯的脚本,从网上抄的,忘记上谁发的了,侵权见谅。# i# Y5 v# {+ t) F/ y9 r

7 \1 [# K' E2 ]+ m还是上边60秒的地方,再加一条2 Y6 O( R  C6 R4 k1 d& g
$ w$ j4 f( n. d2 m$ k
" B8 h/ }+ p! e. u/ E- H8 O
2cset -y -f 0 0x45 0x00 0x55
9 J) r( g  t2 n- ~4 M6 `i2cset -y -f 0 0x45 0x01 0x01& X$ l" i2 ~; [# N
i2cset -y -f 0 0x45 0x30 0x07
0 y0 P2 ]! ~! s4 q/ x- gi2cset -y -f 0 0x45 0x31 0x727 a2 D& F& ^2 G+ I* Y( K0 c
i2cset -y -f 0 0x45 0x32 0x72
% X: p4 L) q( F8 o4 Mi2cset -y -f 0 0x45 0x33 0x72
; R: X+ R. i* I1 N+ X7 A#调节三个灯灯每周期上升沿和最高亮度时间
% _" E7 c( \' S1 C/ Z#想要白色的话,把三个灯时间改为一样的就可以了,比如全部设为0x44
0 F2 @( E$ L# X3 s' Yi2cset -y -f 0 0x45 0x37 0x44( _/ ?& c2 ^0 \& T# m6 @+ G, B
i2cset -y -f 0 0x45 0x3a 0x55
& X9 B; d2 v4 }8 mi2cset -y -f 0 0x45 0x3d 0x666 z& k  m% @) `' n, [
#调节三个灯每周期下降沿时间和关机时间8 v1 ]; v% q% L4 C7 ?) f  u
i2cset -y -f 0 0x45 0x38 0x44- e/ Q5 ?7 V: g- Y5 E
i2cset -y -f 0 0x45 0x3b 0x55
5 [- Z/ Q1 i- O9 s( @1 Ei2cset -y -f 0 0x45 0x3e 0x66
) J: w: B" a. k3 A' h; L) ^% zi2cset -y -f 0 0x45 0x39 0x407 Y/ |" s3 p4 K% J& v, s/ Z  L" O# z
i2cset -y -f 0 0x45 0x3c 0x40$ l- `3 S" l; o8 G0 X( x! q: S
i2cset -y -f 0 0x45 0x3f 0x40# c1 f( Q# {" j# I
# 0-255,更亮5 o6 t& T# w3 s: H- i5 M5 t6 r
i2cset -y -f 0 0x45 0x34 128
4 D& j8 N  B1 Yi2cset -y -f 0 0x45 0x35 128% n6 n# {/ h$ M
i2cset -y -f 0 0x45 0x36 128
/ X$ ]: M, K" K+ e6 |8 [3 s+ T8 @
- k7 T7 p7 q" F. N  L  S然后在这条设置里有一个“先行任务”,设置成上边的60秒,也就是60秒那条执行完才执行这条。而60秒那条,没有ip就会重启,有ip就完成了,就会执行亮灯1 q( }5 [4 `& N& @! [7 F

6 o) [( W$ R. P+ c/ q5 P% `
! w: d4 a  N1 S. \, G) E我知道很多大神会做内核解决各种问题,我也知道看起来很小的问题,工作量是非常大的,可能要几个月才能解决,所以大神做的东西是不可能轻易免费发出来的,人家也要吃饭,不可能靠爱发电(我也在公司做简单的技术,知道技术无价的道理)。我从99年学电脑开始,绝大部分的东西都是从网上找来学的,所以非常感谢所有把知识发到网上共享的大神们。
. @& I0 ~, U9 C4 {. d! ] 4 U$ z' b. M( Y% E, k0 o
希望大家有条件能测试一下这个方法,如果可行,请发出去让更多的人看到,如果有改进的方法,也请共享出来,因为这个方法换盘好像不方便。" ?' x' ~* _: E/ o! E

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:–辽宁 联通
多谢分享!!
& W8 c' g% Q/ u1 [+ D+ y. s

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-11-14 08:41 , Processed in 0.060424 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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