Hi3516A开发--板卡烧写

原文链接:https://blog.csdn.net/qq_29350001/article/details/52534979

Fastboot工具使用说明,里已经给出相应的烧写方式。这几种方式主要是要明确,它们的适用的场景。主要是两类,一类是单板没有boot,一类是单板上有boot。我们先拿的空板一般都是没有boot的,所以也就可以明白需要使用哪种烧写方式了。
其次还要了解烧写的镜像,烧写镜像包括:
U-boot 文件: u-boot-hi3516a.bin
内核文件: uImage_hi3516a
根文件系统: rootfs_hi3516a_256k.jffs2、 rootfs_hi3516a_2k_4bit.yaffs2 等
其中, jiffs2 用于烧写 SPI Flash,“ 256k”表示块大小; yaffs2 用于烧写 Nand Flash,“ 2k”表示器件页大小, 4bit 表示 ECC 校验能力。请根据具体 Flash 器件类型及特性烧写对应的根文件系统。

把SDK “osdrv\tools\pc\uboot_tools”目录下的FastBoot3.1_BVT.exe,将它拷贝到 PC上的某个本地硬盘与上述烧写镜像文件置于同一目录下.

下面来详细介绍

需要注意: FastBoot3.1_BVT.exe和SecureCRT这两个工具不能同时使用,否则会出现:



SPI烧写模式

一、boot烧写
适用场景如下:单板上没有 boot,和按地址烧写配合,可完成单板所有镜像的烧写。

向SPI Flash烧写uboot

首先将相应的拨码开关或跳线帽,设置为SPI Flash烧写模式。
参看:Hi3516A开发--烧写/启动模式


然后打开FastBoot配置参数


扫描二维码关注公众号,回复: 10182493 查看本文章


如果发现烧写出错,请再次检查串口选择是否OK;USB转串口线是否OK;USB转串驱动是否OK?



1)SPI模式启动,命令烧写内核、文件系统

烧写完成uboot后,按照前文说明的SPI启动方式来配置Hi3516a板卡并启动,单板上电后,敲任意键进入u-boot。设置serverip(即tftp服务器的ip)、ipaddr(单板ip)和ethaddr(单板的MAC地址)。

1. 配置Hi3516a IP地址,与主机在同一网段且不与其他设备冲突即可:

setenv serverip xx.xx.xx.xx
setenv ipaddr xx.xx.xx.xx 
setenv ethaddr xx:xx:xx:xx:xx:xx
setenv netmask xx.xx.xx.xx
setenv gatewayip xx.xx.xx.xx
save
配置完成后确保Hi3516a能ping通主机即可。
烧写内核和文件系统需要使用TFTP功能。

2. 烧写内核:

mw.b 82000000 ff 300000
tftp 82000000 uImage_hi3516a
sf probe 0
sf erase 100000 300000
sf write 82000000 100000 300000

3. 烧写文件系统

mw.b 82000000 ff C00000
tftp 0x82000000 rootfs_hi3516a_64k.jffs2
sf probe 0
sf erase 400000 C00000
sf write 82000000 400000 C00000

4. 设置启动参数

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'
save


烧写技巧:中间加分号,写成一行。可自动上传、擦除、写入。

mw.b 82000000 ff 300000;tftp 82000000 uImage_hi3516a;sf probe 0;sf erase 100000 300000;sf write 82000000 100000 300000;

擦除指令:

nand scrub 400000 1000000 表示从 0x400000 开始清理 64M。
如果最后一个参数不传,则表示从此地址开始清理至 nand flash 结束,比如:
nand scrub 400000 表示清理从 0x400000 开始的所有 flash 空间。


2)SPI模式按boot烧写uboot,采用按地址烧写内核和文件系统:

1. 配置Hi3516a IP地址,与主机在同一网段且不与其他设备冲突即可:

setenv serverip xx.xx.xx.xx
setenv ipaddr xx.xx.xx.xx 
setenv ethaddr xx:xx:xx:xx:xx:xx
setenv netmask xx.xx.xx.xx
setenv gatewayip xx.xx.xx.xx
save
配置完成后确保Hi3516a能ping通主机即可。

2. 设置启动参数

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'
save

3、然后打开FastBoot配置参数

按地址按地址烧写内核和文件系统



二、按分区烧写

适用场景如下:不管单板上有没有 boot 都适用,可实现一键烧写所有镜像。

打开FastBoot配置参数


1. 配置Hi3516a IP地址,与主机在同一网段且不与其他设备冲突即可:

setenv serverip xx.xx.xx.xx
setenv ipaddr xx.xx.xx.xx 
setenv ethaddr xx:xx:xx:xx:xx:xx
setenv netmask xx.xx.xx.xx
setenv gatewayip xx.xx.xx.xx
save
配置完成后确保Hi3516a能ping通主机即可。

2. 设置启动参数

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'
save


rootfs的File system 只有两个选项,yaffs和None,再根据jiffs2 用于烧写 SPI Flashyaffs2 用于烧写 Nand Flash,我选择的是None。需要注意的是选择烧写SPI Flash块大小为64K的rootfs_hi3516a_64k.jffs2文件系统

否则启动可能会出现下面错误:

jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004a0000: 0xe138 instead

如果不确定SPI flash块大小,用命令烧写文件系统镜像:

