[Buildroot] editing device_table_dev.txt

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Feb 24 17:24:16 UTC 2013

Dear Stefan Fröberg,

On Thu, 21 Feb 2013 12:32:27 +0200, Stefan Fröberg wrote:

> >>> Also kernel .config file should also have CONFIG_DEVTMPFS and
> >>> DEVTMPFS as 'y'.
> >> Sorry, that should have been CONFIG_DEVTMPFS=y and
> > Kernel version 2.6.30 is too old for that.
> >
> > baruch
> >
> It is ?
> Damn, then the only options are mdev and udev.

No, because our mdev/udev handling makes the assumption that devtmpfs
support is enabled in the kernel.

Contrary to what Arnout says, I don't think devtmpfs support is
*mandatory* to get mdev to work. But in Buildroot, we've decided to
support only mdev on top of devtmpfs.

From linux/linux.mk:

                $(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS,$(@D)/.config)
                $(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS_MOUNT,$(@D)/.config))

So whenever we're not using the "static" method, we enable DEVTMPFS +

So if you're using a kernel < 2.6.32 (I think that's the kernel release
in which devtmpfs was introduced), then your only choice is to use the
static method. Obviously, another better solution is to upgrade the
kernel version you're using. The .config posted by John Stile
originally mentions a board/atmel/at91sam9g20ek/ directory, which seems
to indicate John is using the AT91SAM9G20 SoC. This SoC is perfectly
well supported by mainline kernel versions, so there should normally be
no reason to stick with the old 2.6.30.

Best regards,

Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.

More information about the buildroot mailing list