Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel: making uas module built-in #181

Open
vpelletier opened this issue Jul 13, 2018 · 2 comments
Open

Kernel: making uas module built-in #181

vpelletier opened this issue Jul 13, 2018 · 2 comments

Comments

@vpelletier
Copy link

Being tired of burning through micro µSD cards and wishing to keep my pi stand-alone, I purchased a UAS-enabled USB enclosure and a (cheap) SSD, and chain-boot on it (booloader & kernel are still on sdcard fat partition, with root=PARTUUID=<an ssd partition>). It boots fine, but kernel uses USB mass-storage module.

Mass storage does not give access to some features, like trim. UAS (USB-attached SCSI) protocol, on the other hand, does give access to trim, so I would like to be able to boot from it. Would it be possible to build kernel images with CONFIG_USB_UAS=Y ? (building as a module would be no good without and initrd)

@pelwell
Copy link
Collaborator

pelwell commented Jul 13, 2018

CONFIG_USB_UAS=m creates a not insignificant (but not heavyweight) 29KB module. I'm not keen to add ~29KB to everybody's kernel so you can trim your SSD using a stock RPi kernel. If you don't think the impact would be so great, build the kernel with and without this option and report the output of free in both.

@satmandu
Copy link

Changing one's setup to use an initramfs doesn't seem to be too hard: https://raspberrypi.stackexchange.com/a/103849

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants