Menu Close

设备树 of 函数测试输出

此文章提供了所有前面提到的 of 函数测试的输出结果。

相关参考文章:SOC 教学教案

 

系统启动时所显示的输出应该跟下面的相似。您也可以打开 /var/volatile/log/dmesg 查看此记录的信息。记住我们前几章的测试输出包裹在 “|” 中。

TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 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.
PCI: CLS 0 bytes, default 64
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 5908K
hw perfevents: no interrupt-affinity property for /pmu@f8891000, guessing.
hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
workingset: timestamp_bits=30 max_order=18 bucket_order=0
jffs2: version 2.2. (NAND) (SUMMARY)  漏 2001-2006 Red Hat, Inc.
bounce: pool size: 64 pages
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
io scheduler mq-deadline registered
io scheduler kyber registered
dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
dma-pl330 f8003000.dmac:       DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
xilinx-vdma 40400000.dma: Xilinx AXI DMA Engine Driver Probed!!
42c00000.serial: ttyUL1 at MMIO 0x42c00000 (irq = 54, base_baud = 0) is a uartlite
42c10000.serial: ttyUL2 at MMIO 0x42c10000 (irq = 55, base_baud = 0) is a uartlite
42c20000.serial: ttyUL3 at MMIO 0x42c20000 (irq = 56, base_baud = 0) is a uartlite
42c30000.serial: ttyUL4 at MMIO 0x42c30000 (irq = 57, base_baud = 0) is a uartlite
42c40000.serial: ttyUL5 at MMIO 0x42c40000 (irq = 58, base_baud = 0) is a uartlite
42c50000.serial: ttyUL6 at MMIO 0x42c50000 (irq = 59, base_baud = 0) is a uartlite
42c60000.serial: ttyUL7 at MMIO 0x42c60000 (irq = 60, base_baud = 0) is a uartlite
42c70000.serial: ttyUL8 at MMIO 0x42c70000 (irq = 61, base_baud = 0) is a uartlite
brd: module loaded
loop: module loaded
m25p80 spi0.0: found s25fl128s, expected n25q512a
m25p80 spi0.0: s25fl128s (16384 Kbytes)
4 ofpart partitions found on MTD device spi0.0
Creating 4 MTD partitions on "spi0.0":
0x000000000000-0x000000500000 : "boot"
0x000000500000-0x000000520000 : "bootenv"
0x000000520000-0x000000fa0000 : "kernel"
0x000000fa0000-0x000001000000 : "spare"
libphy: Fixed MDIO Bus: probed
CAN device driver interface
xilinx_can 50000000.can: Device clock not found.
xilinx_can: probe of 50000000.can failed with error -2
libphy: MACB_mii_bus: probed
macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 32 (00:0a:35:00:1e:53)
Marvell 88E1510 e000b000.ethernet-ffffffff:00: attached PHY driver [Marvell 88E1510](mii_bus:phy_addr=e000b000.ethernet-ffffffff:00, irq=POLL)
libphy: MACB_mii_bus: probed
macb e000c000.ethernet eth1: Cadence GEM rev 0x00020118 at 0xe000c000 irq 33 (5e:23:16:3b:07:db)
Marvell 88E1510 e000c000.ethernet-ffffffff:00: attached PHY driver [Marvell 88E1510](mii_bus:phy_addr=e000c000.ethernet-ffffffff:00, irq=POLL)
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
usbcore: registered new interface driver usb-storage
i2c /dev entries driver
cdns-i2c e0004000.i2c: 400 kHz mmio e0004000 irq 25
IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR SANYO protocol handler initialized
IR Sharp protocol handler initialize
IR MCE Keyboard/mouse protocol handler initialized
IR XMP protocol handler initialized
cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer at f09c3000 with timeout 10s
EDAC MC: ECC not enabled
Xilinx Zynq CpuIdle Driver started
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: SDHCI controller on e0100000.mmc [e0100000.mmc] using ADMA
ledtrig-cpu: registered to indicate activity on CPUs
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
fpga_manager fpga0: Xilinx Zynq FPGA Manager registered
NET: Registered protocol family 10
Segment Routing with IPv6
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
can: controller area network core (rev 20170425 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20170425)
can: broadcast manager protocol (rev 20170425 t)
can: netlink gateway (rev 20170425) max_hops=1
Registering SWP/SWPB emulation handler
mmc0: new high speed SDHC card at address 59b4
mmcblk0: mmc0:59b4 USD00 14.7 GiB
mmcblk0: p1 p2
hctosys: unable to open rtc device (rtc0)
of_cfs_init
of_cfs_init: OK
ALSA device list:
No soundcards found.
Freeing unused kernel memory: 1024K
udevd[795]: starting version 3.2.2
udevd[796]: starting eudev-3.2.2
fii_dt_driver: loading out-of-tree module taints kernel.
||||||||||||||||||||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||||||||||||||||

Node was successfully found via of_find_node_by_name
Node name is:  test_node2

Node was successfully found via of_find_node_by_type
Node name is:  test_node1

Node was successfully found via of_find_compatible_node
Node name is:  test_node1