烧写文件系统
mw.b 82000000 ff C00000
tftp 0x82000000 rootfs_hi3516a_64k.jffs2
sf probe 0
sf erase 400000 C00000
sf write 82000000 400000 C00000


  
  
  1. SPI Flash启动信息
  2. U-Boot 2010.06 (Oct 22 2015 - 14: 46: 56)
  3. Check spi flash controller v350... Found
  4. Spi(cs1) ID: 0xC2 0x20 0x19 0xC2 0x20 0x19
  5. Spi(cs1): Block:64KB Chip:32MB Name:"MX25L(256/257)35(E/F)"
  6. Check Nand Flash Controller v610 ... found
  7. Special NAND id table Version 1.36
  8. Nand ID: 0x2C 0x64 0x44 0x4B 0xA9 0x00 0x00 0x00
  9. Block:2MB Page:8KB Chip:8GB*1 OOB:600B ECC:40bit/1K
  10. Nand total size: 8192MB
  11. In: serial
  12. Out: serial
  13. Err: serial
  14. Hit any key to stop autoboot: 0
  15. 32768 KiB hi_sfc at 0:0 is now current device
  16. ## Booting kernel from Legacy Image at 82000000 ...
  17. Image Name: Linux-3.4.35
  18. Image Type: ARM Linux Kernel Image (uncompressed)
  19. Data Size: 2985592 Bytes = 2.8 MiB
  20. Load Address: 80008000
  21. Entry Point: 80008000
  22. Loading Kernel Image ... OK
  23. OK
  24. Starting kernel ...
  25. Uncompressing Linux... done, booting the kernel.
  26. Booting Linux on physical CPU 0
  27. Linux version 3.4 .35 (pub@BVT-SDK-SERVER4) (gcc version 4.8 .3 20131202 (prerelease) (Hisilicon_v300) ) # 1 Thu Oct 22 14: 47: 55 HKT 2015
  28. CPU: ARMv7 Processor [ 410fc075] revision 5 (ARMv7), cr= 10c53c7d
  29. CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
  30. Machine: hi3516a
  31. Memory policy: ECC disabled, Data cache writeback
  32. Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
  33. Kernel command line: mem= 64M console=ttyAMA0, 115200 root=/dev/mtdblock2 rootfstype=jffs2 mtdparts=hi_sfc: 1M(boot), 3M(kernel), 12M(rootfs)
  34. PID hash table entries: 256 (order: -2, 1024 bytes)
  35. Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
  36. Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
  37. Memory: 64MB = 64MB total
  38. Memory: 59052k/ 59052k available, 6484k reserved, 0K highmem
  39. Virtual kernel memory layout:
  40. vector : 0xffff0000 - 0xffff1000 ( 4 kB)
  41. fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
  42. vmalloc : 0xc4800000 - 0xff000000 ( 936 MB)
  43. lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
  44. modules : 0xbf000000 - 0xc0000000 ( 16 MB)
  45. .text : 0xc0008000 - 0xc054a000 ( 5384 kB)
  46. .init : 0xc054a000 - 0xc056c494 ( 138 kB)
  47. .data : 0xc056e000 - 0xc059d8c0 ( 191 kB)
  48. .bss : 0xc059d8e4 - 0xc05bc9f8 ( 125 kB)
  49. SLUB: Genslabs= 11, HWalign= 64, Order= 0 -3, MinObjects= 0, CPUs= 1, Nodes= 1
  50. NR_IRQS: 128
  51. sched_clock: 32 bits at 49MHz, resolution 20ns, wraps every 86767ms
  52. Console: colour dummy device 80x30
  53. Calibrating delay loop... 1196.85 BogoMIPS (lpj= 5984256)
  54. pid_max: default: 32768 minimum: 301
  55. Mount-cache hash table entries: 512
  56. Initializing cgroup subsys freezer
  57. CPU: Testing write buffer coherency: ok
  58. Setting up static identity map for 0x8041e0d8 - 0x8041e130
  59. dummy:
  60. NET: Registered protocol family 16
  61. Serial: AMBA PL011 UART driver
  62. uart: 0: ttyAMA0 at MMIO 0x20080000 (irq = 40) is a PL011 rev2
  63. console [ttyAMA0] enabled
  64. uart: 1: ttyAMA1 at MMIO 0x20090000 (irq = 41) is a PL011 rev2
  65. bio: create slab <bio -0> at 0
  66. SCSI subsystem initialized
  67. hi-spi-master hi-spi-master .0: with 1 chip select slaves attached
  68. hi-spi-master hi-spi-master .1: with 3 chip select slaves attached
  69. usbcore: registered new interface driver usbfs
  70. usbcore: registered new interface driver hub
  71. usbcore: registered new device driver usb
  72. Switching to clocksource timer0
  73. NET: Registered protocol family 2
  74. IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
  75. TCP established hash table entries: 2048 (order: 2, 16384 bytes)
  76. TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
  77. TCP: Hash tables configured (established 2048 bind 2048)
  78. TCP: reno registered
  79. UDP hash table entries: 256 (order: 0, 4096 bytes)
  80. UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
  81. NET: Registered protocol family 1
  82. RPC: Registered named UNIX socket transport module.
  83. RPC: Registered udp transport module.
  84. RPC: Registered tcp transport module.
  85. RPC: Registered tcp NFSv4 .1 backchannel transport module.
  86. VFS: Disk quotas dquot_6 .5 .2
  87. Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
  88. squashfs: version 4.0 ( 2009/ 01/ 31) Phillip Lougher
  89. NFS: Registering the id_resolver key type
  90. jffs2: version 2.2. (NAND) © 2001 -2006 Red Hat, Inc.
  91. fuse init (API version 7.18)
  92. SGI XFS with security attributes, large block/inode numbers, no debug enabled
  93. msgmni has been set to 115
  94. Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
  95. io scheduler noop registered
  96. io scheduler deadline registered ( default)
  97. io scheduler cfq registered
  98. brd: module loaded
  99. Spi id table Version 1.22
  100. Spi(cs1) ID: 0xC2 0x20 0x19 0xC2 0x20 0x19
  101. SPI nor flash boot mode is 3 Bytes
  102. Spi(cs1):
  103. Block: 64KB
  104. Chip: 32MB
  105. Name: "MX25L 256/257 35 E/F"
  106. spi size: 32MB
  107. chip num: 1
  108. 3 cmdlinepart partitions found on MTD device hi_sfc
  109. 3 cmdlinepart partitions found on MTD device hi_sfc
  110. Creating 3 MTD partitions on "hi_sfc":
  111. 0x000000000000 -0x000000100000 : "boot"
  112. 0x000000100000 -0x000000400000 : "kernel"
  113. 0x000000400000 -0x000001000000 : "rootfs"
  114. Found Nand Flash Controller V610.
  115. Nand ID: 0x2C 0x64 0x44 0x4B 0xA9 0x00 0x00 0x00
  116. Nand: Micron MT29F64G08CBABA Randomizer Read-Retry
  117. Nand(HW-Auto): Block: 2MB Page: 8KB OOB: 744B ECC: 40bit/ 1k Chip: 8GB* 1
  118. Higmac dma_sg_phy: 0x83a40000
  119. higmac_mdio_bus: probed
  120. ETH0: rgmii, phy_addr= 1, mii_name=mdio0
  121. ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  122. hiusb-ehci hiusb-ehci .0: HIUSB EHCI
  123. hiusb-ehci hiusb-ehci .0: new USB bus registered, assigned bus number 1
  124. hiusb-ehci hiusb-ehci .0: irq 53, io mem 0x100b0000
  125. hiusb-ehci hiusb-ehci .0: USB 0.0 started, EHCI 1.00
  126. hub 1 -0: 1.0: USB hub found
  127. hub 1 -0: 1.0: 1 port detected
  128. ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
  129. hiusb-ohci hiusb-ohci .0: HIUSB OHCI
  130. hiusb-ohci hiusb-ohci .0: new USB bus registered, assigned bus number 2
  131. hiusb-ohci hiusb-ohci .0: irq 54, io mem 0x100a0000
  132. hub 2 -0: 1.0: USB hub found
  133. hub 2 -0: 1.0: 1 port detected
  134. Initializing USB Mass Storage driver...
  135. usbcore: registered new interface driver usb-storage
  136. USB Mass Storage support registered.
  137. mousedev: PS/ 2 mouse device common for all mice
  138. i2c /dev entries driver
  139. hisi_i2c hisi_i2c .0: Hisilicon [i2c -0] probed!
  140. hisi_i2c hisi_i2c .1: Hisilicon [i2c -1] probed!
  141. hisi_i2c hisi_i2c .2: Hisilicon [i2c -2] probed!
  142. usbcore: registered new interface driver usbhid
  143. usbhid: USB HID core driver
  144. TCP: cubic registered
  145. Initializing XFRM netlink socket
  146. NET: Registered protocol family 17
  147. NET: Registered protocol family 15
  148. lib80211: common routines for IEEE802 .11 drivers
  149. Registering the dns_resolver key type
  150. VFP support v0 .3: implementor 41 architecture 2 part 30 variant 7 rev 5
  151. VFS: Mounted root (jffs2 filesystem) on device 31: 2.
  152. Freeing init memory: 136K
  153. _ _ _ _ _ _ _ _ _ _ _ _
  154. \ _ _ _ _ _ ___
  155. / /__/ \ |_/
  156. / __ / - _ ___
  157. / / / / / /
  158. _ _ _ _/ / / \_/ \_ ______
  159. ___________\___\__________________
  160. [RCS]: /etc/init.d/S00devs
  161. [RCS]: /etc/init.d/S01udev
  162. Not recognise ACTION:change
  163. Not recognise ACTION:change
  164. [RCS]: /etc/init.d/S80network
  165. [RCS]: /etc/init.d/S90hibernate
  166. Auto login as root ...
  167. Jan 1 00: 00: 02 login[ 882]: root login on 'ttyS000'
  168. Welcome to HiLinux.
  169. None of nfsroot found in cmdline.


