又见炊烟升起

导航

=[R2S]拿到R2s软路由,如何熟悉单板

目录

    注:R2S主要参考其官方wiki https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R2S/zh,但是有些细节需要注意一下,因为官方wiki我无法修改补充,所以填这里,以免掉坑:
    //R2S单板的串口波特率不是常用的115200,而是1500000 (15后面5个0),这种波特率在windows下无法支持,只能在linux下使用串口工具打开,比如linux下的putty工具,如下红色部分所示:

    7zip跑分

    root@FriendlyWrt:/mnt# ./7zzs b
    
    7-Zip (z) 21.07 (armt) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
     32-bit arm_v:7 thumb:2 locale=C UTF8=- Threads:4
    
    Compiler: 9.2.1 20191025 GCC 9.2.1
    Linux : 5.10.43 : #1 SMP PREEMPT Thu Jun 17 13:41:22 CST 2021 : aarch64
    PageSize:4KB THP:madvise hwcap:37B0D6:NEON hwcap2:1F:CRC32:SHA1:SHA2:AES
    LE 
    
    1T CPU Freq (MHz):   698  1169  1293  1293  1293  1293  1293
    2T CPU Freq (MHz): 199% 1291   199% 1291  
    
    RAM size:     949 MB,  # CPU hardware threads:   4
    RAM usage:    889 MB,  # Benchmark threads:      4
    
                           Compressing  |                  Decompressing
    Dict     Speed Usage    R/U Rating  |      Speed Usage    R/U Rating
             KiB/s     %   MIPS   MIPS  |      KiB/s     %   MIPS   MIPS
    
    22:       2616   338    752   2546  |      61737   395   1335   5267
    23:       2549   349    745   2597  |      60375   394   1325   5224
    24:       2479   357    747   2666  |      59311   395   1317   5205
    25:       2255   344    749   2576  |      57131   391   1300   5085
    ----------------------------------  | ------------------------------
    Avr:      2475   347    749   2596  |      59639   394   1319   5195
    Tot:             370   1034   3896
    

    FriendlyWrt版本的开机显示

    BusyBox v1.30.1 () built-in shell (ash)
    
     ___    _             _ _    __      __   _
    | __| _(_)___ _ _  __| | |_  \ \    / / _| |_
    | _| '_| / -_) ' \/ _` | | || \ \/\/ / '_|  _|
    |_||_| |_\___|_||_\__,_|_|\_, |\_/\_/|_|  \__|
                              |__/
     -----------------------------------------------------
     FriendlyWrt 19.07.5, r11257-5090152ae3
     -----------------------------------------------------
    

    root@FriendlyWrt:/# uname -a

    Linux FriendlyWrt 5.10.43 #1 SMP PREEMPT Thu Jun 17 13:41:22 CST 2021 aarch64 GNU/Linux
    

    root@FriendlyWrt:/# cat /etc/os-release

    NAME="OpenWrt"
    VERSION="19.07.5"
    ID="openwrt"
    ID_LIKE="lede openwrt"
    PRETTY_NAME="OpenWrt 19.07.5"
    VERSION_ID="19.07.5"
    HOME_URL="https://openwrt.org/"
    BUG_URL="https://bugs.openwrt.org/"
    SUPPORT_URL="https://forum.openwrt.org/"
    BUILD_ID="r11257-5090152ae3"
    OPENWRT_BOARD="rockchip-rk3328/generic"
    OPENWRT_ARCH="aarch64_cortex-a53"
    OPENWRT_TAINTS=""
    OPENWRT_DEVICE_MANUFACTURER="OpenWrt"
    OPENWRT_DEVICE_MANUFACTURER_URL="https://openwrt.org/"
    OPENWRT_DEVICE_PRODUCT="Generic"
    OPENWRT_DEVICE_REVISION="v0"
    OPENWRT_RELEASE="OpenWrt 19.07.5 r11257-5090152ae3"
    

    root@FriendlyWrt:/#
    root@FriendlyWrt:/# lsmod

    act_connmark           20480  0 
    act_mirred             20480  0 
    act_skbedit            16384  0 
    aes_neon_blk           28672  1 aes_neon_bs
    aes_neon_bs            28672  0 
    af_key                 40960  0 
    ah4                    24576  0 
    atm                    69632  1 br2684
    authenc                16384  0 
    br_netfilter           28672  0 
    br2684                 24576  0 
    brcmfmac              278528  0 
    brcmutil               16384  1 brcmfmac
    bridge                221184  1 br_netfilter
    btrfs                1298432  0 
    cdc_mbim               20480  0 
    cdc_ncm                36864  1 cdc_mbim
    cfg80211              729088  4 brcmfmac,rtl8822bu,rtl8821CU,rtl8812au
    chacha_neon            24576  1 libchacha20poly1305
    cls_basic              20480  0 
    cls_flow               24576  0 
    cls_fw                 24576  0 
    cls_route              24576  0 
    cls_tcindex            24576  0 
    cls_u32                28672  0 
    configs                57344  0 
    dm_crypt               49152  0 
    dm_log                 20480  2 dm_mirror,dm_region_hash
    dm_mirror              28672  0 
    dm_region_hash         24576  1 dm_mirror
    dummy                  20480  0 
    echainiv               16384  0 
    em_u32                 16384  0 
    encrypted_keys         20480  1 dm_crypt
    esp4                   24576  0 
    gre                    20480  2 pptp,ip_gre
    ifb                    20480  0 
    ip_gre                 28672  0 
    ip_set                 45056 16 xt_set,ip_set_list_set,ip_set_hash_netportnet,ip_set_hash_netport,ip_set_hash_netnet,ip_set_hash_netiface,ip_set_hash_net,ip_set_hash_mac,ip_set_hash_ipportnet,ip_set_hash_ipportip,ip_set_hash_ipport,ip_set_hash_ipmark,ip_set_hash_ip,ip_set_bitmap_port,ip_set_bitmap_ipmac,ip_set_bitmap_ip
    ip_set_bitmap_ip       24576  0 
    ip_set_bitmap_ipmac    24576  0 
    ip_set_bitmap_port     24576  0 
    ip_set_hash_ip         45056  0 
    ip_set_hash_ipmark     45056  0 
    ip_set_hash_ipport     45056  0 
    ip_set_hash_ipportip   45056  0 
    ip_set_hash_ipportnet   49152  0 
    ip_set_hash_mac        28672  0 
    ip_set_hash_net        45056  0 
    ip_set_hash_netiface   49152  0 
    ip_set_hash_netnet     49152  0 
    ip_set_hash_netport    49152  0 
    ip_set_hash_netportnet   49152  0 
    ip_set_list_set        20480  0 
    ip_tables              32768  5 iptable_nat,iptable_raw,iptable_mangle,iptable_filter
    ip_tunnel              28672  1 ip_gre
    ip6_tables             32768 25 ip6table_raw,ip6table_mangle,ip6table_filter
    ip6_udp_tunnel         16384  2 wireguard,l2tp_core
    ip6t_REJECT            16384  2 
    ip6t_rpfilter          16384  0 
    ip6table_filter        16384  1 
    ip6table_mangle        16384  1 
    ip6table_raw           16384  1 
    ipcomp                 20480  0 
    ipt_CLUSTERIP          24576  0 
    ipt_ECN                16384  0 
    ipt_REJECT             16384  2 
    ipt_ah                 20480  0 
    ipt_rpfilter           16384  0 
    iptable_filter         16384  1 
    iptable_mangle         16384  1 
    iptable_nat            16384  1 
    iptable_raw            16384  1 
    l2tp_core              40960  2 l2tp_ppp,l2tp_netlink
    l2tp_netlink           24576  1 l2tp_ppp
    l2tp_ppp               28672  0 
    ledtrig_netdev         20480  0 
    libblake2s             16384  1 wireguard
    libblake2s_generic     20480  1 libblake2s
    libchacha              16384  1 chacha_neon
    libchacha20poly1305    16384  1 wireguard,[permanent]
    libcurve25519_generic   36864  1 wireguard
    llc                    20480  2 bridge,stp
    macvlan                32768  0 
    nf_conncount           28672  1 xt_connlimit
    nf_conntrack          143360 35 xt_state,xt_nat,xt_helper,xt_conntrack,xt_connmark,xt_connlimit,xt_connbytes,xt_cluster,xt_REDIRECT,xt_NETMAP,xt_MASQUERADE,xt_CT,nf_nat_tftp,nf_nat_snmp_basic,nf_nat_sip,nf_nat_pptp,nf_nat_irc,nf_nat_h323,nf_nat_ftp,nf_nat_amanda,nf_nat,nf_flow_table,nf_conntrack_tftp,nf_conntrack_snmp,nf_conntrack_sip,nf_conntrack_pptp,nf_conntrack_netlink,nf_conntrack_irc,nf_conntrack_h323,nf_conntrack_ftp,nf_conntrack_broadcast,nf_conntrack_amanda,nf_conncount,ipt_CLUSTERIP,act_connmark
    nf_conntrack_amanda    16384  3 nf_nat_amanda
    nf_conntrack_broadcast   16384  1 nf_conntrack_snmp
    nf_conntrack_ftp       24576  3 nf_nat_ftp
    nf_conntrack_h323      61440  5 nf_nat_h323
    nf_conntrack_irc       20480  2 nf_nat_irc
    nf_conntrack_netlink   49152  0 
    nf_conntrack_pptp      24576  2 nf_nat_pptp
    nf_conntrack_sip       36864  5 nf_nat_sip
    nf_conntrack_snmp      16384  2 nf_nat_snmp_basic
    nf_conntrack_tftp      20480  3 nf_nat_tftp
    nf_defrag_ipv4         16384  3 xt_socket,xt_TPROXY,nf_conntrack
    nf_defrag_ipv6         24576  3 xt_socket,xt_TPROXY,nf_conntrack
    nf_dup_ipv4            20480  1 xt_TEE
    nf_dup_ipv6            20480  1 xt_TEE
    nf_flow_table          36864  0 
    nf_log_common          16384  2 nf_log_ipv4,nf_log_ipv6
    nf_log_ipv4            16384  0 
    nf_log_ipv6            16384  0 
    nf_nat                 61440 12 iptable_nat,xt_nat,xt_REDIRECT,xt_NETMAP,xt_MASQUERADE,nf_nat_tftp,nf_nat_sip,nf_nat_pptp,nf_nat_irc,nf_nat_h323,nf_nat_ftp,nf_nat_amanda
    nf_nat_amanda          16384  0 
    nf_nat_ftp             20480  0 
    nf_nat_h323            24576  0 
    nf_nat_irc             20480  0 
    nf_nat_pptp            20480  0 
    nf_nat_sip             20480  0 
    nf_nat_snmp_basic      20480  0 
    nf_nat_tftp            16384  0 
    nf_reject_ipv4         16384  1 ipt_REJECT
    nf_reject_ipv6         20480  1 ip6t_REJECT
    nf_socket_ipv4         20480  1 xt_socket
    nf_socket_ipv6         20480  1 xt_socket
    nf_tproxy_ipv4         20480  1 xt_TPROXY
    nf_tproxy_ipv6         20480  1 xt_TPROXY
    nfnetlink              16384  6 nfnetlink_queue,nfnetlink_log,nf_conntrack_netlink,ip_set
    nfnetlink_log          24576  0 
    nfnetlink_queue        24576  0 
    poly1305_neon          20480  1 libchacha20poly1305
    ppp_async              24576  0 
    ppp_mppe               16384  0 
    pppoe                  28672  0 
    pppox                  16384  3 pppoe,l2tp_ppp,pptp
    pptp                   32768  0 
    r8152                  77824  0 
    raid6_pq              106496  1 btrfs
    rtl8812au            2949120  0 
    rtl8821CU            1851392  0 
    rtl8822bu            2297856  0 
    sch_codel              20480  0 
    sch_fq_codel           20480  0 
    sch_hfsc               24576  0 
    sch_htb                28672  0 
    sch_ingress            16384  0 
    sch_pie                20480  0 
    sch_sfq                24576  0 
    sch_tbf                20480  0 
    seqiv                  16384  0 
    stp                    20480  1 bridge
    ts_bm                  16384  0 
    ts_fsm                 16384  0 
    ts_kmp                 16384  6 
    tun                    57344  0 
    tunnel4                16384  1 xfrm4_tunnel
    udp_tunnel             24576  2 wireguard,l2tp_core
    veth                   28672  0 
    wireguard              77824  0 
    x_tables               36864 67 ipt_REJECT,xt_u32,xt_time,xt_tcpudp,xt_tcpmss,xt_string,xt_statistic,xt_state,xt_socket,xt_recent,xt_quota,xt_policy,xt_pkttype,xt_physdev,xt_owner,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_length,xt_iprange,xt_hl,xt_helper,xt_hashlimit,xt_esp,xt_ecn,xt_dscp,xt_conntrack,xt_connmark,xt_connlimit,xt_connbytes,xt_comment,xt_cluster,xt_bpf,xt_addrtype,xt_TRACE,xt_TPROXY,xt_TEE,xt_TCPMSS,xt_REDIRECT,xt_NFQUEUE,xt_NFLOG,xt_NETMAP,xt_MASQUERADE,xt_LOG,xt_LED,xt_HL,xt_DSCP,xt_CT,xt_CLASSIFY,xt_CHECKSUM,iptable_raw,iptable_mangle,iptable_filter,ipt_rpfilter,ipt_ah,ipt_ECN,ipt_CLUSTERIP,ip6table_raw,ip6t_rpfilter,ip_tables,xt_set,ip6table_mangle,ip6table_filter,ip6_tables,ip6t_REJECT
    xfrm_ipcomp            16384  1 ipcomp
    xfrm4_tunnel           16384  0 
    xor                    20480  1 btrfs
    xor_neon               16384  1 xor
    xt_CHECKSUM            16384  0 
    xt_CLASSIFY            16384  0 
    xt_CT                  20480 17 
    xt_DSCP                16384  0 
    xt_HL                  16384  0 
    xt_LED                 16384  0 
    xt_LOG                 20480  0 
    xt_MASQUERADE          20480  1 
    xt_NETMAP              20480  0 
    xt_NFLOG               16384  0 
    xt_NFQUEUE             16384  0 
    xt_REDIRECT            20480  0 
    xt_TCPMSS              16384  4 
    xt_TEE                 16384  0 
    xt_TPROXY              20480  0 
    xt_TRACE               16384  0 
    xt_addrtype            16384  0 
    xt_bpf                 20480  0 
    xt_cluster             16384  0 
    xt_comment             16384152 
    xt_connbytes           16384  0 
    xt_connlimit           16384  0 
    xt_connmark            20480  6 
    xt_conntrack           16384 16 
    xt_dscp                16384  0 
    xt_ecn                 16384  0 
    xt_esp                 20480  0 
    xt_hashlimit           24576  0 
    xt_helper              16384  0 
    xt_hl                  16384  0 
    xt_iprange             20480  0 
    xt_length              16384  2 
    xt_limit               16384 20 
    xt_mac                 16384  0 
    xt_mark                16384 36 
    xt_multiport           20480 10 
    xt_nat                 16384  0 
    xt_owner               16384  0 
    xt_physdev             16384  0 
    xt_pkttype             16384  0 
    xt_policy              16384  0 
    xt_quota               16384  0 
    xt_recent              24576  0 
    xt_set                 20480  0 
    xt_socket              16384  0 
    xt_state               16384  0 
    xt_statistic           20480  0 
    xt_string              16384  0 
    xt_tcpmss              16384  0 
    xt_tcpudp              20480 43 
    xt_time                16384  0 
    xt_u32                 16384  0 
    zstd_compress         159744  1 btrfs
    

    root@FriendlyWrt:/#
    root@FriendlyWrt:/# cd /proc
    root@FriendlyWrt:/proc# cat cpuinfo

    processor       : 0
    BogoMIPS        : 48.00
    Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
    CPU implementer : 0x41
    CPU architecture: 8
    CPU variant     : 0x0
    CPU part        : 0xd03
    CPU revision    : 4
    
    processor       : 1
    BogoMIPS        : 48.00
    Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
    CPU implementer : 0x41
    CPU architecture: 8
    CPU variant     : 0x0
    CPU part        : 0xd03
    CPU revision    : 4
    
    processor       : 2
    BogoMIPS        : 48.00
    Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
    CPU implementer : 0x41
    CPU architecture: 8
    CPU variant     : 0x0
    CPU part        : 0xd03
    CPU revision    : 4
    
    processor       : 3
    BogoMIPS        : 48.00
    Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
    CPU implementer : 0x41
    CPU architecture: 8
    CPU variant     : 0x0
    CPU part        : 0xd03
    CPU revision    : 4
    

    root@FriendlyWrt:/proc# cat meminfo

    MemTotal:         972648 kB
    MemFree:          641636 kB
    MemAvailable:     802500 kB
    Buffers:            7956 kB
    Cached:           180624 kB
    SwapCached:            0 kB
    Active:            74664 kB
    Inactive:         153872 kB
    Active(anon):       1032 kB
    Inactive(anon):    43128 kB
    Active(file):      73632 kB
    Inactive(file):   110744 kB
    Unevictable:           4 kB
    Mlocked:               0 kB
    SwapTotal:             0 kB
    SwapFree:              0 kB
    Dirty:                 0 kB
    Writeback:             0 kB
    AnonPages:         40008 kB
    Mapped:            58580 kB
    Shmem:              5956 kB
    KReclaimable:      42024 kB
    Slab:              68076 kB
    SReclaimable:      42024 kB
    SUnreclaim:        26052 kB
    KernelStack:        2544 kB
    PageTables:         1128 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:      486324 kB
    Committed_AS:     263728 kB
    VmallocTotal:   262930368 kB
    VmallocUsed:       18028 kB
    VmallocChunk:          0 kB
    Percpu:              896 kB
    AnonHugePages:         0 kB
    ShmemHugePages:        0 kB
    ShmemPmdMapped:        0 kB
    FileHugePages:         0 kB
    FilePmdMapped:         0 kB
    CmaTotal:          16384 kB
    CmaFree:           12272 kB
    HugePages_Total:       0
    HugePages_Free:        0
    HugePages_Rsvd:        0
    HugePages_Surp:        0
    Hugepagesize:       2048 kB
    Hugetlb:               0 kB
    

    root@FriendlyWrt:/proc# cat mounts

    sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
    proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
    udev /dev devtmpfs rw,nosuid,noexec,relatime,size=469580k,nr_inodes=117395,mode=755 0 0
    devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
    tmpfs /run tmpfs rw,nosuid,nodev,noexec,relatime,size=97268k,mode=755 0 0
    overlay / overlay rw,noatime,lowerdir=/root,upperdir=/data/root,workdir=/data/work 0 0
    proc /proc proc rw,nosuid,nodev,noexec,noatime 0 0
    tmpfs /tmp tmpfs rw,nosuid,nodev,noatime 0 0
    tmpfs /dev tmpfs rw,nosuid,relatime,size=512k,mode=755 0 0
    devpts /dev/pts devpts rw,nosuid,noexec,relatime,mode=600,ptmxmode=000 0 0
    debugfs /sys/kernel/debug debugfs rw,noatime 0 0
    cgroup /sys/fs/cgroup tmpfs rw,relatime,mode=755 0 0
    cgroup /sys/fs/cgroup/cpuset cgroup rw,relatime,cpuset 0 0
    cgroup /sys/fs/cgroup/cpu cgroup rw,relatime,cpu 0 0
    cgroup /sys/fs/cgroup/cpuacct cgroup rw,relatime,cpuacct 0 0
    cgroup /sys/fs/cgroup/blkio cgroup rw,relatime,blkio 0 0
    cgroup /sys/fs/cgroup/memory cgroup rw,relatime,memory 0 0
    cgroup /sys/fs/cgroup/devices cgroup rw,relatime,devices 0 0
    cgroup /sys/fs/cgroup/freezer cgroup rw,relatime,freezer 0 0
    cgroup /sys/fs/cgroup/net_cls cgroup rw,relatime,net_cls 0 0
    cgroup /sys/fs/cgroup/perf_event cgroup rw,relatime,perf_event 0 0
    cgroup /sys/fs/cgroup/net_prio cgroup rw,relatime,net_prio 0 0
    cgroup /sys/fs/cgroup/hugetlb cgroup rw,relatime,hugetlb 0 0
    cgroup /sys/fs/cgroup/pids cgroup rw,relatime,pids 0 0
    overlay /opt overlay rw,noatime,lowerdir=/root,upperdir=/data/root,workdir=/data/work 0 0
    mountd(pid3748) /tmp/run/blockd autofs rw,relatime,fd=7,pgrp=1,timeout=21474836510,minproto=5,maxproto=5,indirect 0 0
    

    root@FriendlyWrt:/proc# cat cmdline

    storagemedia=sd androidboot.storagemedia=sd androidboot.mode=normal androidboot.dtbo_idx=1 swiotlb=1 coherent_pool=1m rw root=/dev/mmcblk0p8 rootfstype=ext4 data=/dev/mmcblk0p9 consoleblank=0 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1
    

    root@FriendlyWrt:/proc# cat interrupts

               CPU0       CPU1       CPU2       CPU3       
     11:      22888      25264      24174      22117     GICv2  30 Level     arch_timer
     14:          0          0          0          0     GICv2  32 Level     ff1f0000.dmac
     15:          0          0          0          0     GICv2  33 Level     ff1f0000.dmac
     16:          0          0          0          0     GICv2 132 Level     arm-pmu
     17:          0          0          0          0     GICv2 133 Level     arm-pmu
     18:          0          0          0          0     GICv2 134 Level     arm-pmu
     19:          0          0          0          0     GICv2 135 Level     arm-pmu
     21:         30          0          0          0     GICv2  89 Level     ttyS2
     22:          0          0          0          0     GICv2  68 Level     ff150000.i2c
     23:       1065          0          0          0     GICv2  69 Level     ff160000.i2c
     24:          0          0          0          0     GICv2  72 Edge      ff1a0000.watchdog
     25:          0          0          0          0     GICv2  90 Level     rockchip_thermal
     34:          0          0          0          0     GICv2  43 Level     ff350800.iommu
     35:          0          0          0          0     GICv2 109 Level     rockchip_u3phy
     36:      32056          0          0          0     GICv2  44 Level     dw-mci
     37:          0          0          0          0     GICv2  56 Level     eth0
     38:          0          0          0          0     GICv2  55 Level     ff580000.usb, ff580000.usb, dwc2_hsotg:usb1
     39:          0          0          0          0     GICv2  48 Level     ehci_hcd:usb2
     40:          0          0          0          0     GICv2  49 Level     ohci_hcd:usb3
     45:          0          0          0          0     GICv2  91 Level     rockchip_usb2phy_bvalid
     46:          0          0          0          0     GICv2  94 Level     rockchip_usb2phy
     47:          0          0      12591          0     GICv2  99 Level     xhci-hcd:usb4
     48:          0          0          0          0  rockchip_gpio_irq  24 Level     rk805
     49:          0          0          0          0     rk805   0 Edge      rk805_pwrkey_fall
     54:          0          0          0          0     rk805   5 Edge      RTC alarm
     56:          0          0          0          0     rk805   7 Edge      rk805_pwrkey_rise
     57:          0          0          0          0  rockchip_gpio_irq   0 Edge      K1
    IPI0:     11643      14628      14178      15393       Rescheduling interrupts
    IPI1:      2274       2441       1316       1707       Function call interrupts
    IPI2:         0          0          0          0       CPU stop interrupts
    IPI3:         0          0          0          0       CPU stop (for crash dump) interrupts
    IPI4:      3572       4257       3696       4283       Timer broadcast interrupts
    IPI5:      7480       7713       7471       6514       IRQ work interrupts
    IPI6:         0          0          0          0       CPU wake-up interrupts
    Err:          0
    

    root@FriendlyWrt:/proc# cat devices

    Character devices:
      1 mem
      4 /dev/vc/0
      4 tty
      4 ttyS
      5 /dev/tty
      5 /dev/console
      5 /dev/ptmx
      5 ttyprintk
      7 vcs
     10 misc
     13 input
     29 fb
     81 video4linux
     89 i2c
    108 ppp
    116 alsa
    128 ptm
    136 pts
    153 spi
    166 ttyACM
    180 usb
    188 ttyUSB
    189 usb_device
    212 DVB
    216 rfcomm
    226 drm
    243 hidraw
    244 rpmb
    245 ttyGS
    246 nvme
    247 bsg
    248 watchdog
    249 iio
    250 ptp
    251 pps
    252 media
    253 rtc
    254 gpiochip
    
    Block devices:
      1 ramdisk
      7 loop
      8 sd
     65 sd
     66 sd
     67 sd
     68 sd
     69 sd
     70 sd
     71 sd
    128 sd
    129 sd
    130 sd
    131 sd
    132 sd
    133 sd
    134 sd
    135 sd
    179 mmc
    254 device-mapper
    259 blkext
    

    root@FriendlyWrt:/proc# df -h

    Filesystem                Size      Used Available Use% Mounted on
    udev                    512.0K         0    512.0K   0% /dev
    tmpfs                    95.0M    108.0K     94.9M   0% /run
    overlay                  28.8G    872.0K     28.8G   0% /
    tmpfs                   474.9M      1.2M    473.8M   0% /tmp
    tmpfs                   512.0K         0    512.0K   0% /dev
    cgroup                  474.9M         0    474.9M   0% /sys/fs/cgroup
    overlay                  28.8G    872.0K     28.8G   0% /opt
    

    root@FriendlyWrt:/proc# fdisk -l

    Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    
    
    Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    
    
    Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    
    
    Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    
    
    Disk /dev/ram4: 4 MiB, 4194304 bytes, 8192 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    
    
    Disk /dev/ram5: 4 MiB, 4194304 bytes, 8192 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    
    
    Disk /dev/ram6: 4 MiB, 4194304 bytes, 8192 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    
    
    Disk /dev/ram7: 4 MiB, 4194304 bytes, 8192 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    
    
    Disk /dev/mmcblk0: 29.74 GiB, 31914983424 bytes, 62333952 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: 73987B6B-4974-4C94-A3E8-58AB2EB7A946
    
    Device           Start      End  Sectors  Size Type
    /dev/mmcblk0p1   16384    24575     8192    4M unknown
    /dev/mmcblk0p2   24576    32767     8192    4M unknown
    /dev/mmcblk0p3   32768    40959     8192    4M unknown
    /dev/mmcblk0p4   40960    49151     8192    4M unknown
    /dev/mmcblk0p5   49152    81919    32768   16M unknown
    /dev/mmcblk0p6   81920   163839    81920   40M unknown
    /dev/mmcblk0p7  163840   262143    98304   48M unknown
    /dev/mmcblk0p8  262144  1163263   901120  440M unknown
    /dev/mmcblk0p9 1163264 62333918 61170655 29.2G unknown
    

    root@FriendlyWrt:~# cat /etc/config/fstab

    config 'global'
            option  anon_swap       '0'
            option  anon_mount      '0'
            option  auto_swap       '1'
            option  auto_mount      '1'
            option  delay_root      '5'
            option  check_fs        '0'
    
    config 'mount'
            option  target  '/mnt/mmcblk0p8'
            option  uuid    'ff313567-e9f1-5a5d-9895-3ba130b4a864'
            option  enabled '0'
    
    config 'mount'
            option  target  '/mnt/mmcblk0p9'
            option  uuid    '269e9152-5cb6-035b-9c34-e1ed87cca310'
            option  enabled '0'
    
    
    

    root@FriendlyWrt:/usr/bin# lsblk
    /bin/ash: lsblk: not found
    root@FriendlyWrt:/proc# cat iomem

    00200000-083fffff : System RAM
      00400000-0164ffff : Kernel code
      01650000-01fdffff : reserved
      01fe0000-0236ffff : Kernel data
      08300000-08311fff : reserved
    0a200000-3fffffff : System RAM
      0a200000-0a923fff : reserved
      3d000000-3effffff : reserved
      3fbc9000-3fd49fff : reserved
      3fd4a000-3fdc5fff : reserved
      3fdc8000-3fdc8fff : reserved
      3fdc9000-3fdc9fff : reserved
      3fdca000-3fdccfff : reserved
      3fdcd000-3fdcdfff : reserved
      3fdce000-3fffffff : reserved
    ff060000-ff063fff : ff060000.rng rng@ff060000
    ff120000-ff12001f : serial
    ff130000-ff13001f : serial
    ff150000-ff150fff : ff150000.i2c i2c@ff150000
    ff160000-ff160fff : ff160000.i2c i2c@ff160000
    ff1a0000-ff1a00ff : ff1a0000.watchdog watchdog@ff1a0000
    ff1b0020-ff1b002f : ff1b0020.pwm pwm@ff1b0020
    ff1f0000-ff1f3fff : dmac@ff1f0000
      ff1f0000-ff1f3fff : ff1f0000.dmac dmac@ff1f0000
    ff210000-ff2100ff : pinctrl gpio0@ff210000
    ff220000-ff2200ff : pinctrl gpio1@ff220000
    ff230000-ff2300ff : pinctrl gpio2@ff230000
    ff240000-ff2400ff : pinctrl gpio3@ff240000
    ff250000-ff2500ff : ff250000.tsadc tsadc@ff250000
    ff260000-ff26004f : ff260000.efuse efuse@ff260000
    ff350800-ff35083f : ff350800.iommu iommu@ff350800
    ff470000-ff477fff : phy-ff470000.usb3-phy.2 utmi@ff470000
    ff478000-ff47ffff : phy-ff470000.usb3-phy.3 pipe@ff478000
    ff500000-ff503fff : ff500000.dwmmc dwmmc@ff500000
    ff540000-ff54ffff : ff540000.ethernet ethernet@ff540000
    ff580000-ff5bffff : ff580000.usb usb@ff580000
    ff5c0000-ff5cffff : ff5c0000.usb usb@ff5c0000
    ff5d0000-ff5dffff : ff5d0000.usb usb@ff5d0000
    ff600000-ff607fff : dwc3@ff600000
      ff600000-ff607fff : xhci-hcd.0.auto dwc3@ff600000
    ff60c100-ff6fffff : ff600000.dwc3 dwc3@ff600000
    ff790000-ff7903ff : ff790000.dfi dfi@ff790000
    

    root@FriendlyWrt:/proc# i2cdetect -y l
    /bin/ash: i2cdetect: not found

    posted on 2021-11-12 22:47  ni_sy  阅读(647)  评论(0编辑  收藏  举报