All of lore.kernel.org
 help / color / mirror / Atom feed
* Boot fail with UBIFS_FS=y on Qualcomm msm8974/msm8226
@ 2022-09-22 15:55 ` Luca Weiss
  0 siblings, 0 replies; 4+ messages in thread
From: Luca Weiss @ 2022-09-22 15:55 UTC (permalink / raw)
  To: linux-arm-msm; +Cc: linux-mtd, Richard Weinberger, Alexey Minnekhanov

Hey all,

sometime last year (June 2021?) I first noticed that with arm32 qcom_defconfig 
under some circumstances I get weird boot failures on msm8974-fairphone-fp2, 
and lately also seeing similar with apq8026-lg-lenok.

In short, with CONFIG_UBIFS_FS=y there's nothing from serial console, nothing 
from earlycon, just nothing on serial at all. As soon as I disable this config 
option and rebuild it boots up fine again.

At some point I also got this from fp2 logs, after I changed something in the 
boot procedure (maybe fastboot boot instead of fastboot flash? I don't recall)

> Error: invalid dtb and unrecognized/unsupported machine ID
>   r1=0x00000000, r2=0x00000000
> Available machine support:
> 
> ID (hex)        NAME
> ffffffff        Generic DT based system
> 
> Please check your kernel config and/or bootloader.

With CONFIG_UBIFS_FS=m and loading the module at runtime seems to work fine (at 
least nothing visibly broke) although I didn't try mounting anything with that 
file system.

Does anyone maybe have an idea what might cause this and/or how to debug this? 
While just disabling UBIFS_FS in my config solves the issue I feel like this 
should be resolved, because I also sometimes forget that I have to disable 
this from qcom_defconfig and then wonder why my boards aren't booting.

Regards
Luca



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Boot fail with UBIFS_FS=y on Qualcomm msm8974/msm8226
@ 2022-09-22 15:55 ` Luca Weiss
  0 siblings, 0 replies; 4+ messages in thread
From: Luca Weiss @ 2022-09-22 15:55 UTC (permalink / raw)
  To: linux-arm-msm; +Cc: linux-mtd, Richard Weinberger, Alexey Minnekhanov

Hey all,

sometime last year (June 2021?) I first noticed that with arm32 qcom_defconfig 
under some circumstances I get weird boot failures on msm8974-fairphone-fp2, 
and lately also seeing similar with apq8026-lg-lenok.

In short, with CONFIG_UBIFS_FS=y there's nothing from serial console, nothing 
from earlycon, just nothing on serial at all. As soon as I disable this config 
option and rebuild it boots up fine again.