三、SPI模式,nfs挂载根文件系统

设置启动参数

setenv bootargs 'mem=64M noinitrd init=/linuxrc console=ttyAMA0,115200 root=/dev/nfs rw nfsroot=192.168.2.155:/opt/rootfs_uclibc ip=192.168.2.76:192.168.2.155:192.168.2.1:255.255.255.0:HWHhisi:eth0:off'
sa

reset


  
  
  1. SPI模式,nfs挂载根文件系统
  2. hisilicon # print
  3. bootdelay= 1
  4. baudrate= 115200
  5. ethaddr= 00: 00: 23: 34: 45: 66
  6. netmask= 255.255 .255 .0
  7. bootfile= "uImage"
  8. serverip= 192.168 .2 .76
  9. ipaddr= 192.168 .2 .195
  10. bootcmd=sf probe 0;sf read 0x82000000 0x100000 0x300000;bootm 0x82000000
  11. stdin=serial
  12. stdout=serial
  13. stderr=serial
  14. verify=n
  15. ver=U-Boot 2010.06 (Oct 22 2015 - 14: 46: 56)
  16. bootargs=mem= 64M noinitrd init=/linuxrc console=ttyAMA0, 115200 root=/dev/nfs rw nfsroot= 192.168 .2 .155:/opt/rootfs_uclibc ip= 192.168 .2 .76: 192.168 .2 .155: 192.168 .2 .1: 255.255 .255 .0:HWHhisi:eth0:off
  17. Environment size: 498/ 262140 bytes
  18. hisilicon # re
  19. resetting ...
  20. U-Boot 2010.06 (Oct 22 2015 - 14: 46: 56)
  21. Check spi flash controller v350... Found
  22. Spi(cs1) ID: 0xC2 0x20 0x19 0xC2 0x20 0x19
  23. Spi(cs1): Block: 64KB Chip: 32MB Name: "MX25L(256/257)35(E/F)"
  24. Check Nand Flash Controller v610 ... found
  25. Special NAND id table Version 1.36
  26. Nand ID: 0x2C 0x64 0x44 0x4B 0xA9 0x00 0x00 0x00
  27. Block: 2MB Page: 8KB Chip: 8GB* 1 OOB: 600B ECC: 40bit/ 1K
  28. Nand total size: 8192MB
  29. In: serial
  30. Out: serial
  31. Err: serial
  32. Hit any key to stop autoboot: 0
  33. 32768 KiB hi_sfc at 0: 0 is now current device
  34. ## Booting kernel from Legacy Image at 82000000 ...
  35. Image Name: Linux -3.4 .35
  36. Image Type: ARM Linux Kernel Image (uncompressed)
  37. Data Size: 2985592 Bytes = 2.8 MiB
  38. Load Address: 80008000
  39. Entry Point: 80008000
  40. Loading Kernel Image ... OK
  41. OK
  42. Starting kernel ...
  43. Uncompressing Linux... done, booting the kernel.
  44. Booting Linux on physical CPU 0
  45. Linux version 3.4 .35 (pub@BVT-SDK-SERVER4) (gcc version 4.8 .3 20131202 (prerelease) (Hisilicon_v300) ) # 1 Thu Oct 22 14: 47: 55 HKT 2015
  46. CPU: ARMv7 Processor [ 410fc075] revision 5 (ARMv7), cr= 10c53c7d
  47. CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
  48. Machine: hi3516a
  49. Memory policy: ECC disabled, Data cache writeback
  50. Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
  51. Kernel command line: mem= 64M noinitrd init=/linuxrc console=ttyAMA0, 115200 root=/dev/nfs rw nfsroot= 192.168 .2 .155:/opt/rootfs_uclibc ip= 192.168 .2 .76: 192.168 .2 .155: 192.168 .2 .1: 255.255 .255 .0:HWHhisi:eth0:off
  52. PID hash table entries: 256 (order: -2, 1024 bytes)
  53. Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
  54. Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
  55. Memory: 64MB = 64MB total
  56. Memory: 59052k/ 59052k available, 6484k reserved, 0K highmem
  57. Virtual kernel memory layout:
  58. vector : 0xffff0000 - 0xffff1000 ( 4 kB)
  59. fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
  60. vmalloc : 0xc4800000 - 0xff000000 ( 936 MB)
  61. lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
  62. modules : 0xbf000000 - 0xc0000000 ( 16 MB)
  63. .text : 0xc0008000 - 0xc054a000 ( 5384 kB)
  64. .init : 0xc054a000 - 0xc056c494 ( 138 kB)
  65. .data : 0xc056e000 - 0xc059d8c0 ( 191 kB)
  66. .bss : 0xc059d8e4 - 0xc05bc9f8 ( 125 kB)
  67. SLUB: Genslabs= 11, HWalign= 64, Order= 0 -3, MinObjects= 0, CPUs= 1, Nodes= 1
  68. NR_IRQS: 128
  69. sched_clock: 32 bits at 49MHz, resolution 20ns, wraps every 86767ms
  70. Console: colour dummy device 80x30
  71. Calibrating delay loop... 1196.85 BogoMIPS (lpj= 5984256)
  72. pid_max: default: 32768 minimum: 301
  73. Mount-cache hash table entries: 512
  74. Initializing cgroup subsys freezer
  75. CPU: Testing write buffer coherency: ok
  76. Setting up static identity map for 0x8041e0d8 - 0x8041e130
  77. dummy:
  78. NET: Registered protocol family 16
  79. Serial: AMBA PL011 UART driver
  80. uart: 0: ttyAMA0 at MMIO 0x20080000 (irq = 40) is a PL011 rev2
  81. console [ttyAMA0] enabled
  82. uart: 1: ttyAMA1 at MMIO 0x20090000 (irq = 41) is a PL011 rev2
  83. bio: create slab <bio -0> at 0
  84. SCSI subsystem initialized
  85. hi-spi-master hi-spi-master .0: with 1 chip select slaves attached
  86. hi-spi-master hi-spi-master .1: with 3 chip select slaves attached
  87. usbcore: registered new interface driver usbfs
  88. usbcore: registered new interface driver hub
  89. usbcore: registered new device driver usb
  90. Switching to clocksource timer0
  91. NET: Registered protocol family 2
  92. IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
  93. TCP established hash table entries: 2048 (order: 2, 16384 bytes)
  94. TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
  95. TCP: Hash tables configured (established 2048 bind 2048)
  96. TCP: reno registered
  97. UDP hash table entries: 256 (order: 0, 4096 bytes)
  98. UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
  99. NET: Registered protocol family 1
  100. RPC: Registered named UNIX socket transport module.
  101. RPC: Registered udp transport module.
  102. RPC: Registered tcp transport module.
  103. RPC: Registered tcp NFSv4 .1 backchannel transport module.
  104. VFS: Disk quotas dquot_6 .5 .2
  105. Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
  106. squashfs: version 4.0 ( 2009/ 01/ 31) Phillip Lougher
  107. NFS: Registering the id_resolver key type
  108. jffs2: version 2.2. (NAND) © 2001 -2006 Red Hat, Inc.
  109. fuse init (API version 7.18)
  110. SGI XFS with security attributes, large block/inode numbers, no debug enabled
  111. msgmni has been set to 115
  112. Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
  113. io scheduler noop registered
  114. io scheduler deadline registered ( default)
  115. io scheduler cfq registered
  116. brd: module loaded
  117. Spi id table Version 1.22
  118. Spi(cs1) ID: 0xC2 0x20 0x19 0xC2 0x20 0x19
  119. SPI nor flash boot mode is 3 Bytes
  120. Spi(cs1):
  121. Block: 64KB
  122. Chip: 32MB
  123. Name: "MX25L 256/257 35 E/F"
  124. spi size: 32MB
  125. chip num: 1
  126. Found Nand Flash Controller V610.
  127. Nand ID: 0x2C 0x64 0x44 0x4B 0xA9 0x00 0x00 0x00
  128. Nand: Micron MT29F64G08CBABA Randomizer Read-Retry
  129. Nand(HW-Auto): Block: 2MB Page: 8KB OOB: 744B ECC: 40bit/ 1k Chip: 8GB* 1
  130. Higmac dma_sg_phy: 0x83a00000
  131. higmac_mdio_bus: probed
  132. ETH0: rgmii, phy_addr= 1, mii_name=mdio0
  133. ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  134. hiusb-ehci hiusb-ehci .0: HIUSB EHCI
  135. hiusb-ehci hiusb-ehci .0: new USB bus registered, assigned bus number 1
  136. hiusb-ehci hiusb-ehci .0: irq 53, io mem 0x100b0000
  137. hiusb-ehci hiusb-ehci .0: USB 0.0 started, EHCI 1.00
  138. hub 1 -0: 1.0: USB hub found
  139. hub 1 -0: 1.0: 1 port detected
  140. ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
  141. hiusb-ohci hiusb-ohci .0: HIUSB OHCI
  142. hiusb-ohci hiusb-ohci .0: new USB bus registered, assigned bus number 2
  143. hiusb-ohci hiusb-ohci .0: irq 54, io mem 0x100a0000
  144. hub 2 -0: 1.0: USB hub found
  145. hub 2 -0: 1.0: 1 port detected
  146. Initializing USB Mass Storage driver...
  147. usbcore: registered new interface driver usb-storage
  148. USB Mass Storage support registered.
  149. mousedev: PS/ 2 mouse device common for all mice
  150. i2c /dev entries driver
  151. hisi_i2c hisi_i2c .0: Hisilicon [i2c -0] probed!
  152. hisi_i2c hisi_i2c .1: Hisilicon [i2c -1] probed!
  153. hisi_i2c hisi_i2c .2: Hisilicon [i2c -2] probed!
  154. usbcore: registered new interface driver usbhid
  155. usbhid: USB HID core driver
  156. TCP: cubic registered
  157. Initializing XFRM netlink socket
  158. NET: Registered protocol family 17
  159. NET: Registered protocol family 15
  160. lib80211: common routines for IEEE802 .11 drivers
  161. Registering the dns_resolver key type
  162. VFP support v0 .3: implementor 41 architecture 2 part 30 variant 7 rev 5
  163. PHY: mdio0: 01 - Link is Up - 100/Full
  164. IP-Config: Complete:
  165. device=eth0, addr= 192.168 .2 .76, mask= 255.255 .255 .0, gw= 192.168 .2 .1
  166. host=HWHhisi, domain=, nis-domain=(none)
  167. bootserver= 192.168 .2 .155, rootserver= 192.168 .2 .155, rootpath=
  168. VFS: Mounted root (nfs filesystem) on device 0: 9.
  169. Freeing init memory: 136K
  170. _ _ _ _ _ _ _ _ _ _ _ _
  171. \ _ _ _ _ _ ___
  172. / /__/ \ |_/
  173. / __ / - _ ___
  174. / / / / / /
  175. _ _ _ _/ / / \_/ \_ ______
  176. ___________\___\__________________
  177. [RCS]: /etc/init.d/S00devs
  178. [RCS]: /etc/init.d/S01udev
  179. Not recognise ACTION:change
  180. Not recognise ACTION:change
  181. [RCS]: /etc/init.d/S80network
  182. IP: 192.168 .2 .76
  183. BOOTP: 192.168 .2 .155
  184. GATEWAY: 192.168 .2 .1
  185. NETMASK: 255.255 .255 .0
  186. HOSTNAME: HWHhisi
  187. NETDEV: eth0
  188. AUTOCONF: off
  189. route: SIOCADDRT: File exists
  190. [RCS]: /etc/init.d/S90hibernate
  191. Auto login as root ...
  192. Jan 1 00: 00: 05 login[ 856]: root login on 'ttyS000'
  193. Welcome to HiLinux.
  194. Mount: 192.168 .2 .155:/opt/rootfs_uclibc on / type nfs (rw,relatime,vers= 2,rsize= 4096,wsize= 4096,namlen= 255,hard,nolock,proto=udp,timeo= 11,retrans= 3,sec=sys,mountaddr= 192.168 .2 .155,mountvers= 1,mountproto=udp,local_lock=all,addr= 192.168 .2 .155)
  195. chroot: can't execute '/usr/bin/env': No such file or directory
  196. ~ # ls /
  197. bin home mkimg.rootfs proc tmp
  198. boot init mknod_console root usr
  199. dev lib mnt sbin var
  200. etc linuxrc nfsroot share
  201. hello.c lost+found opt sys

