You are not logged in.
Pages: 1
I cloned Linus's tree and compiled and installed the kernel using instructions at - Traditional_compilation
For the Make initial RAM disk step, I did -
mkinitcpio -k 4.8.0-rc1-ARCH -g /boot/initramfs-linux480rc1.imgContent of /etc/mkinitcpio.conf
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run. Advanced users may wish to specify all system modules
# in this array. For instance:
# MODULES="piix ide_disk reiserfs"
MODULES="ext4 fat"
# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image. This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=""
# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way. This is useful for config files.
FILES=""
# HOOKS
# This is the most important setting in this file. The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
## This setup specifies all modules in the MODULES setting above.
## No raid, lvm2, or encrypted root is needed.
# HOOKS="base"
#
## This setup will autodetect all modules for your system and should
## work as a sane default
# HOOKS="base udev autodetect block filesystems"
#
## This setup will generate a 'full' image which supports most systems.
## No autodetection is done.
# HOOKS="base udev block filesystems"
#
## This setup assembles a pata mdadm array with an encrypted root FS.
## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
# HOOKS="base udev block mdadm encrypt filesystems"
#
## This setup loads an lvm2 volume group on a usb device.
# HOOKS="base udev block lvm2 filesystems"
#
## NOTE: If you have /usr on a separate partition, you MUST include the
# usr, fsck and shutdown hooks.
HOOKS="base udev autodetect modconf block filesystems keyboard fsck"
# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"
# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""Output of parted -l -
Model: ATA HGST HTS541010A9 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 473MB 472MB ntfs Basic data partition hidden, diag
2 473MB 578MB 105MB fat32 EFI system partition boot, esp
3 578MB 595MB 16.8MB Microsoft reserved partition msftres
4 595MB 215GB 214GB ntfs Basic data partition msftdata
5 215GB 223GB 8590MB linux-swap(v1)
6 223GB 277GB 53.7GB ext4
7 277GB 612GB 335GB ext4
8 612GB 612GB 537MB fat32
9 612GB 666GB 53.7GB ext4
10 666GB 1000GB 334GB ext4Output of efibootmgr -v -
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0002,3002,0000,0001,2001,2002,2003
Boot0000* ubuntu HD(2,GPT,e84c0544-3a2f-45ae-ac52-ed9465162f50,0xe1800,0x32000)/File(\EFI\ubuntu\shimx64.efi)
Boot0001* Linux Boot Manager HD(2,GPT,e84c0544-3a2f-45ae-ac52-ed9465162f50,0xe1800,0x32000)/File(\EFI\systemd\systemd-bootx64.efi)
Boot0002* Windows Boot Manager HD(2,GPT,e84c0544-3a2f-45ae-ac52-ed9465162f50,0xe1800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...y................
Boot2001* USB Drive (UEFI) RC
Boot3000* Internal Hard Disk or Solid State Disk RC
Boot3002* Internal Hard Disk or Solid State Disk RCContent of /boot/efi/loader/entries/arch.conf -
title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options root=PARTUUID=fdbdb9b5-07e6-4014-86b6-186fad0eeb72 rwWhen I try to boot, it says -
Error loading \vmlinuz-linux: Not Found
Failed to execute Arch Linux (\vmlinuz-linux): Not FoundI even tried changing the arch.conf entry as - Modified arch.conf
Still I am unable to boot either the default kernel, or the compiled kernel from the systemd-boot menu.
I can boot to Arch using Grub which was installed along with Ubuntu.
Last edited by mbtamuli (2016-11-06 04:27:05)
Offline
You named the initrd initramfs-linux480rc1.img but your loader references the vanilla initrd. Same with the kernel name.
Offline
I tried it with the vanilla kernel name also.
Offline
As an aside, I recommend that you create a PKGBUILD for your custom kernel and build with makepkg... better for so many reasons.
Offline
As an aside, I recommend that you create a PKGBUILD for your custom kernel and build with makepkg... better for so many reasons.
I intend to. As this is my first time, I wanted to try it the manual and traditional way.
Offline
FYI - The AUR contains a linux-git package that should do just what you want. There is also one that doesn't pull from the git tree but does build the current tagged rc:
https://aur.archlinux.org/packages/linux-git
https://aur.archlinux.org/packages/linux-mainline
Offline
Can you help with the systemd-boot issue of not booting? The main issue in the original post.
Offline
What is the contents of the root directory of the ESP?
Offline
What is the contents of the root directory of the ESP?
The contents of /boot -
/boot
├── efi
│ ├── EFI
│ │ ├── Boot
│ │ │ └── bootx64.efi
│ │ ├── HP
│ │ │ ├── BIOS
│ │ │ ├── BIOSUpdate
│ │ │ ├── HP Support Framework
│ │ │ └── SystemDiags
│ │ ├── Microsoft
│ │ │ ├── Boot
│ │ │ └── Recovery
│ │ ├── refind
│ │ │ ├── drivers_x64
│ │ │ ├── icons
│ │ │ ├── icons-backup
│ │ │ ├── keys
│ │ │ ├── refind.conf
│ │ │ ├── refind.conf-sample
│ │ │ └── refind_x64.efi
│ │ ├── systemd
│ │ │ └── systemd-bootx64.efi
│ │ ├── tools
│ │ └── ubuntu
│ │ ├── fw
│ │ ├── fwupx64.efi
│ │ ├── grub.cfg
│ │ ├── grubx64.efi
│ │ ├── MokManager.efi
│ │ └── shimx64.efi
│ └── loader
│ ├── entries
│ │ ├── arch-bleeding.conf
│ │ └── arch.conf
│ └── loader.conf
├── initramfs-linux480rc1.img
├── initramfs-linux-fallback.img
├── initramfs-linux.img
├── intel-ucode.img
├── System.map-linux480rc1
├── vmlinuz-linux
└── vmlinuz-linux480rc1Last edited by mbtamuli (2016-10-30 04:09:19)
Offline
You can paste code/command output/file contents directly into your forum post with [code] tags,
like soIt's nicer for other users to see the content directly without having to click a link, and it ensures that the content will not disappear if a third-party site goes down.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
FYI - The AUR contains a linux-git package that should do just what you want. There is also one that doesn't pull from the git tree but does build the current tagged rc:
https://aur.archlinux.org/packages/linux-git
https://aur.archlinux.org/packages/linux-mainline
As I wasn't getting help on how to do it manually, I tried installing https://aur.archlinux.org/packages/linux-git. Again it gave this error. What can I do to not have dkms install the Virtualbox modules?
These are the error messages. I used yaourt.
:: Running post-transaction hooks...
(1/1) Install DKMS modules
==> dkms install -m vboxguest -v 5.1.8_OSE -k 4.9.0-rc2-g0c183d9
Error! Bad return status for module build on kernel: 4.9.0-rc2-g0c183d9 (x86_64)
Consult /var/lib/dkms/vboxguest/5.1.8_OSE/build/make.log for more information.
==> dkms install -m vboxhost -v 5.1.8_OSE -k 4.9.0-rc2-g0c183d9
Error! Bad return status for module build on kernel: 4.9.0-rc2-g0c183d9 (x86_64)
Consult /var/lib/dkms/vboxhost/5.1.8_OSE/build/make.log for more information.Content of /var/lib/dkms/vboxhost/5.1.8_OSE/build/make.log
DKMS make.log for vboxhost-5.1.8_OSE for kernel 4.9.0-rc2-g0c183d9 (x86_64)
Sun Nov 6 07:02:20 IST 2016
make: Entering directory '/usr/lib/modules/4.9.0-rc2-g0c183d9/build'
LD /var/lib/dkms/vboxhost/5.1.8_OSE/build/built-in.o
LD /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/built-in.o
CC [M] /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/linux/SUPDrv-linux.o
CC [M] /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/SUPDrv.o
CC [M] /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/SUPDrvGip.o
CC [M] /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/SUPDrvSem.o
CC [M] /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/SUPDrvTracer.o
CC [M] /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/SUPLibAll.o
CC [M] /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/alloc-r0drv.o
CC [M] /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/initterm-r0drv.o
CC [M] /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/memobj-r0drv.o
CC [M] /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/mpnotification-r0drv.o
CC [M] /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/powernotification-r0drv.o
CC [M] /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/assert-r0drv-linux.o
CC [M] /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o
CC [M] /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/initterm-r0drv-linux.o
CC [M] /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o
/var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjNativeLockUser’:
/var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1053:33: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion]
fWrite, /* force write access. */
^~~~~~
In file included from /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/the-linux-kernel.h:98:0,
from /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
./include/linux/mm.h:1278:6: note: expected ‘struct page **’ but argument is of type ‘int’
long get_user_pages(unsigned long start, unsigned long nr_pages,
^~~~~~~~~~~~~~
/var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1054:33: error: passing argument 5 of ‘get_user_pages’ from incompatible pointer type [-Werror=incompatible-pointer-types]
&pMemLnx->apPages[0], /* Page array. */
^
In file included from /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/the-linux-kernel.h:98:0,
from /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
./include/linux/mm.h:1278:6: note: expected ‘struct vm_area_struct **’ but argument is of type ‘struct page **’
long get_user_pages(unsigned long start, unsigned long nr_pages,
^~~~~~~~~~~~~~
/var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1050:18: error: too many arguments to function ‘get_user_pages’
rc = get_user_pages(R3Ptr, /* Where from. */
^~~~~~~~~~~~~~
In file included from /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/the-linux-kernel.h:98:0,
from /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
./include/linux/mm.h:1278:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^~~~~~~~~~~~~~
/var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1067:33: warning: passing argument 6 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion]
fWrite, /* force write access. */
^~~~~~
In file included from /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/the-linux-kernel.h:98:0,
from /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
./include/linux/mm.h:1274:6: note: expected ‘struct page **’ but argument is of type ‘int’
long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm,
^~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1068:33: error: passing argument 7 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
&pMemLnx->apPages[0], /* Page array. */
^
In file included from /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/the-linux-kernel.h:98:0,
from /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
./include/linux/mm.h:1274:6: note: expected ‘struct vm_area_struct **’ but argument is of type ‘struct page **’
long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm,
^~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1061:18: error: too many arguments to function ‘get_user_pages_remote’
rc = get_user_pages_remote(
^~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/the-linux-kernel.h:98:0,
from /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
./include/linux/mm.h:1274:6: note: declared here
long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm,
^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:291: /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o] Error 1
make[1]: *** [scripts/Makefile.build:475: /var/lib/dkms/vboxhost/5.1.8_OSE/build/vboxdrv] Error 2
make: *** [Makefile:1482: _module_/var/lib/dkms/vboxhost/5.1.8_OSE/build] Error 2
make: Leaving directory '/usr/lib/modules/4.9.0-rc2-g0c183d9/build'Offline
Bump.
Offline
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Pages: 1