[v2] mdev: create devices from /sys/dev (kill pre-2.6.26 support, fix mdev for everyone else)

Linus Walleij linus.walleij at linaro.org
Wed Apr 20 13:31:12 UTC 2016


On Tue, Apr 19, 2016 at 5:52 AM, Isaac Dunham <ibid.ag at gmail.com> wrote:
> On Mon, Apr 18, 2016 at 11:31:27AM +0200, Linus Walleij wrote:
>> On Wed, Apr 13, 2016 at 2:37 PM, Linus Walleij <linus.walleij at linaro.org> wrote:
>>
>> (...)
>> > This switches from using /sys/class as the place to look for
>> > devices to create to using /sys/dev where all char and block
>> > devices are listed.
>
> In practical terms, kernels older than 2.6.26 will no longer work with
> mdev -s, and devices with no class will start showing up.
> (2.6.26 added /sys/dev/)

OK that is a good piece of information.

> FWIW, I'm for it, though I'd like to hear if anyone is using new busybox
> with 'vendor'/'BSP' kernels that are old enough for this to be problematic,
> yet new enough to need mdev (ie, from 2.6.18 or somewhat newer,
> to 2.6.25).

Me too. I can of course preserve the /sys/class and even
/sys/block behaviour, I just wanted this more brutal approach
in order to save bloat.

> Also, bloatcheck would be interesting...I might see about that.

Thanks.

Yours,
Linus Walleij


More information about the busybox mailing list