吴少雄

吴少雄

0个粉丝

15

问答

0

专栏

0

资料

吴少雄  发布于  2016-11-01 09:57:21
采纳率 0%
15个问答
5235

内核启动问题请教?

 
内核启动时,出现以下错误,有概率可以启动成功,大神帮忙看一下
shell@am572x:/vcmt # [   62.975219] [FPGA_KMSG]: Reg[0x58]=0x0
[   62.979522] [FPGA_KMSG]: Reg[0x53]=0x0
cd /vcmt;./loadhisi.sh
Loaded u-boot.bin, size: 211304 Bytes.
[   63.484832] [FPGA_KMSG]: Reg[0x58]=0x0
[   63.489776] [FPGA_KMSG]: Reg[0x53]=0x0
[   63.995330] [FPGA_KMSG]: Reg[0x58]=0x0
[   64.000183] [FPGA_KMSG]: Reg[0x53]=0x0
[   64.506927] [FPGA_KMSG]: Reg[0x58]=0x0
[   64.517822] [FPGA_KMSG]: Reg[0x53]=0x0
[   64.688690]
[   64.690643] [KD_KMSG]: input: 3# 3 0x0e 0xe9; len=14
[   64.690643]


U-Boot 2010.06 (Aug 24 2016 - 01:48:04)

Hisilicon Hi3536 platform
CPU: A17 @ 1400MHz
     A7  @ 900MHz
GPU: 500MHz
DDR: 466MHz
Check spi flash controller v350... Found
Spi(cs1) ID: 0xEF 0x40 0x18 0x00 0x00 0x00
Spi(cs1): Block:64KB Chip:16MB Name:"W25Q128(B/F)V"
In:    serial
Out:   serial
Err:   serial
Press 'CTRL+B' to to stop autoboot:  0
wait rc give us os......press Ctrl+B to abort it!
Detect os , bootm it....
## Booting kernel from Legacy Image at 40000000 ...
   Image Name:   Linux-3.10.0_hi3536
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2566624 Bytes = 2.4 MiB
   Load Address: 40008000
   Entry Point:  40008000
