chh123

chh123

1个粉丝

20

问答

0

专栏

1

资料

chh123  发布于  2016-04-28 10:19:51
采纳率 0%
20个问答
14144

【已解决】Hi3518eV200 下载完程序后跑不起来

 
本帖最后由 ezreal_cs 于 2018-6-20 15:32 编辑

烧录了SDK里面编译好的uboot + 内核 + 文件系统后,串口打印如下
Registering the dns_resolver key type
yaffs: dev is 32505858 name is "mtdblock2" rw
yaffs: passed flags ""
List of all partitions:
f000            1024 romblock0  (driver?)
1f00            1024 mtdblock0  (driver?)
f001            3072 romblock1  (driver?)
1f01            3072 mtdblock1  (driver?)
f002           12288 romblock2  (driver?)
1f02           12288 mtdblock2  (driver?)
No filesystem could mount root, tried:  yaffs2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)

然后就没了,这个是哪个地方需要修改吗?

我来回答
回答18个
时间排序
认可量排序

Techlife

7个粉丝

9

问答

14

专栏

4

资料

Techlife 2016-04-28 10:35:02
认可0
你前端接的是什么设备

chh123

1个粉丝

20

问答

0

专栏

1

资料

chh123 2016-04-28 10:40:12
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=29320&ptid=11168]roczhou 发表于 2016-4-28 10:35[/url]
你前端接的是什么设备[/quote]

前端没有接什么设备

Techlife

7个粉丝

9

问答

14

专栏

4

资料

Techlife 2016-04-28 10:42:30
认可0
启动环境变量配置了吗?

Techlife

7个粉丝

9

问答

14

专栏

4

资料

Techlife 2016-04-28 10:44:05
认可0
在UBOOT里设置setenv bootargs    setenv bootcmd ,这个设置对了吗?

chh123

1个粉丝

20

问答

0

专栏

1

资料

chh123 2016-04-28 10:45:00
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=29323&ptid=11168]roczhou 发表于 2016-4-28 10:42[/url]
启动环境变量配置了吗?[/quote]

配置了,下面是串口打印的所有内容
System startup


U-Boot 2010.06 (Sep 19 2015 - 16:22:49)

Check Flash Memory Controller v100 ... Found
SPI Nor(cs 0) ID: 0xef 0x40 0x18
Block:64KB Chip:16MB Name:"W25Q128(B/F)V"
SPI Nor total size: 16MB
MMC:
EMMC/MMC/SD controller initialization.
Card did not respond to voltage select!
No EMMC/MMC/SD device found !
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
16384 KiB hi_fmc at 0:0 is now current device

## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-3.4.35
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2668280 Bytes = 2.5 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0
Linux version 3.4.35 (pub@BVT-SDK-SERVER4) (gcc version 4.8.3 20131202 (prerelea                                                                                                                                                              se) (Hisilicon_v300) ) #1 Sat Sep 19 16:23:42 HKT 2015
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: hi3518ev200
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: mem=64M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfsty                                                                                                                                                              pe=yaffs2 mtdparts=hi_sfc:1M(boot),3M(kernel),12M(rootfs)
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: 59568k/59568k available, 5968k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xc4800000 - 0xff000000   ( 936 MB)
    lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc04af000   (4764 kB)
      .init : 0xc04af000 - 0xc04d0234   ( 133 kB)
      .data : 0xc04d2000 - 0xc04fdd20   ( 176 kB)
       .bss : 0xc04fdd44 - 0xc053bdf8   ( 249 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:32
VIC @fe0d0000: id 0x00641190, vendor 0x41
sched_clock: 32 bits at 49MHz, resolution 20ns, wraps every 86767ms
Console: colour dummy device 80x30
Calibrating delay loop... 269.10 BogoMIPS (lpj=1345536)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys freezer
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x8039b9d0 - 0x8039ba28
dummy:
NET: Registered protocol family 16
Serial: AMBA PL011 UART driver
uart:0: ttyAMA0 at MMIO 0x20080000 (irq = 5) is a PL011 rev2
console [ttyAMA0] enabled
uart:1: ttyAMA1 at MMIO 0x20090000 (irq = 30) is a PL011 rev2
uart:2: ttyAMA2 at MMIO 0x200a0000 (irq = 25) is a PL011 rev2
bio: create slab at 0
SCSI subsystem initialized
hi-spi-master hi-spi-master.0: with 1 chip select slaves attached
hi-spi-master hi-spi-master.1: with 2 chip select slaves attached
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource timer0
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: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (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.
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
NFS: Registering the id_resolver key type
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.18)
msgmni has been set to 116
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
SPI Nor(cs 0) ID: 0xef 0x40 0x18
SPI(cs0):
Block:64KB
Chip:16MB
Name:"W25Q128(B/F)V"
3 cmdlinepart partitions found on MTD device hi_sfc
3 cmdlinepart partitions found on MTD device hi_sfc
Creating 3 MTD partitions on "hi_sfc":
0x000000000000-0x000000100000 : "boot"
0x000000100000-0x000000400000 : "kernel"
0x000000400000-0x000001000000 : "rootfs"
Boot start media isn't SPI Nand flash.
himii: probed
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 15, 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: 1 port detected
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 16, io mem 0x100a0000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
hisi_i2c hisi_i2c.0: Hisilicon [i2c-0] probed!
hisi_i2c hisi_i2c.1: Hisilicon [i2c-1] probed!
hisi_i2c hisi_i2c.2: Hisilicon [i2c-2] probed!
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
yaffs: dev is 32505858 name is "mtdblock2" rw
yaffs: passed flags ""
List of all partitions:
f000            1024 romblock0  (driver?)
1f00            1024 mtdblock0  (driver?)
f001            3072 romblock1  (driver?)
1f01            3072 mtdblock1  (driver?)
f002           12288 romblock2  (driver?)
1f02           12288 mtdblock2  (driver?)
No filesystem could mount root, tried:  yaffs2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)

Techlife

7个粉丝

9

问答

14

专栏

4

资料

Techlife 2016-04-28 10:47:49
认可0
你把你烧录的文件名截图出来,你配置的环境命令复制出来

Techlife

7个粉丝

9

问答

14

专栏

4

资料

Techlife 2016-04-28 10:49:09
认可0
你用的是SPIflash,配置环境变量用的是nandflash的配置。

Techlife

7个粉丝

9

问答

14

专栏

4

资料

Techlife 2016-04-28 10:51:51
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=29326&ptid=11168]chh123 发表于 2016-4-28 10:45[/url]
配置了,下面是串口打印的所有内容
System startup

[/quote]

如何你解决了问题  请告知一声,并将这个问题标记为已经解决

chh123

1个粉丝

20

问答

0

专栏

1

资料

chh123 2016-04-28 10:51:51
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=29329&ptid=11168]roczhou 发表于 2016-4-28 10:47[/url]
你把你烧录的文件名截图出来,你配置的环境命令复制出来[/quote]

u-boot-hi3518ev200.bin ,uImage_hi3518ev200,rootfs_hi3518ev200_2k_4bit.yaffs2

Techlife

7个粉丝

9

问答

14

专栏

4

资料

Techlife 2016-04-28 10:52:35
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=29333&ptid=11168]chh123 发表于 2016-4-28 10:51[/url]
u-boot-hi3518ev200.bin ,uImage_hi3518ev200,rootfs_hi3518ev200_2k_4bit.yaffs2[/quote]

你用的是spiflsh  还是  nandflash?

chh123

1个粉丝

20

问答

0

专栏

1

资料

chh123 2016-04-28 10:59:24
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=29334&ptid=11168]roczhou 发表于 2016-4-28 10:52[/url]
你用的是spiflsh  还是  nandflash?[/quote]

