[Buildroot] [PATCH 0/1] Bug in the boot process using mdev

Luca Ceresoli luca.ceresoli at comelit.it
Mon Jul 4 09:04:26 UTC 2011


Hi Thomas,

Thank you very much for your reply.

Thomas Petazzoni wrote:
...
> I initially implemented mdev support as you proposed, with a separate
> static device table for the few device nodes that are mandatory to get
> the system up to a point where mdev can be started.
>
> However, after discussions on the list, we decided that both our mdev
> and udev configurations should rely on devtmpfs. So when the mdev or
> udev mechanisms are selected in Buildroot configuration, we assume that
> devtmpfs will be mounted in /dev at boot time.
>
> This is automatically ensured when Buildroot is responsible for
> building the kernel. See linux/linux.mk :
>
> ifneq ($(BR2_ROOTFS_DEVICE_CREATION_STATIC),y)
>          $(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS,$(@D)/.config)
>          $(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS_MOUNT,$(@D)/.config)
> endif
>
> However, if you build your kernel separately, then indeed, it's your
> responsibility to make sure that DEVTMPFS and DEVTMPFS_MOUNT are
> enabled.

Shame on me!
My kernel _is_ built by buildroot, and the two DEVTMPFS options _are_
activated. The problem is that I was unaware of that, and went on using
the previously compiled kernel uImage I had lying in /dev/tftp.

>
> This is probably a requirement that should be better documented, at
> least in the static/devtmpfs/mdev/udev configuration option help.
>

Really, as I just proved in such a clumsy way.
But I admit I'd rather wait for it to be done by anybody seriously
knowing the issue (which is probably you). :)

Luca

--------------------------------------------------------------------------
Luca Ceresoli
Comelit R&D - Progettazione Software

Phone
Fax
Mail
Web
YouTube 

luca.ceresoli at comelit.it
http://www.comelitgroup.com/
http://www.youtube.com/comelitgroup
--------------------------------------------------------------------------
Prima di stampare pensa all'ambiente / Think about environment before printing
AVVISO DI CONFIDENZIALITÀ
Questo messaggio ed i suoi eventuali allegati può contenere informazioni confidenziali, di proprietà, legalmente protette.È destinato all'utilizzo esclusivo del destinatario sopra indicato; privatezza e confidenzialità non sono modificati da eventuali errori di trasmissione. Se il messaggio non è a lei destinato, non deve utilizzarlo, diffonderlo, copiarlo con qualunque mezzo, o intraprendere azioni basandosi su di esso. Se ha ricevuto questo messaggio per errore, la preghiamo di volerlo distruggere (unitamente ad eventuali copie dello stesso) e di volerci cortesemente informare del fatto scrivendo al mittente.
CONFIDENTIALITY NOTICE
This message and its attachments (if any) may contain confidential, proprietary or legally privileged information and it is intended only for the use of the addressee named above. No confidentiality or privilege is waived or lost by any erroneous transmission. If you are not the intended recipient of this message you are hereby notified that you must not use, disseminate, copy it in any form or take any action in reliance on it. If you have received this message in error, please, delete it (and any copies of it) and kindly inform the sender.


More information about the buildroot mailing list