Bug in the boot process using mdev
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 1 patch 0 repliesNew
Patches in v1 No applies recorded yet
The patch the cover letter announces is not in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Buildroot] [PATCH 0/1] Bug in the boot process using mdev
Hi Thomas,
Thank you very much for your reply.
Thomas Petazzoni wrote:
...
Quoted 12 lines
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:
Quoted 8 lines
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_MOUNTare 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.
Quoted 4 lines
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.