From: Erich T. <eri...@th...> - 2020-09-10 13:43:07
|
Hi Folks I found a rather unpleasant behaviour in busybox's modprobe. It appears not to respect 'install' lines in files in /etc/modprobe.d. This is annoying in the case of the module leds_gpio which may depend on the underlying gpio driver, but which is not depending on it in modules.dep (it cannot know what the dependency could be). Ideas? cheers ET -- Diese E-Mail wurde von AVG auf Viren geprüft. http://www.avg.com |
From: KP K. <ka...@us...> - 2020-09-13 12:15:55
|
Hi Erich; On Do, 2020-09-10 at 15:42 +0200, Erich Titl wrote: > Hi Folks > > I found a rather unpleasant behaviour in busybox's modprobe. It > appears > not to respect 'install' lines in files in /etc/modprobe.d. Indeed a limitation of busybox AFAIK. > This is annoying in the case of the module leds_gpio which may depend > on > the underlying gpio driver, but which is not depending on it in > modules.dep (it cannot know what the dependency could be). > > Ideas? I usually add such "missing/unkown" modules in /etc/modules kp > cheers > > ET > |
From: Erich T. <eri...@th...> - 2020-09-13 20:03:52
|
Am 13.09.2020 um 14:15 schrieb KP Kirchdoerfer via leaf-devel: > Hi Erich; > > On Do, 2020-09-10 at 15:42 +0200, Erich Titl wrote: >> Hi Folks >> >> I found a rather unpleasant behaviour in busybox's modprobe. It >> appears >> not to respect 'install' lines in files in /etc/modprobe.d. > > Indeed a limitation of busybox AFAIK. > >> This is annoying in the case of the module leds_gpio which may depend >> on >> the underlying gpio driver, but which is not depending on it in >> modules.dep (it cannot know what the dependency could be). >> >> Ideas? > > I usually add such "missing/unkown" modules in /etc/modules Unfortunately this does not do the job because leds_gpio is loaded automagically _before_ the underlying driver gets loaded. I testet this with an ALIX board. The way to fix this is to rmmod leds_gpio and modprobe leds_gpio. With a _real_ modprobe this could be configured if this _real_ modprobe was available it init. cheers ET -- Diese E-Mail wurde von AVG auf Viren geprüft. http://www.avg.com |
From: KP K. <ka...@us...> - 2020-09-14 15:15:39
|
Hi; On So, 2020-09-13 at 22:03 +0200, Erich Titl wrote: > Am 13.09.2020 um 14:15 schrieb KP Kirchdoerfer via leaf-devel: > > Hi Erich; > > > > On Do, 2020-09-10 at 15:42 +0200, Erich Titl wrote: > > > Hi Folks > > > > > > I found a rather unpleasant behaviour in busybox's modprobe. It > > > appears > > > not to respect 'install' lines in files in /etc/modprobe.d. > > > > Indeed a limitation of busybox AFAIK. > > > > > This is annoying in the case of the module leds_gpio which may > > > depend > > > on > > > the underlying gpio driver, but which is not depending on it in > > > modules.dep (it cannot know what the dependency could be). > > > > > > Ideas? > > > > I usually add such "missing/unkown" modules in /etc/modules > > Unfortunately this does not do the job because leds_gpio is loaded > automagically _before_ the underlying driver gets loaded. I testet > this > with an ALIX board. > > The way to fix this is to rmmod leds_gpio and modprobe leds_gpio. > With a > _real_ modprobe this could be configured if this _real_ modprobe was > available it init. Ok, what module is missing? According to kernel documentation GPIO_CS5535 & LEDS_GPIO needs to be loaded. Looking at my old ALIX box with 4.14 kernel I see gpio_cs5535 16384 3 - Live 0xb885c000 leds_gpio 16384 0 - Live 0xb889a000 detected by hwdetect without any changes elsewhere. Though I've never tested to play with the LEDs on this box. What's the output of lsmod on your box? And what's going wrong? kp > cheers > > ET > |
From: Erich T. <eri...@th...> - 2020-09-14 18:31:36
|
Am 14.09.2020 um 17:15 schrieb KP Kirchdoerfer via leaf-devel: > Hi; > > On So, 2020-09-13 at 22:03 +0200, Erich Titl wrote: >> Am 13.09.2020 um 14:15 schrieb KP Kirchdoerfer via leaf-devel: >>> Hi Erich; >>> >>> On Do, 2020-09-10 at 15:42 +0200, Erich Titl wrote: >>>> Hi Folks >>>> >>>> I found a rather unpleasant behaviour in busybox's modprobe. It >>>> appears >>>> not to respect 'install' lines in files in /etc/modprobe.d. >>> >>> Indeed a limitation of busybox AFAIK. >>> >>>> This is annoying in the case of the module leds_gpio which may >>>> depend >>>> on >>>> the underlying gpio driver, but which is not depending on it in >>>> modules.dep (it cannot know what the dependency could be). >>>> >>>> Ideas? >>> >>> I usually add such "missing/unkown" modules in /etc/modules >> >> Unfortunately this does not do the job because leds_gpio is loaded >> automagically _before_ the underlying driver gets loaded. I testet >> this >> with an ALIX board. >> >> The way to fix this is to rmmod leds_gpio and modprobe leds_gpio. >> With a >> _real_ modprobe this could be configured if this _real_ modprobe was >> available it init. > > Ok, > > what module is missing? None, but leds_gpoi is loaded too early by the autoloader. > > According to kernel documentation GPIO_CS5535 & LEDS_GPIO needs to be > loaded. > Looking at my old ALIX box with 4.14 kernel I see > > gpio_cs5535 16384 3 - Live 0xb885c000 > leds_gpio 16384 0 - Live 0xb889a000 > > detected by hwdetect without any changes elsewhere. > > Though I've never tested to play with the LEDs on this box. > What's the output of lsmod on your box? They are both loaded but don't talkt to each other. > > And what's going wrong? LED's dont work and the /sys/class/leds are not initialized completely. cheers ET -- Diese E-Mail wurde von AVG auf Viren geprüft. http://www.avg.com |