Nand烧写模式

一、boot烧写

适用场景如下:不管单板上有没有 boot 都适用,可实现一键烧写所有镜像。

向NAND Flash烧写uboot

首先将相应的拨码开关或跳线帽,设置为NAND Flash烧写模式。
参看:Hi3516A开发--烧写/启动模式

正常流程:

1)打开FastBoot配置参数

2)Nand模式启动,命令烧写内核、文件系统



本设计所使用的nand flash, 页大小为8K字节,块大小为2M字节.而demo使用的则是rootfs_hi3516a_2k_4bit.yaffs2文件系统,两者型号不同。

故按照boot烧写产生下图错误:

就会产生Nand模式下,无法使用按boot烧写向nand flash烧写uboot。



二、按分区烧写

适用场景如下:不管单板上有没有 boot 都适用,可实现一键烧写所有镜像。

向NAND Flash烧写uboot

打开FastBoot配置参数


注意:分区的起始大小和分区大小都是以 KB 或 MB 为单位,而且必须是 flash 块大小的整数倍,否则可能会出错。

本设计的flash块大小为2M字节,则分区其实大小和分区大小必须是2M的整数倍。


如果按照demo自带uboot烧写会出现如下错误:

hisilicon # sa
Saving Environment to NAND...
Erasing Nand...
Warning: Erase size 0x00040000 smaller than one erase block 0x00200000
         Erasing 0x00200000 instead
