
### firmware search path

$ cat /sys/module/firmware_class/parameters/path 2>&1
/firmware/image

### dir /lib/firmware

$ ls -laR /lib/firmware 2>&1 | head -80
ls: /lib/firmware: No such file or directory

### dir /vendor/firmware

$ ls -laR /vendor/firmware 2>&1 | head -80
ls: /vendor/firmware: No such file or directory

### dir /firmware

$ ls -laR /firmware 2>&1 | head -80
/firmware:
total 32
drwxr-xr-x    3 root     root         16384 Jan  1  1970 .
drwxrwxrwt   15 root     root           360 Jan  1  1970 ..
drwxr-xr-x    2 root     root         16384 Jul  5  2011 image

/firmware/image:
total 46400
drwxr-xr-x    2 root     root         16384 Jul  5  2011 .
drwxr-xr-x    3 root     root         16384 Jan  1  1970 ..
-rwxr-xr-x    1 root     root           180 Apr 30 13:52 cmnlib.b00
-rwxr-xr-x    1 root     root          6568 Apr 30 13:52 cmnlib.b01
-rwxr-xr-x    1 root     root        110020 Apr 30 13:52 cmnlib.b02
-rwxr-xr-x    1 root     root          4456 Apr 30 13:52 cmnlib.b03
-rwxr-xr-x    1 root     root          6748 Apr 30 13:52 cmnlib.mdt
-rwxr-xr-x    1 root     root           180 Apr 30 13:52 keymaste.b00
-rwxr-xr-x    1 root     root          6568 Apr 30 13:52 keymaste.b01
-rwxr-xr-x    1 root     root         17816 Apr 30 13:52 keymaste.b02
-rwxr-xr-x    1 root     root           208 Apr 30 13:52 keymaste.b03
-rwxr-xr-x    1 root     root          6748 Apr 30 13:52 keymaste.mdt
-rwxr-xr-x    1 root     root        234176 Apr 30 13:50 mba.mbn
-rwxr-xr-x    1 root     root           980 Apr 30 13:52 modem.b00
-rwxr-xr-x    1 root     root          7368 Apr 30 13:52 modem.b01
-rwxr-xr-x    1 root     root          4468 Apr 30 13:52 modem.b02
-rwxr-xr-x    1 root     root          5376 Apr 30 13:52 modem.b03
-rwxr-xr-x    1 root     root        139616 Apr 30 13:52 modem.b04
-rwxr-xr-x    1 root     root       3500328 Apr 30 13:52 modem.b05
-rwxr-xr-x    1 root     root       2963678 Apr 30 13:52 modem.b06
-rwxr-xr-x    1 root     root         81920 Apr 30 13:52 modem.b07
-rwxr-xr-x    1 root     root        172200 Apr 30 13:52 modem.b10
-rwxr-xr-x    1 root     root         48704 Apr 30 13:52 modem.b12
-rwxr-xr-x    1 root     root         46344 Apr 30 13:52 modem.b13
-rwxr-xr-x    1 root     root         99492 Apr 30 13:52 modem.b15
-rwxr-xr-x    1 root     root        115220 Apr 30 13:52 modem.b16
-rwxr-xr-x    1 root     root        975192 Apr 30 13:52 modem.b17
-rwxr-xr-x    1 root     root      15125776 Apr 30 13:52 modem.b18
-rwxr-xr-x    1 root     root        663520 Apr 30 13:52 modem.b19
-rwxr-xr-x    1 root     root       6661216 Apr 30 13:52 modem.b20
-rwxr-xr-x    1 root     root       3089640 Apr 30 13:52 modem.b21
-rwxr-xr-x    1 root     root         75800 Apr 30 13:52 modem.b24
-rwxr-xr-x    1 root     root        504256 Apr 30 13:52 modem.b25
-rwxr-xr-x    1 root     root       7523872 Apr 30 13:52 modem.b26
-rwxr-xr-x    1 root     root        317560 Apr 30 13:52 modem.b27
-rwxr-xr-x    1 root     root          8348 Apr 30 13:52 modem.mdt
-rwxr-xr-x    1 root     root           180 Apr 30 13:52 playread.b00
-rwxr-xr-x    1 root     root          6568 Apr 30 13:52 playread.b01
-rwxr-xr-x    1 root     root        121664 Apr 30 13:52 playread.b02
-rwxr-xr-x    1 root     root           416 Apr 30 13:52 playread.b03
-rwxr-xr-x    1 root     root          6748 Apr 30 13:52 playread.mdt
-rwxr-xr-x    1 root     root           436 Apr 30 13:52 wcnss.b00
-rwxr-xr-x    1 root     root          6824 Apr 30 13:52 wcnss.b01
-rwxr-xr-x    1 root     root         13052 Apr 30 13:52 wcnss.b02
-rwxr-xr-x    1 root     root         61440 Apr 30 13:52 wcnss.b04
-rwxr-xr-x    1 root     root       3374964 Apr 30 13:52 wcnss.b06
-rwxr-xr-x    1 root     root            52 Apr 30 13:52 wcnss.b09
-rwxr-xr-x    1 root     root        655360 Apr 30 13:52 wcnss.b10
-rwxr-xr-x    1 root     root         39704 Apr 30 13:52 wcnss.b11
-rwxr-xr-x    1 root     root          7260 Apr 30 13:52 wcnss.mdt
-rwxr-xr-x    1 root     root           180 Apr 30 13:52 widevine.b00
-rwxr-xr-x    1 root     root          6568 Apr 30 13:52 widevine.b01
-rwxr-xr-x    1 root     root        134420 Apr 30 13:52 widevine.b02
-rwxr-xr-x    1 root     root           780 Apr 30 13:52 widevine.b03
-rwxr-xr-x    1 root     root          6748 Apr 30 13:52 widevine.mdt