Node was successfully found via of_find_matching_node_and_match
Node name is:  fii-dt-driver

Node was successfully found via of_find_node_by_path
Node name is:  test_node1

####################################################

Parent node of test_node2 was successfully found via of_get_parent
Node name is:  test_node1

Next child node of test_node1 was successfully found via of_get_next_child
Node name is:  test_node2

####################################################

Compatible property of test_node1 was successfully found via of_find_property
Property name is:  compatible

propname = 4
Compatible property of test_node1 was successfully found via of_property_count_elems_of_size
Property element count is:  18

test_array of test_node1 was successfully found via of_property_read_u32_index
Property value at index 0 is:  ret = 0,  0x12345678

Property value at index 1 is:  ret = 0,  0xaabbccdd

Property value at index 2 is:  ret = 0,  0x1234abcd

Property value at index 3 is:  ret = -75,  0x1234abcd

Property value at index 4 is:  ret = -75,  0x1234abcd

----------------------------------------------------

test_array of test_node1 was successfully found via of_property_read_u8_array
Return value : 0
Property value is:  0x12
Return value : 0
Property value is:  0x34
Return value : 0
Property value is:  0x56
Return value : 0
Property value is:  0x78
Return value : 0
Property value is:  0xaa

u8_test_array of test_node2 was successfully found via of_property_read_u8_array
Return value : 0
Property value is:  0x10
Return value : 0
Property value is:  0x20
Return value : 0
Property value is:  0x30
Return value : 0
Property value is:  0x40
Return value : 0
Property value is:  0x50

test_array of test_node1 was successfully found via of_property_read_u16_array
Return value : 0
Property value is:  0x1234
Return value : 0
Property value is:  0x5678
Return value : 0
Property value is:  0xaabb
Return value : 0
Property value is:  0xccdd
Return value : 0
Property value is:  0x1234

u16_test_array of test_node2 was successfully found via of_property_read_u16_array
Return value : 0
Property value is:  0x1000
Return value : 0
Property value is:  0x2000
Return value : 0
Property value is:  0x3000
Return value : 0
Property value is:  0x4000
Return value : 0
Property value is:  0x5000

u32_test_array of test_node2 was successfully found via of_property_read_u32_array
Return value : 0
Property value is:  0x100000
Return value : 0
Property value is:  0x200000
Return value : 0
Property value is:  0x300000
Return value : 0
Property value is:  0x400000
Return value : 0
Property value is:  0x500000

u64_test_array of test_node2 was successfully found via of_property_read_u64_array
Return value : 0
Property value is:  0x10000000
Return value : 0
Property value is:  0x20000000
Return value : 0
Property value is:  0x30000000
Return value : 0
Property value is:  0x40000000
Return value : 0
Property value is:  0x50000000


----------------------------------------------------

u8_test_array of test_node2 was successfully found via of_property_read_u8
Return value : 0
Property value is:  0x10

u8_test of test_node2 was successfully found via of_property_read_u8
Return value : 0
Property value is:  0x99

u16_test_array of test_node2 was successfully found via of_property_read_u16
Return value : 0
Property value is:  0x1000

u16_test of test_node2 was successfully found via of_property_read_u16
Return value : 0
Property value is:  0x9999

u32_test_array of test_node2 was successfully found via of_property_read_u32
Return value : 0
Property value is:  0x100000

u32_test of test_node2 was successfully found via of_property_read_u32
Return value : 0
Property value is:  0x999999

u64_test_array of test_node2 was successfully found via of_property_read_u64
Return value : 0
Property value is:  0x10000000

u64_test of test_node2 was successfully found via of_property_read_u64
Return value : 0
Property value is:  0x99999999

----------------------------------------------------

status was successfully found via of_property_read_string
Return value : 0
Property value is:  okay

Address Cells was successfully found via of_n_addr_cells
Return value : 1

Size Cells was successfully found via of_n_size_cells
Return value : 1

####################################################

Compatible was successfully found via of_device_is_compatible
Return value : 1073741823

Address was successfully found via of_get_address
Return value : 0xc7a3660c

Address was successfully translated via of_translate_address
Return value : 0x2ee8d000

Resource was successfully transfered via of_address_to_resource
Return value: 0
Property value is:  0x43c00000

Mapping was successful via of_iomap
Return value: 0xf0a08000

||||||||||||||||||||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||||||||||||||||
kernel: enter fii_dt_driver probe ......
kernel: enter fii_dt_driver probe ......
kernel: enter fii_dt_driver probe ......
kernel: enter fii_dt_driver probe ......
kernel: enter fii_dt_driver probe ......
kernel: enter fii_dt_driver probe ......
kernel: enter fii_dt_driver probe ......
kernel: enter fii_dt_driver probe ......
kernel: enter fii_dt_driver probe ......
kernel: enter fii_dt_driver probe ......
kernel: enter fii_dt_driver probe ......
kernel: enter fii_dt_driver probe ......
Posted in 教材与教案
0 0 投票数
Article Rating
订阅评论
提醒
guest
0 评论
内联反馈
查看所有评论

相关链接