Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #198171 > unrolled thread

Kernel compilation problem

Started byTaren <taren@earthlink.net>
First post2018-08-02 07:40 +0200
Last post2018-08-02 21:00 +0200
Articles 4 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  Kernel compilation problem Taren <taren@earthlink.net> - 2018-08-02 07:40 +0200
    Re: Kernel compilation problem Taren <taren@earthlink.net> - 2018-08-02 14:00 +0200
    Re: Kernel compilation problem David Wright <deblis@lionunicorn.co.uk> - 2018-08-02 18:40 +0200
      Re: Kernel compilation problem Taren <taren@earthlink.net> - 2018-08-02 21:00 +0200

#198171 — Kernel compilation problem

FromTaren <taren@earthlink.net>
Date2018-08-02 07:40 +0200
SubjectKernel compilation problem
Message-ID<wiev8-3dY-7@gated-at.bofh.it>
I'm running Stretch, with kernel 4.9.0.7, and am trying to compile a new 
kernel (preferably 4.17.11) into which I can boot.


The kernel builds successfully, but whenever I try booting into the new 
kernel, I end up in emergency mode, with the error


     Unit dev-disk-by\x2duuid-<uuid>.device has failed.

     The result is timeout.


This device is anmd device, with two mirrors (each 2.7T in size).  The 
submirrors are present when I boot into 4.9.0.7 (installed when the 
system was built).

However, they do not appear to be visible under any kernel which I build 
and try to boot into.


I've tried setting LBDAF in the kernel configuration, but that requires 
that a 32bit kernel be built (and x64 deselected), and I'm running on an 
AMD 8350 chip, which is x86_64.


Kernel 4.9.0.7 does not have LBDAF set (and x64 is set), yet it's able 
to see my 2.7T drives, and my raid device mounts with no problem.


Would someone point me in the correct direction for configuring a new 
kernel, so that my 2T+ drives are visible?


Thanks


Taren

[toc] | [next] | [standalone]


#198182

FromTaren <taren@earthlink.net>
Date2018-08-02 14:00 +0200
Message-ID<wikqS-6P6-3@gated-at.bofh.it>
In reply to#198171
Correction:


The kernel version I'm using (which sees my 2.7T drives) is 4.9.0-7-amd, 
not 4.9.0.7.

I can provide the .config file for 4.17.11, if needed.

On 08/01/2018 11:37 PM, Taren wrote:
> I'm running Stretch, with kernel 4.9.0.7, and am trying to compile a 
> new kernel (preferably 4.17.11) into which I can boot.
>
>
> The kernel builds successfully, but whenever I try booting into the 
> new kernel, I end up in emergency mode, with the error
>
>
>     Unit dev-disk-by\x2duuid-<uuid>.device has failed.
>
>     The result is timeout.
>
>
> This device is anmd device, with two mirrors (each 2.7T in size). The 
> submirrors are present when I boot into 4.9.0.7 (installed when the 
> system was built).
>
> However, they do not appear to be visible under any kernel which I 
> build and try to boot into.
>
>
> I've tried setting LBDAF in the kernel configuration, but that 
> requires that a 32bit kernel be built (and x64 deselected), and I'm 
> running on an AMD 8350 chip, which is x86_64.
>
>
> Kernel 4.9.0.7 does not have LBDAF set (and x64 is set), yet it's able 
> to see my 2.7T drives, and my raid device mounts with no problem.
>
>
> Would someone point me in the correct direction for configuring a new 
> kernel, so that my 2T+ drives are visible?
>
>
> Thanks
>
>
> Taren
>

[toc] | [prev] | [next] | [standalone]


#198195

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2018-08-02 18:40 +0200
Message-ID<wioNP-13P-1@gated-at.bofh.it>
In reply to#198171
On Wed 01 Aug 2018 at 23:37:33 (-0600), Taren wrote:
> I'm running Stretch, with kernel 4.9.0.7, and am trying to compile a
> new kernel (preferably 4.17.11) into which I can boot.
> The kernel builds successfully, but whenever I try booting into the
> new kernel, I end up in emergency mode, with the error
> 
>     Unit dev-disk-by\x2duuid-<uuid>.device has failed.
> 
>     The result is timeout.
> 
> This device is anmd device, with two mirrors (each 2.7T in size).
> The submirrors are present when I boot into 4.9.0.7 (installed when
> the system was built).
> However, they do not appear to be visible under any kernel which I
> build and try to boot into.
> 
> I've tried setting LBDAF in the kernel configuration, but that
> requires that a 32bit kernel be built (and x64 deselected), and I'm
> running on an AMD 8350 chip, which is x86_64.
> Kernel 4.9.0.7 does not have LBDAF set (and x64 is set), yet it's
> able to see my 2.7T drives, and my raid device mounts with no
> problem.

I think this is a red herring. 32bit kernels need LBDAF for large
disks because they have to be told to use 64bit addressing for
them. Obviously 64bit kernels don't need telling, so that option
is made unavailable.

> Would someone point me in the correct direction for configuring a
> new kernel, so that my 2T+ drives are visible?

In the absence of other replies, I can only suggest
(a) comparing /boot/config-4.9.0-7-amd64 with the one you've
    built to see whether something is missing,
(b) compare the output of lsinitramfs /boot/initrd.img-4.9.0-7-amd64
    with the one you've built to see likewise.
I'm assuming with (b) that the disks have to be found by using the
initramfs before the system can continue booting with the filesystem
contained on those disks.

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#198200

FromTaren <taren@earthlink.net>
Date2018-08-02 21:00 +0200
Message-ID<wiqZk-2hl-5@gated-at.bofh.it>
In reply to#198195
I did finally get the 4.17.11 kernel to compile so that my large drives 
are visible now, but I had to use a 'shotgun' approach in including as 
many SCSI/SATA/etc variables as possible.


I do intend on comparing the non-functioning config for 4.17.11 against 
both the functioning config, as well as against the config for 4.9.0-7-amd.


Thanks.


Taren


On 08/02/2018 10:30 AM, David Wright wrote:
> On Wed 01 Aug 2018 at 23:37:33 (-0600), Taren wrote:
>> I'm running Stretch, with kernel 4.9.0.7, and am trying to compile a
>> new kernel (preferably 4.17.11) into which I can boot.
>> The kernel builds successfully, but whenever I try booting into the
>> new kernel, I end up in emergency mode, with the error
>>
>>      Unit dev-disk-by\x2duuid-<uuid>.device has failed.
>>
>>      The result is timeout.
>>
>> This device is anmd device, with two mirrors (each 2.7T in size).
>> The submirrors are present when I boot into 4.9.0.7 (installed when
>> the system was built).
>> However, they do not appear to be visible under any kernel which I
>> build and try to boot into.
>>
>> I've tried setting LBDAF in the kernel configuration, but that
>> requires that a 32bit kernel be built (and x64 deselected), and I'm
>> running on an AMD 8350 chip, which is x86_64.
>> Kernel 4.9.0.7 does not have LBDAF set (and x64 is set), yet it's
>> able to see my 2.7T drives, and my raid device mounts with no
>> problem.
> I think this is a red herring. 32bit kernels need LBDAF for large
> disks because they have to be told to use 64bit addressing for
> them. Obviously 64bit kernels don't need telling, so that option
> is made unavailable.
>
>> Would someone point me in the correct direction for configuring a
>> new kernel, so that my 2T+ drives are visible?
> In the absence of other replies, I can only suggest
> (a) comparing /boot/config-4.9.0-7-amd64 with the one you've
>      built to see whether something is missing,
> (b) compare the output of lsinitramfs /boot/initrd.img-4.9.0-7-amd64
>      with the one you've built to see likewise.
> I'm assuming with (b) that the disks have to be found by using the
> initramfs before the system can continue booting with the filesystem
> contained on those disks.
>
> Cheers,
> David.
>
>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web