16 lines
448 B
Bash
16 lines
448 B
Bash
#! /bin/bash
|
||
#ifconfig eth0 up
|
||
#sleep 1
|
||
#效果:将设备号eth0对应的物理端口设置为速率为100Mbps,全双工工作模式,同时关闭自动协商
|
||
#ethtool -s eth0 speed 100 duplex full autoneg off
|
||
#sleep 2
|
||
#ifconfig eth0 up
|
||
|
||
# 加载m4固件
|
||
echo stop > /sys/class/remoteproc/remoteproc0/state
|
||
echo checker_m4.axf > /sys/class/remoteproc/remoteproc0/firmware
|
||
echo start > /sys/class/remoteproc/remoteproc0/state
|
||
|
||
echo Prapare_OK
|
||
|