HI3531开发板开机LOG文本,在学习开发板时帮我挺大

本文详细记录了一个基于ARMv7处理器的嵌入式系统的启动流程,从U-Boot引导加载程序开始,到Linux内核的初始化过程,包括内存配置、设备驱动加载、文件系统挂载等关键步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

The system is going down NOW!

Sent SIGTERM to all processes

Sent SIGKILL toRestarting system.

                         

 

 

U-Boot 2010.06 (Nov 15 2012 - 13:33:07)

 

DRAM:  256 MiB

NAND:  Special Nand id table Version 1.35

Nand ID: 0xEC 0xF1 0x00 0x95 0x40 0xEC 0xF1 0x00

Nand(Hardware): Block:128KB Page:2KB Chip:128MB*1 OOB:64B ECC:1bit

128 MiB

Check spi flash controller v300. found

Spi(cs1) ID: 0x20 0x20 0x18 0x00 0x00 0x00

Spi(cs1): Block:256KB Chip:16MB Name:"M25P128"

In:    serial

Out:   serial

Err:   serial

judge ddr init

user init finish.

Hit any key to stop autoboot:  0

16384 KiB hi_sfc at 0:0 is now current device

 

## Booting kernel from Legacy Image at 82000000 ...

   Image Name:   Linux-3.0.8

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    3497060 Bytes = 3.3 MiB

   Load Address: 80008000

   Entry Point:  80008000

   Loading Kernel Image ... OK

OK

 

Starting kernel ...

 

Uncompressing Linux... done, booting the kernel.

Linux version 3.0.8 (pub@BVT-SDK-SERVER3) (gcc version 4.4.1 (Hisilicon_v200(gcc4.4-290+glibc-2.11+eabi+nptl)) ) #1 SMP Tue Jun 4 17:13:30 CST 2013

CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7f

CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache

Machine: godnet

Memory policy: ECC disabled, Data cache writealloc

PERCPU: Embedded 7 pages/cpu @c0741000 s5152 r8192 d15328 u32768

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256

Kernel command line: mem=64M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=jffs2 mtdparts=hi_sfc:1M(boot),4M(kernel),11M(rootfs);hinand:128M(nand)

PID hash table entries: 256 (order: -2, 1024 bytes)

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory: 64MB = 64MB total

Memory: 57992k/57992k available, 7544k reserved, 0K highmem

Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)

    vmalloc : 0xc4800000 - 0xfe000000   ( 920 MB)

    lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)

    modules : 0xbf000000 - 0xc0000000   (  16 MB)

      .init : 0xc0008000 - 0xc0036000   ( 184 kB)

      .text : 0xc0036000 - 0xc063a000   (6160 kB)

      .data : 0xc063a000 - 0xc06611e0   ( 157 kB)

       .bss : 0xc0661204 - 0xc06bd934   ( 370 kB)

SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1

Hierarchical RCU implementation.

NR_IRQS:128 nr_irqs:128 128

sched_clock: 32 bits at 155MHz, resolution 6ns, wraps every 27709ms

Console: colour dummy device 80x30

Calibrating delay loop... 1849.75 BogoMIPS (lpj=9248768)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

CPU1: Booted secondary processor

Brought up 2 CPUs

SMP: Total of 2 processors activated (3706.06 BogoMIPS).

NET: Registered protocol family 16

Serial: AMBA PL011 UART driver

uart:0: ttyAMA0 at MMIO 0x20080000 (irq = 40) is a PL011 rev2

console [ttyAMA0] enabled

uart:1: ttyAMA1 at MMIO 0x20090000 (irq = 41) is a PL011 rev2

bio: create slab <bio-0> at 0

controller0, config base:0x20800000, mem size:0x800000

controller1, config base:0x20810000, mem size:0x800000

PCI: bus0: Fast back to back transfers disabled

PCI: bus1: Fast back to back transfers enabled

PCI: bus2: Fast back to back transfers disabled

PCI: bus3: Fast back to back transfers enabled

pci 0000:02:00.0: BAR 0: assigned [mem 0x60000000-0x607fffff pref]

pci 0000:02:00.0: BAR 0: set to [mem 0x60000000-0x607fffff pref] (PCI address [0x60000000-0x607fffff])

pci 0000:02:00.0: BAR 1: assigned [mem 0x60800000-0x6080ffff]

pci 0000:02:00.0: BAR 1: set to [mem 0x60800000-0x6080ffff] (PCI address [0x60800000-0x6080ffff])

pci 0000:02:00.0: BAR 6: assigned [mem 0x60810000-0x6081ffff pref]

pci 0000:02:00.0: PCI bridge to [bus 03-03]

pci 0000:02:00.0:   bridge window [io  disabled]

pci 0000:02:00.0:   bridge window [mem disabled]

pci 0000:02:00.0:   bridge window [mem pref disabled]

