[Buildroot] [RFC 3/6] system: add mdev-only /dev management (without devtmpfs)
Luca Ceresoli
luca at lucaceresoli.net
Thu Oct 1 09:36:12 UTC 2015
Dear Peter,
Peter Korsgaard wrote:
[...]
> >> Take a look at 2b2af54a5bb6f7e80ccf78f20084b93c398c3a8b in the
> >> kernel. To me it looks quite self contained, so backporting it to
> >> something close to 2.6.32 doesn't look too bad.
>
> > Indeed. I wonder how many dependencies on other patches it has, though.
> > Luca, can you give it a try and see if it would work for you?
>
> From a quick look (depending on how old the kernel is) I think it is
> basically just device_get_nodename():
>
> commit 6fcf53acccf85b4b0d0260e66c692a341760f464
> Author: Kay Sievers <kay.sievers at vrfy.org>
> Date: Thu Apr 30 15:23:42 2009 +0200
>
> Driver Core: add nodename callbacks
>
> This adds the nodename callback for struct class, struct device_type and
> struct device, to allow drivers to send userspace hints on the device
> name and subdirectory that should be used for it.
>
> Signed-off-by: Kay Sievers <kay.sievers at vrfy.org>
> Signed-off-by: Jan Blunck <jblunck at suse.de>
> Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
Wow, it works! Well, at least it boots, I haven't tested everything,
but it was far simpler that I suspected. Thanks for the hint!
--
Luca
More information about the buildroot
mailing list