MT29F64G08CBABA: MTD Erase failure: -22
Writing to Nand... done


解决方法修改镜像:

上述所需的镜像文件:

u-boot-ok.bin: 修改参数设置的uboot镜像文件。

修改u-boot-2010.06/include/configs/hi3516a.h 
将//#define CONFIG_ENV_OFFSET    0x80000 /* environment starts here */
修改为:#define CONFIG_ENV_OFFSET    0x400000/* environment starts here */

将//#define CONFIG_ENV_SIZE    0x40000 /*include ENV_HEADER_SIZE */
修改为:#define CONFIG_ENV_SIZE    0x200000 /*include ENV_HEADER_SIZE */

rootfs_hi3516a_uclib_8k_40bit.yaffs2:8KB pagesize、40bit ecc的yaffs文件系统。

制作镜像: osdrv/pub/bin/pc/mkyaffs2image610 osdrv/pub/rootfs_uclibc osdrv/pub/rootfs_uclibc_8k_40bit.yaffs2 3 5 


1. 配置Hi3516a IP地址,与主机在同一网段且不与其他设备冲突即可:

setenv serverip xx.xx.xx.xx
setenv ipaddr xx.xx.xx.xx 
setenv ethaddr xx:xx:xx:xx:xx:xx
setenv netmask xx.xx.xx.xx
setenv gatewayip xx.xx.xx.xx
save
配置完成后确保Hi3516a能ping通主机即可。

2. 设置启动参数

setenv bootargs 'mem=74M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=yaffs2 mtdparts=hinand:8M(boot),4M(kernel),34M(rootfs),28M(test)'
setenv bootcmd 'nand read 0x82000000 0x800000 0x400000;bootm 0x82000000'
sa

reset

1)Nand模式启动,命令烧写内核、文件系统

1、烧写内核
mw.b 82000000 ff 400000
tftp 82000000 uImage_hi3516a
nand erase 800000 400000
nand write 82000000 800000 400000
2、烧写文件系统
mw.b 82000000 ff 2200000
tftp 82000000 rootfs_hi3516a_uclib_8k_40bit.yaffs2
nand erase c00000 2200000
nand write.yaffs 82000000 c00000  F80D98    #注意:F80D98为rootfs文件实际大小(16进制)  

2)Nand模式,按地址烧写内核和文件系统: 

打开FastBoot配置参数

