scrat wrote:
> I just finshed chapter 6 and was checking the udev package.
> I don`t have a firmware.sh file, it`s missing.
> I have checked the udev tarball and I didn`t find it there.
> Can some one check there installed system and see if it exists?
> Is it still a part of the udev package?
>
> The book has firmware.sh listed in Chapter 6.60 under Short descriptions.
>
> I have it on the host system which is Archlinux with udev-135
Checking my archive, I see that it is in udev-144, but not in udev-151.
I don't have anything in between. We need to remove that from the book.
If you really need it, the most recent version that I have is:
udev-144$ cat ./extras/firmware/firmware.sh
#!/bin/sh -e
FIRMWARE_DIRS="/lib/firmware/updates/$(uname -r) /lib/firmware/updates \
/lib/firmware/$(uname -r) /lib/firmware"
err() {
echo "$@" >&2
logger -t "${0##*/}[$$]" "$@" 2>/dev/null || true
}
if [ ! -e /sys$DEVPATH/loading ]; then
err "udev firmware loader misses sysfs directory"
exit 1
fi
for DIR in $FIRMWARE_DIRS; do
[ -e "$DIR/$FIRMWARE" ] || continue
echo 1 > /sys$DEVPATH/loading
cat "$DIR/$FIRMWARE" > /sys$DEVPATH/data
echo 0 > /sys$DEVPATH/loading
exit 0
done
echo -1 > /sys$DEVPATH/loading
err "Cannot find firmware file '$FIRMWARE'"
mkdir -p /dev/.udev/firmware-missing
file=$(echo "$FIRMWARE" | sed 's:/:\\x2f:g')
ln -s -f "$DEVPATH" /dev/.udev/firmware-missing/$file
exit 1
Note that this is not valid for later versions of udev (in LFS-dev)
because it doesn't use /dev/.udev/ any more.
-- Bruce
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page