2272943826

2272943826

0个粉丝

24

问答

0

专栏

8

资料

2272943826  发布于  2016-06-29 16:48:50
采纳率 0%
24个问答
5206

[已解决]putty setenv config

 
本帖最后由 2272943826 于 2016-11-25 10:28 编辑

测试成功
setenv bootargs 'mem=64M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=jffs2 mtdparts=hi_sfc:1M(boot),6M(kernel),7M(rootfs)'
setenv bootcmd 'sf probe 0;sf read 0x82000000 0x100000 0x700000;bootm 0x82000000'
sa




hisilicon # printenv
bootdelay=1
baudrate=115200
ethaddr=00:00:23:34:45:66
ipaddr=192.168.1.10
serverip=192.168.1.2
netmask=255.255.255.0
bootfile="uImage"
sf=read 0x81000000 0x100000 0x800000
bootm=0x81000000

bootargs=mem=64M console=ttyAMA0,115200 root=/dev/mtdblock3 rootfstype=jffs2 mtdparts=hi_sfc:1024K(boot),7168K(kernel),1024K(Config),7168K(rootfs)
bootcmd=sf probe 0;sf read 0x81000000 0x100000 0x800000;sf read 0x82FF0000 0x1FF0000 0x10000;decjpg;setvobg 0 0x0;startvo 0 36 14;startgx 0 0x84fe0000 2048 0 0 1024 768;bootm 0x81000000
stdin=serial
stdout=serial
stderr=serial
verify=n
ver=U-Boot 2010.06 (Oct 22 2015 - 14:46:56)

Environment size: 616/262140 bytes
我来回答
回答14个
时间排序
认可量排序

ngswfx

1个粉丝

55

问答

1

专栏

40

资料

ngswfx 2016-06-30 12:25:27
认可0
本帖最后由 ngswfx 于 2016-6-30 12:58 编辑

错了,应该读取7M,你那个工具当时写的7M,我弄错了

sf=read 0x81000000 0x100000 0x700000

不过这个错误,不会导致rootfs方面异常。应该完全不影响才对。仅仅多读取了1M到内存,和rootfs不沾边。

2272943826

0个粉丝

24

问答

0

专栏

8

资料

2272943826 2016-06-30 13:31:43
认可0
本帖最后由 2272943826 于 2016-11-25 10:19 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=32876&ptid=11792]ngswfx 发表于 2016-6-30 12:25[/url]
错了,应该读取7M,你那个工具当时写的7M,我弄错了

sf=read 0x81000000 0x100000 0x700000
[/quote]


jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a0014: 0x776d instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a0018: 0xd9b1 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a001c: 0x88b3 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a0020: 0x41ea instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a0024: 0x8df2 instead
jffs2: Further such events for this erase block will not be printed
VFS: Mounted root (jffs2 filesystem) on device 31:3.
Freeing init memory: 136K
mount: can't read '/etc/fstab': Invalid argument

            _ _ _ _ _ _ _ _ _ _ _ _
            \  _  _   _  _ _ ___
            / /__/ \ |_/
           / __   /  -  _ ___
          / /  / /  / /
  _ _ _ _/ /  /  \_/  \_ ______
___________\___\__________________

can't open /dev/tty4: No such file or directory
can't open /dev/tty3: No such file or directory
can't open /dev/tty2: No such file or directory

can't open /dev/tty4: No such file or directory
can't open /dev/tty3: No such file or directory
can't open /dev/tty2: No such file or directory
can't open /dev/tty4: No such file or directory
can't open /dev/tty3: No such file or directory
can't open /dev/tty4: No such file or directory

2272943826

0个粉丝

24

问答

0

专栏

8

资料

2272943826 2016-06-30 13:33:49
认可0
本帖最后由 2272943826 于 2016-11-25 10:17 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=32876&ptid=11792]ngswfx 发表于 2016-6-30 12:25[/url]
错了,应该读取7M,你那个工具当时写的7M,我弄错了

sf=read 0x81000000 0x100000 0x700000
[/quote]

jffs2: Further such events for this erase block will not be printed
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003d0000: 0x91bf instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003d0004: 0x7166 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003d0008: 0x38a3 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003d000c: 0x5af3 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003d0010: 0xac78 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003d0014: 0x4e12 instead

jffs2: Further such events for this erase block will not be printed
jffs2: Node at 0x0040febc with length 0x00000447 would run over the end of the erase block
jffs2: Perhaps the file system was created with the wrong erase size?
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0040fec0: 0x0447 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0040fec4: 0xfc2f instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0040fec8: 0x00c2 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0040fecc: 0x0457 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0040fed0: 0x81ed instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0040fed4: 0x03e8 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0040fed8: 0x9251 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0040fedc: 0x08c9 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0040fee0: 0x08c9 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0040fee4: 0x08c9 instead
jffs2: Further such events for this erase block will not be printed
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00410000: 0x72ed instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00410004: 0x90c7 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00420014: 0x58d7 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00420018: 0x2f19 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0042001c: 0x0fd8 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00420020: 0x70f2 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00420024: 0x90df instead
jffs2: Further such events for this erase block will not be printed
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0044f998: 0x81ed instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0044f99c: 0x03e8 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0044f9a0: 0xac0f instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0044f9a4: 0x08cd instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0044f9a8: 0x08cd instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0044f9ac: 0x08cd instead
jffs2: Further such events for this erase block will not be printed
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00450000: 0x323b instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00450004: 0x6e8d instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00450008: 0x48f7 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0045000c: 0xcc2a instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00450010: 0x9df1 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00450014: 0xfa27 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00450018: 0xf673 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0045001c: 0x38b6 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00450020: 0xff35 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00450024: 0x8087 instead
jffs2: Further such events for this erase block will not be printed
jffs2: Node at 0x0045fcc4 with length 0x00000aa2 would run over the end of the erase block
jffs2: Perhaps the file system was created with the wrong erase size?
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00460000: 0x2c46 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00460004: 0xc872 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00460008: 0x507e instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0046000c: 0xb389 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00460010: 0x9679 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00460014: 0x3074 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00460018: 0xfcc8 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0046001c: 0x4827 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00460020: 0xdd35 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00460024: 0x9212 instead
jffs2: Further such events for this erase block will not be printed
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00490018: 0x0496 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0049001c: 0xd854 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00490020: 0x532f instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00490024: 0x1657 instead
jffs2: Further such events for this erase block will not be printed
jffs2: Node at 0x0049f588 with length 0x00000aed would run over the end of the erase block
jffs2: Perhaps the file system was created with the wrong erase size?
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a0000: 0xe138 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a0004: 0xfdab instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a0008: 0x226b instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a000c: 0x0b1e instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a0010: 0x2291 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a0014: 0x776d instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a0018: 0xd9b1 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a001c: 0x88b3 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a0020: 0x41ea instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a0024: 0x8df2 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a0014: 0x776d instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a0018: 0xd9b1 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a001c: 0x88b3 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a0020: 0x41ea instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a0024: 0x8df2 instead
jffs2: Further such events for this erase block will not be printed
VFS: Mounted root (jffs2 filesystem) on device 31:3.
Freeing init memory: 136K
mount: can't read '/etc/fstab': Invalid argument

            _ _ _ _ _ _ _ _ _ _ _ _
            \  _  _   _  _ _ ___
            / /__/ \ |_/
           / __   /  -  _ ___
          / /  / /  / /
  _ _ _ _/ /  /  \_/  \_ ______
___________\___\__________________

can't open /dev/tty4: No such file or directory
can't open /dev/tty3: No such file or directory
can't open /dev/tty2: No such file or directory
can't open /dev/tty4: No such file or directory
can't open /dev/tty3: No such file or directory
can't open /dev/tty2: No such file or directory
can't open /dev/tty4: No such file or directory

2272943826

0个粉丝