按地址按地址烧写内核和文件系统


  
  
  1. Nand Flash启动信息
  2. hisilicon # print
  3. bootargs=mem= 74M console=ttyAMA0, 115200 root=/dev/mtdblock2 rootfstype=yaffs2 mtdparts=hinand: 8M(boot), 4M(kernel), 34M(rootfs), 28M(test)
  4. bootcmd=nand read 0x82000000 0x800000 0x400000;bootm 0x82000000
  5. bootdelay= 1
  6. baudrate= 115200
  7. ethaddr= 00: 00: 23: 34: 45: 66
  8. ipaddr= 192.168 .2 .195
  9. serverip= 192.168 .2 .76
  10. netmask= 255.255 .255 .0
  11. bootfile= "uImage"
  12. stdin=serial
  13. stdout=serial
  14. stderr=serial
  15. verify=n
  16. ver=U-Boot 2010.06 (Sep 18 2016 - 16: 39: 27)
  17. Environment size: 431/ 262140 bytes
  18. hisilicon # re
  19. resetting ...
  20. U-Boot 2010.06 (Sep 18 2016 - 16: 39: 27)
  21. Check spi flash controller v350... Found
  22. Spi(cs1) ID: 0xC2 0x20 0x19 0xC2 0x20 0x19
  23. Spi(cs1): Block: 64KB Chip: 32MB Name: "MX25L(256/257)35(E/F)"
  24. Check Nand Flash Controller v610 ... found
  25. Special NAND id table Version 1.36
  26. Nand ID: 0x2C 0x64 0x44 0x4B 0xA9 0x00 0x00 0x00
  27. Block: 2MB Page: 8KB Chip: 8GB* 1 OOB: 600B ECC: 40bit/ 1K
  28. Nand total size: 8192MB
  29. *** Warning - bad CRC or NAND, using default environment
  30. In: serial
  31. Out: serial
  32. Err: serial
  33. Hit any key to stop autoboot: 0
  34. NAND read: device 0 offset 0x800000, size 0x400000
  35. 4194304 bytes read: OK
  36. ## Booting kernel from Legacy Image at 82000000 ...
  37. Image Name: Linux -3.4 .35
  38. Image Type: ARM Linux Kernel Image (uncompressed)
  39. Data Size: 2985592 Bytes = 2.8 MiB
  40. Load Address: 80008000
  41. Entry Point: 80008000
  42. Loading Kernel Image ... OK
  43. OK
  44. Starting kernel ...
  45. Uncompressing Linux... done, booting the kernel.
  46. Booting Linux on physical CPU 0
  47. Linux version 3.4 .35 (pub@BVT-SDK-SERVER4) (gcc version 4.8 .3 20131202 (prerelease) (Hisilicon_v300) ) # 1 Thu Oct 22 14: 47: 55 HKT 2015
  48. CPU: ARMv7 Processor [ 410fc075] revision 5 (ARMv7), cr= 10c53c7d
  49. CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
  50. Machine: hi3516a
  51. Memory policy: ECC disabled, Data cache writeback
  52. Built 1 zonelists in Zone order, mobility grouping on. Total pages: 18796
  53. Kernel command line: mem= 74M console=ttyAMA0, 115200 root=/dev/mtdblock2 rootfstype=yaffs2 mtdparts=hinand: 8M(boot), 4M(kernel), 34M(rootfs), 28M(test)
  54. PID hash table entries: 512 (order: -1, 2048 bytes)
  55. Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
  56. Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
  57. Memory: 74MB = 74MB total
  58. Memory: 69148k/ 69148k available, 6628k reserved, 0K highmem
  59. Virtual kernel memory layout:
  60. vector : 0xffff0000 - 0xffff1000 ( 4 kB)
  61. fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
  62. vmalloc : 0xc5000000 - 0xff000000 ( 928 MB)
  63. lowmem : 0xc0000000 - 0xc4a00000 ( 74 MB)
  64. modules : 0xbf000000 - 0xc0000000 ( 16 MB)
  65. .text : 0xc0008000 - 0xc054a000 ( 5384 kB)
  66. .init : 0xc054a000 - 0xc056c494 ( 138 kB)
  67. .data : 0xc056e000 - 0xc059d8c0 ( 191 kB)
  68. .bss : 0xc059d8e4 - 0xc05bc9f8 ( 125 kB)
  69. SLUB: Genslabs= 11, HWalign= 64, Order= 0 -3, MinObjects= 0, CPUs= 1, Nodes= 1
  70. NR_IRQS: 128
  71. sched_clock: 32 bits at 49MHz, resolution 20ns, wraps every 86767ms
  72. Console: colour dummy device 80x30
  73. Calibrating delay loop... 1196.85 BogoMIPS (lpj= 5984256)
  74. pid_max: default: 32768 minimum: 301
  75. Mount-cache hash table entries: 512
  76. Initializing cgroup subsys freezer
  77. CPU: Testing write buffer coherency: ok
  78. Setting up static identity map for 0x8041e0d8 - 0x8041e130
  79. dummy:
  80. NET: Registered protocol family 16
  81. Serial: AMBA PL011 UART driver
  82. uart: 0: ttyAMA0 at MMIO 0x20080000 (irq = 40) is a PL011 rev2
  83. console [ttyAMA0] enabled
  84. uart: 1: ttyAMA1 at MMIO 0x20090000 (irq = 41) is a PL011 rev2
  85. bio: create slab <bio -0> at 0
  86. SCSI subsystem initialized
  87. hi-spi-master hi-spi-master .0: with 1 chip select slaves attached
  88. hi-spi-master hi-spi-master .1: with 3 chip select slaves attached
  89. usbcore: registered new interface driver usbfs
  90. usbcore: registered new interface driver hub
  91. usbcore: registered new device driver usb
  92. Switching to clocksource timer0
  93. NET: Registered protocol family 2
  94. IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
  95. TCP established hash table entries: 4096 (order: 3, 32768 bytes)
  96. TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
  97. TCP: Hash tables configured (established 4096 bind 4096)
  98. TCP: reno registered
  99. UDP hash table entries: 256 (order: 0, 4096 bytes)
  100. UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
  101. NET: Registered protocol family 1
  102. RPC: Registered named UNIX socket transport module.
  103. RPC: Registered udp transport module.
  104. RPC: Registered tcp transport module.
  105. RPC: Registered tcp NFSv4 .1 backchannel transport module.
  106. VFS: Disk quotas dquot_6 .5 .2
  107. Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
  108. squashfs: version 4.0 ( 2009/ 01/ 31) Phillip Lougher
  109. NFS: Registering the id_resolver key type
  110. jffs2: version 2.2. (NAND) © 2001 -2006 Red Hat, Inc.
  111. fuse init (API version 7.18)
  112. SGI XFS with security attributes, large block/inode numbers, no debug enabled
  113. msgmni has been set to 135
  114. Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
  115. io scheduler noop registered
  116. io scheduler deadline registered ( default)
  117. io scheduler cfq registered
  118. brd: module loaded
  119. Spi id table Version 1.22
  120. Spi(cs1) ID: 0xC2 0x20 0x19 0xC2 0x20 0x19
  121. SPI nor flash boot mode is 3 Bytes
  122. Spi(cs1):
  123. Block: 64KB
  124. Chip: 32MB
  125. Name: "MX25L 256/257 35 E/F"
  126. spi size: 32MB
  127. chip num: 1
  128. Found Nand Flash Controller V610.
  129. Nand ID: 0x2C 0x64 0x44 0x4B 0xA9 0x00 0x00 0x00
  130. Nand: Micron MT29F64G08CBABA Randomizer Read-Retry
  131. Nand(HW-Auto): Block: 2MB Page: 8KB OOB: 744B ECC: 40bit/ 1k Chip: 8GB* 1
  132. 4 cmdlinepart partitions found on MTD device hinand
  133. 4 cmdlinepart partitions found on MTD device hinand
  134. Creating 4 MTD partitions on "hinand":
  135. 0x000000000000 -0x000000800000 : "boot"
  136. 0x000000800000 -0x000000c00000 : "kernel"
  137. 0x000000c00000 -0x000002e00000 : "rootfs"
  138. 0x000002e00000 -0x000004a00000 : "test"
  139. Higmac dma_sg_phy: 0x84640000
  140. higmac_mdio_bus: probed
  141. ETH0: rgmii, phy_addr= 1, mii_name=mdio0
  142. ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  143. hiusb-ehci hiusb-ehci .0: HIUSB EHCI
  144. hiusb-ehci hiusb-ehci .0: new USB bus registered, assigned bus number 1
  145. hiusb-ehci hiusb-ehci .0: irq 53, io mem 0x100b0000
  146. hiusb-ehci hiusb-ehci .0: USB 0.0 started, EHCI 1.00
  147. hub 1 -0: 1.0: USB hub found
  148. hub 1 -0: 1.0: 1 port detected
  149. ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
  150. hiusb-ohci hiusb-ohci .0: HIUSB OHCI
  151. hiusb-ohci hiusb-ohci .0: new USB bus registered, assigned bus number 2
  152. hiusb-ohci hiusb-ohci .0: irq 54, io mem 0x100a0000
  153. hub 2 -0: 1.0: USB hub found
  154. hub 2 -0: 1.0: 1 port detected
  155. Initializing USB Mass Storage driver...
  156. usbcore: registered new interface driver usb-storage
  157. USB Mass Storage support registered.
  158. mousedev: PS/ 2 mouse device common for all mice
  159. i2c /dev entries driver
  160. hisi_i2c hisi_i2c .0: Hisilicon [i2c -0] probed!
  161. hisi_i2c hisi_i2c .1: Hisilicon [i2c -1] probed!
  162. hisi_i2c hisi_i2c .2: Hisilicon [i2c -2] probed!
  163. usbcore: registered new interface driver usbhid
  164. usbhid: USB HID core driver
  165. TCP: cubic registered
  166. Initializing XFRM netlink socket
  167. NET: Registered protocol family 17
  168. NET: Registered protocol family 15
  169. lib80211: common routines for IEEE802 .11 drivers
  170. Registering the dns_resolver key type
  171. VFP support v0 .3: implementor 41 architecture 2 part 30 variant 7 rev 5
  172. yaffs: dev is 32505858 name is "mtdblock2" rw
  173. yaffs: passed flags ""
  174. VFS: Mounted root (yaffs2 filesystem) on device 31: 2.
  175. Freeing init memory: 136K
  176. _ _ _ _ _ _ _ _ _ _ _ _
  177. \ _ _ _ _ _ ___
  178. / /__/ \ |_/
  179. / __ / - _ ___
  180. / / / / / /
  181. _ _ _ _/ / / \_/ \_ ______
  182. ___________\___\__________________
  183. [RCS]: /etc/init.d/S00devs
  184. [RCS]: /etc/init.d/S01udev
  185. Not recognise ACTION:change
  186. Not recognise ACTION:change
  187. [RCS]: /etc/init.d/S80network
  188. Auto login as root ...
  189. Jan 1 00: 00: 05 login[ 882]: root login on 'ttyS000'
  190. Welcome to HiLinux.
  191. None of nfsroot found in cmdline.


