All of lore.kernel.org
 help / color / mirror / Atom feed
* Unable to boot to kernel built from stable 5.11.y
@ 2021-03-30 13:16 Andrew Adamson
  2021-04-02 14:31 ` jim.cromie
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Adamson @ 2021-03-30 13:16 UTC (permalink / raw)
  To: kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 1020 bytes --]

Hi Everyone,

I tried to build the kernel myself for the first a few days ago. While the
build was successful, I am unable to boot to it. After grub I get a
blinking cursor for 15 to 30 minutes, and then a message that says "Please
reboot and select proper boot device."

Since ubuntu ships with a 5.4 kernel, I copied the config from /boot and
used make olddefconfig. I also checked the menu entries in grub and my
5.11.y entry looks identical to my 5.4.y entry.

This feels like a config issue with how ubuntu configures the boot process,
but I am not sure how to investigate. I checked the ubuntu wiki for advice
on kernel building, and noticed they recommend using make deb-pkg instead
of make all. I cannot get that make recipe to work, it throws errors from
dpkg-source that I'm not sure how to resolve
"""
dpkg-source: error: unrepresentable changes to source
dpkg-buildpackage: error: dpkg-source -i.git -b . subprocess returned exit
status 1
"""

Does anyone have any recommendations? Thanks in advance
-Andrew

[-- Attachment #1.2: Type: text/html, Size: 1244 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unable to boot to kernel built from stable 5.11.y
  2021-03-30 13:16 Unable to boot to kernel built from stable 5.11.y Andrew Adamson
@ 2021-04-02 14:31 ` jim.cromie
  2021-04-02 22:01   ` Andrew D Adamson
  0 siblings, 1 reply; 3+ messages in thread
From: jim.cromie @ 2021-04-02 14:31 UTC (permalink / raw)
  To: Andrew Adamson; +Cc: kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 2243 bytes --]

On Tue, Mar 30, 2021 at 7:16 AM Andrew Adamson <andrewdadamson@gmail.com>
wrote:

> Hi Everyone,
>
> I tried to build the kernel myself for the first a few days ago. While the
> build was successful, I am unable to boot to it. After grub I get a
> blinking cursor for 15 to 30 minutes, and then a message that says "Please
> reboot and select proper boot device."
>
>
I dont know your higher mission, but I'll suggest:

punt on grub install at least temporarily,
Try virtme.
its a super-easy way to run your built kernel on a VM
the VM is setup to use your existing installation
so theres no extra configuration to fuss with.

[jimc@frodo t2]$ virtme-
virtme-configkernel    virtme-mkinitramfs     virtme-prep-kdir-mods
 virtme-run


this is probably all you need to enable the right features in your built
kernel,
basically VIRTIO + NET

[jimc@frodo t2]$ virtme-configkernel --update
  GEN     Makefile
.config:3468:warning: override: reassigning to symbol UEVENT_HELPER
.config:3469:warning: override: reassigning to symbol VIRTIO
.config:3472:warning: override: reassigning to symbol NET
.config:3482:warning: override: reassigning to symbol BINFMT_SCRIPT
.config:3486:warning: override: reassigning to symbol MODULE_SIG_FORCE
.config:3487:warning: override: reassigning to symbol DEVTMPFS
.config:3488:warning: override: reassigning to symbol TTY
.config:3492:warning: override: reassigning to symbol INOTIFY_USER
.config:3495:warning: override: reassigning to symbol BLOCK
.config:3505:warning: override: reassigning to symbol WATCHDOG
.config:3506:warning: override: reassigning to symbol WATCHDOG_CORE
.config:3509:warning: override: reassigning to symbol SERIO
.config:3511:warning: override: reassigning to symbol INPUT
.config:3518:warning: override: reassigning to symbol FB
.config:3521:warning: override: reassigning to symbol RTC_CLASS
.config:3525:warning: override: reassigning to symbol PARAVIRT
#
# configuration written to .config
#
Configured.  Build with 'make ARCH=x86 -j8'
[jimc@frodo t2]$

there are options to let you mount directories, to keep your VMs work,
so this might satisfy your itch.

then, you can decide whether you need to mess with grub,
and if you do, youll have some own-kernel experience to help.



>

[-- Attachment #1.2: Type: text/html, Size: 3125 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unable to boot to kernel built from stable 5.11.y
  2021-04-02 14:31 ` jim.cromie
