首页问答详情

hi3516dv300开发板,上电后,启动脚本rcS执行完之后会卡住

zhttp
zhttp  发布于  2022-06-12 03:16:28
采纳率 0%
3个问答

uboot,kernel和文件系统没有用出厂固件,都是根据教程编译的,烧录没问题,我在S80network和rcS脚本的最后加了打印,可以看出脚本是执行完了的,但是之后会一直卡住,ctrl+c没反应
开机log如下:

  1. System startup
  2. Uncompress Ok!
  3. U-Boot 2016.11 (Jun 11 2022 - 11:04:23 +0000)hi3516dv300
  4. Relocation Offset is: 0f6c0000
  5. Relocating to 8fec0000, new gd at 8fe1fef0, sp at 8fe1fed0
  6. SPI Nor: hifmc_ip_ver_check(44): Check Flash Memory Controller v100 ...hifmc_ip_ver_check(50): Found
  7. hifmc_spi_nor_probe(1664): SPI Nor ID Table Version 1.0
  8. hifmc_spi_nor_probe(1689): SPI Nor(cs 0) ID: 0xc2 0x20 0x19
  9. hifmc_spi_nor_probe(1754): Block:64KB hifmc_spi_nor_probe(1755): Chip:32MB hifmc_spi_nor_probe(1756): Name:"MX25L(256/257)XX"
  10. hifmc100_spi_nor_probe(147): SPI Nor total size: 32MB
  11. NAND: 0 MiB
  12. MMC:
  13. In: serial
  14. Out: serial
  15. Err: serial
  16. Net: eth0
  17. Warning: eth0 (eth0) using random MAC address - ae:47:36:fa:a1:3b
  18. Hit any key to stop autoboot: 0
  19. device 0 offset 0x100000, size 0x400000
  20. SF: 4194304 bytes @ 0x100000 Read: OK
  21. ## Booting kernel from Legacy Image at 82000000 ...
  22. Image Name: Linux-4.9.37
  23. Image Type: ARM Linux Kernel Image (uncompressed)
  24. Data Size: 3705564 Bytes = 3.5 MiB
  25. Load Address: 80008000
  26. Entry Point: 80008000
  27. Loading Kernel Image ... OK
  28. Starting kernel ...
  29. Booting Linux on physical CPU 0x0
  30. Linux version 4.9.37 (zhttp@zhttppp) (gcc version 6.3.0 (HC&C V1R3C00SPC200B005_20190606) ) #1 SMP Sat Jun 11 12:35:35 UTC 2022
  31. CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
  32. CPU: div instructions available: patching division code
  33. CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
  34. OF: fdt:Machine model: Hisilicon HI3516DV300 DEMO Board
  35. cmz zone is not set!
  36. cma: Reserved 16 MiB at 0x87000000
  37. Memory policy: Data cache writealloc
  38. percpu: Embedded 13 pages/cpu @c6ec9000 s21772 r8192 d23284 u53248
  39. Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
  40. Kernel command line: mem=128M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=jffs2 rw mtdparts=hi_sfc:1M(boot),4M(kernel),28M(rootfs)
  41. PID hash table entries: 512 (order: -1, 2048 bytes)
  42. Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
  43. Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
  44. Memory: 103592K/131072K available (6144K kernel code, 184K rwdata, 1320K rodata, 1024K init, 317K bss, 11096K reserved, 16384K cma-reserved, 0K highmem)
  45. Virtual kernel memory layout:
  46. vector : 0xffff0000 - 0xffff1000 ( 4 kB)
  47. fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
  48. vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
  49. lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
  50. pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
  51. modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
  52. .text : 0xc0008000 - 0xc0700000 (7136 kB)
  53. .init : 0xc0900000 - 0xc0a00000 (1024 kB)
  54. .data : 0xc0a00000 - 0xc0a2e140 ( 185 kB)
  55. .bss : 0xc0a30000 - 0xc0a7f46c ( 318 kB)
  56. SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
  57. Hierarchical RCU implementation.
  58. Build-time adjustment of leaf fanout to 32.
  59. NR_IRQS:16 nr_irqs:16 16
  60. Gic dist init...
  61. arm_arch_timer: Architected cp15 timer(s) running at 50.00MHz (phys).
  62. clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb8812736b, max_idle_ns: 440795202655 ns
  63. sched_clock: 56 bits at 50MHz, resolution 20ns, wraps every 4398046511100ns
  64. Switching to timer-based delay loop, resolution 20ns
  65. clocksource: hisp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
  66. Console: colour dummy device 80x30
  67. Calibrating delay loop (skipped), value calculated using timer frequency.. 100.00 BogoMIPS (lpj=500000)
  68. pid_max: default: 32768 minimum: 301
  69. Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
  70. Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
  71. CPU: Testing write buffer coherency: ok
  72. CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
  73. Setting up static identity map for 0x80100000 - 0x80100058
  74. CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
  75. Brought up 2 CPUs
  76. SMP: Total of 2 processors activated (200.00 BogoMIPS).
  77. CPU: All CPU(s) started in SVC mode.
  78. devtmpfs: initialized
  79. VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
  80. clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
  81. futex hash table entries: 512 (order: 3, 32768 bytes)
  82. pinctrl core: initialized pinctrl subsystem
  83. NET: Registered protocol family 16
  84. DMA: preallocated 256 KiB pool for atomic coherent allocations
  85. Serial: AMBA PL011 UART driver
  86. 120a0000.uart: ttyAMA0 at MMIO 0x120a0000 (irq = 21, base_baud = 0) is a PL011 rev2
  87. console [ttyAMA0] enabled
  88. SCSI subsystem initialized
  89. ssp-pl022 120c0000.spi: ARM PL022 driver, device ID: 0x00800022
  90. ssp-pl022 120c0000.spi: mapped registers from 0x120c0000 to c8834000
  91. ssp-pl022 120c1000.spi: ARM PL022 driver, device ID: 0x00800022
  92. ssp-pl022 120c1000.spi: mapped registers from 0x120c1000 to c8838000
  93. ssp-pl022 120c2000.spi: ARM PL022 driver, device ID: 0x00800022
  94. ssp-pl022 120c2000.spi: mapped registers from 0x120c2000 to c883a000
  95. usbcore: registered new interface driver usbfs
  96. usbcore: registered new interface driver hub
  97. usbcore: registered new device driver usb
  98. Linux video capture interface: v2.00
  99. clocksource: Switched to clocksource hisp804
  100. NET: Registered protocol family 2
  101. TCP established hash table entries: 1024 (order: 0, 4096 bytes)
  102. TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
  103. TCP: Hash tables configured (established 1024 bind 1024)
  104. UDP hash table entries: 256 (order: 1, 8192 bytes)
  105. UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
  106. NET: Registered protocol family 1
  107. RPC: Registered named UNIX socket transport module.
  108. RPC: Registered udp transport module.
  109. RPC: Registered tcp transport module.
  110. RPC: Registered tcp NFSv4.1 backchannel transport module.
  111. workingset: timestamp_bits=30 max_order=15 bucket_order=0
  112. NFS: Registering the id_resolver key type
  113. Key type id_resolver registered
  114. Key type id_legacy registered
  115. jffs2: version 2.2 (NAND) (ZLIB) (RTIME) (c) 2001-2006 Red Hat, Inc.
  116. fuse init (API version 7.26)
  117. Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
  118. io scheduler noop registered
  119. io scheduler deadline registered
  120. io scheduler cfq registered (default)
  121. pl061_gpio 120d0000.gpio_chip: PL061 GPIO chip @0x120d0000 registered
  122. pl061_gpio 120d1000.gpio_chip: PL061 GPIO chip @0x120d1000 registered
  123. pl061_gpio 120d2000.gpio_chip: PL061 GPIO chip @0x120d2000 registered
  124. pl061_gpio 120d3000.gpio_chip: PL061 GPIO chip @0x120d3000 registered
  125. pl061_gpio 120d4000.gpio_chip: PL061 GPIO chip @0x120d4000 registered
  126. pl061_gpio 120d5000.gpio_chip: PL061 GPIO chip @0x120d5000 registered
  127. pl061_gpio 120d6000.gpio_chip: PL061 GPIO chip @0x120d6000 registered
  128. pl061_gpio 120d7000.gpio_chip: PL061 GPIO chip @0x120d7000 registered
  129. pl061_gpio 120d8000.gpio_chip: PL061 GPIO chip @0x120d8000 registered
  130. pl061_gpio 120d9000.gpio_chip: PL061 GPIO chip @0x120d9000 registered
  131. pl061_gpio 120da000.gpio_chip: PL061 GPIO chip @0x120da000 registered
  132. pl061_gpio 120db000.gpio_chip: PL061 GPIO chip @0x120db000 registered
  133. brd: module loaded
  134. hisi-sfc hisi_spi_nor.0: SPI Nor ID Table Version 1.2
  135. hisi-sfc hisi_spi_nor.0: all blocks is unlocked.
  136. hisi-sfc hisi_spi_nor.0: mx25l25635f (Chipsize 32 Mbytes, Blocksize 64KiB)
  137. mtd: hi_sfc: partitioning exceeds flash size, truncating
  138. 3 cmdlinepart partitions found on MTD device hi_sfc
  139. 3 cmdlinepart partitions found on MTD device hi_sfc
  140. Creating 3 MTD partitions on "hi_sfc":
  141. 0x000000000000-0x000000100000 : "boot"
  142. 0x000000100000-0x000000500000 : "kernel"
  143. 0x000000500000-0x000002000000 : "rootfs"
  144. SPI Nand ID Table Version 2.7
  145. Cannot found a valid SPI Nand Device
  146. hisi_spi_nand_probe(175): Error: driver probe, result: -19
  147. libphy: hisi_femac_mii_bus: probed
  148. libphy: Fixed MDIO Bus: probed
  149. Generic PHY 10011100.mdio:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=10011100.mdio:01, irq=-1)
  150. phy_id=0x001cc816, phy_mode=rmii
  151. hisi-femac 10010000.ethernet: using random MAC address ae:2c:2c:cb:f9:74
  152. usbcore: registered new interface driver r8152
  153. xhci-hcd 100e0000.xhci_0: xHCI Host Controller
  154. xhci-hcd 100e0000.xhci_0: new USB bus registered, assigned bus number 1
  155. xhci-hcd 100e0000.xhci_0: hcc params 0x0220fe6c hci version 0x110 quirks 0x20010010
  156. xhci-hcd 100e0000.xhci_0: irq 28, io mem 0x100e0000
  157. hub 1-0:1.0: USB hub found
  158. hub 1-0:1.0: 1 port detected
  159. xhci-hcd 100e0000.xhci_0: xHCI Host Controller
  160. xhci-hcd 100e0000.xhci_0: new USB bus registered, assigned bus number 2
  161. usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
  162. hub 2-0:1.0: USB hub found
  163. hub 2-0:1.0: hub can't support USB3.0
  164. usbcore: registered new interface driver usb-storage
  165. mousedev: PS/2 mouse device common for all mice
  166. usbcore: registered new interface driver xpad
  167. hibvt_rtc 12080000.rtc: rtc core: registered 12080000.rtc as rtc0
  168. hibvt_rtc 12080000.rtc: RTC driver for hibvt enabled
  169. i2c /dev entries driver
  170. hibvt-i2c 120b0000.i2c: hibvt-i2c0@100000hz registered
  171. hibvt-i2c 120b1000.i2c: hibvt-i2c1@100000hz registered
  172. hibvt-i2c 120b2000.i2c: hibvt-i2c2@100000hz registered
  173. hibvt-i2c 120b3000.i2c: hibvt-i2c3@100000hz registered
  174. hibvt-i2c 120b4000.i2c: hibvt-i2c4@100000hz registered
  175. hibvt-i2c 120b5000.i2c: hibvt-i2c5@100000hz registered
  176. hibvt-i2c 120b6000.i2c: hibvt-i2c6@100000hz registered
  177. hibvt-i2c 120b7000.i2c: hibvt-i2c7@100000hz registered
  178. usbcore: registered new interface driver uvcvideo
  179. USB Video Class driver (1.1.1)
  180. himci: mmc host probe
  181. usb 1-1: new high-speed USB device number 2 using xhci-hcd
  182. usbcore: registered new interface driver usbhid
  183. usbhid: USB HID core driver
  184. NET: Registered protocol family 10
  185. NET: Registered protocol family 17
  186. 8021q: 802.1Q VLAN Support v1.8
  187. Key type dns_resolver registered
  188. Registering SWP/SWPB emulation handler
  189. hub 1-1:1.0: USB hub found
  190. hub 1-1:1.0: 4 ports detected
  191. hibvt_rtc 12080000.rtc: setting system clock to 1970-01-01 03:32:12 UTC (12732)
  192. VFS: Mounted root (jffs2 filesystem) on device 31:2.
  193. devtmpfs: mounted
  194. Freeing unused kernel memory: 1024K (c0900000 - c0a00000)
  195. _ _ _ _ _ _ _ _ _ _ _ _
  196. \ _ _ _ _ _ ___
  197. / /__/ \ |_/
  198. / __ / - _ ___
  199. / / / / / /
  200. _ _ _ _/ / / \_/ \_ ______
  201. ___________\___\__________________
  202. [RCS]: /etc/init.d/S80network
  203. IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
  204. IP: 192.168.1.100
  205. BOOTP:
  206. GATEWAY: 192.168.1.1
  207. NETMASK: 255.255.255.0
  208. HOSTNAME: zhttp
  209. NETDEV: eth0
  210. AUTOCONF:
  211. network setup done
  212. rcS steup done
  213. hisi-femac 10010000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
  214. IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
  215. ^C^C
  216. ^C
  217. ^C
  218. random: fast init done
  219. random: crng init done