At some point I also got this from fp2 logs, after I changed something in the 
boot procedure (maybe fastboot boot instead of fastboot flash? I don't recall)

> Error: invalid dtb and unrecognized/unsupported machine ID
>   r1=0x00000000, r2=0x00000000
> Available machine support:
> 
> ID (hex)        NAME
> ffffffff        Generic DT based system
> 
> Please check your kernel config and/or bootloader.

With CONFIG_UBIFS_FS=m and loading the module at runtime seems to work fine (at 
least nothing visibly broke) although I didn't try mounting anything with that 
file system.

Does anyone maybe have an idea what might cause this and/or how to debug this? 
While just disabling UBIFS_FS in my config solves the issue I feel like this 
should be resolved, because I also sometimes forget that I have to disable 
this from qcom_defconfig and then wonder why my boards aren't booting.

Regards
Luca



______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Boot fail with UBIFS_FS=y on Qualcomm msm8974/msm8226
  2022-09-22 15:55 ` Luca Weiss
@ 2022-09-22 16:45   ` Brian Masney
  -1 siblings, 0 replies; 4+ messages in thread
From: Brian Masney @ 2022-09-22 16:45 UTC (permalink / raw)
  To: Luca Weiss
  Cc: linux-arm-msm, linux-mtd, Richard Weinberger, Alexey Minnekhanov

On Thu, Sep 22, 2022 at 05:55:51PM +0200, Luca Weiss wrote:
> sometime last year (June 2021?) I first noticed that with arm32 qcom_defconfig 
> under some circumstances I get weird boot failures on msm8974-fairphone-fp2, 
> and lately also seeing similar with apq8026-lg-lenok.
> 
> In short, with CONFIG_UBIFS_FS=y there's nothing from serial console, nothing 
> from earlycon, just nothing on serial at all. As soon as I disable this config 
> option and rebuild it boots up fine again.
> 
> At some point I also got this from fp2 logs, after I changed something in the 
> boot procedure (maybe fastboot boot instead of fastboot flash? I don't recall)
> 
> > Error: invalid dtb and unrecognized/unsupported machine ID
> >   r1=0x00000000, r2=0x00000000
> > Available machine support:
> > 
> > ID (hex)        NAME
> > ffffffff        Generic DT based system
> > 
> > Please check your kernel config and/or bootloader.
> 
> With CONFIG_UBIFS_FS=m and loading the module at runtime seems to work fine (at 
> least nothing visibly broke) although I didn't try mounting anything with that 
> file system.
> 
> Does anyone maybe have an idea what might cause this and/or how to debug this? 
> While just disabling UBIFS_FS in my config solves the issue I feel like this 
> should be resolved, because I also sometimes forget that I have to disable 
> this from qcom_defconfig and then wonder why my boards aren't booting.

Hey Luca,

I encountered a similar type of issue when I worked on the Nexus 5
phone. It's been awhile but from what I recall the issue was that the
generated Android boot image was too big, and it could cause the
"invalid dtb" error since the DTB is appended to the end of the kernel.
I have in my notes that I worked around the issue by enabling
CONFIG_MEDIA_SUPPORT_FILTER. Or you could just trying disabling
CONFIG_MEDIA_SUPPORT.

Brian


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Boot fail with UBIFS_FS=y on Qualcomm msm8974/msm8226
@ 2022-09-22 16:45   ` Brian Masney
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Masney @ 2022-09-22 16:45 UTC (permalink / raw)
  To: Luca Weiss
  Cc: linux-arm-msm, linux-mtd, Richard Weinberger, Alexey Minnekhanov

On Thu, Sep 22, 2022 at 05:55:51PM +0200, Luca Weiss wrote:
> sometime last year (June 2021?) I first noticed that with arm32 qcom_defconfig 
> under some circumstances I get weird boot failures on msm8974-fairphone-fp2, 
> and lately also seeing similar with apq8026-lg-lenok.
> 
> In short, with CONFIG_UBIFS_FS=y there's nothing from serial console, nothing 
> from earlycon, just nothing on serial at all. As soon as I disable this config 
> option and rebuild it boots up fine again.
> 
> At some point I also got this from fp2 logs, after I changed something in the 
> boot procedure (maybe fastboot boot instead of fastboot flash? I don't recall)
> 
> > Error: invalid dtb and unrecognized/unsupported machine ID
> >   r1=0x00000000, r2=0x00000000
> > Available machine support:
> > 
> > ID (hex)        NAME
> > ffffffff        Generic DT based system
> > 
> > Please check your kernel config and/or bootloader.
> 
> With CONFIG_UBIFS_FS=m and loading the module at runtime seems to work fine (at 
> least nothing visibly broke) although I didn't try mounting anything with that 
> file system.
> 
> Does anyone maybe have an idea what might cause this and/or how to debug this? 
> While just disabling UBIFS_FS in my config solves the issue I feel like this 
> should be resolved, because I also sometimes forget that I have to disable 
> this from qcom_defconfig and then wonder why my boards aren't booting.

Hey Luca,

I encountered a similar type of issue when I worked on the Nexus 5
phone. It's been awhile but from what I recall the issue was that the
generated Android boot image was too big, and it could cause the
"invalid dtb" error since the DTB is appended to the end of the kernel.
I have in my notes that I worked around the issue by enabling
CONFIG_MEDIA_SUPPORT_FILTER. Or you could just trying disabling
CONFIG_MEDIA_SUPPORT.

Brian


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-22 16:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-22 15:55 Boot fail with UBIFS_FS=y on Qualcomm msm8974/msm8226 Luca Weiss
2022-09-22 15:55 ` Luca Weiss
2022-09-22 16:45 ` Brian Masney
2022-09-22 16:45   ` Brian Masney

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.