You are not logged in.
Hello
Today I wanted to build my own kernel for the first time, I read about it on kernelnewbies.org and thought why I shouldn't try it. But when I boot it fails. I didn't try grub booting / systemd because I am using EFISTUB.
My laptop: Asus E200HA intel atom cherrytrail 2gb RAM
What I did:
1. Download the kernel from kernel.org to /usr/src.
2.
sudo su
cd /usr/src
tar xvf linux-4.11.tar.xz
cd linux-4.113.
make mrproper
make defconfig4.
make -j4
make modules
make modules_install5.
cp /usr/src/linux-4.11/arch/x86_64/boot/bzImage /boot/vmlinuz-linux-4-116.
mkinitcpio -k /boot/vmlinuz-linux-4-11 -g /boot/initramfs-linux-4-11.img7.
# lsblk output:
# mmcblk0 179:0 0 29.1G 0 disk
# ├─mmcblk0p1 179:1 0 512M 0 part /boot
# ├─mmcblk0p2 179:2 0 3G 0 part [SWAP]
# └─mmcblk0p3 179:3 0 25.6G 0 part /
# mmcblk0boot0 179:8 0 4M 1 disk
# mmcblk0boot1 179:16 0 4M 1 disk
# mmcblk0rpmb 179:24 0 4M 0 disk
efibootmgr -d /dev/mmcblk0 -p 1 -c -L 'Arch Linux 4.11' -l /vmlinuz-4-11 -u 'root=/dev/mmcblk0p3 rw initrd=/intel-ucode.img initrd=/initramfs-linux-4-11.img'And then rebooted and selected the option "Arch Linux 4.11" in UEFI, but it failed. There was no output, just a black screen for a moment and then it booted to another boot entry.
Last edited by sevaho (2017-05-02 19:51:05)
Offline
In order to be sure can you launch an EFI shell and try to launch the kernel with the required parameters from it and see what happens. Directly launching the kernel from the firmware should work but some firmware may be capricious (like requiring a name that end with efi or who know what...).
Another possibility is that you didn't enable the good options in the compilation of the kernel. I don't know what is in the default configuration (defconfig) but probably some needed things are not enabled. The package linux-headers contains a extract-ikconfig (in /usr/lib/modules/4.10.13-1-ARCH/build/scripts/) that is able to show the configuration used from a compiled kernel image. In particular, you need CONFIG_EFI_STUB=y. In the case of doubt, the best is to download the PKGBUILD for the official ArchLinux kernel and take its configuration file. From that you can change the options you understand and leave all the others options as is.
I assume the modules are present in the right place (it should be /usr/lib/modules/4.11in your case).
Last edited by olive (2017-05-02 15:26:02)
Offline
Thanks a lot! CONFIG_EFI_STUB=y fixed it ![]()
Offline