setenv bootargs 'mem=128M console=ttyAMA0,115200 clk_ignore_unused rw rootwait root=/dev/mmcblk0p3 rootfstype=ext4 blkdevparts=mmcblk0:1M(uboot.bin),9M(kernel),96M(rootfs.ext4),-(user)'
setenv bootcmd 'mmc read 0 0x80000000 800 4800; bootm 0x80000000'
saveenv
reset


setenv bootargs 'mem=128M console=ttyAMA0,115200 clk_ignore_unused rw rootwait root=/dev/mmcblk0p3 rootfstype=ext4 blkdevparts=mmcblk0:1M(uboot.bin),9M(kernel),200M(rootfs.ext4),-(user)'
setenv bootcmd 'mmc read 0 0x80000000 800 4800; bootm 0x80000000'
saveenv
reset


55-20210326华为海思Hi3516DV300的linux系统下的以太网(eMMC模式)
2021/3/26 10:22


https://blog.csdn.net/cocoron/article/details/105224865
【海思篇】【Hi3516DV300】四、uboot有线网口调试


https://blog.csdn.net/cocoron/article/details/105230180
【海思篇】【Hi3516DV300】五、linux有线网口调试


https://blog.csdn.net/u011164819/article/details/104992961
海思hi3516dv300一些配置(更新中···)
若灮 2020-03-20 16:27:51  949

1. 网络配置
嵌入式设备网络一般都是自己配置的,hi3516的网络配置在/etc/init.d/rcS 这个文件中。
这是他的初始化配置。

但是网络ping 百度还是ping不通,是因为dns服务器没有配置。
配置DNS后,测试可以正常ping 通域名。

2.DNS配置
在/etc下添加resolv.conf文件,并在文件中至少添加一个有效DNS服务器地址, 则域名访问成功。

请严重注意:
本文所使用的的SDK是:Hi3516CV500R001C02SPC021
压缩包是:Hi3516CV500_SDK_V2.0.2.1.tgz
所使用的uboot是:Hi3516DV300-DMEBPRO_6L_T-DDR3_1800M_1GB_16bitx2-A7_900M-SYSBUS_300M.xlsm


https://xueqiu.com/7970718062/159110439
官井想开挖掘机
来自iPhone发布于2020-09-13 15:18
$润和软件(SZ300339)$ 

HiSpark AI Camera套件

l 支持鸿蒙OS、LiteOS、Linux系统,方便进行产品的原型验证和快速开发
l 板载海思Hi3516DV300芯片,内置双核Cortex-A7,最高运行评率900MHz,内置图像处理单元(ISP),内置H265/H264硬件编解码器,内置智能视频引擎(IVE),内置硬件安全引擎
l 主控芯片内置神经网络推理引擎(NNIE),8bit算力1Tops,可进行端侧AI计算
l 板载1G DDR3内存,最大传输速度1866Mbps
l 板载8G eMMC,最大传输速度
l 板载Hi3861 WiFi模组,支持IEEE 802.11 b/g/n,支持STA模式、AP模式
l 板载索尼IMX 335图像传感器,最大有效像素5.04M,视屏最高支持2592x1944@60fps


1、以太网测试所需要的的命令:
(配置/指定hi3516dv300开发板eth0的MAC地址)
ifconfig eth0 hw ether 00:11:22:33:44:55
ifconfig
ifconfig eth0 192.168.0.10 netmask 255.255.255.0
ifconfig
ping 192.168.0.149
ping www.baidu.com
route add default gw 192.168.0.1
ifconfig
ping www.baidu.com
(配置网关之后就可以PING通外网IP了。以百度为例!)
ping 104.193.88.123
cd /etc/

(只有配置域名解析之后才能够PING通百度!)
touch resolv.conf
echo "nameserver 8.8.8.8" >> resolv.conf 
cat resolv.conf 
ping www.baidu.com
ping 104.193.88.123


[BEGIN] 2021/3/26 10:33:07
[C:\~]$ 

Connecting to COM6...
Connected.


hisilicon # 
hisilicon # 
hisilicon # 
hisilicon # setenv bootargs 'mem=128M console=ttyAMA0,115200 clk_ignore_unused rw rootwait root=/dev/mmcblk0p3 rootfstype=ext4 blkdevparts=mmcblk0:1M(uboot.bin),9M(kernel),96M(rootfs.ext4),-(user)'
hisilicon # setenv bootcmd 'mmc read 0 0x80000000 800 4800; bootm 0x80000000'
hisilicon # saveenv
Saving Environment to eMMC Flash...
Writing to MMC(0)... done
hisilicon # 
hisilicon # print
arch=arm
baudrate=115200
board=hi3516dv300
board_name=hi3516dv300
bootargs=mem=128M console=ttyAMA0,115200 clk_ignore_unused rw rootwait root=/dev/mmcblk0p3 rootfstype=ext4 blkdevparts=mmcblk0:1M(uboot.bin),9M(kernel),96M(rootfs.ext4),-(user)
bootcmd=mmc read 0 0x80000000 800 4800; bootm 0x80000000
bootdelay=2
cpu=armv7
ethact=eth0
soc=hi3516dv300
stderr=serial
stdin=serial
stdout=serial
vendor=hisilicon
verify=n

Environment size: 448/262140 bytes
hisilicon # 
hisilicon # reset
resetting ...
                         


System startup

Uncompress Ok!

U-Boot 2016.11 (Mar 25 2021 - 15:55:34 +0800)hi3516dv300

Relocation Offset is: 0f6ea000
Relocating to 8feea000, new gd at 8fe49ef0, sp at 8fe49ed0
MMC:   
EMMC/MMC/SD controller initialization.
scan edges:2 p2f:6 f2p:1
mix set temp-phase 3
scan elemnts: startp:3 endp:120
Tuning SampleClock. mix set phase:[03/07] ele:[13d/16]
** First descriptor is NOT a primary desc on 0:1 **
MMC/SD Card:
    MID:         0x15
    Read Block:  512 Bytes
    Write Block: 512 Bytes
    Chip Size:   7456M Bytes (High Capacity)
    Name:        "8GTF4"
    Chip Type:   MMC
    Version:     0.0
    Speed:       100000000Hz
    Bus Width:   4bit
himci: 0 (eMMC)
In:    serial
Out:   serial
Err:   serial
Net:   eth0
Warning: eth0 (eth0) using random MAC address - 3a:52:11:75:60:e5

