Discussion:
[lfs-support] LFS 7.10 systemd - boot OK on SSD thunderbolt but fail with USB3
DOMINIQUE VAYSSAIRAT
2018-07-04 17:52:48 UTC
Permalink
Hello Word,

Please, does someone have an idea for the problem below :

I built a lfs 7.10 / systemd machine on three stages :
1 - on a virtual machine under virtualbox
2 - many tries on a physical machine (which is a macbook pro) and using several different externals disks (SSD, SD cards) plugged on a USB ports
3 - finally i get success with a SSD plugged on a thunderbolt port

First and third tries are OK/
Second trie end with a kernel panic each time.
I think that the problem is about USB because on the screen of the kernel panic I see that the kernel do not found the / partition.
I tried with boot=/dev/sda4 , boot=UUID=xxx and finally boot=PARTUUID=xxx with the same result

The third trie start correctly, the external disk used has two ports : USB-3 and Thunderbolt and one can use it in others circumstances alternatively (either USB or Thunderbolt)
When i plug it with thunderbolt ==> OK
Without any change plugging it with USB ==> kernel panic
The only-one différence is the cable and connected port.

All the kernel is compiled without module option but only with =y

Regards, Dominique
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en
Ken Moffat
2018-07-04 23:50:56 UTC
Permalink
Post by DOMINIQUE VAYSSAIRAT
Hello Word,
1 - on a virtual machine under virtualbox
2 - many tries on a physical machine (which is a macbook pro) and using several different externals disks (SSD, SD cards) plugged on a USB ports
3 - finally i get success with a SSD plugged on a thunderbolt port
First and third tries are OK/
Second trie end with a kernel panic each time.
I think that the problem is about USB because on the screen of the kernel panic I see that the kernel do not found the / partition.
I tried with boot=/dev/sda4 , boot=UUID=xxx and finally boot=PARTUUID=xxx with the same result
The third trie start correctly, the external disk used has two ports : USB-3 and Thunderbolt and one can use it in others circumstances alternatively (either USB or Thunderbolt)
When i plug it with thunderbolt ==> OK
Without any change plugging it with USB ==> kernel panic
The only-one différence is the cable and connected port.
All the kernel is compiled without module option but only with =y
Regards, Dominique
A couple of thoughts:

1. Booting from external USB drives has often been a bit iffy, in
particular kernels have needed a delay before the drive would
appear. No idea if that applies to USB-3.

2. The USB-3 drivers are XHCI in kernel config - make sure you have
ALL the XHCI options enabled, at least until it works.

Also, of course, 7.10 is old and there have been a LOT of kernel
vulnerability fixes since then (or Meltdown on intel CPUs, gcc-8 is
required). So once you have managed to get it booting from external
USB-3 you should probably plan on building a new system.

ĸen
--
Keyboard not found, Press F1 to continue
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in
Ken Moffat
2018-07-05 00:17:56 UTC
Permalink
Post by DOMINIQUE VAYSSAIRAT
First and third tries are OK/
Second trie end with a kernel panic each time.
I think that the problem is about USB because on the screen of the kernel panic I see that the kernel do not found the / partition.
I tried with boot=/dev/sda4 , boot=UUID=xxx and finally boot=PARTUUID=xxx with the same result
Some further comments on that line: I assume boot= is a typo for
root= (pointing to where the rootfs for the selected kernel should
be found) ?

/dev/sda4 will normally be a partition on the (first) internal drive,
which I assume has some version of OSX.

Somebody, probably Michael, posted recently that the kernel
understands *one* sort of UUID specification (probably PARTUUID, but
I might be mistaken - check his recent posts in the list archive).

ĸen
--
Keyboard not found, Press F1 to continue
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/
Bruce Dubbs
2018-07-05 00:44:05 UTC
Permalink
Post by Ken Moffat
Post by DOMINIQUE VAYSSAIRAT
First and third tries are OK/
Second trie end with a kernel panic each time.
I think that the problem is about USB because on the screen of the kernel panic I see that the kernel do not found the / partition.
I tried with boot=/dev/sda4 , boot=UUID=xxx and finally boot=PARTUUID=xxx with the same result
Some further comments on that line: I assume boot= is a typo for
root= (pointing to where the rootfs for the selected kernel should
be found) ?
/dev/sda4 will normally be a partition on the (first) internal drive,
which I assume has some version of OSX.
Somebody, probably Michael, posted recently that the kernel
understands *one* sort of UUID specification (probably PARTUUID, but
I might be mistaken - check his recent posts in the list archive).
Yes, root=TARTUUID=1234...cdef should work, Also rootdelay=10 might
give time for usb device to be recognized.

-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wiki
DOMINIQUE VAYSSAIRAT
2018-07-05 10:08:35 UTC
Permalink
Yeah!, thanks a lot Bruce and Ken. The rootdelay=10 is the right solution, effectively usb is slower than thunderbolt at start.

init=PARTUUID is OK and init=/dev/sda4 so because kernel seem to give /dev/sdb as name and keep /dev/sda for internal disk. Later i’ll do a trie with UUID.

for the story, i turned around this problem during one month with severals externals disk always for the same result and a less than one minute it’s solved.

I am going now to next stage : BLFS on physical MAC (which is OK under virtualbox).

regards —Dominique
Post by Ken Moffat
Post by DOMINIQUE VAYSSAIRAT
First and third tries are OK/
Second trie end with a kernel panic each time.
I think that the problem is about USB because on the screen of the kernel panic I see that the kernel do not found the / partition.
I tried with boot=/dev/sda4 , boot=UUID=xxx and finally boot=PARTUUID=xxx with the same result
Some further comments on that line: I assume boot= is a typo for
root= (pointing to where the rootfs for the selected kernel should
be found) ?
/dev/sda4 will normally be a partition on the (first) internal drive,
which I assume has some version of OSX.
Somebody, probably Michael, posted recently that the kernel
understands *one* sort of UUID specification (probably PARTUUID, but
I might be mistaken - check his recent posts in the list archive).
Yes, root=TARTUUID=1234...cdef should work, Also rootdelay=10 might give time for usb device to be recognized.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikip
Loading...