zynq : Linux kernel panic for JFFS2 filesystem on POR or reboot

1 篇文章 0 订阅

参考原贴:https://www.xilinx.com/support/answers/71439.html

Description

In the 2017.x and 2018.x releases, when you boot Linux with a JFFS2 file system on a ZCU102 board, it crashes with a kernel panic on POR or reboot cycle.

If you erase the JFFS2 Partition and then boot successfully for the first time, on the next boot cycle with POR or reboot, it crashes with kernel panic errors. 

For more details, see the attached boot log.

[    4.916930] ALSA device list:

[    4.919837]   #0: DisplayPort monitor

[    5.043030] random: crng init done

[    5.460283] [drm] Cannot find any crtc or sizes

[    5.690018] jffs2: error: (1) jffs2_link_node_ref: Adding new ref ffffffc87a0276a0 at (0x007ce000-0x007ce070) not immediately after previous (0x007ce000-0x007ce000)

 

Solution

To fix this issue in the kernel, disable CONFIG_JFFS2_SUMMARY from the menuconfig as follows:

$ petalinux-config -c kernel

Then disable the following kernel config:

File systems ---> Miscellaneous filesystems ---> [ ]JFFS2 summary support

This is enabled by default in the xilinx_zynqmp_defconfig.

As a result, when mtd_writev() returns a length of 0 (even though the node space is not reserved as dirty but is re-used), the extra summary entry will then point into the space of the next node.

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值