pci 0000:00:00.0: BAR 0: assigned [mem 0x30000000-0x307fffff pref]

pci 0000:00:00.0: BAR 0: set to [mem 0x30000000-0x307fffff pref] (PCI address [0x30000000-0x307fffff])

pci 0000:00:00.0: BAR 1: assigned [mem 0x30800000-0x3080ffff]

pci 0000:00:00.0: BAR 1: set to [mem 0x30800000-0x3080ffff] (PCI address [0x30800000-0x3080ffff])

pci 0000:00:00.0: BAR 6: assigned [mem 0x30810000-0x3081ffff pref]

pci 0000:00:00.0: PCI bridge to [bus 01-01]

pci 0000:00:00.0:   bridge window [io  disabled]

pci 0000:00:00.0:   bridge window [mem disabled]

pci 0000:00:00.0:   bridge window [mem pref disabled]

vgaarb: loaded

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

cfg80211: Calling CRDA to update world regulatory domain

Switching to clocksource timer1

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 2, 16384 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

UDP hash table entries: 128 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 128 (order: 0, 4096 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.

L2cache cache controller enabled

VFS: Disk quotas dquot_6.5.2

Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)

JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.

fuse init (API version 7.16)

SGI XFS with security attributes, large block/inode numbers, no debug enabled

msgmni has been set to 113

Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)

io scheduler noop registered

io scheduler deadline registered (default)

io scheduler cfq registered

brd: module loaded

loop: module loaded

ahci: SSS flag set, parallel bus scan disabled

ahci ahci.0: AHCI 0001.0200 32 slots 2 ports 3 Gbps 0x3 impl platform mode

ahci ahci.0: flags: ncq sntf stag pm led clo only pmp pio slum part ccc sxs boh

scsi0 : ahci_platform

scsi1 : ahci_platform

ata1: SATA max UDMA/133 mmio [mem 0x10080000-0x1008ffff] port 0x100 irq 68

ata2: SATA max UDMA/133 mmio [mem 0x10080000-0x1008ffff] port 0x180 irq 68

Spi id table Version 1.22

Hisilicon Spi Flash Controller V300 New Device Driver, Version 1.10

Check Spi Flash Controller V300 New.

Found

Spi(cs1) ID: 0x20 0x20 0x18 0x00 0x00 0x00

Spi(cs1):

Block:256KB

Chip:16MB

Name:"M25P128"

spi size: 0x16777216

chip num: 1

3 cmdlinepart partitions found on MTD device hi_sfc

Creating 3 MTD partitions on "hi_sfc":

0x000000000000-0x000000100000 : "boot"

0x000000100000-0x000000500000 : "kernel"

0x000000500000-0x000001000000 : "rootfs"

Special nand id table Version 1.35

Hisilicon Nand Flash Controller V301 Device Driver, Version 1.10

Nand ID: 0xEC 0xF1 0x00 0x95 0x40 0xEC 0xF1 0x00

Nand(Hardware): Block:128KB Page:2KB Chip:128MB OOB:64B ECC:1bit

NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)

1 cmdlinepart partitions found on MTD device hinand

Creating 1 MTD partitions on "hinand":

0x000000000000-0x000008000000 : "nand"

Fixed MDIO Bus: probed

sky2: driver version 1.28

usbcore: registered new interface driver rt2500usb

usbcore: registered new interface driver rt73usb

usbmon: debugfs is not available

ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

hiusb-ehci hiusb-ehci.0: HIUSB EHCI

hiusb-ehci hiusb-ehci.0: new USB bus registered, assigned bus number 1

hiusb-ehci hiusb-ehci.0: irq 63, io mem 0x100b0000

hiusb-ehci hiusb-ehci.0: USB 0.0 started, EHCI 1.00

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 2 ports detected

ata1: SATA link down (SStatus 0 SControl 300)

ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver

hiusb-ohci hiusb-ohci.0: HIUSB OHCI

hiusb-ohci hiusb-ohci.0: new USB bus registered, assigned bus number 2

hiusb-ohci hiusb-ohci.0: irq 64, io mem 0x100a0000

hub 2-0:1.0: USB hub found

hub 2-0:1.0: 2 ports detected

usbcore: registered new interface driver cdc_acm

cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters

usbcore: registered new interface driver cdc_wdm

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

usbcore: registered new interface driver ums-alauda

usbcore: registered new interface driver ums-datafab

usbcore: registered new interface driver ums-freecom

usbcore: registered new interface driver ums-isd200

usbcore: registered new interface driver ums-jumpshot

usbcore: registered new interface driver ums-sddr09

usbcore: registered new interface driver ums-sddr55

usbcore: registered new interface driver mdc800

mdc800: v0.7.5 (30/10/2000):USB Driver for Mustek MDC800 Digital Camera

mousedev: PS/2 mouse device common for all mice

