Pierre Labastie wrote:
> Le 19/03/2012 20:18, Bruce Dubbs wrote:
>> Pierre Labastie wrote:
>>> Also, it might be interesting/necessary to copy the content of
>>> /lib/firmware to $WDIR.
>> That directory has always been empty for me. What populates it?
>> I've always thought of that directory to be for specialized video cards.
>> That's not needed for BLFS to mount the root file system (the sole
>> purpose of the initramfs). Is there another use?
> For example, when building the radeon module (the one with
> CONFIG_FB_RADEON, not the DRM one),
> it puts a bunch of files in /lib/firmware/radeon. I cannot say for sure
> that lacking the files was the reason why
> my screen went black. I completely disabled the radeon module, and could
> go forward and find the other errors. I haven't tried to enable radeon
> since then.
OK, I see several entries at drivers/firmware as well as firmware/. It
doesn't seem very robust to me that the video drivers would just fail in
the absence of firmware and not drop back to vga, but I guess that's
what it is.
>>> In the init.in script:
>>> Not needed (automatically created by devtmpfs):
>>> mknod -m 640 /dev/console c 5 1
>>> mknod -m 664 /dev/null c 1 3
>> Do you have any idea where that's done? I looked in the source for the
>> kernel and util-linux, but can't find it.
> The `device_add' function (in drivers/base/core.c), which seems to be
> called by a lot of drivers,
> calls `dev_tmpfs_create_node'. I am not very familiar with the kernel
> source, though.
Well I couldn't see anything either, so I added 'ls -al /dev' in the
init script right after the mount of /dev. I got a ton of files it
found including bus, console, cpu, input/, loop0-7, net/, ram0-15,
{u)random, sda*, sdb*, and tty*.
Evidently these are all found by the kernel before init runs and the
kernel just displays the devices in /dev when the devtmpfs is mounted.
So I agree that the mknod commands are not needed. I'll remove them.
-- Bruce
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page