I'm guessing that this is just me missing a needed dependency in my build, but I admit - having no luck finding it. I have tried to add the needed dependencies (per this info) => I do see the USB storage device in the kernel log, but it's not showing up in /dev/sd*, and I see scsi related errors (kernel log)? These are captured below - any thoughts? I did try adding in various kmod_fs drivers as well.
[ 4.423298] kmodloader: - scsi_mod - 0
[ 4.427163] kmodloader: dependency not loaded scsi_mod
[ 4.436002] kmodloader: dependency not loaded scsi_mod
[ 9.923157] scsi_mod: Unknown symbol scsi_req_init (err -2)
[ 9.928817] scsi_mod: Unknown symbol sg_scsi_ioctl (err -2)
[ 9.934434] scsi_mod: Unknown symbol scsi_sense_desc_find (err -2)
[ 9.940621] scsi_mod: Unknown symbol sg_free_table_chained (err -2)
[ 9.947122] scsi_mod: Unknown symbol scsi_command_size_tbl (err -2)
[ 9.953394] scsi_mod: Unknown symbol scsi_device_type (err -2)
[ 9.959308] scsi_mod: Unknown symbol scsilun_to_int (err -2)
[ 9.965051] scsi_mod: Unknown symbol scsi_normalize_sense (err -2)
[ 9.971238] scsi_mod: Unknown symbol sg_alloc_table_chained (err -2)
[ 9.997403] scsi_mod: Unknown symbol scsi_req_init (err -2)
[ 10.003147] scsi_mod: Unknown symbol sg_scsi_ioctl (err -2)
[ 10.008783] scsi_mod: Unknown symbol scsi_sense_desc_find (err -2)
[ 10.014970] scsi_mod: Unknown symbol sg_free_table_chained (err -2)
[ 10.021515] scsi_mod: Unknown symbol scsi_command_size_tbl (err -2)
[ 10.027791] scsi_mod: Unknown symbol scsi_device_type (err -2)
[ 10.033708] scsi_mod: Unknown symbol scsilun_to_int (err -2)
[ 10.039453] scsi_mod: Unknown symbol scsi_normalize_sense (err -2)
[ 10.045640] scsi_mod: Unknown symbol sg_alloc_table_chained (err -2)
And, from usbutils (lsusb), I see that Class and Driver are blank? BTW, the ID information is correct (Transcent JetFlash)!
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/1p, 5000M
ID 1d6b:0003
|__ Port 1: Dev 2, If 0, Class=, Driver=, 5000M
ID 8564:1000
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/2p, 480M
ID 1d6b:0002
No looks like something different. You can run 'strings' on the module(s) to see of they provide those symbols. I'm sure someone with a real background in this stuff will chime in
i assume manually insmodding the module in the ~/lib/modules/5.4.110/ also yielded a similar error?
i'm not sure if /root is writable in openwrt. nor am i certain if you are considering ~ and /root to be the same (which they may be in openwrt, again not sure).
the idea of copying the lib/modules folder to ~/lib is to have a writable directory, which then would allow the depmod -b command to create the module dependency files.
then we use modprobe on that temporary root (presumably ~, but i mean you could use your usb key path if it's more intuitive) with the -b flag, it would eliminate any symbol issues related to the module dependency files.
# insmod ~/lib/modules/5.4.110/scsi_mod.ko
failed to insert /root/lib/modules/5.4.110/scsi_mod.ko
Makes sense, and the directory is writeable - as the copy operation works. It's odd ... I just carefully looked at the path, and it's going to root ... not /lib/modules?!?! It's like that's missing somehow.
Appreciate the pointers! Was pulling my hair out, nothing seemed to be working (likely a lot on me ). So as a last resort I tried the TESTING kernel (5.10) => bingo, came straight up (USB and all)! Seems like something is now broken in the 5.4 kernel? Configuration related I'm thinking / guessing?