usbcore: registered new interface driver usbhid

usbhid: USB HID core driver

TCP cubic registered

Initializing XFRM netlink socket

NET: Registered protocol family 17

NET: Registered protocol family 15

lib80211: common routines for IEEE802.11 drivers

Registering the dns_resolver key type

VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4

registered taskstats version 1

ata2: SATA link down (SStatus 0 SControl 300)

VFS: Mounted root (jffs2 filesystem) on device 31:2.

Freeing init memory: 184K

 

            _ _ _ _ _ _ _ _ _ _ _ _

            \  _  _   _  _ _ ___

            / /__/ \ |_/

           / __   /  -  _ ___

          / /  / /  / /

  _ _ _ _/ /  /  \_/  \_ ______

___________\___\__________________

 

[RCS]: /etc/init.d/S00devs

[RCS]: /etc/init.d/S01udev

udevd[568]: mainudevd (568): /proc/568/oom_adj is deprecated, please use /proc/568/oom_score_adj instead.

: error opening /dev/null: No such file or directory

[RCS]: /etc/init.d/S80network

[RCS]: /etc/init.d/S81toe

STMMAC driver:

platform registration...

done!

Set system config register 0x200300ec with value 0x003f003f

done!

DWMAC1000 - user ID: 0x10, Synopsys ID: 0x36

Enhanced descriptor structure

MACADDR in get is 0:0:0:0:0:0

no valid MAC address for MAC 0;please, use ifconfig or nwhwconfig!

eth0 - (dev. name: stmmaceth - id: 0, IRQ #119

IO base addr: 0xc4980000)

STMMAC MII Bus: probed

eth0: PHY ID 001cc915 at 0 IRQ 0 (1:00)

eth0: PHY ID 001cc915 at 1 IRQ -6 (1:01) active

eth0: PHY ID 001cc915 at 2 IRQ 0 (1:02)

DWMAC1000 - user ID: 0x10, Synopsys ID: 0x36

Enhanced descriptor structure

MACADDR in get is 0:0:0:0:0:0

no valid MAC address for MAC 1;please, use ifconfig or nwhwconfig!

eth1 - (dev. name: stmmaceth - id: 0, IRQ #119

IO base addr: 0xc4984000)

eth1: PHY ID 001cc915 at 0 IRQ 0 (1:00)

eth1: PHY ID 001cc915 at 1 IRQ -6 (1:01)

eth1: PHY ID 001cc915 at 2 IRQ 0 (1:02) active

stmmac_reset: RESET COMPLETE!

 

**************************************************

*  TNK driver built on Jun  4 2013 at 17:13:17

*  TNK driver mode is BYPASS

**************************************************

stmmac: Rx Checksum Offload Engine supported

stmmac: Rx Checksum Offload Engine supported

*** Board tools : ver0.0.1_20121120 ***

[debug]: {source/utils/cmdshell.c:166}cmdstr:himm

0x200F0234: 0x00000000 --> 0x00000000

[END]

*** Board tools : ver0.0.1_20121120 ***

eth0: generated random MAC address 4e:e8:01:83:a5:93

 

0x200F0238: 0x0MACADDR in set is 4e:e8:1:83:a5:93

0000001 --> 0x00000000

[END]

*** Board tools eth1: generated random MAC address 7e:f9:24:d1:61:8c

: ver0.0.1_20121MACADDR in set is 7e:f9:24:d1:61:8c

120 ***

[debug]: {source/utils/cmdshell.c:166}cmdstr:himm

0x200F023C: 0x00000000 --> 0x000000yaffs: dev is 32505859 name is "mtdblock3" rw

00

[END]

*** yaffs: passed flags ""

Board tools : ver0.0.1_20121120 ***

[debug]: {source/utils/cmdshell.c:166}cmdstr:himm

0x200F0240: 0x00000001 --> 0x00000000

[END]

*** Board tools : ver0.0.1_20121120 ***

[debug]: {source/utils/cmdshell.c:166}cmdstr:himm

0x20260400: 0x00000000 --> 0x00000020

[END]

*** Board tools : ver0.0.1_20121120 ***

[debug]: {source/utils/cmdshell.c:166}cmdstr:himm

0x20260080: 0x00000000 --> 0x00000020

[END]

*** Board tools : ver0.0.1_20121120 ***

[debug]: {source/utils/cmdshell.c:166}cmdstr:himm

0x20260080: 0x00000020 --> 0x00000000

[END]

SDK_TYPE type is 4hd

Hisilicon Media Memory Zone Manager

hi3531_base: module license 'Proprietary' taints kernel.

Disabling lock debugging due to kernel taint

Hisilicon UMAP device driver interface: v3.00

load sys.ko for Hi3531...OK!

Load tde.ko ...OK!

load venc.ko for Hi3531...OK!

