快速使用Neardi RV1126指南
1. 设备框图
2. 电源接口
依据框图, 把电源接口引出, 如下图:
3. 调试串口
通常需要调试串口进行一些常用的命令设置, 比如查看网络IP地址, 查看kernel里相关的信息。 首先, 使用杜邦线如下方式引出串口:
上电启动后, 有如下log:
U-Boot 2017.09 (Apr 02 2024 - 19:07:49 +0800)
Model: Rockchip RV1126 Evaluation Board
PreSerial: 2, raw, 0xff570000
DRAM: 1021.7 MiB
Sysmem: init
Relocation Offset: 00000000
Relocation fdt: 3baf9208 - 3bafedd8
CR: M/C/I
Using default environment
DM: v1
dwmmc@ffc50000: 0, dwmmc@ffc60000: 1
Bootdev(atags): mmc 0
MMC0: High Speed, 50Mhz
PartType: EFI
boot mode: normal
FIT: no signed, no conf required
DTB: rk-kernel.dtb
HASH(c): OK
vdd_arm init 825000 uV
vdd_logic_npu_vepu init 825000 uV
vccio2: 1800000 uv, vsel: 0x40004
vccio3: 1800000 uv, vsel: 0x80008
vccio4: 1800000 uv, vsel: 0x100010
vccio5: 1800000 uv, vsel: 0x200020
vccio6: 1800000 uv, vsel: 0x400040
vccio7: 1800000 uv, vsel: 0x800080
pmuio0: 1800000 uv, vsel: 0x1000100
pmuio1: 1800000 uv, vsel: 0x2000200
io-domain: OK
stdio_add_devices: Video device failed (ret=-19)
Model: Rockchip RV1126 EVB DDR3 V13 Board
CLK: (sync kernel. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
apll 816000 KHz
dpll 462000 KHz
gpll 1188000 KHz
cpll 500000 KHz
hpll 1400000 KHz
aclk_pdbus 500000 KHz
hclk_pdbus 198000 KHz
pclk_pdbus 99000 KHz
aclk_pdphp 297000 KHz
hclk_pdphp 198000 KHz
hclk_pdaudio 148500 KHz
hclk_pdcore 198000 KHz
pclk_pdpmu 99000 KHz
Net: eth0: ethernet@ffc40000
Hit key to stop autoboot('CTRL+C'): 0
## Booting FIT Image at 0x3b3f6bc0 with size 0x004ff600
Fdt Ramdisk skip relocation
## Loading kernel from FIT Image at 3b3f6bc0 ...
Using 'conf' configuration
optee api revision: 2.0
TEEC: Waring: Could not find security partition
## Verified-boot: 0
Trying 'kernel' kernel subimage
Description: unavailable
Type: Kernel Image
Compression: uncompressed
Data Start: 0x3b40cfc0
Data Size: 5149160 Bytes = 4.9 MiB
Architecture: ARM
OS: Linux
Load Address: 0x02008000
Entry Point: 0x02008000
Hash algo: sha256
Hash value: 7980cd3c23f173bd375954e2bd2d6c17214e135c3c928256f7193f83072fd29b
Verifying Hash Integrity ... sha256+ OK
## Loading fdt from FIT Image at 3b3f6bc0 ...
Using 'conf' configuration
Trying 'fdt' fdt subimage
Description: unavailable
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x3b3f73c0
Data Size: 89003 Bytes = 86.9 KiB
Architecture: ARM
Load Address: 0x08300000
Hash algo: sha256
Hash value: ba21ab7852246812253d5249c4ef710ead4a877c6e0e3c0f6e139702ece3a1a5
Verifying Hash Integrity ... sha256+ OK
Loading fdt from 0x08300000 to 0x08300000
Booting using the fdt blob at 0x08300000
Loading Kernel Image from 0x3b40cfc0 to 0x02008000 ... OK
kernel loaded at 0x02008000, end = 0x024f11e8
'reserved-memory' ramoops@8000000: addr=8000000 size=100000
Using Device Tree in place at 08300000, end 08318baa
Adding bank: 0x00000000 - 0x08400000 (size: 0x08400000)
Adding bank: 0x08648000 - 0x40000000 (size: 0x379b8000)
Total: 372.217 ms
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0xf00
[ 0.000000] Linux version 4.19.111 (wumingfeng@ubuntu2004) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #6 SMP PREEMPT Tue Apr 2 19:08:06 CST 2024
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Rockchip RV1126 EVB DDR3 V13 Board
[ 0.000000] earlycon: uart8250 at MMIO32 0xff570000 (options '')
[ 0.000000] bootconsole [uart8250] enabled
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@00000000': base 0x00000000, size 0 MiB
[ 0.000000] Reserved memory: created CMA memory pool at 0x3f800000, size 8 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created CMA memory pool at 0x2f800000, size 256 MiB
[ 0.000000] OF: reserved mem: initialized node isp, compatible id shared-dma-pool
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.0
[ 0.000000] percpu: Embedded 15 pages/cpu s32140 r8192 d21108 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 259512
[ 0.000000] Kernel command line: user_debug=31 storagemedia=emmc androidboot.storagemedia=emmc androidboot.mode=normal rootwait earlycon=uart8250,mmio32,0xff570000 console=ttyFIQ0 root=PARTUUID=614e0000-0000 snd_aloop.index=7
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 752948K/1046240K available (8192K kernel code, 336K rwdata, 1816K rodata, 1024K init, 267K bss, 22956K reserved, 270336K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
[ 0.000000] lowmem : 0xb0000000 - 0xf0000000 (1024 MB)
[ 0.000000] pkmap : 0xafe00000 - 0xb0000000 ( 2 MB)
[ 0.000000] modules : 0xaf000000 - 0xafe00000 ( 14 MB)
[ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (9184 kB)
[ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB)
[ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 337 kB)
[ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 268 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] random: random: get_random_bytes called from start_kernel+0x324/0x4a8 with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000009] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000758] Switching to timer-based delay loop, resolution 41ns
[ 0.002528] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=80000)
[ 0.003491] pid_max: default: 4096 minimum: 301
[ 0.004098] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.004724] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.006052] CPU: Testing write buffer coherency: ok
[ 0.006864] /cpus/cpu@f00 missing clock-frequency property
[ 0.007391] /cpus/cpu@f01 missing clock-frequency property
[ 0.007914] /cpus/cpu@f02 missing clock-frequency property
[ 0.008437] /cpus/cpu@f03 missing clock-frequency property
[ 0.008955] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
[ 0.010227] Setting up static identity map for 0x100000 - 0x100060
[ 0.010973] rcu: Hierarchical SRCU implementation.
[ 0.012059] smp: Bringing up secondary CPUs ...
I/TC: Secondary CPU 1 initializing
I/TC: Secondary CPU 1 switching to normal world boot
I/TC: Secondary CPU 2 initializing
I/TC: Secondary CPU 2 switching to normal world boot
I/TC: Secondary CPU 3 initializing
I/TC: Secondary CPU 3 switching to normal world boot
[ 0.014067] CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01
[ 0.015744] CPU2: thread -1, cpu 2, socket 15, mpidr 80000f02
[ 0.017427] CPU3: thread -1, cpu 3, socket 15, mpidr 80000f03
[ 0.017565] smp: Brought up 1 node, 4 CPUs
[ 0.019541] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[ 0.020151] CPU: All CPU(s) started in SVC mode.
[ 0.021422] devtmpfs: initialized
[ 0.044825] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.046152] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns
[ 0.047127] futex hash table entries: 16 (order: -2, 1024 bytes)
[ 0.047826] pinctrl core: initialized pinctrl subsystem
[ 0.049443] NET: Registered protocol family 16
[ 0.050468] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.053048] cpuidle: using governor menu
[ 0.053449] Registered FIQ tty driver
[ 0.054300] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.055046] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.058034] console [pstore-1] enabled
[ 0.058639] pstore: Registered ramoops as persistent store backend
[ 0.059224] ramoops: attached 0x100000@0x8000000, ecc: 0/0
[ 0.101014] cryptd: max_cpu_qlen set to 1000
[ 0.102218] fiq debugger fiq mode enabled
[[ 0.102993] console [ttyFIQ0] enabled
0.102993] console [ttyFIQ0] enabled
[ 0.103675] bootconsole [uart8250] disabled
[ 0.103675] bootconsole [uart8250] disabled
[ 0.104341] Registered fiq debugger ttyFIQ0
[ 0.104938] rockchip-pm rockchip-suspend: not set pwm-regulator-config
[ 0.110038] rk_iommu ffb60e00.iommu: version = 1
[ 0.110837] rk_iommu ffb80480.iommu: version = 1
[ 0.111453] rk_iommu ffb90800.iommu: version = 1
[ 0.111939] rk_iommu ffbb0f00.iommu: version = 1
[ 0.112962] SCSI subsystem initialized
[ 0.113281] usbcore: registered new interface driver usbfs
[ 0.113373] usbcore: registered new interface driver hub
[ 0.113539] usbcore: registered new device driver usb
[ 0.113649] media: Linux media interface: v0.10
[ 0.113720] videodev: Linux video capture interface: v2.00
[ 0.113790] pps_core: LinuxPPS API ver. 1 registered
[ 0.113812] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.113856] PTP clock support registered
[ 0.115212] Advanced Linux Sound Architecture Driver Initialized.
[ 0.115857] Bluetooth: Core ver 2.22
[ 0.115940] NET: Registered protocol family 31
[ 0.115966] Bluetooth: HCI device and connection manager initialized
[ 0.115995] Bluetooth: HCI socket layer initialized
[ 0.116022] Bluetooth: L2CAP socket layer initialized
[ 0.116104] Bluetooth: SCO socket layer initialized
[ 0.116592] rockchip-cpuinfo cpuinfo: SoC : 11260000
[ 0.116630] rockchip-cpuinfo cpuinfo: Serial : 3006006c84a1fbf1
[ 0.117466] clocksource: Switched to clocksource arch_sys_counter
[ 0.120032] NET: Registered protocol family 2
[ 0.120927] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[ 0.120989] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.121124] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.121326] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.121487] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.121561] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.121800] NET: Registered protocol family 1
[ 0.123533] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[ 0.126034] Initialise system trusted keyrings
[ 0.126307] workingset: timestamp_bits=29 max_order=18 bucket_order=0
[ 0.133558] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.136385] Key type asymmetric registered
[ 0.136419] Asymmetric key parser 'x509' registered
[ 0.136493] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[ 0.136521] io scheduler noop registered
[ 0.136543] io scheduler deadline registered
[ 0.136718] io scheduler cfq registered (default)
[ 0.136747] io scheduler mq-deadline registered
[ 0.136769] io scheduler kyber registered
[ 0.136921] io scheduler bfq registered
[ 0.139863] phy phy-ff4c0000.usb2-phy.0: Failed to get VBUS supply regulator
[ 0.145055] mpp_service mpp-srv: 10af7755b author: slxia 2023-04-23 fbedeca: xml: common: Fixes rkisp for yocto-kirkstone.xml: rv1126_rv1109_linux_v3.0.1_20230330.xml
[ 0.145102] mpp_service mpp-srv: probe start
[ 0.145964] iommu: Adding device ffb80000.rkvdec to group 1
[ 0.146024] mpp_rkvdec ffb80000.rkvdec: Linked as a consumer to ffb80480.iommu
[ 0.146219] mpp_rkvdec ffb80000.rkvdec: probing start
[ 0.146851] mpp_rkvdec ffb80000.rkvdec: shared_niu_a is not found!
[ 0.146885] rkvdec_init:1190: No niu aclk reset resource define
[ 0.146915] mpp_rkvdec ffb80000.rkvdec: shared_niu_h is not found!
[ 0.146935] rkvdec_init:1193: No niu hclk reset resource define
[ 0.147239] mpp_rkvdec ffb80000.rkvdec: probing finish
[ 0.148058] iommu: Adding device ffbb0000.rkvenc to group 3
[ 0.148106] mpp_rkvenc ffbb0000.rkvenc: Linked as a consumer to ffbb0f00.iommu
[ 0.148396] mpp_rkvenc ffbb0000.rkvenc: probing start
[ 0.149060] mpp_rkvenc ffbb0000.rkvenc: Linked as a consumer to regulator.8
[ 0.149126] mpp_rkvenc ffbb0000.rkvenc: bin=0
[ 0.149184] mpp_rkvenc ffbb0000.rkvenc: leakage=1.250
[ 0.149267] mpp_rkvenc ffbb0000.rkvenc: Failed to get pvtm
[ 0.149322] mpp_rkvenc ffbb0000.rkvenc: bin-scale=37
[ 0.149895] mpp_rkvenc ffbb0000.rkvenc: avs=0
[ 0.150306] mpp_rkvenc ffbb0000.rkvenc: failed to find power_model node
[ 0.150341] mpp_rkvenc ffbb0000.rkvenc: failed to initialize power model
[ 0.151000] mpp_rkvenc ffbb0000.rkvenc: probing finish
[ 0.151656] iommu: Adding device ffb90400.vdpu to group 2
[ 0.151715] mpp_vdpu2 ffb90400.vdpu: Linked as a consumer to ffb90800.iommu
[ 0.151828] mpp_vdpu2 ffb90400.vdpu: probe device
[ 0.152340] mpp_vdpu2 ffb90400.vdpu: reset_group->rw_sem_on=0
[ 0.152390] mpp_vdpu2 ffb90400.vdpu: reset_group->rw_sem_on=0
[ 0.152611] mpp_vdpu2 ffb90400.vdpu: probing finish
[ 0.153120] iommu: Adding device ffb90000.vepu to group 2
[ 0.153176] mpp_vepu2 ffb90000.vepu: Linked as a consumer to ffb90800.iommu
[ 0.153302] mpp_vepu2 ffb90000.vepu: probe device
[ 0.153771] mpp_vepu2 ffb90000.vepu: reset_group->rw_sem_on=0
[ 0.153813] mpp_vepu2 ffb90000.vepu: reset_group->rw_sem_on=0
[ 0.154067] mpp_vepu2 ffb90000.vepu: probing finish
[ 0.154633] mpp_service mpp-srv: probe success
[ 0.159575] dma-pl330 ff4e0000.dma-controller: Loaded driver for PL330 DMAC-241330
[ 0.159616] dma-pl330 ff4e0000.dma-controller: DBUFF-128x8bytes Num_Chans-8 Num_Peri-32 Num_Events-16
[ 0.161433] rockchip-system-monitor rockchip-system-monitor: system monitor probe
[ 0.162098] pwm-regulator: supplied by vcc3v3_sys
[ 0.162815] pwm-regulator: supplied by vcc3v3_sys
[ 0.163646] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[ 0.164551] ff560000.serial: ttyS0 at MMIO 0xff560000 (irq = 31, base_baud = 1500000) is a 16550A
[ 0.165291] ff580000.serial: ttyS3 at MMIO 0xff580000 (irq = 32, base_baud = 1500000) is a 16550A
[ 0.167316] random: fast init done
[ 0.167709] random: crng init done
[ 0.169271] rockchip-drm display-subsystem: Linked as a consumer to ffb00000.vop
[ 0.170870] rockchip-drm display-subsystem: devfreq is not set
[ 0.171377] rockchip-drm display-subsystem: bound ffb00000.vop (ops 0xb0930ee0)
[ 0.171402] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 0.171427] [drm] No driver support for vblank timestamp query.
[ 0.171567] rockchip-drm display-subsystem: failed to parse loader memory
[ 0.172331] [drm] Initialized rockchip 2.0.0 20140818 for display-subsystem on minor 0
[ 0.173711] zram: Added device: zram0
[ 0.175580] libphy: Fixed MDIO Bus: probed
[ 0.177507] clk: couldn't set clk_gmac_src clk rate to 5000000 (-22), current rate: 125000000
[ 0.177872] rk_gmac-dwmac ffc40000.ethernet: no regulator found
[ 0.177910] rk_gmac-dwmac ffc40000.ethernet: clock input or output? (output).
[ 0.177939] rk_gmac-dwmac ffc40000.ethernet: TX delay(0x2a).
[ 0.177966] rk_gmac-dwmac ffc40000.ethernet: RX delay(0x1a).
[ 0.177996] rk_gmac-dwmac ffc40000.ethernet: integrated PHY? (no).
[ 0.178091] rk_gmac-dwmac ffc40000.ethernet: cannot get clock clk_mac_refout
[ 0.183204] rk_gmac-dwmac ffc40000.ethernet: init for RMII
[ 0.183472] rk_gmac-dwmac ffc40000.ethernet: User ID: 0x30, Synopsys ID: 0x51
[ 0.183500] rk_gmac-dwmac ffc40000.ethernet: DWMAC4/5
[ 0.183528] rk_gmac-dwmac ffc40000.ethernet: DMA HW capability register supported
[ 0.183553] rk_gmac-dwmac ffc40000.ethernet: RX Checksum Offload Engine supported
[ 0.183575] rk_gmac-dwmac ffc40000.ethernet: TX Checksum insertion supported
[ 0.183598] rk_gmac-dwmac ffc40000.ethernet: Wake-Up On Lan supported
[ 0.183663] rk_gmac-dwmac ffc40000.ethernet: TSO supported
[ 0.183690] rk_gmac-dwmac ffc40000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 0.183715] rk_gmac-dwmac ffc40000.ethernet: TSO feature enabled
[ 0.314178] libphy: stmmac: probed
[ 0.317618] dwc3 ffd00000.dwc3: Failed to get clk 'ref': -2
[ 0.322970] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.323007] ehci-platform: EHCI generic platform driver
[ 0.326600] ehci-platform ffe00000.usb: EHCI Host Controller
[ 0.326676] ehci-platform ffe00000.usb: new USB bus registered, assigned bus number 1
[ 0.326851] ehci-platform ffe00000.usb: irq 58, io mem 0xffe00000
[ 0.337525] ehci-platform ffe00000.usb: USB 2.0 started, EHCI 1.00
[ 0.337808] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[ 0.337833] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.337875] usb usb1: Product: EHCI Host Controller
[ 0.337899] usb usb1: Manufacturer: Linux 4.19.111 ehci_hcd
[ 0.337923] usb usb1: SerialNumber: ffe00000.usb
[ 0.338701] hub 1-0:1.0: USB hub found
[ 0.338790] hub 1-0:1.0: 1 port detected
[ 0.339510] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.339579] ohci-platform: OHCI generic platform driver
[ 0.340078] ohci-platform ffe10000.usb: Generic Platform OHCI controller
[ 0.340140] ohci-platform ffe10000.usb: new USB bus registered, assigned bus number 2
[ 0.340327] ohci-platform ffe10000.usb: irq 59, io mem 0xffe10000
[ 0.398423] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 4.19
[ 0.398458] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.398479] usb usb2: Product: Generic Platform OHCI controller
[ 0.398528] usb usb2: Manufacturer: Linux 4.19.111 ohci_hcd
[ 0.398552] usb usb2: SerialNumber: ffe10000.usb
[ 0.399270] hub 2-0:1.0: USB hub found
[ 0.399352] hub 2-0:1.0: 1 port detected
[ 0.400937] usbcore: registered new interface driver usb-storage
[ 0.401588] i2c /dev entries driver
[ 0.403630] i2c i2c-1: 1 i2c clients have been registered at 0x36
[ 0.404671] ircut cam_ircut: driver version: 00.01.00
[ 0.404928] ircut cam_ircut: failed get pulse-width,use dafult value 100
[ 0.405244] ircut cam_ircut: probe successful!
[ 0.407282] rkisp_hw ffb50000.rkisp: is_thunderboot: 0
[ 0.407325] rkisp_hw ffb50000.rkisp: Missing rockchip,grf property
[ 0.407695] rkisp_hw ffb50000.rkisp: iommu is disabled, using non-iommu buffers
[ 0.407747] rkisp_hw ffb50000.rkisp: assigned reserved memory node isp
[ 0.408027] rkisp rkisp-vir0: rkisp driver version: v01.07.00
[ 0.408507] rkisp rkisp-vir0: Entity type for entity rkisp-isp-subdev was not initialized!
[ 0.408553] rkisp rkisp-vir0: Entity type for entity rkisp-csi-subdev was not initialized!
[ 0.408579] rkisp rkisp-vir0: Entity type for entity rkisp-bridge-ispp was not initialized!
[ 0.412320] iommu: Adding device ffb60000.rkispp to group 0
[ 0.412386] rkispp_hw ffb60000.rkispp: Linked as a consumer to ffb60e00.iommu
[ 0.412799] rkispp_hw ffb60000.rkispp: max input:0x0@0fps
[ 0.412849] rkispp_hw ffb60000.rkispp: can't request region for resource [mem 0xffb60000-0xffb7ffff]
[ 0.413080] rkispp_hw ffb60000.rkispp: failed to get cru reset
[ 0.413321] rkispp rkispp-vir0: rkispp driver version: v01.07.00
[ 0.416882] rockchip-iodomain fe020000.syscon:io-domains: Linked as a consumer to regulator.3
[ 0.416943] rockchip-iodomain fe020000.syscon:io-domains: vccio2(3300000 uV) supplied by vccio_3v3
[ 0.417063] rockchip-iodomain fe020000.syscon:io-domains: Linked as a consumer to regulator.2
[ 0.417106] rockchip-iodomain fe020000.syscon:io-domains: vccio3(1800000 uV) supplied by vccio_1v8
[ 0.417229] rockchip-iodomain fe020000.syscon:io-domains: vccio4(1800000 uV) supplied by vccio_1v8
[ 0.417353] rockchip-iodomain fe020000.syscon:io-domains: vccio5(3300000 uV) supplied by vccio_3v3
[ 0.417545] rockchip-iodomain fe020000.syscon:io-domains: vccio6(1800000 uV) supplied by vccio_1v8
[ 0.417691] rockchip-iodomain fe020000.syscon:io-domains: vccio7(3300000 uV) supplied by vccio_3v3
[ 0.417813] rockchip-iodomain fe020000.syscon:io-domains: pmuio0(3300000 uV) supplied by vccio_3v3
[ 0.417956] rockchip-iodomain fe020000.syscon:io-domains: pmuio1(3300000 uV) supplied by vccio_3v3
[ 0.420333] rockchip-thermal ff5f0000.tsadc: tsadc trimmed value = 4
[ 0.420693] rockchip-thermal ff5f0000.tsadc: tsadc is probed successfully!
[ 0.421226] rockchip-thermal ff5f8000.tsadc: tsadc trimmed value = 8
[ 0.421498] rockchip-thermal ff5f8000.tsadc: tsadc is probed successfully!
[ 0.422252] Bluetooth: HCI UART driver ver 2.3
[ 0.422284] Bluetooth: HCI UART protocol H4 registered
[ 0.422610] cpu cpu0: bin=0
[ 0.422662] cpu cpu0: leakage=1.625
[ 0.422801] cpu cpu0: Linked as a consumer to regulator.9
[ 0.434543] cpu cpu0: temp=67800, pvtm=106679 (106289 + 390)
[ 0.434931] cpu cpu0: pvtm-volt-sel=2
[ 0.435040] cpu cpu0: Dropping the link to regulator.9
[ 0.435110] cpu cpu0: bin-scale=5
[ 0.435481] cpu cpu0: Linked as a consumer to regulator.9
[ 0.435570] cpu cpu0: Dropping the link to regulator.9
[ 0.435810] cpu cpu0: Linked as a consumer to regulator.9
[ 0.436902] cpu cpu0: avs=0
[ 0.437339] cpu cpu0: l=-2147483648 h=2147483647 hyst=0 l_limit=0 h_limit=0 h_table=0
[ 0.437386] cpu cpu0: failed to read out thermal zone (-22)
[ 0.438186] cpu cpu0: failed to find power_model node
[ 0.438678] cpuidle: enable-method property 'psci' found operations
[ 0.438770] cpuidle: enable-method property 'psci' found operations
[ 0.438835] cpuidle: enable-method property 'psci' found operations
[ 0.438900] cpuidle: enable-method property 'psci' found operations
[ 0.439227] Synopsys Designware Multimedia Card Interface Driver
[ 0.439657] dwmmc_rockchip ffc50000.dwmmc: IDMAC supports 32-bit address mode.
[ 0.439688] dwmmc_rockchip ffc50000.dwmmc: Using internal DMA controller.
[ 0.439704] dwmmc_rockchip ffc50000.dwmmc: Version ID is 270a
[ 0.439753] dwmmc_rockchip ffc50000.dwmmc: DW MMC controller at irq 55,32 bit host data width,256 deep fifo
[ 0.439858] mmc_host mmc0: card is non-removable.
[ 0.451181] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 0.465522] dwmmc_rockchip ffc60000.dwmmc: IDMAC supports 32-bit address mode.
[ 0.465635] dwmmc_rockchip ffc60000.dwmmc: Using internal DMA controller.
[ 0.465686] dwmmc_rockchip ffc60000.dwmmc: Version ID is 270a
[ 0.465824] dwmmc_rockchip ffc60000.dwmmc: DW MMC controller at irq 56,32 bit host data width,256 deep fifo
[ 0.466143] dwmmc_rockchip ffc60000.dwmmc: Linked as a consumer to regulator.3
[ 0.478277] mmc_host mmc2: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 0.500453] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
[ 0.500853] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.501309] usbcore: registered new interface driver usbhid
[ 0.501351] usbhid: USB HID core driver
[ 0.503227] rknandc_base v1.1 2017-01-11
[ 0.503488] mmc0: new high speed MMC card at address 0001
[ 0.503580] rksfc_base v1.1 2016-01-08
[ 0.505502] mmcblk0: mmc0:0001 8GTF4R 7.28 GiB
[ 0.506285] mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB
[ 0.507052] mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB
[ 0.508153] mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB, chardev (242:0)
[ 0.513444] NET: Registered protocol family 17
[ 0.513533] NET: Registered protocol family 15
[ 0.513902] Bluetooth: RFCOMM TTY layer initialized
[ 0.513946] Bluetooth: RFCOMM socket layer initialized
[ 0.514011] Bluetooth: RFCOMM ver 1.11
[ 0.514084] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 0.514195] Bluetooth: HIDP socket layer initialized
[ 0.514229] [BT_RFKILL]: Enter rfkill_rk_init
[ 0.514242] [WLAN_RFKILL]: Enter rfkill_wlan_init
[ 0.516193] flash vendor_init_thread!
[ 0.516225] flash vendor storage:20170308 ret = -1
[ 0.516781] os04a10 1-0036: driver version: 00.01.05
[ 0.516835] os04a10 1-0036: Get hdr mode failed! no hdr default
[ 0.517042] os04a10 1-0036: could not get sleep pinstate
[ 0.517183] os04a10 1-0036: Linked as a consumer to regulator.4
[ 0.517249] os04a10 1-0036: Linked as a consumer to regulator.5
[ 0.517353] os04a10 1-0036: Linked as a consumer to regulator.6
[ 0.517696] clk_mipicsi_out2io_fracdiv p_rate(297000000) is low than rate(24000000)*20, use integer or half-div
[ 0.517762] reset gpio low
[ 0.517919] reset gpio high
[ 0.522689] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9
[ 0.557824] os04a10 1-0036: Unexpected sensor id(530541), ret(0)
[ 0.557913] os04a10_probe, read sensor id error
[ 0.557969] __os04a10_power_off, reset gpio low
[ 0.558342] os04a10 1-0036: Dropping the link to regulator.4
[ 0.558536] os04a10 1-0036: Dropping the link to regulator.5
[ 0.558684] os04a10 1-0036: Dropping the link to regulator.6
[ 0.559346] os05a20 1-0036-1: driver version: 00.01.01
[ 0.559463] os05a20 1-0036-1: Get hdr mode failed! no hdr default
[ 0.559663] os05a20 1-0036-1: Failed to get power-gpios
[ 0.559903] os05a20 1-0036-1: could not get default pinstate
[ 0.559982] os05a20 1-0036-1: could not get sleep pinstate
[ 0.560204] os05a20 1-0036-1: Linked as a consumer to regulator.4
[ 0.560379] os05a20 1-0036-1: Linked as a consumer to regulator.5
[ 0.560626] os05a20 1-0036-1: Linked as a consumer to regulator.6
[ 0.560877] clk_mipicsi_out2io_fracdiv p_rate(297000000) is low than rate(24000000)*20, use integer or half-div
[ 0.570104] vendor storage:20190527 ret = 0
[ 0.571023] os05a20 1-0036-1: Detected OV530541 sensor
[ 0.571148] rockchip-mipi-dphy-rx ff4b8000.csi-dphy: match m01_f_os05a20 1-0036-1:bus type 4
[ 0.571861] Registering SWP/SWPB emulation handler
[ 0.572708] Loading compiled-in X.509 certificates
[ 0.573941] rga2: Driver loaded successfully ver:3.2.56726
[ 0.574220] rga2: Module initialized.
[ 0.598166] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 0.601287] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 0.601444] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 0.601457] cfg80211: failed to load regulatory.db
[ 0.601951] rkisp rkisp-vir0: clear unready subdev num: 2
[ 0.602491] rkisp0: Async subdev notifier completed
[ 0.602563] ALSA device list:
[ 0.602573] #7: Loopback 1
[ 0.610304] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)
[ 0.610376] VFS: Mounted root (ext4 filesystem) readonly on device 179:6.
[ 0.611048] devtmpfs: mounted
[ 0.612327] Freeing unused kernel memory: 1024K
[ 0.612588] Run /sbin/init as init process
[ 0.763583] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
[ 1.165782] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: (null)
[ 1.180687] EXT4-fs (mmcblk0p8): mounted filesystem with ordered data mode. Opts: (null)
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
/bin/modetest
Populating /dev using udev: [ 1.428449] udevd[128]: starting version 3.2.11
[ 1.456909] udevd[129]: starting eudev-3.2.11
[ 1.583258] clk_mipicsi_out2io_fracdiv p_rate(297000000) is low than rate(24000000)*20, use integer or half-div
[ 1.606609] clk_mipicsi_out2io_fracdiv p_rate(297000000) is low than rate(24000000)*20, use integer or half-div
[ 1.624021] clk_mipicsi_out2io_fracdiv p_rate(297000000) is low than rate(24000000)*20, use integer or half-div
[ 1.650279] clk_mipicsi_out2io_fracdiv p_rate(297000000) is low than rate(24000000)*20, use integer or half-div
[ 1.664348] clk_mipicsi_out2io_fracdiv p_rate(297000000) is low than rate(24000000)*20, use integer or half-div
[ 1.680541] clk_mipicsi_out2io_fracdiv p_rate(297000000) is low than rate(24000000)*20, use integer or half-div
[ 1.694263] clk_mipicsi_out2io_fracdiv p_rate(297000000) is low than rate(24000000)*20, use integer or half-div
done
Initializing random number generator: OK
Saving random seed: OK
Will now mount all partitions in /etc/fstab
Note: Create /.skip_fsck to skip fsck
- The check might take a while if didn't shutdown properly!
grep: /sys/block/mtdblock*/device/name: No such file or directory
Handling /dev/block/by-name//dev/root / ext4 rw,noauto 1
Checking /dev/mmcblk0p6(ext4)
[ 2.290045] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
e2fsck 1.46.5 (30-Dec-2021)
rootfs: clean, 7156/196608 files, 129823/786432 blocks
[ 2.388431] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
grep: /sys/block/mtdblock*/device/name: No such file or directory
Handling /dev/block/by-name/tmpfs /tmp tmpfs mode=1777 0
grep: /sys/block/mtdblock*/device/name: No such file or directory
Handling /dev/block/by-name/tmpfs /run tmpfs mode=0755,nosuid,nodev 0
grep: /sys/block/mtdblock*/device/name: No such file or directory
Handling /dev/block/by-name/proc /proc proc defaults 0
grep: /sys/block/mtdblock*/device/name: No such file or directory
Handling /dev/block/by-name/devtmpfs /dev devtmpfs defaults 0
grep: /sys/block/mtdblock*/device/name: No such file or directory
Handling /dev/block/by-name/devpts /dev/pts devpts mode=0620,ptmxmode=0666,gid=5 0
grep: /sys/block/mtdblock*/device/name: No such file or directory
Handling /dev/block/by-name/tmpfs /dev/shm tmpfs nosuid,nodev,noexec 0
grep: /sys/block/mtdblock*/device/name: No such file or directory
Handling /dev/block/by-name/sysfs /sys sysfs defaults 0
grep: /sys/block/mtdblock*/device/name: No such file or directory
Handling /dev/block/by-name/configfs /sys/kernel/config configfs defaults 0
grep: /sys/block/mtdblock*/device/name: No such file or directory
Handling /dev/block/by-name/debugfs /sys/kernel/debug debugfs defaults 0
grep: /sys/block/mtdblock*/device/name: No such file or directory
Handling /dev/block/by-name/pstore /sys/fs/pstore pstore defaults 0
Handling /dev/mmcblk0p7 /oem ext4 defaults 2
Checking /dev/mmcblk0p7(ext4)
e2fsck 1.46.5 (30-Dec-2021)
oem: clean, 225/47616 files, 60710/196608 blocks
Mounting /dev/mmcblk0p7(ext4) on /oem with -o defaults
[ 3.922762] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: (null)
Handling /dev/mmcblk0p8 /userdata ext4 defaults 2
Checking /dev/mmcblk0p8(ext4)
e2fsck 1.46.5 (30-Dec-2021)
userdata: clean, 35/139264 files, 50452/1048576 blocks
Mounting /dev/mmcblk0p8(ext4) on /userdata with -o defaults
[ 4.204093] EXT4-fs (mmcblk0p8): mounted filesystem with ordered data mode. Opts: (null)
Log saved to /tmp/mount-all.log
Starting system message bus: done
load wifi modules: /etc/init.d/S36load_all_wifi_modules: line 26: rk_wifibt_init: command not found
FAIL
wl: wl driver adapter not found
Starting network: OK
[ 6.599894] YT8512B Ethernet stmmac-0:00: attached PHY driver [YT8512B Ethernet] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[ 6.601814] rk_gmac-dwmac ffc40000.ethernet: rk_get_eth_addr: mac address: b6:92:8e:74:0b:35
[ 6.601911] rk_gmac-dwmac ffc40000.ethernet: device MAC address b6:92:8e:74:0b:35
[ 6.612380] dwmac4: Master AXI performs any burst length
[ 6.612434] rk_gmac-dwmac ffc40000.ethernet eth0: No Safety Features support found
[ 6.612455] rk_gmac-dwmac ffc40000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[ 6.612769]Starting dhcpcd...
rk_gmac-dwmac ffc40000.ethernet eth0: registered PTP clock
dhcpcd-9.4.1 starting
sandbox unavailable: seccomp
dev: loaded udev
DUID 00:01:00:01:c7:92:bc:88:b6:92:8e:74:0b:35
sandbox unavailable: seccomp
forked to background, child pid 497
alsa-lib main.c:1541:(snd_use_case_mgr_open) error: failed to import hw:7 use case configuration -2
Starting dropbear sshd: OK
Starting fcgiwrap daemon: OK
Starting nginx...
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.1.233, server 192.168.1.1
udhcpc: lease of 192.168.1.233 obtained from 192.168.1.1, lease time 86400
deleting routers
adding dns 192.168.1.1
root@rv1126_rv1109:/# ifconfig
eth0 Link encap:Ethernet HWaddr B6:92:8E:74:0B:35
inet addr:192.168.1.233 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7 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:1268 (1.2 KiB) TX bytes:1278 (1.2 KiB)
Interrupt:53
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:3547 errors:0 dropped:0 overruns:0 frame:0
TX packets:3547 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5229384 (4.9 MiB) TX bytes:5229384 (4.9 MiB)
root@rv1126_rv1109:/# dmesg | grep sensor
[ 0.557824] os04a10 1-0036: Unexpected sensor id(530541), ret(0)
[ 0.557913] os04a10_probe, read sensor id error
[ 0.571023] os05a20 1-0036-1: Detected OV530541 sensor
[ 9.290581] os05a20 1-0036-1: sensor mode: 0
root@rv1126_rv1109:/#
4. 连接网线
依据框图, RJ45 pin定义如下:
引出网线, 如下:
5. 连接摄像头
Neardi RV1126使用的是mipi接口摄像头, 比如os04a10等。 连接时注意顺序, 1<---> 1, 24 <--->24, 如下:
6. 使用rtsp客户端访问摄像头
上面都连接OK, 系统起来后, 可以在串口查看:
root@rv1126_rv1109:/# ifconfig
eth0 Link encap:Ethernet HWaddr B6:92:8E:74:0B:35
inet addr:192.168.1.233 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7 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:1268 (1.2 KiB) TX bytes:1278 (1.2 KiB)
Interrupt:53
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:3547 errors:0 dropped:0 overruns:0 frame:0
TX packets:3547 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5229384 (4.9 MiB) TX bytes:5229384 (4.9 MiB)
root@rv1126_rv1109:/# dmesg | grep sensor
[ 0.557824] os04a10 1-0036: Unexpected sensor id(530541), ret(0)
[ 0.557913] os04a10_probe, read sensor id error
[ 0.571023] os05a20 1-0036-1: Detected OV530541 sensor
[ 9.290581] os05a20 1-0036-1: sensor mode: 0
root@rv1126_rv1109:/#
上面Log显示网络和摄像头都识别到了。
接下来使用RTSP client来访问摄像头, 在Windows PC上面安装VLC, 之后打开VLC, 如下:
上面192.168.1.233是RV1126设备的IP地址。这样, 可以实时查看摄像头的视频流, 如下:
7. 下载固件
使用Rockchip下载工具, 把下载USB接口引出即可下载。