三、nand模式,nfs挂载根文件系统

设置启动参数

setenv bootargs 'mem=64M noinitrd init=/linuxrc console=ttyAMA0,115200 root=/dev/nfs rw nfsroot=192.168.2.155:/opt/rootfs_uclibc ip=192.168.2.76:192.168.2.155:192.168.2.1:255.255.255.0:HWHhisi:eth0:off'
sa

reset


  
  
  1. nand nfs文件系统启动信息
  2. hisilicon # print
  3. bootargs=mem= 64M noinitrd init=/linuxrc console=ttyAMA0, 115200 root=/dev/nfs rw nfsroot= 192.168 .2 .155:/opt/rootfs_uclibc ip= 192.168 .2 .76: 192.168 .2 .155: 192.168 .2 .1: 255.255 .255 .0:HWHhisi:eth0:off
  4. bootcmd=nand read 0x82000000 0x800000 0x400000;bootm 0x82000000
  5. bootdelay= 1
  6. baudrate= 115200
  7. ethaddr= 00: 00: 23: 34: 45: 66
  8. ipaddr= 192.168 .2 .195
  9. serverip= 192.168 .2 .76
  10. netmask= 255.255 .255 .0
  11. bootfile= "uImage"
  12. stdin=serial
  13. stdout=serial
  14. stderr=serial
  15. verify=n
  16. ver=U-Boot 2010.06 (Sep 18 2016 - 18: 55: 18)
  17. Environment size: 489/ 262140 bytes
  18. hisilicon # re
  19. resetting ...
  20. U-Boot 2010.06 (Sep 18 2016 - 18: 55: 18)
  21. Check spi flash controller v350... Found
  22. Spi(cs1) ID: 0xC2 0x20 0x19 0xC2 0x20 0x19
  23. Spi(cs1): Block: 64KB Chip: 32MB Name: "MX25L(256/257)35(E/F)"
  24. Check Nand Flash Controller v610 ... found
  25. Special NAND id table Version 1.36
  26. Nand ID: 0x2C 0x64 0x44 0x4B 0xA9 0x00 0x00 0x00
  27. Block: 2MB Page: 8KB Chip: 8GB* 1 OOB: 600B ECC: 40bit/ 1K
  28. Nand total size: 8192MB
  29. *** Warning - bad CRC or NAND, using default environment
  30. In: serial
  31. Out: serial
  32. Err: serial
  33. Hit any key to stop autoboot: 0
  34. NAND read: device 0 offset 0x800000, size 0x400000
  35. 4194304 bytes read: OK
  36. ## Booting kernel from Legacy Image at 82000000 ...
  37. Image Name: Linux -3.4 .35
  38. Image Type: ARM Linux Kernel Image (uncompressed)
  39. Data Size: 2985592 Bytes = 2.8 MiB
  40. Load Address: 80008000
  41. Entry Point: 80008000
  42. Loading Kernel Image ... OK
  43. OK
  44. Starting kernel ...
  45. Uncompressing Linux... done, booting the kernel.
  46. Booting Linux on physical CPU 0
  47. Linux version 3.4 .35 (pub@BVT-SDK-SERVER4) (gcc version 4.8 .3 20131202 (prerelease) (Hisilicon_v300) ) # 1 Thu Oct 22 14: 47: 55 HKT 2015
  48. CPU: ARMv7 Processor [ 410fc075] revision 5 (ARMv7), cr= 10c53c7d
  49. CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
  50. Machine: hi3516a
  51. Memory policy: ECC disabled, Data cache writeback
  52. Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
  53. Kernel command line: mem= 64M noinitrd init=/linuxrc console=ttyAMA0, 115200 root=/dev/nfs rw nfsroot= 192.168 .2 .155:/opt/rootfs_uclibc ip= 192.168 .2 .76: 192.168 .2 .155: 192.168 .2 .1: 255.255 .255 .0:HWHhisi:eth0:off
  54. PID hash table entries: 256 (order: -2, 1024 bytes)
  55. Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
  56. Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
  57. Memory: 64MB = 64MB total
  58. Memory: 59052k/ 59052k available, 6484k reserved, 0K highmem
  59. Virtual kernel memory layout:
  60. vector : 0xffff0000 - 0xffff1000 ( 4 kB)
  61. fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
  62. vmalloc : 0xc4800000 - 0xff000000 ( 936 MB)
  63. lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
  64. modules : 0xbf000000 - 0xc0000000 ( 16 MB)
  65. .text : 0xc0008000 - 0xc054a000 ( 5384 kB)
  66. .init : 0xc054a000 - 0xc056c494 ( 138 kB)
  67. .data : 0xc056e000 - 0xc059d8c0 ( 191 kB)
  68. .bss : 0xc059d8e4 - 0xc05bc9f8 ( 125 kB)
  69. SLUB: Genslabs= 11, HWalign= 64, Order= 0 -3, MinObjects= 0, CPUs= 1, Nodes= 1
  70. NR_IRQS: 128
  71. sched_clock: 32 bits at 49MHz, resolution 20ns, wraps every 86767ms
  72. Console: colour dummy device 80x30
  73. Calibrating delay loop... 1196.85 BogoMIPS (lpj= 5984256)
  74. pid_max: default: 32768 minimum: 301
  75. Mount-cache hash table entries: 512
  76. Initializing cgroup subsys freezer
  77. CPU: Testing write buffer coherency: ok
  78. Setting up static identity map for 0x8041e0d8 - 0x8041e130
  79. dummy:
  80. NET: Registered protocol family 16
  81. Serial: AMBA PL011 UART driver
  82. uart: 0: ttyAMA0 at MMIO 0x20080000 (irq = 40) is a PL011 rev2
  83. console [ttyAMA0] enabled
  84. uart: 1: ttyAMA1 at MMIO 0x20090000 (irq = 41) is a PL011 rev2
  85. bio: create slab <bio -0> at 0
  86. SCSI subsystem initialized
  87. hi-spi-master hi-spi-master .0: with 1 chip select slaves attached
  88. hi-spi-master hi-spi-master .1: with 3 chip select slaves attached
  89. usbcore: registered new interface driver usbfs
  90. usbcore: registered new interface driver hub
  91. usbcore: registered new device driver usb
  92. Switching to clocksource timer0
  93. NET: Registered protocol family 2
  94. IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
  95. TCP established hash table entries: 2048 (order: 2, 16384 bytes)
  96. TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
  97. TCP: Hash tables configured (established 2048 bind 2048)
  98. TCP: reno registered
  99. UDP hash table entries: 256 (order: 0, 4096 bytes)
  100. UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
  101. NET: Registered protocol family 1
  102. RPC: Registered named UNIX socket transport module.
  103. RPC: Registered udp transport module.
  104. RPC: Registered tcp transport module.
  105. RPC: Registered tcp NFSv4 .1 backchannel transport module.
  106. VFS: Disk quotas dquot_6 .5 .2
  107. Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
  108. squashfs: version 4.0 ( 2009/ 01/ 31) Phillip Lougher
  109. NFS: Registering the id_resolver key type
  110. jffs2: version 2.2. (NAND) © 2001 -2006 Red Hat, Inc.
  111. fuse init (API version 7.18)
  112. SGI XFS with security attributes, large block/inode numbers, no debug enabled
  113. msgmni has been set to 115
  114. Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
  115. io scheduler noop registered
  116. io scheduler deadline registered ( default)
  117. io scheduler cfq registered
  118. brd: module loaded
  119. Spi id table Version 1.22
  120. Spi(cs1) ID: 0xC2 0x20 0x19 0xC2 0x20 0x19
  121. SPI nor flash boot mode is 3 Bytes
  122. Spi(cs1):
  123. Block: 64KB
  124. Chip: 32MB
  125. Name: "MX25L 256/257 35 E/F"
  126. spi size: 32MB
  127. chip num: 1
  128. Found Nand Flash Controller V610.
  129. Nand ID: 0x2C 0x64 0x44 0x4B 0xA9 0x00 0x00 0x00
  130. Nand: Micron MT29F64G08CBABA Randomizer Read-Retry
  131. Nand(HW-Auto): Block: 2MB Page: 8KB OOB: 744B ECC: 40bit/ 1k Chip: 8GB* 1
  132. Higmac dma_sg_phy: 0x83a00000
  133. higmac_mdio_bus: probed
  134. ETH0: rgmii, phy_addr= 1, mii_name=mdio0
  135. ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  136. hiusb-ehci hiusb-ehci .0: HIUSB EHCI
  137. hiusb-ehci hiusb-ehci .0: new USB bus registered, assigned bus number 1
  138. hiusb-ehci hiusb-ehci .0: irq 53, io mem 0x100b0000
  139. hiusb-ehci hiusb-ehci .0: USB 0.0 started, EHCI 1.00
  140. hub 1 -0: 1.0: USB hub found
  141. hub 1 -0: 1.0: 1 port detected
  142. ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
  143. hiusb-ohci hiusb-ohci .0: HIUSB OHCI
  144. hiusb-ohci hiusb-ohci .0: new USB bus registered, assigned bus number 2
  145. hiusb-ohci hiusb-ohci .0: irq 54, io mem 0x100a0000
  146. hub 2 -0: 1.0: USB hub found
  147. hub 2 -0: 1.0: 1 port detected
  148. Initializing USB Mass Storage driver...
  149. usbcore: registered new interface driver usb-storage
  150. USB Mass Storage support registered.
  151. mousedev: PS/ 2 mouse device common for all mice
  152. i2c /dev entries driver
  153. hisi_i2c hisi_i2c .0: Hisilicon [i2c -0] probed!
  154. hisi_i2c hisi_i2c .1: Hisilicon [i2c -1] probed!
  155. hisi_i2c hisi_i2c .2: Hisilicon [i2c -2] probed!
  156. usbcore: registered new interface driver usbhid
  157. usbhid: USB HID core driver
  158. TCP: cubic registered
  159. Initializing XFRM netlink socket
  160. NET: Registered protocol family 17
  161. NET: Registered protocol family 15
  162. lib80211: common routines for IEEE802 .11 drivers
  163. Registering the dns_resolver key type
  164. VFP support v0 .3: implementor 41 architecture 2 part 30 variant 7 rev 5
  165. PHY: mdio0: 01 - Link is Up - 100/Full
  166. IP-Config: Complete:
  167. device=eth0, addr= 192.168 .2 .76, mask= 255.255 .255 .0, gw= 192.168 .2 .1
  168. host=HWHhisi, domain=, nis-domain=(none)
  169. bootserver= 192.168 .2 .155, rootserver= 192.168 .2 .155, rootpath=
  170. VFS: Mounted root (nfs filesystem) on device 0: 9.
  171. Freeing init memory: 136K
  172. _ _ _ _ _ _ _ _ _ _ _ _
  173. \ _ _ _ _ _ ___
  174. / /__/ \ |_/
  175. / __ / - _ ___
  176. / / / / / /
  177. _ _ _ _/ / / \_/ \_ ______
  178. ___________\___\__________________
  179. [RCS]: /etc/init.d/S00devs
  180. [RCS]: /etc/init.d/S01udev
  181. Not recognise ACTION:change
  182. Not recognise ACTION:change
  183. [RCS]: /etc/init.d/S80network
  184. IP: 192.168 .2 .76
  185. BOOTP: 192.168 .2 .155
  186. GATEWAY: 192.168 .2 .1
  187. NETMASK: 255.255 .255 .0
  188. HOSTNAME: HWHhisi
  189. NETDEV: eth0
  190. AUTOCONF: off
  191. route: SIOCADDRT: File exists
  192. [RCS]: /etc/init.d/S90hibernate
  193. Auto login as root ...
  194. Jan 1 00: 00: 05 login[ 856]: root login on 'ttyS000'
  195. Welcome to HiLinux.
  196. Mount: 192.168 .2 .155:/opt/rootfs_uclibc on / type nfs (rw,relatime,vers= 2,rsize= 4096,wsize= 4096,namlen= 255,hard,nolock,proto=udp,timeo= 11,retrans= 3,sec=sys,mountaddr= 192.168 .2 .155,mountvers= 1,mountproto=udp,local_lock=all,addr= 192.168 .2 .155)
  197. chroot: can't execute '/usr/bin/env': No such file or directory
  198. ~ # ls /
  199. bin home mkimg.rootfs proc tmp
  200. boot init mknod_console root usr
  201. dev lib mnt sbin var
  202. etc linuxrc nfsroot share
  203. hello.c lost+found opt sys


发布了37 篇原创文章 · 获赞 13 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/Chen_qi_hai/article/details/104553423