Hit any key to stop autoboot:  0 

MMC read: dev # 0, block # 2048, count 18432 ... 18432 blocks read: OK
## Booting kernel from Legacy Image at 80000000 ...
   Image Name:   Linux-4.9.37
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3485557 Bytes = 3.3 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Loading Kernel Image ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.9.37 (rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3) (gcc version 6.3.0 (HC&C V1R3C00SPC300B009_20191212) ) #1 SMP Thu Mar 25 15:57:43 CST 2021
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
CPU: div instructions available: patching division code
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt:Machine model: Hisilicon HI3516DV300 DEMO Board
cma zone is not set!
cma: Reserved 16 MiB at 0x87000000
Memory policy: Data cache writealloc
percpu: Embedded 13 pages/cpu @c6eca000 s21772 r8192 d23284 u53248
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: mem=128M console=ttyAMA0,115200 clk_ignore_unused rw rootwait root=/dev/mmcblk0p3 rootfstype=ext4 blkdevparts=mmcblk0:1M(uboot.bin),9M(kernel),96M(rootfs.ext4),-(user)
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 104644K/131072K available (5120K kernel code, 167K rwdata, 1232K rodata, 1024K init, 313K bss, 10044K reserved, 16384K cma-reserved, 0K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc0600000   (6112 kB)
      .init : 0xc0800000 - 0xc0900000   (1024 kB)
      .data : 0xc0900000 - 0xc0929d00   ( 168 kB)
       .bss : 0xc092b000 - 0xc09796ec   ( 314 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
    Build-time adjustment of leaf fanout to 32.
NR_IRQS:16 nr_irqs:16 16
Gic dist init...
arm_arch_timer: Architected cp15 timer(s) running at 50.00MHz (phys).
clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb8812736b, max_idle_ns: 440795202655 ns
sched_clock: 56 bits at 50MHz, resolution 20ns, wraps every 4398046511100ns
Switching to timer-based delay loop, resolution 20ns
clocksource: hisp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 100.00 BogoMIPS (lpj=500000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x80100000 - 0x80100058
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (200.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 512 (order: 3, 32768 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
Serial: AMBA PL011 UART driver
120a0000.uart: ttyAMA0 at MMIO 0x120a0000 (irq = 21, base_baud = 0) is a PL011 rev2
console [ttyAMA0] enabled
SCSI subsystem initialized
ssp-pl022 120c0000.spi: ARM PL022 driver, device ID: 0x00800022
ssp-pl022 120c0000.spi: mapped registers from 0x120c0000 to c8834000
ssp-pl022 120c1000.spi: ARM PL022 driver, device ID: 0x00800022
ssp-pl022 120c1000.spi: mapped registers from 0x120c1000 to c8838000
ssp-pl022 120c2000.spi: ARM PL022 driver, device ID: 0x00800022
ssp-pl022 120c2000.spi: mapped registers from 0x120c2000 to c883a000
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Linux video capture interface: v2.00
clocksource: Switched to clocksource hisp804
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
workingset: timestamp_bits=30 max_order=15 bucket_order=0
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
fuse init (API version 7.26)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
pl061_gpio 120d0000.gpio_chip: PL061 GPIO chip @0x120d0000 registered
pl061_gpio 120d1000.gpio_chip: PL061 GPIO chip @0x120d1000 registered
pl061_gpio 120d2000.gpio_chip: PL061 GPIO chip @0x120d2000 registered
pl061_gpio 120d3000.gpio_chip: PL061 GPIO chip @0x120d3000 registered
pl061_gpio 120d4000.gpio_chip: PL061 GPIO chip @0x120d4000 registered
pl061_gpio 120d5000.gpio_chip: PL061 GPIO chip @0x120d5000 registered
pl061_gpio 120d6000.gpio_chip: PL061 GPIO chip @0x120d6000 registered
pl061_gpio 120d7000.gpio_chip: PL061 GPIO chip @0x120d7000 registered
pl061_gpio 120d8000.gpio_chip: PL061 GPIO chip @0x120d8000 registered
pl061_gpio 120d9000.gpio_chip: PL061 GPIO chip @0x120d9000 registered
pl061_gpio 120da000.gpio_chip: PL061 GPIO chip @0x120da000 registered
pl061_gpio 120db000.gpio_chip: PL061 GPIO chip @0x120db000 registered
brd: module loaded
libphy: hisi_femac_mii_bus: probed
libphy: Fixed MDIO Bus: probed
Generic PHY 10011100.mdio:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=10011100.mdio:01, irq=-1)
phy_id=0x001cc816, phy_mode=rmii
hisi-femac 10010000.ethernet: using random MAC address 1e:b2:54:ea:0c:6a
usbcore: registered new interface driver r8152
xhci-hcd 100e0000.xhci_0: xHCI Host Controller
xhci-hcd 100e0000.xhci_0: new USB bus registered, assigned bus number 1
xhci-hcd 100e0000.xhci_0: hcc params 0x0220fe6c hci version 0x110 quirks 0x20010010
xhci-hcd 100e0000.xhci_0: irq 29, io mem 0x100e0000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd 100e0000.xhci_0: xHCI Host Controller
xhci-hcd 100e0000.xhci_0: new USB bus registered, assigned bus number 2
usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
hub 2-0:1.0: USB hub found
hub 2-0:1.0: hub can't support USB3.0
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
usbcore: registered new interface driver xpad
hibvt_rtc 12080000.rtc: rtc core: registered 12080000.rtc as rtc0
hibvt_rtc 12080000.rtc: RTC driver for hibvt enabled
i2c /dev entries driver
hibvt-i2c 120b0000.i2c: hibvt-i2c0@100000hz registered
hibvt-i2c 120b1000.i2c: hibvt-i2c1@100000hz registered
hibvt-i2c 120b2000.i2c: hibvt-i2c2@100000hz registered
hibvt-i2c 120b3000.i2c: hibvt-i2c3@100000hz registered
hibvt-i2c 120b4000.i2c: hibvt-i2c4@100000hz registered
hibvt-i2c 120b5000.i2c: hibvt-i2c5@100000hz registered
hibvt-i2c 120b6000.i2c: hibvt-i2c6@100000hz registered
hibvt-i2c 120b7000.i2c: hibvt-i2c7@100000hz registered
usbcore: registered new interface driver uvcvideo
USB Video Class driver (1.1.1)
himci: mmc host probe
himci: mmc host probe
mmc0: CMDQ supported: depth: 16
scan edges:2 p2f:6 f2p:1
mix set temp-phase 3
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
NET: Registered protocol family 10
NET: Registered protocol family 17
8021q: 802.1Q VLAN Support v1.8
Key type dns_resolver registered
Registering SWP/SWPB emulation handler
hibvt_rtc 12080000.rtc: setting system clock to 1970-01-01 03:03:25 UTC (11005)
clk: Not disabling unused clocks
Waiting for root device /dev/mmcblk0p3...
scan elemnts: startp:3 endp:120
Tuning SampleClock. mix set phase:[03/07] ele:[13/16] 
mmc0: new HS200 MMC card at address 0001
mmc0: -524: cmdq: unable to set-up
mmcblk0: mmc0:0001 8GTF4R 7.28 GiB 
mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB
mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB
mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB
 mmcblk0: p1(uboot.bin) p2(kernel) p3(rootfs.ext4) p4(user)
EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:3.
devtmpfs: mounted
Freeing unused kernel memory: 1024K (c0800000 - c0900000)

            _ _ _ _ _ _ _ _ _ _ _ _
            \  _  _   _  _ _ ___
            / /__/ \ |_/
           / __   /  -  _ ___
          / /  / /  / /
  _ _ _ _/ /  /  \_/  \_ ______
___________\___\__________________

[RCS]: /etc/init.d/S00devs
mknod: /dev/console: File exists
mknod: /dev/ttyAMA0: File exists
mknod: /dev/null: File exists
[RCS]: /etc/init.d/S01udev
random: udevd: uninitialized urandom read (16 bytes read)
udevd[90]: starting eudev-3.2.7
[RCS]: /etc/init.d/S80network
Auto login as root ...
login[106]: root login on 'ttyS000'
Welcome to HiLinux.
None of nfsroot found in cmdline.
~ # 
~ # 
~ # 
~ # 
~ # ifconfig
~ # 
~ # 
~ # 
~ # pwd
/root
~ # 
~ # 
~ # cd /
/ # 
/ # 
/ # ifconfig eth0 hw ether 00:11:22:33:44:55
/ # 
/ # ifconfig
/ # 
/ # 
/ # ifconfig eth0 192.168.0.10 netmask 255.255.255.0
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
/ # 
/ # hisi-femac 10010000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

/ # 
/ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:22:33:44:55  
          inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::211:22ff:fe33:4455/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:92 (92.0 B)  TX bytes:508 (508.0 B)
          Interrupt:26 

/ # 
/ # 
/ # ping 192.168.0.149
PING 192.168.0.149 (192.168.0.149): 56 data bytes
64 bytes from 192.168.0.149: seq=0 ttl=64 time=1.909 ms
64 bytes from 192.168.0.149: seq=1 ttl=64 time=0.681 ms
64 bytes from 192.168.0.149: seq=2 ttl=64 time=0.357 ms
64 bytes from 192.168.0.149: seq=3 ttl=64 time=0.578 ms
64 bytes from 192.168.0.149: seq=4 ttl=64 time=0.824 ms
64 bytes from 192.168.0.149: seq=5 ttl=64 time=0.515 ms
^C
--- 192.168.0.149 ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max = 0.357/0.810/1.909 ms
/ # 
/ # 
/ # 
/ # ping www.baidu.com
ping: bad address 'www.baidu.com'
/ # 
/ # 
/ # 
/ # random: fast init done

/ # 
/ # ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: seq=1 ttl=255 time=0.457 ms
64 bytes from 192.168.0.1: seq=2 ttl=255 time=0.670 ms
64 bytes from 192.168.0.1: seq=3 ttl=255 time=0.345 ms
64 bytes from 192.168.0.1: seq=4 ttl=255 time=0.578 ms
64 bytes from 192.168.0.1: seq=5 ttl=255 time=0.246 ms
^C
--- 192.168.0.1 ping statistics ---
6 packets transmitted, 5 packets received, 16% packet loss
round-trip min/avg/max = 0.246/0.459/0.670 ms
/ # 
/ # 
/ # route add default gw 192.168.0.1
/ # 
/ # 
/ # 
/ # ping www.baidu.com
ping: bad address 'www.baidu.com'
/ # 
/ # 
/ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:22:33:44:55  
          inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::211:22ff:fe33:4455/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:136 errors:0 dropped:0 overruns:0 frame:0
          TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:11128 (10.8 KiB)  TX bytes:2674 (2.6 KiB)
          Interrupt:26 

/ # 
/ # 
/ # ping 104.193.88.123
PING 104.193.88.123 (104.193.88.123): 56 data bytes
64 bytes from 104.193.88.123: seq=0 ttl=50 time=162.766 ms
64 bytes from 104.193.88.123: seq=1 ttl=50 time=161.855 ms
64 bytes from 104.193.88.123: seq=2 ttl=50 time=171.437 ms
64 bytes from 104.193.88.123: seq=3 ttl=50 time=162.333 ms
64 bytes from 104.193.88.123: seq=4 ttl=50 time=168.606 ms
64 bytes from 104.193.88.123: seq=5 ttl=50 time=169.991 ms
64 bytes from 104.193.88.123: seq=6 ttl=50 time=161.901 ms
^C
--- 104.193.88.123 ping statistics ---
7 packets transmitted, 7 packets received, 0% packet loss
round-trip min/avg/max = 161.855/165.555/171.437 ms
/ # 
/ # 
/ # 
/ # cd /etc/
/etc # 
/etc # ls -l
total 68
-rwxr-x---    1 root     root            30 Aug 11  2006 fs-version
-rwxr-x---    1 root     root           121 Nov 22  2017 fstab
-rwxr-x---    1 root     root             9 Apr 19  2006 group
drwxr-x---    2 root     root          4096 Mar 28  2019 init.d
-rwxr-x---    1 root     root          3399 Feb 18  2009 inittab
-rwxr-x---    1 root     root           101 Apr 19  2006 mtab
-rwxr-x---    1 root     root            26 Apr 28  2020 passwd
-rwxr-x---    1 root     root            26 Apr 28  2020 passwd-
-rwxr-x---    1 root     root           595 May  8  2020 profile
-rwxr-x---    1 root     root          2478 Feb 20  2006 protocols
-rwxr-x---    1 root     root         15958 Feb 20  2006 services
-rwxr-x---    1 root     root           129 Apr 28  2020 shadow
-rwxr-x---    1 root     root           129 Apr 28  2020 shadow-
drwxr-x---    3 root     root          4096 Mar 29  2018 udev
/etc # 
/etc # 
/etc # touch resolv.conf
/etc # 
/etc # ls -l
total 68
-rwxr-x---    1 root     root            30 Aug 11  2006 fs-version
-rwxr-x---    1 root     root           121 Nov 22  2017 fstab
-rwxr-x---    1 root     root             9 Apr 19  2006 group
drwxr-x---    2 root     root          4096 Mar 28  2019 init.d
-rwxr-x---    1 root     root          3399 Feb 18  2009 inittab
-rwxr-x---    1 root     root           101 Apr 19  2006 mtab
-rwxr-x---    1 root     root            26 Apr 28  2020 passwd
-rwxr-x---    1 root     root            26 Apr 28  2020 passwd-
-rwxr-x---    1 root     root           595 May  8  2020 profile
-rwxr-x---    1 root     root          2478 Feb 20  2006 protocols
-rw-r-----    1 root     root             0 Jan  1 03:07 resolv.conf
-rwxr-x---    1 root     root         15958 Feb 20  2006 services
-rwxr-x---    1 root     root           129 Apr 28  2020 shadow
-rwxr-x---    1 root     root           129 Apr 28  2020 shadow-
drwxr-x---    3 root     root          4096 Mar 29  2018 udev
/etc # 
/etc # 
/etc # echo "nameserver 8.8.8.8" >> resolv.conf 
/etc # 
/etc # 
/etc # ls -l
total 72
-rwxr-x---    1 root     root            30 Aug 11  2006 fs-version
-rwxr-x---    1 root     root           121 Nov 22  2017 fstab
-rwxr-x---    1 root     root             9 Apr 19  2006 group
drwxr-x---    2 root     root          4096 Mar 28  2019 init.d
-rwxr-x---    1 root     root          3399 Feb 18  2009 inittab
-rwxr-x---    1 root     root           101 Apr 19  2006 mtab
-rwxr-x---    1 root     root            26 Apr 28  2020 passwd
-rwxr-x---    1 root     root            26 Apr 28  2020 passwd-
-rwxr-x---    1 root     root           595 May  8  2020 profile
-rwxr-x---    1 root     root          2478 Feb 20  2006 protocols
-rw-r-----    1 root     root            19 Jan  1 03:07 resolv.conf
-rwxr-x---    1 root     root         15958 Feb 20  2006 services
-rwxr-x---    1 root     root           129 Apr 28  2020 shadow
-rwxr-x---    1 root     root           129 Apr 28  2020 shadow-
drwxr-x---    3 root     root          4096 Mar 29  2018 udev
/etc # 
/etc # 
/etc # cat resolv.conf 
nameserver 8.8.8.8
/etc # 
/etc # 
/etc # cd /
/ # 
/ # ping www.baidu.com
PING www.baidu.com (104.193.88.123): 56 data bytes
64 bytes from 104.193.88.123: seq=0 ttl=50 time=161.423 ms
64 bytes from 104.193.88.123: seq=1 ttl=50 time=170.740 ms
64 bytes from 104.193.88.123: seq=2 ttl=50 time=162.170 ms
64 bytes from 104.193.88.123: seq=3 ttl=50 time=166.821 ms
64 bytes from 104.193.88.123: seq=4 ttl=50 time=168.710 ms
64 bytes from 104.193.88.123: seq=5 ttl=50 time=161.793 ms
^C
--- www.baidu.com ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max = 161.423/165.276/170.740 ms
/ # 
/ # 
/ # 
/ # 

[END] 2021/3/26 10:38:55


2、加入rcS启动文件中,重启之后就可以自动配置网络了!
/ # cd etc/
/etc # 
/etc # echo "nameserver 8.8.8.8" >> resolv.conf 
~ # cd /etc/init.d/
/etc/init.d #
/etc/init.d # echo "ifconfig eth0 hw ether 00:11:22:33:44:55" >> rcS
/etc/init.d # echo "ifconfig eth0 192.168.0.10 netmask 255.255.255.0" >> rcS
/etc/init.d # echo "route add default gw 192.168.0.1" >> rcS
/etc/init.d # 
/etc/init.d # 


cd /etc/init.d/
echo "ifconfig eth0 hw ether 00:11:22:33:44:55" >> rcS
echo "ifconfig eth0 192.168.0.10 netmask 255.255.255.0" >> rcS
echo "route add default gw 192.168.0.1" >> rcS


mmcblk0: mmc0:0001 8GTF4R 7.28 GiB 
mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB
mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB
mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB
 mmcblk0: p1(uboot.bin) p2(kernel) p3(rootfs.ext4) p4(user)
EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:3.
devtmpfs: mounted
Freeing unused kernel memory: 1024K (c0800000 - c0900000)

            _ _ _ _ _ _ _ _ _ _ _ _
            \  _  _   _  _ _ ___
            / /__/ \ |_/
           / __   /  -  _ ___
          / /  / /  / /
  _ _ _ _/ /  /  \_/  \_ ______
___________\___\__________________

[RCS]: /etc/init.d/S00devs
mknod: /dev/console: File exists
mknod: /dev/ttyAMA0: File exists
mknod: /dev/null: File exists
[RCS]: /etc/init.d/S01udev
random: udevd: uninitialized urandom read (16 bytes read)
udevd[89]: starting eudev-3.2.7
[RCS]: /etc/init.d/S80network
Auto login as root ...
login[105]: root login on 'ttyS000'
Welcome to HiLinux.
None of nfsroot found in cmdline.
~ # 
~ # 
~ # 
~ # ifconfig
~ # 
~ # 
~ # ping 192.168.0.149
PING 192.168.0.149 (192.168.0.149): 56 data bytes
ping: sendto: Network is unreachable
~ # 
~ # 
~ # cd /etc/init.d/
/etc/init.d # ll
-sh: ll: not found
/etc/init.d # ls -l
total 16
-rwxr-x---    1 root     root           147 Mar 28  2019 S00devs
-rwxr-x---    1 root     root           130 Mar 28  2019 S01udev
-rwxr-x---    1 root     root           828 Dec 27  2007 S80network
-rwxr-x---    1 root     root           380 Aug 22  2007 rcS
/etc/init.d # 
/etc/init.d # 
/etc/init.d # cat rcS 
#! /bin/sh

/bin/mount -a

echo "
            _ _ _ _ _ _ _ _ _ _ _ _
            \  _  _   _  _ _ ___
            / /__/ \ |_/
           / __   /  -  _ ___
          / /  / /  / /
  _ _ _ _/ /  /  \_/  \_ ______
___________\___\__________________
"
for initscript in /etc/init.d/S[0-9][0-9]*
do
    if [ -x $initscript ] ;
    then
        echo "[RCS]: $initscript"
        $initscript
    fi
done

/etc/init.d # 
/etc/init.d # 
/etc/init.d # 
/etc/init.d # 
/etc/init.d # echo "ifconfig eth0 hw ether 00:11:22:33:44:55" >> rcS
/etc/init.d # echo "ifconfig eth0 192.168.0.10 netmask 255.255.255.0" >> rcS
/etc/init.d # echo "route add default gw 192.168.0.1" >> rcS
/etc/init.d # 
/etc/init.d # ls -l
total 16
-rwxr-x---    1 root     root           147 Mar 28  2019 S00devs
-rwxr-x---    1 root     root           130 Mar 28  2019 S01udev
-rwxr-x---    1 root     root           828 Dec 27  2007 S80network
-rwxr-x---    1 root     root           503 Jan  1 03:21 rcS
/etc/init.d # 
/etc/init.d # 
/etc/init.d # cat rcS 
#! /bin/sh

/bin/mount -a

echo "
            _ _ _ _ _ _ _ _ _ _ _ _
            \  _  _   _  _ _ ___
            / /__/ \ |_/
           / __   /  -  _ ___
          / /  / /  / /
  _ _ _ _/ /  /  \_/  \_ ______
___________\___\__________________
"
for initscript in /etc/init.d/S[0-9][0-9]*
do
    if [ -x $initscript ] ;
    then
        echo "[RCS]: $initscript"
        $initscript
    fi
done

ifconfig eth0 hw ether 00:11:22:33:44:55
ifconfig eth0 192.168.0.10 netmask 255.255.255.0
route add default gw 192.168.0.1
/etc/init.d # 
/etc/init.d # 
/etc/init.d # reboot


mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB
 mmcblk0: p1(uboot.bin) p2(kernel) p3(rootfs.ext4) p4(user)
hibvt_rtc 12080000.rtc: setting system clock to 1970-01-01 03:22:30 UTC (12150)
clk: Not disabling unused clocks
EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:3.
devtmpfs: mounted
Freeing unused kernel memory: 1024K (c0800000 - c0900000)

            _ _ _ _ _ _ _ _ _ _ _ _
            \  _  _   _  _ _ ___
            / /__/ \ |_/
           / __   /  -  _ ___
          / /  / /  / /
  _ _ _ _/ /  /  \_/  \_ ______
___________\___\__________________

[RCS]: /etc/init.d/S00devs
mknod: /dev/console: File exists
mknod: /dev/ttyAMA0: File exists
mknod: /dev/null: File exists
[RCS]: /etc/init.d/S01udev
random: udevd: uninitialized urandom read (16 bytes read)
udevd[90]: starting eudev-3.2.7
[RCS]: /etc/init.d/S80network
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Auto login as root ...
login[109]: root login on 'ttyS000'
Welcome to HiLinux.
None of nfsroot found in cmdline.
~ # hisi-femac 10010000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

~ # 
~ # 
~ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:22:33:44:55  
          inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::211:22ff:fe33:4455/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:235 (235.0 B)  TX bytes:578 (578.0 B)
          Interrupt:26 

~ # 
~ # 


3、加入busybox之后:
mmc0: new HS200 MMC card at address 0001
mmc0: -524: cmdq: unable to set-up
mmcblk0: mmc0:0001 8GTF4R 7.28 GiB 
mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB
mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB
mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB
 mmcblk0: p1(uboot.bin) p2(kernel) p3(rootfs.ext4) p4(user)
EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:3.
devtmpfs: mounted
Freeing unused kernel memory: 1024K (c0800000 - c0900000)

Processing /etc/profile... Done

/ # 
/ # 
/ # 
/ # ifconfig
/ # 
/ # 
/ # 
/ # ifconfig eth0 hw ether 00:11:22:33:44:55
/ # 
/ # ifconfig
/ # 
/ # 
/ # ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
ping: sendto: Network is unreachable
/ # 
/ # ping 192.168.0.149
PING 192.168.0.149 (192.168.0.149): 56 data bytes
ping: sendto: Network is unreachable
/ # 
/ # 
/ # 
/ # ifconfig eth0 192.168.0.10 netmask 255.255.255.0
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
/ # hisi-femac 10010000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

/ # 
/ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:22:33:44:55  
          inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::211:22ff:fe33:4455/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:508 (508.0 B)
          Interrupt:26 

/ # 
/ # 
/ # ifconfigrandom: fast init done
/ # ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
ping: sendto: Network is unreachable
/ # 
/ # 
/ # ping 192.168.0.10
PING 192.168.0.10 (192.168.0.10): 56 data bytes
^C
--- 192.168.0.10 ping statistics ---
7 packets transmitted, 0 packets received, 100% packet loss
/ # 
/ # 
/ # 
/ # ping 192.168.0.149
PING 192.168.0.149 (192.168.0.149): 56 data bytes
64 bytes from 192.168.0.149: seq=0 ttl=64 time=0.947 ms
64 bytes from 192.168.0.149: seq=1 ttl=64 time=0.699 ms
64 bytes from 192.168.0.149: seq=2 ttl=64 time=0.390 ms
64 bytes from 192.168.0.149: seq=3 ttl=64 time=0.629 ms
64 bytes from 192.168.0.149: seq=4 ttl=64 time=0.318 ms
^C
--- 192.168.0.149 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0.318/0.596/0.947 ms
/ # 
/ # 
/ # 
/ # ping www.baidu.com
ping: bad address 'www.baidu.com'
/ # 
/ # 
/ # 
/ # route add default gw 192.168.0.1
/ # 
/ # 
/ # 
/ # ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
^C
--- 127.0.0.1 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss
/ # 
/ # 
/ # 
/ # ping 192.168.0.149
PING 192.168.0.149 (192.168.0.149): 56 data bytes
64 bytes from 192.168.0.149: seq=0 ttl=64 time=0.591 ms
64 bytes from 192.168.0.149: seq=1 ttl=64 time=0.415 ms
64 bytes from 192.168.0.149: seq=2 ttl=64 time=0.689 ms
64 bytes from 192.168.0.149: seq=3 ttl=64 time=1.490 ms
64 bytes from 192.168.0.149: seq=4 ttl=64 time=0.663 ms
64 bytes from 192.168.0.149: seq=5 ttl=64 time=0.358 ms
^C
--- 192.168.0.149 ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max = 0.358/0.701/1.490 ms
/ # 
/ # 
/ # 
/ # ping 192.168.0.10
PING 192.168.0.10 (192.168.0.10): 56 data bytes
^C
--- 192.168.0.10 ping statistics ---
6 packets transmitted, 0 packets received, 100% packet loss
/ # 
/ # 
/ # 
/ # 
/ # ping www.baidu.com
ping: bad address 'www.baidu.com'
/ # 
/ # 
/ # ll
-/bin/sh: ll: not found
/ # 
/ # 
/ # ls -l
total 36
drwxrwxr-x    2 0        0             4096 Mar 26  2021 bin
drwxr-xr-x    4 0        0             2820 Jan  1 03:53 dev
drwxr-xr-x    3 0        0             4096 Mar  5  2014 etc
drwxrwxr-x    2 0        0             4096 Mar 26  2021 home
drwxr-xr-x    2 0        0             4096 Dec 18  2019 lib
lrwxrwxrwx    1 0        0               11 Mar 26  2021 linuxrc -> bin/busybox
drwxrwxr-x    2 0        0             4096 Mar 26  2021 mnt
dr-xr-xr-x   81 0        0                0 Jan  1 00:00 proc
drwxrwxr-x    2 0        0             4096 Mar 26  2021 sbin
drwxrwxr-x    2 0        0             4096 Mar 26  2021 tmp
drwxrwxr-x    4 0        0             4096 Mar 26  2021 usr
drwxrwxr-x    2 0        0             4096 Mar 26  2021 var
/ # 
/ # 
/ # cd etc/
/etc # 
/etc # ls
fstab    init.d   inittab  profile
/etc # 
/etc # ls -l
total 16
-rw-r--r--    1 0        0               33 Mar  5  2014 fstab
drwxr-xr-x    2 0        0             4096 Mar  5  2014 init.d
-rw-r--r--    1 0        0              100 Mar  5  2014 inittab
-rw-r--r--    1 0        0              133 Mar  5  2014 profile
/etc # 
/etc # 
/etc # cd init.d/
/etc/init.d # 
/etc/init.d # 
/etc/init.d # ls -l
total 4
-rwxr-xr-x    1 0        0               26 Mar  5  2014 rcS
/etc/init.d # 
/etc/init.d # 
/etc/init.d # cat rcS 
#! /bin/sh

/bin/mount -a


4、加入busybox之后重启,网络配置丢失了!
hibvt_rtc 12080000.rtc: setting system clock to 1970-01-01 03:57:42 UTC (14262)
clk: Not disabling unused clocks
Waiting for root device /dev/mmcblk0p3...
mmc0: new HS200 MMC card at address 0001
mmc0: -524: cmdq: unable to set-up
mmcblk0: mmc0:0001 8GTF4R 7.28 GiB 
mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB
mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB
mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB
 mmcblk0: p1(uboot.bin) p2(kernel) p3(rootfs.ext4) p4(user)
EXT4-fs (mmcblk0p3): recovery complete
EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:3.
devtmpfs: mounted
Freeing unused kernel memory: 1024K (c0800000 - c0900000)

Processing /etc/profile... Done

/ # 
/ # 
/ # 
/ # 
/ # ifconfig
/ # 
/ # 
/ # 
/ # 
/ # cd /etc/init.d/
/etc/init.d # echo "ifconfig eth0 hw ether 00:11:22:33:44:55" >> rcS
/etc/init.d # echo "ifconfig eth0 192.168.0.10 netmask 255.255.255.0" >> rcS
/etc/init.d # echo "route add default gw 192.168.0.1" >> rcS
/etc/init.d # 
/etc/init.d # ls -l
total 4
-rwxr-xr-x    1 0        0              149 Jan  1 03:57 rcS
/etc/init.d # 
/etc/init.d # 
/etc/init.d # cat rcS 
#! /bin/sh

/bin/mount -a
ifconfig eth0 hw ether 00:11:22:33:44:55
ifconfig eth0 192.168.0.10 netmask 255.255.255.0
route add default gw 192.168.0.1
/etc/init.d # 
/etc/init.d # 
/etc/init.d # 
/etc/init.d # sync
/etc/init.d # reboot


mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB
mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB
mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB
 mmcblk0: p1(uboot.bin) p2(kernel) p3(rootfs.ext4) p4(user)
EXT4-fs (mmcblk0p3): recovery complete
EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:3.
devtmpfs: mounted
Freeing unused kernel memory: 1024K (c0800000 - c0900000)
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

Processing /etc/profile... Done

/ # hisi-femac 10010000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

/ # 
/ # 
/ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:22:33:44:55  
          inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::211:22ff:fe33:4455/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:322 (322.0 B)  TX bytes:578 (578.0 B)
          Interrupt:26 

/ # 
/ # 
/ # ping www.baidu.com
ping: bad address 'www.baidu.com'
/ # 
/ # ping 192.168.0.149
PING 192.168.0.149 (192.168.0.149): 56 data bytes
random: fast init done
64 bytes from 192.168.0.149: seq=0 ttl=64 time=7.079 ms
64 bytes from 192.168.0.149: seq=1 ttl=64 time=0.788 ms
64 bytes from 192.168.0.149: seq=2 ttl=64 time=0.490 ms
64 bytes from 192.168.0.149: seq=3 ttl=64 time=0.724 ms
64 bytes from 192.168.0.149: seq=4 ttl=64 time=0.399 ms
64 bytes from 192.168.0.149: seq=5 ttl=64 time=0.650 ms
^C
--- 192.168.0.149 ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max = 0.399/1.688/7.079 ms
/ # 
/ # 
/ # ping 192.168.0.10
PING 192.168.0.10 (192.168.0.10): 56 data bytes
^C
--- 192.168.0.10 ping statistics ---
86 packets transmitted, 0 packets received, 100% packet loss
/ # 
/ # 
/ # 
/ # ping 14.215.177.39
PING 14.215.177.39 (14.215.177.39): 56 data bytes
64 bytes from 14.215.177.39: seq=0 ttl=56 time=6.764 ms
64 bytes from 14.215.177.39: seq=1 ttl=56 time=6.582 ms
64 bytes from 14.215.177.39: seq=2 ttl=56 time=6.816 ms
64 bytes from 14.215.177.39: seq=3 ttl=56 time=7.039 ms
64 bytes from 14.215.177.39: seq=4 ttl=56 time=6.739 ms
64 bytes from 14.215.177.39: seq=5 ttl=56 time=6.941 ms
^C
--- 14.215.177.39 ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max = 6.582/6.813/7.039 ms
/ # 
/ # 
/ # 
/ # 
/ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:22:33:44:55  
          inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::211:22ff:fe33:4455/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:258 errors:0 dropped:0 overruns:0 frame:0
          TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:13290 (12.9 KiB)  TX bytes:2786 (2.7 KiB)
          Interrupt:26 

/ # 
/ # 
/ # 
/ # route add default gw 192.168.0.1
route: SIOCADDRT: File exists
/ # 
/ # 
/ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:22:33:44:55  
          inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::211:22ff:fe33:4455/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:269 errors:0 dropped:0 overruns:0 frame:0
          TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:14145 (13.8 KiB)  TX bytes:2786 (2.7 KiB)
          Interrupt:26 

/ # 
/ # 
/ # ping www.baidu.com
ping: bad address 'www.baidu.com'
/ # 
/ # 
/ # 

/etc # 
/etc # echo "nameserver 8.8.8.8" >> resolv.conf 
/etc # ls -l
total 20
-rw-r--r--    1 0        0               33 Mar  5  2014 fstab
drwxr-xr-x    2 0        0             4096 Mar  5  2014 init.d
-rw-r--r--    1 0        0              100 Mar  5  2014 inittab
-rw-r--r--    1 0        0              133 Mar  5  2014 profile
-rw-r--r--    1 0        0               19 Jan  1 04:10 resolv.conf
/etc # 
/etc # 
/etc # cat resolv.conf 
nameserver 8.8.8.8
/etc # 
/etc # 
/etc # reboot


EXT4-fs (mmcblk0p3): recovery complete
EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:3.
devtmpfs: mounted
Freeing unused kernel memory: 1024K (c0800000 - c0900000)
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

Processing /etc/profile... Done

/ # hisi-femac 10010000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

/ # 
/ # 
/ # 
/ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:22:33:44:55  
          inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::211:22ff:fe33:4455/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:530 (530.0 B)  TX bytes:578 (578.0 B)
          Interrupt:26 

/ # 
/ # 
/ # ping www.baidu.com
PING www.baidu.com (104.193.88.77): 56 data bytes
64 bytes from 104.193.88.77: seq=0 ttl=50 time=162.020 ms
64 bytes from 104.193.88.77: seq=1 ttl=50 time=162.537 ms
64 bytes from 104.193.88.77: seq=2 ttl=50 time=162.237 ms
64 bytes from 104.193.88.77: seq=3 ttl=50 time=164.115 ms
64 bytes from 104.193.88.77: seq=4 ttl=50 time=162.162 ms
64 bytes from 104.193.88.77: seq=5 ttl=50 time=161.835 ms
64 bytes from 104.193.88.77: seq=6 ttl=50 time=171.953 ms
64 bytes from 104.193.88.77: seq=7 ttl=50 time=167.243 ms
^C
--- www.baidu.com ping statistics ---
8 packets transmitted, 8 packets received, 0% packet loss
round-trip min/avg/max = 161.835/164.262/171.953 ms
/ # 
/ # 


5、将配置文件写入文件系统,刷机就可以PING通百度!
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1$ cd rootfs/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs$ cd etc/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc$ echo "nameserver 8.8.8.8" >> resolv.conf 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc$ cd init.d/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ echo "ifconfig eth0 hw ether 00:11:22:33:44:55" >> rcS
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ echo "ifconfig eth0 192.168.0.10 netmask 255.255.255.0" >> rcS
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ echo "route add default gw 192.168.0.1" >> rcS
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ cd ../../..
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1$ ./make_ext4fs -l 200M -s rootfs_hi3516dv300.ext4 rootfs
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1$ 


rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1$ ll
total 56968
drwxrwxr-x 10 rootroot rootroot     4096 3月  26 12:31 ./
drwxrwxr-x  5 rootroot rootroot     4096 3月  26 11:13 ../
drwxrwxr-x  2 rootroot rootroot     4096 5月  28  2020 hi3516av300_spi_smp_image_glibc/
drwxrwxr-x  2 rootroot rootroot     4096 5月  28  2020 hi3516cv500_spi_smp_image_glibc/
drwxrwxr-x  2 rootroot rootroot     4096 5月  28  2020 hi3516dv300_spi_smp_image_glibc/
-rw-r--r--  1 rootroot rootroot 10688507 3月  26 11:14 lib.tgz
-rwxrwxr-x  1 rootroot rootroot   110352 3月  26 11:16 make_ext4fs*
drwxrwxr-x  6 rootroot rootroot     4096 3月  25 14:50 osdrv/
drwxrwxr-x  6 rootroot rootroot     4096 3月  25 17:05 package/
drwxrwxr-x 13 rootroot rootroot     4096 3月  26 11:15 rootfs/
-rw-r--r--  1 rootroot rootroot 47477556 3月  26 11:16 rootfs_hi3516dv300a.ext4
drwxrwxr-x  2 rootroot rootroot     4096 5月  28  2020 scripts/
-rwxrwxr-x  1 rootroot rootroot      880 5月  28  2020 sdk.cleanup*
-rwxrwxr-x  1 rootroot rootroot     4891 5月  28  2020 sdk.unpack*
drwxrwxr-x  3 rootroot rootroot     4096 3月  24 14:15 smp/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1$ cd rootfs/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs$ ll
total 52
drwxrwxr-x 13 rootroot rootroot 4096 3月  26 11:15 ./
drwxrwxr-x 10 rootroot rootroot 4096 3月  26 12:31 ../
drwxrwxr-x  2 rootroot rootroot 4096 3月  26 11:10 bin/
drwxrwxr-x  2 rootroot rootroot 4096 3月  26 11:15 dev/
drwxr-xr-x  3 rootroot rootroot 4096 3月   5  2014 etc/
drwxrwxr-x  2 rootroot rootroot 4096 3月  26 11:15 home/
drwxr-xr-x  2 rootroot rootroot 4096 12月 18  2019 lib/
lrwxrwxrwx  1 rootroot rootroot   11 3月  26 11:02 linuxrc -> bin/busybox*
drwxrwxr-x  2 rootroot rootroot 4096 3月  26 11:15 mnt/
drwxrwxr-x  2 rootroot rootroot 4096 3月  26 11:15 proc/
drwxrwxr-x  2 rootroot rootroot 4096 3月  26 11:02 sbin/
drwxrwxr-x  2 rootroot rootroot 4096 3月  26 11:15 tmp/
drwxrwxr-x  4 rootroot rootroot 4096 3月  26 11:02 usr/
drwxrwxr-x  2 rootroot rootroot 4096 3月  26 11:15 var/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs$ cd etc/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc$ ll
total 24
drwxr-xr-x  3 rootroot rootroot 4096 3月   5  2014 ./
drwxrwxr-x 13 rootroot rootroot 4096 3月  26 11:15 ../
-rw-r--r--  1 rootroot rootroot   33 3月   5  2014 fstab
drwxr-xr-x  2 rootroot rootroot 4096 3月   5  2014 init.d/
-rw-r--r--  1 rootroot rootroot  100 3月   5  2014 inittab
-rw-r--r--  1 rootroot rootroot  133 3月   5  2014 profile
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc$ echo "nameserver 8.8.8.8" >> resolv.conf 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc$ ll
total 28
drwxr-xr-x  3 rootroot rootroot 4096 3月  26 12:32 ./
drwxrwxr-x 13 rootroot rootroot 4096 3月  26 11:15 ../
-rw-r--r--  1 rootroot rootroot   33 3月   5  2014 fstab
drwxr-xr-x  2 rootroot rootroot 4096 3月   5  2014 init.d/
-rw-r--r--  1 rootroot rootroot  100 3月   5  2014 inittab
-rw-r--r--  1 rootroot rootroot  133 3月   5  2014 profile
-rw-rw-r--  1 rootroot rootroot   19 3月  26 12:32 resolv.conf
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc$ cat resolv.conf 
nameserver 8.8.8.8
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc$ cd init.d/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ ll
total 12
drwxr-xr-x 2 rootroot rootroot 4096 3月   5  2014 ./
drwxr-xr-x 3 rootroot rootroot 4096 3月  26 12:32 ../
-rwxr-xr-x 1 rootroot rootroot   26 3月   5  2014 rcS*
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ cat rcS 
#! /bin/sh

/bin/mount -a
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ echo "ifconfig eth0 hw ether 00:11:22:33:44:55" >> rcS
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ echo "ifconfig eth0 192.168.0.10 netmask 255.255.255.0" >> rcS
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ echo "route add default gw 192.168.0.1" >> rcS
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ ll
total 12
drwxr-xr-x 2 rootroot rootroot 4096 3月   5  2014 ./
drwxr-xr-x 3 rootroot rootroot 4096 3月  26 12:32 ../
-rwxr-xr-x 1 rootroot rootroot  149 3月  26 12:33 rcS*
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ cat rcS 
#! /bin/sh

/bin/mount -a
ifconfig eth0 hw ether 00:11:22:33:44:55
ifconfig eth0 192.168.0.10 netmask 255.255.255.0
route add default gw 192.168.0.1
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1/rootfs/etc/init.d$ cd ../../..
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1$ ./make_ext4fs -l 200M -s rootfs_hi3516dv300.ext4 rootfs
Creating filesystem with parameters:
    Size: 209715200
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 6400
    Inode size: 256
    Journal blocks: 1024
    Label: 
    Blocks: 51200
    Block groups: 2
    Reserved block group size: 15
Created filesystem with 467/12800 inodes and 12007/51200 blocks
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/Hi3516CV500R001C02SPC021/Hi3516CV500_SDK_V2.0.2.1$ 


clk: Not disabling unused clocks
Waiting for root device /dev/mmcblk0p3...
scan elemnts: startp:3 endp:120
Tuning SampleClock. mix set phase:[03/07] ele:[13/16] 
mmc0: new HS200 MMC card at address 0001
mmc0: -524: cmdq: unable to set-up
mmcblk0: mmc0:0001 8GTF4R 7.28 GiB 
mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB
mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB
mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB
 mmcblk0: p1(uboot.bin) p2(kernel) p3(rootfs.ext4) p4(user)
EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:3.
devtmpfs: mounted
Freeing unused kernel memory: 1024K (c0800000 - c0900000)
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

Processing /etc/profile... Done

/ # hisi-femac 10010000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

/ # 
/ # 
/ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:22:33:44:55  
          inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::211:22ff:fe33:4455/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:122 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:8982 (8.7 KiB)  TX bytes:718 (718.0 B)
          Interrupt:26 

/ # 
/ # 
/ # ping www.baidu.con
random: fast init done


^C
/ # 
/ # 
/ # ping www.baidu.com
PING www.baidu.com (104.193.88.123): 56 data bytes
64 bytes from 104.193.88.123: seq=1 ttl=53 time=166.975 ms
64 bytes from 104.193.88.123: seq=2 ttl=53 time=167.199 ms
64 bytes from 104.193.88.123: seq=3 ttl=53 time=167.430 ms
64 bytes from 104.193.88.123: seq=4 ttl=53 time=167.107 ms
64 bytes from 104.193.88.123: seq=7 ttl=53 time=166.697 ms
64 bytes from 104.193.88.123: seq=8 ttl=53 time=167.480 ms
^C
--- www.baidu.com ping statistics ---
9 packets transmitted, 6 packets received, 33% packet loss
round-trip min/avg/max = 166.697/167.148/167.480 ms
/ # 
/ # 


 

 

 

 

 

 

 

Logo

更多推荐