24

问答

0

专栏

8

资料

2272943826 2016-06-30 13:38:01
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=32876&ptid=11792]ngswfx 发表于 2016-6-30 12:25[/url]
错了,应该读取7M,你那个工具当时写的7M,我弄错了

sf=read 0x81000000 0x100000 0x700000
[/quote]

Type Putty command: printenv
Any set environment wrong?

hisilicon # printenv
bootdelay=1
baudrate=115200
ethaddr=00:00:23:34:45:66
serverip=192.168.1.2
netmask=255.255.255.0
bootfile="uImage"
sf=read 0x81000000 0x100000 0x800000
bootm=0x81000000
bootcmd=sf probe 0;sf read 0x81000000 0x100000 0x800000;sf read 0x82FF0000 0x1FF0000 0x10000;decjpg;setvobg 0 0x0;startvo 0 36 14;startgx 0 0x84fe0000 2048 0 0 1024 768;bootm 0x81000000
ipaddr=192.168.1.40
root=/dev/mtdblock2
bootargs=mem=64M console=ttyAMA0,115200 root=/dev/mtdblock3 rootfstype=jffs2 mtdparts=hi_sfc:1024K(boot),7168K(kernel),1024K(Config),7168K(rootfs)
stdin=serial
stdout=serial
stderr=serial
verify=n
ver=U-Boot 2010.06 (Oct 22 2015 - 14:46:56)

Environment size: 636/262140 bytes

ngswfx

1个粉丝

55

问答

1

专栏

40

资料

ngswfx 2016-06-30 13:56:53
认可0
本帖最后由 ngswfx 于 2016-6-30 13:58 编辑

能看到
   _ _ _ _ _ _ _ _ _ _ _ _
            \  _  _   _  _ _ ___
            / /__/ \ |_/
           / __   /  -  _ ___
          / /  / /  / /
  _ _ _ _/ /  /  \_/  \_ ______
___________\___\__________________

说明rootfs已经正常了,现在的这些报错,可能jffs2的格式哪里没对。

检查:SDK里面的jffs2做出来的是不是64K分片的rootfs。你的SPI flash应该是64K分片的。

在仔细看烧写过程中,烧写工具实际写入的数据是不是7M,这个要是错了,就会报一堆jffs2错。

/////////////////////////实在不行就自己架设tftp服务器,自己用命令写。想写到哪里写到哪里。

另外,你还需要明确一点:在uboot环境下,sa后,地址不能突破0x100000,这个估计没问题,否则kernel就不正常了。

2272943826

0个粉丝

24

问答

0

专栏

8

资料

2272943826 2016-06-30 14:05:51
认可0
本帖最后由 2272943826 于 2016-7-21 14:53 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=32883&ptid=11792]ngswfx 发表于 2016-6-30 13:56[/url]
能看到
   _ _ _ _ _ _ _ _ _ _ _ _
            \  _  _   _  _ _ ___
[/quote]

1 下面符合啥意思                                    // 启动头
_ _ _ _ _ _ _ _ _ _ _ _
            \  _  _   _  _ _ ___
            / /__/ \ |_/
           / __   /  -  _ ___
          / /  / /  / /   
  _ _ _ _/ /  /  \_/  \_ ______
___________\___\__________________               
2  rootfs_hi3516a_256k.jffs2     SDK的名字     换成 rootfs_hi3516a_64k.jffs2

ngswfx

1个粉丝

55

问答

1

专栏

40

资料

ngswfx 2016-06-30 14:11:10
认可0
本帖最后由 ngswfx 于 2016-6-30 14:20 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=32885&ptid=11792]2272943826 发表于 2016-6-30 14:05[/url]
1 下面符合啥意思
_ _ _ _ _ _ _ _ _ _ _ _
            \  _  _   _  _ _ ___
[/quote]

1、没啥意思,系统启动后,显示了个logo而已。
2、就是这里错了,这个是256k分片的,你的SPI是64K的。