### dir /usr/lib/firmware

$ ls -laR /usr/lib/firmware 2>&1 | head -80
ls: /usr/lib/firmware: No such file or directory

### dir /etc/firmware

$ ls -laR /etc/firmware 2>&1 | head -80
ls: /etc/firmware: No such file or directory

### dir /persist

$ ls -laR /persist 2>&1 | head -80
ls: /persist: No such file or directory

### dir /lib/firmware/qcom

$ ls -laR /lib/firmware/qcom 2>&1 | head -80
ls: /lib/firmware/qcom: No such file or directory

### find all firmware-like files

$ find / -xdev \( -path /proc -o -path /sys \) -prune -o -type f \( -iname '*wcnss*' -o -iname '*wlan*' -o -iname '*pronto*' -o -iname '*.mdt' -o -iname '*.mbn' -o -iname '*nv*.bin' -o -iname 'regulatory.db*' -o -iname '*bdwlan*' -o -iname '*cal*.bin' -o -iname 'WCNSS*' \) -print 2>/dev/null

### sha256 of firmware files

$ find /lib/firmware -type f -exec sha256sum {} + 2>/dev/null

### mounts / block (read-only info)

$ cat /proc/mounts
rootfs / rootfs rw,size=177688k,nr_inodes=44422 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
devtmpfs /dev devtmpfs rw,relatime,size=177688k,nr_inodes=44422,mode=755 0 0
configfs /sys/kernel/config configfs rw,relatime 0 0
/dev/mmcblk0p1 /firmware vfat ro,nosuid,nodev,noexec,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
devpts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0

$ ls -l /dev/disk/by-partlabel 2>&1 | grep -iE "modem|persist|fsg|modemst|system|cache"
lrwxrwxrwx    1 root     root            16 Oct  2 17:00 cache -> ../../mmcblk0p25
lrwxrwxrwx    1 root     root            16 Oct  2 17:00 fsg -> ../../mmcblk0p20
lrwxrwxrwx    1 root     root            15 Oct  2 17:00 modem -> ../../mmcblk0p1
lrwxrwxrwx    1 root     root            16 Oct  2 17:00 modemst1 -> ../../mmcblk0p13
lrwxrwxrwx    1 root     root            16 Oct  2 17:00 modemst2 -> ../../mmcblk0p14
lrwxrwxrwx    1 root     root            16 Oct  2 17:00 persist -> ../../mmcblk0p24
lrwxrwxrwx    1 root     root            16 Oct  2 17:00 system -> ../../mmcblk0p23