@ 2021-04-02 22:01   ` Andrew D Adamson
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew D Adamson @ 2021-04-02 22:01 UTC (permalink / raw)
  To: jim.cromie; +Cc: kernelnewbies

On Fri, 2 Apr 2021 08:31:43 -0600
jim.cromie@gmail.com wrote:

> On Tue, Mar 30, 2021 at 7:16 AM Andrew Adamson <andrewdadamson@gmail.com>
> wrote:
> 
> > Hi Everyone,
> >
> > I tried to build the kernel myself for the first a few days ago. While the
> > build was successful, I am unable to boot to it. After grub I get a
> > blinking cursor for 15 to 30 minutes, and then a message that says "Please
> > reboot and select proper boot device."
> >
> >
> I dont know your higher mission, but I'll suggest:
> 
> punt on grub install at least temporarily,
> Try virtme.
> its a super-easy way to run your built kernel on a VM
> the VM is setup to use your existing installation
> so theres no extra configuration to fuss with.
> 
> [jimc@frodo t2]$ virtme-
> virtme-configkernel    virtme-mkinitramfs     virtme-prep-kdir-mods
>  virtme-run
> 
> 
> this is probably all you need to enable the right features in your built
> kernel,
> basically VIRTIO + NET
> 
> [jimc@frodo t2]$ virtme-configkernel --update
>   GEN     Makefile
> .config:3468:warning: override: reassigning to symbol UEVENT_HELPER
> .config:3469:warning: override: reassigning to symbol VIRTIO
> .config:3472:warning: override: reassigning to symbol NET
> .config:3482:warning: override: reassigning to symbol BINFMT_SCRIPT
> .config:3486:warning: override: reassigning to symbol MODULE_SIG_FORCE
> .config:3487:warning: override: reassigning to symbol DEVTMPFS
> .config:3488:warning: override: reassigning to symbol TTY
> .config:3492:warning: override: reassigning to symbol INOTIFY_USER
> .config:3495:warning: override: reassigning to symbol BLOCK
> .config:3505:warning: override: reassigning to symbol WATCHDOG
> .config:3506:warning: override: reassigning to symbol WATCHDOG_CORE
> .config:3509:warning: override: reassigning to symbol SERIO
> .config:3511:warning: override: reassigning to symbol INPUT
> .config:3518:warning: override: reassigning to symbol FB
> .config:3521:warning: override: reassigning to symbol RTC_CLASS
> .config:3525:warning: override: reassigning to symbol PARAVIRT
> #
> # configuration written to .config
> #
> Configured.  Build with 'make ARCH=x86 -j8'
> [jimc@frodo t2]$
> 
> there are options to let you mount directories, to keep your VMs work,
> so this might satisfy your itch.
> 
> then, you can decide whether you need to mess with grub,
> and if you do, youll have some own-kernel experience to help.
> 
> 
> 
> >

Hi Jim - I did finally manange to build a kernel that would boot. I had to comment out the signature checking that was being turned on by copying in the boot configs from /boot . Now I am able to build and boot kernels successfully. 

Still, thanks for the recommendation. I haven't yet settled on how I want to test my builds, so I'll try it out when i have a chance.

-- 
Andrew D Adamson <andrewdadamson@gmail.com>

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-02 22:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-30 13:16 Unable to boot to kernel built from stable 5.11.y Andrew Adamson
2021-04-02 14:31 ` jim.cromie
2021-04-02 22:01   ` Andrew D Adamson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.