View Single Post
Old 05-22-2022, 11:49 PM   #5
NiMa
Fanatic
NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.
 
NiMa's Avatar
 
Posts: 507
Karma: 2390534
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra, Glo HD, Touch C/B, Mini, Glo, Aura SE, Clara HD, KT
Quote:
Originally Posted by katadelos View Post
I vaguely remember running into a issue like this when attempting to bring up the WLAN interface using Alpine/Buildroot images on KT2/PW3; IIRC it was because the firmware loading relies upon hotplug/udev and non-Amazon images lack the script used to handle this (usr/libexec/firmware.sh on KT2)?

The actual mechanism used is covered in the kernel docs under the section "Firmware kobject uevent fallback mechanism".

I think the same mechanism is used to load the waveform, come to think of it...
You're right, there is a /usr/libexec/firmware.sh script on the stock KT's root filesystem:
Code:
#!/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
What's DEVPATH? Also, there isn't anything in sysfs with loading:
Code:
kindle:~# find /sys | grep loading
kindle:~#
How to actually make it work?


Though, I did make some general progress...
Attached Thumbnails
Click image for larger version

Name:	PXL_20220523_035812517.MP.jpg
Views:	118
Size:	260.6 KB
ID:	193926  

Last edited by NiMa; 05-23-2022 at 12:01 AM.
NiMa is offline   Reply With Quote