FS#41273 - [mkinitcpio] block-hook should include support for USB attached Scsi.

Attached to Project: Arch Linux
Opened by Florian Loitsch (priorit) - Saturday, 19 July 2014, 22:29 GMT
Last edited by Dave Reisner (falconindy) - Wednesday, 23 July 2014, 22:50 GMT
Task Type Feature Request
Category Arch Projects
Status Closed
Assigned To Thomas Bächler (brain0)
Dave Reisner (falconindy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
mkinitcpio should include uas (usb attached scsi) module in its block-hook (together with the other usb modules).
Without this module some newer usb devices are not recognized.

Additional info:
* package version(s)
mkinitcpio 17-1

* config and/or log files etc.


Steps to reproduce:
create mkinitcpio with block hook.

Fix should be as easy as adding the uas module in the block file (see patch below).
I'm not sure if there needs to be a check if the file exists or not.
Alternatively one could just switch to adding storage/u* instead of storage/ms-*.

--- block_old 2014-07-20 00:25:53.595724901 +0200
+++ block 2014-07-20 00:26:57.255380027 +0200
@@ -14,6 +14,7 @@
if add_checked_modules -f '(_cs|sl811_hcd|isp116x_hcd)' '/usb/host'; then
blockdevs+=(['usb_storage?']=1 ['sd_mod?']=1 ['sr_mod?']=1)
add_checked_modules 'drivers/usb/storage/ums-*'
+ add_checked_modules 'drivers/usb/storage/uas.ko.gz'
fi

# firewire
This task depends upon

Closed by  Dave Reisner (falconindy)
Wednesday, 23 July 2014, 22:50 GMT
Reason for closing:  Fixed
Additional comments about closing:  https://projects.archlinux.org/mkinitcpi o.git/commit/?id=a35c698c16759c3c05c692f d10f140d186053177
Comment by Florian Loitsch (priorit) - Sunday, 20 July 2014, 00:07 GMT
Probably needs more.
I now get:
ERROR: could not insert module /usr/lib/modules/3.15.5-2-ARCH/kernel/uas.ko: Unknown symbol in module.

The symbol seems to be:
usb_stor_adjust_quirks
Comment by Florian Loitsch (priorit) - Sunday, 20 July 2014, 00:09 GMT
Never mind my comment. That was just because I booted with the non-fallback grub-entry (and was thus missing a module for my second machine).
Comment by 0livier (g_d) - Wednesday, 23 July 2014, 11:57 GMT
mkinitcpio says error "+: command not found" in /usr/lib/initcpio/install/block at this line:
+ add_checked_modules 'drivers/usb/storage/uas.ko.gz'

Comment by Florian Loitsch (priorit) - Wednesday, 23 July 2014, 11:59 GMT
This is a diff-output.
The "+" represents a line that has been added.

You can either use "patch" to patch the file, or just remove the "+".
Comment by 0livier (g_d) - Wednesday, 23 July 2014, 12:01 GMT
Thanks, t'was fast! removed the '+' and it worked.
Thanks for finding and providing a fix for this bug.
I lost more than a full week chasing it, see https://bbs.archlinux.org/viewtopic.php?pid=1439053
Also many thanks to Strike0 for hinting me to this page.

Loading...