OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 4263|回复: 0

没有执行SD卡里面的rootfs?自动读取了nand flash里面的rootfs?

[复制链接]

3

主题

9

帖子

0

精华

新手上路

积分
40
金钱
40
注册时间
2019-10-19
在线时间
10 小时
发表于 2019-10-29 13:42:21 | 显示全部楼层 |阅读模式
自己编译了kernel和uboot,这两个都可以运行起来。硬件设置的从SD卡启动
uboot启动
  1. U-Boot 2016.03 (Oct 28 2019 - 21:21:43 +0800)

  2. CPU:   Freescale i.MX6ULL rev1.0 528 MHz (running at 396 MHz)
  3. CPU:   Industrial temperature grade (-40C to 105C) at 43C
复制代码


kernel启动
  1. Starting kernel ...

  2. Booting Linux on physical CPU 0x0
  3. Linux version 4.1.15 (jun@ubuntu) (gcc version 4.9.4 (Linaro GCC 4.9-2017.01) ) #4 SMP PREEMPT Mon Oct 28 21:24:51 CST 2019
  4. CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
  5. CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
复制代码
问题出在文件系统,最后一部分报错信息
  1. mmcblk0: error -110 sending status command, retrying
  2. mmcblk0: error -110 sending status command, retrying
  3. mmcblk0: error -110 sending status command, aborting
  4. blk_update_request: I/O error, dev mmcblk0, sector 0
  5. Buffer I/O error on dev mmcblk0, logical block 0, async page read
  6. mmcblk0: unable to read partition table
  7. RAMDISK: gzip image found at block 0
  8. RAMDISK: incomplete write (18404 != 32768)
  9. write error
  10. VFS: Mounted root (ext2 filesystem) on device 1:0.
  11. devtmpfs: mounted
  12. Freeing unused kernel memory: 440K (80b18000 - 80b86000)
  13. EXT2-fs (ram0): error: ext2_get_inode: unable to read inode block - inode=261, block=65541
  14. EXT2-fs (ram0): error: remounting filesystem read-only
  15. Starting init: /sbin/init exists but couldn't execute it (error -5)
  16. EXT2-fs (ram0): error: ext2_get_inode: unable to read inode block - inode=327, block=81925
  17. EXT2-fs (ram0): error: remounting filesystem read-only
  18. Starting init: /bin/init exists but couldn't execute it (error -5)
  19. EXT2-fs (ram0): error: ext2_get_inode: unable to read inode block - inode=327, block=81925
  20. EXT2-fs (ram0): error: remounting filesystem read-only
  21. Starting init: /bin/sh exists but couldn't execute it (error -5)
  22. Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
  23. ---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
复制代码
看这个信息,像是ramdisk分配的不合理

修改uboot配置
  1. setenv bootargs 'console=ttymxc0,115200 ramdisk_size=40000000'
  2. setenv bootcmd 'mmc dev 0; fatload mmc 0:1 80800000 zImage; fatload mmc 0:1 81800000 ramdisk.img;fatload mmc 0:1 87800000 imx6ull-14x14-evk.dtb; bootz 80800000 81800000 87800000;'
  3. saveenv
复制代码


能跑起来了,但是读到的不是我加载到81800000这个地址的文件系统,这个被挂载的文件系统是我写到nand里面的那个
  1. mmcblk0: error -110 sending status command, retrying
  2. mmcblk0: error -110 sending status command, retrying
  3. mmcblk0: error -110 sending status command, aborting
  4. blk_update_request: I/O error, dev mmcblk0, sector 0
  5. Buffer I/O error on dev mmcblk0, logical block 0, async page read
  6. mmcblk0: unable to read partition table
  7. RAMDISK: gzip image found at block 0
  8. VFS: Mounted root (ext2 filesystem) on device 1:0.

  9. Please press Enter to activate this console.
  10. / #
  11. / # ls
  12. bin         lib         mnt         root        tmp
  13. dev         linuxrc     opt         sbin        usr
  14. etc         lost+found  proc        sys         var
  15. / #
复制代码


请问怎么运行我放在SD里面的文件系统?这个nand里面的文件系统在什么时候,自己读取到的?
终端打印信息太长,我做成文件上传。
终端打印信息.zip (7.37 KB, 下载次数: 0)
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-2-23 04:42

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表