spiflash  配置环境变量是在什么地方配置?

Techlife

7个粉丝

9

问答

14

专栏

4

资料

Techlife 2016-04-28 11:18:18
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=29337&ptid=11168]chh123 发表于 2016-4-28 10:59[/url]
spiflash  配置环境变量是在什么地方配置?[/quote]

你跟着“Hi3518EV20X/Hi3516CV200 SDK 安装以及升级使用说明”一步步走,看好每个描述。我感觉是你烧写的文件和配置的问题。

chh123

1个粉丝

20

问答

0

专栏

1

资料

chh123 2016-04-28 11:23:55
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=29340&ptid=11168]roczhou 发表于 2016-4-28 11:18[/url]
你跟着“Hi3518EV20X/Hi3516CV200 SDK 安装以及升级使用说明”一步步走,看好每个描述。我感觉是你烧写 ...[/quote]

3、烧写映像文件到SPI Flash
    以16M SPI Flash为例。
    1)地址空间说明
        |      1M       |      3M       |      12M      |
        |---------------|---------------|---------------|
        |     boot      |     kernel    |     rootfs    |

        以下的操作均基于图示的地址空间分配,您也可以根据实际情况进行调整。
    2)烧写u-boot
        sf probe 0
        mw.b 82000000 ff 100000
        tftp 0x82000000 u-boot-hi3518ev200.bin
        sf probe 0
        sf erase 0 100000
        sf write 82000000 0 100000       
        reset
    3)烧写内核
        mw.b 82000000 ff 300000
        tftp 82000000 uImage_hi3518ev200
        sf probe 0
        sf erase 100000 300000
        sf write 82000000 100000 300000
    4)烧写文件系统
        mw.b 82000000 ff C00000
        tftp 0x82000000 rootfs_hi3518ev200_64k.jffs2
        sf probe 0
        sf erase 400000 C00000
        sf write 82000000 400000 C00000
    5)设置启动参数
        setenv bootargs 'mem=64M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=jffs2 mtdparts=hi_sfc:1M(boot),3M(kernel),12M(rootfs)'
        setenv bootcmd 'sf probe 0;sf read 0x82000000 0x100000 0x300000;bootm 0x82000000'
        sa

我是按照这个烧写的,其中换过文件系统的镜像文件试了,都是跑到相同的地方就不跑了

chh123

1个粉丝

20

问答

0

专栏

1

资料

chh123 2016-04-28 14:43:29
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=29340&ptid=11168]roczhou 发表于 2016-4-28 11:18[/url]
你跟着“Hi3518EV20X/Hi3516CV200 SDK 安装以及升级使用说明”一步步走,看好每个描述。我感觉是你烧写 ...[/quote]

问题已解决,谢谢

ebnehj

0个粉丝

13

问答

0

专栏

0

资料

ebnehj 2017-07-29 16:54:25
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=29352&ptid=11168]chh123 发表于 2016-4-28 14:43[/url]
问题已解决,谢谢[/quote]

如何解决的,方法说出来呀!

micro虾米

0个粉丝

5

问答

0

专栏

0

资料

micro虾米 2017-07-31 09:57:29
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=29341&ptid=11168]chh123 发表于 2016-4-28 11:23[/url]
3、烧写映像文件到SPI Flash
    以16M SPI Flash为例。
    1)地址空间说明
[/quote]

你好,请问mw.b 82000000 ff 100000中的82000000是做什么用的?

linronghua1

1个粉丝

8

问答

0

专栏

1

资料

linronghua1 2017-12-19 17:45:44
认可0
怎么解决得 我也有这个问题 ?发出来看看?

雨夜

0个粉丝

9

问答

0

专栏

0

资料

雨夜 2018-06-05 13:41:40
认可0
怎么解决的?怎么不说一下的呢
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

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

Markdown 语法

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

举报类型

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

详细说明

易百纳技术社区