之后就一直卡住,其中network setup done和rcS steup done都是我加的打印,还请指教。

我来回答
379
0
0
回答
2个
易百纳技术社区
zhttp 发布于2022-06-12 12:11:45

我使用了商家给的rootfs_a182_0227_hi3516dv300_64k.jffs2固件,可以正常启动,看起来还是文件系统制作的有问题。

0
易百纳技术社区
zhttp 发布于2022-06-15 23:48:58

我找到了烧录成功的文件系统源码,对比了一下发现是linuxrc不一样,手动替换了之后烧录就可以正常启动了,可能是busybox制作的时候哪里配置有问题,暂时将就着用吧,不打算在这里耗费太多时间了。

0

Markdown 语法

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

Markdown 语法

  • 加粗 **内容**
  • 斜体 *内容*
  • 删除线 ~~内容~~
  • 引用 > 引用内容
  • 代码 `代码`
  • 代码块 ```编程语言↵代码```
  • 链接 [链接标题](url)
  • 无序列表 - 内容
  • 有序列表 1. 内容
  • 缩进 内容
  • 图片 ![alt](url)
+ 添加网盘链接/附件
或将文件直接拖到这里
悬赏:
EBC
网盘
* 网盘链接:
* 提取码:
悬赏:
EBC
Loading...
易百纳技术社区
确定要删除此文章、专栏、评论吗?
确定
取消
易百纳技术社区
易百纳技术社区
在专栏模块发布专栏,可获得其他E友的打赏
易百纳技术社区
回答悬赏问答,被题主采纳后即可获得悬赏金
易百纳技术社区
在上传资料时,有价值的资料可设置为付费资源
易百纳技术社区
达到一定金额,收益即可提现~
收益也可用来充值ebc,下载资料、兑换礼品更容易
易百纳技术社区
活动规则
  • 1.周任务为周期性任务,每周周一00:00刷新,上周完成的任务不会累计到本周,本周需要从头开始任务,当前任务完成后才可以完成下一个任务
  • 2.发布的专栏与资料需要与平台的板块有相关性,禁止注水,专栏/资料任务以审核通过的篇数为准
  • 3.任务完成后,现金奖励直接打款到微信账户;EBC/收益将自动发放到个人账户,可前往“我的钱包”查看;其他奖励请联系客服兑换
  • 4.每周最后三个任务将会有以下奖品掉落:社区热卖开发板、小米音响、视频年度会员、京东卡、华为手机等等
易百纳技术社区