load group.ko for Hi3531...OK!

card disconnected!

load chnl.ko for Hi3531...OK!

load h264e.ko for Hi3531...OK!

load rc.ko for Hi3531...OK!

load jpege.ko for Hi3531...OK!

load mpeg4e.ko for Hi3531...OK!

load viu.ko for Hi3531...OK!

load vou.ko ....OK!

load vpss.ko ....OK!

load region.ko ....OK!

load vda.ko ....OK!

load vdec.ko ....OK

load vhd firmware.ko OK

load hdmi.ko ....OK!

Load jpeg6b.ko success. (SDK_VERSION:[jpeg6bv1.0] Build Time:[Jun  4 2013, 17:14:53])

Kernel: ssp initial ok!

read secs=21, mins=30, hours=13, mday=1, mon=0, year=100, wday=0

Auto login as root ...

login[889]: root login on 'ttyS000'

Welcome to HiLinux.

None of nfsroot found in cmdline.

# PHY: 1:01 - Link is Up - 1000/Full


<think>好的,我现在需要回答用户关于Hi3519DV500开发板如何打断点调试程序以及相关调试工具的问题。首先,我应该回忆一下Hi3519DV500的基本信息。这是海思推出的一款高性能处理器,常用于视频处理和嵌入式设备。这类开发板通常使用交叉编译环境进行开发,调试的话可能需要JTAG或者其他调试工具。 用户的问题集中在如何设置断点和相关工具。首先,我应该确定Hi3519DV500支持的调试方法。常见的嵌入式调试方法包括JTAG调试、GDB调试,或者使用IDE集成的调试工具。需要确认该开发板是否有JTAG接口,以及是否支持GDB stub或者类似的功能。 接下来,调试工具方面,海思的SDK通常会有配套的工具,比如HiTool或者某些基于GDB的调试器。另外,是否有第三方工具支持,比如OpenOCD或者J-Link,这些需要查证。用户可能需要安装特定的驱动或软件包来支持这些工具。 步骤方面,可能需要先配置开发环境,安装交叉编译工具链,然后配置调试器连接开发板。设置断点通常在IDE中完成,比如在Eclipse或者VS Code中配置GDB进行远程调试。需要详细说明如何通过GDB连接目标板,加载程序,设置断点,然后运行和检查变量等。 还要考虑是否有特殊的步骤,比如在uboot或内核中启用调试支持,或者需要配置某些参数才能进行调试。此外,文档资源方面,建议用户参考海思提供的官方文档,或者社区论坛中的指南。 可能需要分点回答:首先介绍调试工具,如JTAG、GDB、HiTools,然后详细步骤说明如何搭建环境,连接调试器,编译带有调试信息的程序,启动GDB服务器,设置断点,最后进行调试。 需要确保信息准确,比如Hi3519DV500是否支持JTAG,以及具体的调试流程。如果有不确定的地方,应该建议查阅官方资料或提供参考链接。同,注意使用中文,避免专业术语错误,保持回答结构清晰,逐步引导用户完成调试过程。</think>关于Hi3519DV500开发板的断点调试,主要可通过以下工具和步骤实现: **一、常用调试工具** 1. **JTAG调试器** - 需搭配海思专用HiJTAG工具或第三方调试器(如J-Link) - 通过开发板JTAG接口连接 - 支持底层硬件级断点设置 2. **GDB远程调试** - 需在开发板运行`gdbserver`调试代理 - 主机端使用交叉编译工具链中的`arm-himix200-linux-gdb` - 支持源码级断点调试 3. **海思HiTools套件** - 官方提供的集成调试工具 - 支持内存/寄存器查看、性能分析等功能 **二、GDB调试步骤示例** 1. **环境准备** ```bash # 编译添加调试信息 arm-himix200-linux-gcc -g -o demo demo.c ``` 2. **开发板端** ```bash # 启动gdbserver监听端口 gdbserver :1234 ./demo ``` 3. **PC端操作** ```bash arm-himix200-linux-gdb ./demo (gdb) target remote 192.168.1.100:1234 # 连接开发板 (gdb) break main.c:20 # 设置断点 (gdb) continue # 开始执行 ``` **三、注意事项** 1. 需确保内核配置包含`CONFIG_DEBUG_INFO` 2. 调试前关闭地址随机化:`echo 0 > /proc/sys/kernel/randomize_va_space` 3. 建议使用海思最新SDK(通常包含完整调试工具链) **官方资源参考** -Hi3519DV500 Debugging Guide》 - 海思开发者社区提供的JTAG连接示意图 - SDK路径:`Hi3519DV500_SDK_Vx.x.x/package/debug_tools` 实际调试建议优先使用GDB+gdbserver方案,若需硬件级调试则需要专用JTAG仿真器。遇到具体问题可查看`/var/log/messages`获取内核级调试信息。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值