3和4就不解释了,不是问题关键,你需要看大量的文档,否则我给你说再久,你也不会明白了的。这些东西,海斯的文档上都有,你没仔细看。

ngswfx

1个粉丝

55

问答

1

专栏

40

资料

ngswfx 2016-06-30 14:18:19
认可0
本帖最后由 ngswfx 于 2016-6-30 14:19 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=32887&ptid=11792]ngswfx 发表于 2016-6-30 14:11[/url]
1、没啥意思,系统启动后,显示了个logo而已。
2、就是这里错了,这个是256k分片的,你的SPI是64K的。 ...[/quote]

你可千万要记住:启动过程中,控制台出现的所有字符,都不是随便出的,都非常重要,你一定要看,而且仔细看,要通过这些信息,看出来cpu到底在干啥,走到哪一步,调用加载了哪个模块。

/////////这里面信息量非常庞大,这个64K问题,启动信息里面就有这个内容。你一定要仔细观察控制台每一句话,这对你后面,自己修改uboot,kernel帮助会非常大。

2272943826

0个粉丝

24

问答

0

专栏

8

资料

2272943826 2016-06-30 14:25:30
认可0
本帖最后由 2272943826 于 2016-7-21 14:52 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=32887&ptid=11792]ngswfx 发表于 2016-6-30 14:11[/url]
1、没啥意思,系统启动后,显示了个logo而已。                                                      
2、就是这里错了,这个是256k分片的,你的SPI是64K的。 ...[/quote]                     

谢谢理解, 系统启动头。

ngswfx

1个粉丝

55

问答

1

专栏

40

资料

ngswfx 2016-06-30 14:28:27
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=32892&ptid=11792]2272943826 发表于 2016-6-30 14:25[/url]
1 谢谢理解, 系统启动头。
2 对对对,烧写的是 256K分片的, 我该怎么办?[/quote]

SDK里面有个64K的,烧那个。

2272943826

0个粉丝

24

问答

0

专栏

8

资料

2272943826 2016-06-30 14:47:15
认可0
本帖最后由 2272943826 于 2016-7-21 14:53 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=32894&ptid=11792]ngswfx 发表于 2016-6-30 14:28[/url]
SDK里面有个64K的,烧那个。[/quote]

我在 SDK 文件里面找到 64K的 rootfs jffs2 ,重新烧写

药导

1个粉丝

23

问答

0

专栏

11

资料

药导 2016-06-30 15:14:44
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=32883&ptid=11792]ngswfx 发表于 2016-6-30 13:56[/url]
能看到
   _ _ _ _ _ _ _ _ _ _ _ _
            \  _  _   _  _ _ ___
[/quote]

报这个错误我之前遇到过,有几种可能,一是做jffs2文件系统的时候块大小和flash的不一致,还有一种就是在写flash之前没把分区全部擦干净,留下了以前的内容

2272943826

0个粉丝

24

问答

0

专栏

8

资料

2272943826 2016-06-30 16:03:59
认可0
本帖最后由 2272943826 于 2016-11-25 10:29 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=32894&ptid=11792]ngswfx 发表于 2016-6-30 14:28[/url]
SDK里面有个64K的,烧那个。[/quote]


setenv bootargs 'mem=64M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=jffs2 mtdparts=hi_sfc:1M(boot),6M(kernel),7M(rootfs)'
setenv bootcmd 'sf probe 0;sf read 0x82000000 0x100000 0x700000;bootm 0x82000000'
sa


Welcome to HiLinux


Thank you ngswfx helping me.:)

2272943826

0个粉丝

24

问答

0

专栏

8

资料

2272943826 2016-07-08 15:23:06
认可0
setenv bootargs 'mem=64M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=jffs2 mtdparts=hi_sfc:1M(boot),6M(kernel),7M(rootfs)'
setenv bootcmd 'sf probe 0;sf read 0x82000000 0x100000 0x700000;bootm 0x82000000'
sa
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

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

Markdown 语法

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

举报类型

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

详细说明

易百纳技术社区