## Loading init Ramdisk from Legacy Image at 41000000 ...
   Image Name:   cpioInitramfs
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    14433777 Bytes = 13.8 MiB
   Load Address: 48000000
   Entry Point:  48000000
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 3.10.0_hi3536 (root@bianyi01) (gcc version 4.8.3 20131202 (prerelease) (Hisilicon_v400) ) #72 SMP Wed Aug 24 01:47:57 CST 2016
CPU: ARMv7 Processor [411fc0e1] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: hi3536
Ignoring unrecognised tag 0x48695370
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 7 pages/cpu @c06fb000 s7872 r8192 d12608 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttyAMA0,115200n8 rdinit=/linuxrc mem=256M partindex=0
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 240564k/240564k available, 21580k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc04783a8   (4545 kB)
      .init : 0xc0479000 - 0xc04a0ec0   ( 160 kB)
      .data : 0xc04a2000 - 0xc04d3ee0   ( 200 kB)
       .bss : 0xc04d3ee0 - 0xc04f7fb4   ( 145 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:288
sched_clock: 32 bits at 125MHz, resolution 8ns, wraps every 34359ms
Console: colour dummy device 80x30
Calibrating delay loop... 2786.91 BogoMIPS (lpj=13934592)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys freezer
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0xc034cbc8 - 0xc034cc20
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
CPU2: Booted secondary processor
CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
CPU3: Booted secondary processor
CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
Brought up 4 CPUs
SMP: Total of 4 processors activated (11167.33 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
succeed to register hi3536 mca device
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
Serial: AMBA PL011 UART driver
uart:0: ttyAMA0 at MMIO 0x12080000 (irq = 38) is a PL011 rev2
console [ttyAMA0] enabled
uart:1: ttyAMA1 at MMIO 0x12090000 (irq = 39) is a PL011 rev2
uart:2: ttyAMA2 at MMIO 0x120a0000 (irq = 40) is a PL011 rev2
uart:3: ttyAMA3 at MMIO 0x120b0000 (irq = 41) is a PL011 rev2
bio: create slab at 0
SCSI subsystem initialized
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource timer0
NET: Registered protocol family 2
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: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (uncompression error); looks like an initrd
Freeing initrd memory: 14088K (c1001000 - c1dc3000)
NetWinder Floating Point Emulator V0.97 (double precision)
CPU PMU: probing PMU on CPU 3
CPU PMU: failed to probe PMU!
CPU PMU: failed to register PMU devices!fuse init (API version 7.22)
msgmni has been set to 497
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler deadline registered (default)
io scheduler cfq registered
brd: module loaded
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
hisi_i2c hisi_i2c.0: Hisilicon [i2c-0] probed!
Hisilicon Watchdog Timer: 0.01 initialized. default_margin=60 sec (nowayout= 0, nodeamon= 0)
hi_iommu_probe:966: begin
hi_iommu_probe iores_start:131f0000
led     : total 1 leds registerd
i2c: std device driver registered
[version] : module driver registered
pinfo: warning! product info module not setup!
bcsr: module driver registered
On-Chip RAM: 0x4010000, 0x10000
Outbound Memory: 0x30000000, 0x10000000
PCIe Register: 0x1f000000, 0x1000
DDR Memory: 0x40000000, 0x80000000
hi3536 port=0x4 slot=0x0 id=0x4
hi3536 bar0 start=0x2c800000 len=0x800000
oprofile: no performance counters
oprofile: using timer interrupt.
TCP: cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 10
NET: Registered protocol family 17
NET: Registered protocol family 15
VFP support v0.3: implementor 41 architecture 3 part 30 variant e rev 0
registered taskstats version 1
RAMDISK: gzip image found at block 0
uncompression error
VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
CPU2: stopping
CPU: 2 PID: 0 Comm: swapper/2 Not tainted 3.10.0_hi3536 #72
[] (unwind_backtrace+0x0/0xf4) from [] (show_stack+0x10/0x14)
[] (show_stack+0x10/0x14) from [] (handle_IPI+0x188/0x1b0)
[] (handle_IPI+0x188/0x1b0) from [] (gic_handle_irq+0x88/0x8c)
[] (gic_handle_irq+0x88/0x8c) from [] (__irq_svc+0x40/0x50)
Exception stack(0xcf869f98 to 0xcf869fe0)
9f80:                                                       c070b930 00000000
9fa0: 00000252 00000000 c04d3de5 c04b7c90 c034ee6c cf868000 c04d3de5 cf868000
9fc0: cf868000 c04b7c30 00000000 cf869fe0 c00142a4 c00142a8 60000113 ffffffff
[] (__irq_svc+0x40/0x50) from [] (arch_cpu_idle+0x2c/0x30)
[] (arch_cpu_idle+0x2c/0x30) from [] (cpu_startup_entry+0xfc/0x140)
[] (cpu_startup_entry+0xfc/0x140) from [<40343044>] (0x40343044)
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 3.10.0_hi3536 #72
[] (unwind_backtrace+0x0/0xf4) from [] (show_stack+0x10/0x14)
[] (show_stack+0x10/0x14) from [] (handle_IPI+0x188/0x1b0)
[] (handle_IPI+0x188/0x1b0) from [] (gic_handle_irq+0x88/0x8c)
[] (gic_handle_irq+0x88/0x8c) from [] (__irq_svc+0x40/0x50)
Exception stack(0xcf867f98 to 0xcf867fe0)
7f80:                                                       c0703930 00000000
7fa0: 0000057c 00000000 c04d3de5 c04b7c90 c034ee6c cf866000 c04d3de5 cf866000
7fc0: cf866000 c04b7c30 00000000 cf867fe0 c00142a4 c00142a8 60000113 ffffffff
[] (__irq_svc+0x40/0x50) from [] (arch_cpu_idle+0x2c/0x30)
[] (arch_cpu_idle+0x2c/0x30) from [] (cpu_startup_entry+0xfc/0x140)
[] (cpu_startup_entry+0xfc/0x140) from [<40343044>] (0x40343044)
CPU0: stopping
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.10.0_hi3536 #72
[] (unwind_backtrace+0x0/0xf4) from [] (show_stack+0x10/0x14)
[] (show_stack+0x10/0x14) from [] (handle_IPI+0x188/0x1b0)
[] (handle_IPI+0x188/0x1b0) from [] (gic_handle_irq+0x88/0x8c)
[] (gic_handle_irq+0x88/0x8c) from [] (__irq_svc+0x40/0x50)
Exception stack(0xc04a3f68 to 0xc04a3fb0)
3f60:                   c06fb930 00000000 000009d6 00000000 c04d3de5 c04b7c90
3f80: c034ee6c c04a2000 c04d3de5 c04a2000 c04a2000 c04b7c30 00000000 c04a3fb0
3fa0: c00142a4 c00142a8 60000113 ffffffff
[] (__irq_svc+0x40/0x50) from [] (arch_cpu_idle+0x2c/0x30)
[] (arch_cpu_idle+0x2c/0x30) from [] (cpu_startup_entry+0xfc/0x140)
[] (cpu_startup_entry+0xfc/0x140) from [] (start_kernel+0x30c/0x318)
[] (start_kernel+0x30c/0x318) from [<40008074>] (0x40008074)
我来回答
回答12个
时间排序
认可量排序

hongwazi

3个粉丝

14

问答

0

专栏

8

资料

hongwazi 2016-11-01 10:03:54
认可0
uncompression error
VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

感觉你的的ramdisk读取错误,会不会是spi nor通信不稳定导致,读取数据不稳定呀!可以抓取先spi总线上读到的数据是否和实际ramdisk镜像一致!

吴少雄

0个粉丝

15

问答

0

专栏

0

资料

吴少雄 2016-11-01 10:10:04
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=40596&ptid=13208]hongwazi 发表于 2016-11-1 10:03[/url]
uncompression error
VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
Please a ...[/quote]

大神,为什么这么说呢?我不懂。SPI nor flash 通信不稳定?

hongwazi

3个粉丝

14

问答

0

专栏

8

资料

hongwazi 2016-11-01 10:18:39
认可0
RAMDISK: gzip image found at block 0
uncompression error

第一句是发现了ramdisk
第二句发现了读取到内存的ramdisk格式有问题,要么是存储在nor里面的数据有问题(有时候可以启动,可以排除这个),要么就是读取过程出现的问题。

吴少雄

0个粉丝

15

问答

0

专栏

0

资料

吴少雄 2016-11-01 10:24:55
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=40602&ptid=13208]hongwazi 发表于 2016-11-1 10:18[/url]
RAMDISK: gzip image found at block 0
uncompression error

