linux icon indicating copy to clipboard operation
linux copied to clipboard

4.9.19 can't start with CONFIG_DWCOTG=y

Open kosirdavid opened this issue 9 years ago • 5 comments

As title says, latest kernel from 4.9.y can't start (hanging on rainbow screen) when CONFIG_DWCOTG=y. If I disable this option everything works normal.

There is no output on console, I have no idea how to debug it.

Am I missing something or this is a bug?

kosirdavid avatar Mar 31 '17 07:03 kosirdavid

I'm running latest rpi-update kernel and:

pi@domnfs:~ $ uname -a
Linux domnfs 4.9.19-v7+ #983 SMP Thu Mar 30 14:46:28 BST 2017 armv7l GNU/Linux
pi@domnfs:~ $ sudo modprobe configs
pi@domnfs:~ $ zgrep DWCOTG /proc/config.gz 
CONFIG_USB_DWCOTG=y

So it is certainly possible to boot with CONFIG_USB_DWCOTG=y.

What type of pi are you running on? Does latest rpi-update kernel boot for you? Does it work if you build the kernel using rpi2709_defconfig?

popcornmix avatar Mar 31 '17 13:03 popcornmix

So it is certainly possible to boot with CONFIG_USB_DWCOTG=y.

Sure it is, but I think there is something wrong with kernel configuration.

I build kernel from sources using rpi2835_defconfig (that should be correct one for reference, right?). I just added few options that are unrelated to USB_DWCOTG but config is basically the same and very short/clean. It's for RPI3.

I will investigate more and post here. It may be:

  • my mistake somewhere
  • something wrong with bcm2835_defconfig
  • something wrong with other kernel options required for USB_DWCOTG but not auto-selected or required

You mentioned rpi2709_defconfig, I will check it. (it is bcm2709_defconfig in sources but I guess it's the same thing).

kosirdavid avatar Mar 31 '17 13:03 kosirdavid

No, use bcm2709_defconfig for pi2/pi3. bcm2835_defconfig is for building an upstream kernel which supports far fewer drivers (no fiq and so no dwcotg).

popcornmix avatar Mar 31 '17 13:03 popcornmix

https://www.raspberrypi.org/documentation/linux/kernel/building.md

popcornmix avatar Mar 31 '17 13:03 popcornmix

@popcornmix thanks for helping out.

kosirdavid avatar Mar 31 '17 16:03 kosirdavid