[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#823020: Bug#823500: cannot boot from ext4



Control: block 823020 by 823500
Control: tags 823500 confirmed

On 2016-05-05, Heinrich Schuchardt wrote:
> u-boot-imx fails to read file
> /dtbs/4.5.0-1-armmp/imx6q-wandboard-revb1.dtb
> from an ext4 partition though the file exists.
>
> lsext4 mmc 0 dtbs
> does not show the subdirectories in the directory dtbs.

Thanks for the report!

I've seen similar behavior on a wandboard and novena.

Was this partition created with debian-installer? In my experience
debugging this issue, an ext4 partition created with mkfs.ext4 from
stretch works fine. Reported the issue here, since I could only trigger
it with debian-installer:

  https://bugs.debian.org/823020


> Booting from ext2 is possible with the same partition content. But of
> cause it would be preferable to have a journaling file system.

Marex was kind enough to help debug this issue; the problem may be the
flex_bg filesystem feature:

  < Marex> vagrantc: I _think_ flexbg is what breaks the ext4 for
    you
  < Marex> vagrantc: u-boot does not support flex_bg (mkfs.ext4 -G
    option)
  < vagrantc> Marex: flex_bg, eh?
  < Marex> vagrantc: yeah, flexible block group
  < Marex> vagrantc: try without it
  < Marex> vagrantc: flexible BG packs multiple block bitmaps at the
    beginning of the block supergroup instead of having one bitmap per
    block, it improves locality, but uboot doesn't support it
  < Marex> vagrantc: and I think there is about zero performance
    gain from having this enabled for DI


Although I *thought* I also saw a filesystem with flex_bg that worked
fine... so I'm not 100% sure at this point.

I haven't had time to follow up on the issue, but hope to be able to
further this coming week. Any further troubleshooting would be really
helpful!


live well,
  vagrant

Attachment: signature.asc
Description: PGP signature


Reply to: