[SOLVED] Kernel panic - LFS Not recognizing UAS device
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to make the linux kernel recognize my thermaltake BlaX duet USB 3.0 dock in which I have the drive LFS is installed on. Whenever I boot the kernel, my drive isn't recognized as it is in arch linux as shown in dmesg (full dmesg is http://sprunge.us/JEES).
Code:
[ 1.125149] usb 4-2: new SuperSpeed USB device number 2 using xhci_hcd
[ 1.152040] usbcore: registered new interface driver usb-storage
[ 1.156420] scsi host6: uas
[ 1.156583] usbcore: registered new interface driver uas
[ 1.157544] scsi 6:0:0:0: Direct-Access JMicron 9122 PQ: 0 ANSI: 6
[ 1.241110] sd 6:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[ 1.242094] sd 6:0:0:0: [sdb] Write Protect is off
[ 1.242094] sd 6:0:0:0: [sdb] Mode Sense: 67 00 10 08
[ 1.242452] sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 1.246992] sdb: sdb1 sdb2
[ 1.250650] sd 6:0:0:0: [sdb] Attached SCSI disk
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616
Rep:
Grab the config file (not the whole kernel source) from your Arch kernel, open it and trim out the Arch-specific fields at the top. Save that in a fresh decompress of the kernel for your LFS after you make-proper. Finally, run "make silentoldconfig && make menuconfig", that should leave you with the same driver setup as the Arch. I would change little in this first configuration, just adding what you specifically need. If the new kernel works, you've got yourself a baseline build.
Unfortunately the kernel still panics . Also, the resolution of the output is now smaller, so I'm seeing less lines. I'm not sure what switch arch put in to produce that, but now I'm attempting to turn that off to see more output.
Edit: I'm currently using integrated graphics from my i5-6500k through display port in order to see video. My config didn't initially have the configurations necessary to support video from my nvidia GTX 1080 even early on boot at this stage.
I installed initramfs, and now I'm getting something very interesting. Apparently the kernel is registering /dev/sdc2 after attempting to look for rootfs. Also, unable to make input into the shell.
Attempt number 2 gave me keyboard input, and when I typed exit, the boot process continued as normal
Systems on USB-connected drives sometimes require a delay before the root filesystem is sought. You can try adding rootdelay=5 to your linux command line in grub.cfg. Experiment with a longer or shorter delay.
Another thing systems on USB-connected drives may need is to identify the root filesystem by UUID or LABEL if you have an initial ram filesystem or maybe by PARTUUID with EFI. The standard device name syntax in grub.cfg may fail from the USB device being discovered in a different order than expected if multiple USB devices are present.
Systems on USB-connected drives sometimes require a delay before the root filesystem is sought. You can try adding rootdelay=5 to your linux command line in grub.cfg. Experiment with a longer or shorter delay.
Another thing systems on USB-connected drives may need is to identify the root filesystem by UUID or LABEL if you have an initial ram filesystem or maybe by PARTUUID with EFI. The standard device name syntax in grub.cfg may fail from the USB device being discovered in a different order than expected if multiple USB devices are present.
I will definitely give PARTUUID a try as well as rootdelay/rootwait. I think though that systemd-boot would also be a better choice of a boot loader to avoid GRUB all together. I will try this and update as soon as I can get my frame buffer working with my GPU.
EDIT: got framebuffer working, and rootdelay=10 worked. Thank you!
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616
Rep:
Quote:
Originally Posted by cellsheet
I will definitely give PARTUUID a try as well as rootdelay/rootwait. I think though that systemd-boot would also be a better choice of a boot loader to avoid GRUB all together. I will try this and update as soon as I can get my frame buffer working with my GPU.
That one is a pain (framebuffer), as there are competing graphics driver models in the kernel. The huge kernel configs from distributions can paint a confusing picture as one driver is loaded, then unloaded by another. My recommendation is to stay with either the classic FB and avoid DRI, or use DRI and not select any classic FB drivers, like vesafb, that are not DRI-aware. If you're trying to stay on the DRI side of things, avoid selecting or building a module for anything in:
Device Drivers ---> Graphics support ---> Frame buffer Devices
under the heading: *** Framebuffer Hardware Drivers ***
But you may still need a couple above that heading like like "support for framebuffer devices" in order to use DRI-aware fbs. My vmwgfxfb fb driver won't show up under DRM driver for VMware Virtual GPU in the root graphics driver menu until fb support is added in FB Devices menu.
All-in-all, its very confusing how they have it setup.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.