[/quote]

先帮我看一下打包指令有问题吗?我说的有时候可以启动成功,就是同样的Makefile 打包,有概率可以启动成功,新手,这种奇怪的问题都有?

/home/share/wushaoxiong/XWalkPackage/hisi3536/rootfs.tar.bz2
    cd /home/share/wushaoxiong/XWalkPackage/hisi3536/
    rm -rf rootfs
    rm -rf uInitramfs
    #锟斤拷压锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟侥硷拷系统锟斤拷
    tar -jxvf rootfs.tar.bz2  
    cp codecwrapper_hi3536.out rootfs/root/codecwrapper_hi3536.out
    cp 1920_1080_chushi30_nv12.yuv rootfs/usr/bin/1920_1080_chushi30_nv12.yuv
    echo "cp 1920_1080_chushi30_nv12.yuv rootfs/usr/bin/1920_1080_chushi30_nv12.yuv!!!"  
    cp static.bmp rootfs/root/static.bmp
    cp static_enc.bmp rootfs/root/static_enc.bmp
    cp static_mic.bmp rootfs/root/static_mic.bmp   
    cp mcaapp rootfs/root/mcaapp
    cp start.sh rootfs/usr/bin/start.sh
                cd rootfs && find . | cpio -H newc -o > ../initramfs.img
                cd ../
    gzip -9 initramfs.img  
    mv initramfs.img.gz initramfs.img  
    mkimage -A arm -O linux -T ramdisk -C none -a 0x48000000 -e 0x48000000 -n cpioInitramfs -d initramfs.img uInitramfs  
    rm -rf initramfs.img

hongwazi

3个粉丝

14

问答

0

专栏

8

资料

hongwazi 2016-11-01 10:36:01
认可0
cpio 这个命令制作ramdisk我没有使用过,我使用的它sdk里面提供的标准方法制作的文件系统。不过这样用对的话,也应该没有错吧,但是我看不到你根文件系统制作指定的文件系统类型呀?

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2016-11-01 10:42:32
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=40599&ptid=13208]吴少雄 发表于 2016-11-1 10:10[/url]
大神,为什么这么说呢?我不懂。SPI nor flash 通信不稳定?[/quote]

有个问题
"## Booting kernel from Legacy Image at 40000000 ..."
"## Loading init Ramdisk from Legacy Image at 41000000 ..."

bootcmd是什么?
一般情况下, 都是把flash上的uImage读到 0x41000000或者0x42000000的地方, 然后启动, 而楼主直接读到了0x40000000上, 这个是不是有问题呢?

hongwazi

3个粉丝

14

问答

0

专栏

8

资料

hongwazi 2016-11-01 10:46:45
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=40605&ptid=13208]zhuangweiye 发表于 2016-11-1 10:42[/url]
有个问题
"## Booting kernel from Legacy Image at 40000000 ..."
"## Loading init Ramdisk from Leg ...[/quote]

这个内核的起始地址和编译内核有关系,你可以看make xxx  zImage编译完成后最后那几句,就可以知道该把内核读取到哪个内存起始地址了。

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2016-11-01 10:55:30
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=40608&ptid=13208]hongwazi 发表于 2016-11-1 10:46[/url]
这个内核的起始地址和编译内核有关系,你可以看make xxx  zImage编译完成后最后那几句,就可以知道该把内 ...[/quote]

您说的是这个地址吧
   Load Address: 40008000
    Entry Point:  40008000

和我说的不是一回事

hongwazi

3个粉丝

14

问答

0

专栏

8

资料

hongwazi 2016-11-01 11:27:41
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=40609&ptid=13208]zhuangweiye 发表于 2016-11-1 10:55[/url]
您说的是这个地址吧
   Load Address: 40008000
    Entry Point:  40008000
[/quote]

哦,那我也不是很清楚这个了

吴少雄

0个粉丝

15

问答

0

专栏

0

资料

吴少雄 2016-11-01 13:44:08
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=40605&ptid=13208]zhuangweiye 发表于 2016-11-1 10:42[/url]
有个问题
"## Booting kernel from Legacy Image at 40000000 ..."
"## Loading init Ramdisk from Leg ...[/quote]

庄工,我不懂驱动那边怎么做的,我的理解是这样, 我们hisi3536 是从机,文件系统和内核镜像都在主机上面,丛机和主机之间是通过PCIE通信的,丛机启动的uImage和uInitramfs, 是主机启动时传给3536的,bootcmd应该是从主机获取uImage 和uInitramfs。不懂啊,我也不知道是不是这样?瞎猜的

吴少雄

0个粉丝

15

问答

0

专栏

0

资料

吴少雄 2016-11-01 13:45:21
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=40618&ptid=13208]吴少雄 发表于 2016-11-1 13:44[/url]
庄工,我不懂驱动那边怎么做的,我的理解是这样, 我们hisi3536 是从机,文件系统和内核镜像都在主机上面 ...[/quote]

问题虽然解决了,内核启动过程完成不懂

刘胜126

0个粉丝

18

问答

0

专栏

0

资料

刘胜126 2016-11-08 09:07:19
认可0
你好,我想问下你是怎么把Uart1,uart2,uart3弄出来的??我这里uart1总是打开失败
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区