You are not logged in.

#26 2019-07-16 01:57:40

gudnait
Member
Registered: 2018-09-14
Posts: 45

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

Hi Loqs, Seth,

I'll describe when the issue emerged for me, using the package list in /var/cache/pacman/pkg. I listed all the linux-lts I have installed (as you know I have exactly the same headers) and the nvidia-lts, nvidia-settings, nvidia-utils. As I stated before, I am currently using:
warning: linux-lts: ignoring package upgrade (4.19.16-1 => 4.19.56-1)
warning: linux-lts-headers: ignoring package upgrade (4.19.16-1 => 4.19.56-1)
warning: nvidia-lts: ignoring package upgrade (1:415.27-1 => 1:430.26-3)
warning: nvidia-settings: ignoring package upgrade (415.27-1 => 430.14-1)
warning: nvidia-utils: ignoring package upgrade (415.27-1 => 430.26-1)

linux-4.19.12.arch1-1-x86_64.pkg.tar.xz
linux-4.20.10.arch1-1-x86_64.pkg.tar.xz
linux-4.20.12.arch1-1-x86_64.pkg.tar.xz
linux-4.20.13.arch1-1-x86_64.pkg.tar.xz
linux-4.20.1.arch1-1-x86_64.pkg.tar.xz
linux-4.20.3.arch1-1-x86_64.pkg.tar.xz
linux-4.20.5.arch1-1-x86_64.pkg.tar.xz
linux-4.20.6.arch1-1-x86_64.pkg.tar.xz
linux-4.20.7.arch1-1-x86_64.pkg.tar.xz
linux-4.20.8.arch1-1-x86_64.pkg.tar.xz
linux-4.20.arch1-1-x86_64.pkg.tar.xz
linux-5.0.1.arch1-1-x86_64.pkg.tar.xz
linux-5.0.2.arch1-1-x86_64.pkg.tar.xz
linux-5.0.3.arch1-1-x86_64.pkg.tar.xz
linux-5.0.4.arch1-1-x86_64.pkg.tar.xz
linux-5.0.5.arch1-1-x86_64.pkg.tar.xz
linux-5.0.6.arch1-1-x86_64.pkg.tar.xz
linux-5.0.7.arch1-1-x86_64.pkg.tar.xz
linux-5.0.8.arch1-1-x86_64.pkg.tar.xz
linux-5.0.9.arch1-1-x86_64.pkg.tar.xz
linux-5.0.arch1-1-x86_64.pkg.tar.xz
linux-5.1.11.arch1-1-x86_64.pkg.tar.xz
linux-5.1.14.arch1-1-x86_64.pkg.tar.xz
linux-5.1.15.arch1-1-x86_64.pkg.tar.xz
linux-5.1.16.arch1-1-x86_64.pkg.tar.xz
linux-5.1.5.arch1-2-x86_64.pkg.tar.xz
linux-5.1.6.arch1-1-x86_64.pkg.tar.xz
linux-5.1.7.arch1-1-x86_64.pkg.tar.xz
linux-5.1.8.arch1-1-x86_64.pkg.tar.xz
linux-5.1.9.arch1-1-x86_64.pkg.tar.xz
linux-5.2.arch2-1-x86_64.pkg.tar.xz
linux-lts-4.19.13-1-x86_64.pkg.tar.xz
linux-lts-4.19.14-1-x86_64.pkg.tar.xz
linux-lts-4.19.15-1-x86_64.pkg.tar.xz
linux-lts-4.19.16-1-x86_64.pkg.tar.xz
linux-lts-4.19.17-1-x86_64.pkg.tar.xz
linux-lts-4.19.18-1-x86_64.pkg.tar.xz
linux-lts-4.19.19-1-x86_64.pkg.tar.xz
linux-lts-4.19.20-1-x86_64.pkg.tar.xz
linux-lts-4.19.21-1-x86_64.pkg.tar.xz
linux-lts-4.19.23-1-x86_64.pkg.tar.xz
linux-lts-4.19.25-1-x86_64.pkg.tar.xz
linux-lts-4.19.26-1-x86_64.pkg.tar.xz
linux-lts-4.19.27-1-x86_64.pkg.tar.xz
linux-lts-4.19.28-1-x86_64.pkg.tar.xz
linux-lts-4.19.29-1-x86_64.pkg.tar.xz
linux-lts-4.19.30-1-x86_64.pkg.tar.xz
linux-lts-4.19.31-1-x86_64.pkg.tar.xz
linux-lts-4.19.32-1-x86_64.pkg.tar.xz
linux-lts-4.19.33-1-x86_64.pkg.tar.xz
linux-lts-4.19.34-1-x86_64.pkg.tar.xz
linux-lts-4.19.36-1-x86_64.pkg.tar.xz
linux-lts-4.19.52-1-x86_64.pkg.tar.xz
linux-zen-5.0.9.zen1-1-x86_64.pkg.tar.xz
linux-zen-5.1.11.zen1-1-x86_64.pkg.tar.xz
linux-zen-5.1.14.zen1-1-x86_64.pkg.tar.xz
linux-zen-5.1.14.zen1-2-x86_64.pkg.tar.xz
linux-zen-5.1.15.zen1-1-x86_64.pkg.tar.xz
linux-zen-5.1.16.zen1-1-x86_64.pkg.tar.xz
linux-zen-5.1.5.zen1-2-x86_64.pkg.tar.xz
linux-zen-5.1.6.zen1-1-x86_64.pkg.tar.xz
linux-zen-5.1.7.zen1-1-x86_64.pkg.tar.xz
linux-zen-5.1.8.zen1-1-x86_64.pkg.tar.xz
linux-zen-5.1.9.zen1-1-x86_64.pkg.tar.xz
linux-zen-5.2.zen1-1-x86_64.pkg.tar.xz
nvidia-lts-1:415.25-4-x86_64.pkg.tar.xz
nvidia-lts-1:415.25-5-x86_64.pkg.tar.xz
nvidia-lts-1:415.27-1-x86_64.pkg.tar.xz
nvidia-lts-1:415.27-2-x86_64.pkg.tar.xz
nvidia-lts-1:418.43-1-x86_64.pkg.tar.xz
nvidia-lts-1:418.43-2-x86_64.pkg.tar.xz
nvidia-lts-1:418.43-3-x86_64.pkg.tar.xz
nvidia-lts-1:418.56-1-x86_64.pkg.tar.xz
nvidia-lts-1:418.56-2-x86_64.pkg.tar.xz
nvidia-lts-1:430.26-2-x86_64.pkg.tar.xz
nvidia-settings-415.25-1-x86_64.pkg.tar.xz
nvidia-settings-415.27-1-x86_64.pkg.tar.xz
nvidia-settings-418.43-1-x86_64.pkg.tar.xz
nvidia-settings-418.56-1-x86_64.pkg.tar.xz
nvidia-settings-430.14-1-x86_64.pkg.tar.xz
nvidia-utils-415.25-1-x86_64.pkg.tar.xz
nvidia-utils-415.27-1-x86_64.pkg.tar.xz
nvidia-utils-418.43-2-x86_64.pkg.tar.xz
nvidia-utils-418.56-1-x86_64.pkg.tar.xz
nvidia-utils-430.26-1-x86_64.pkg.tar.xz

So, I was rolling just fine untill linux-lts-4.19.34-1, I missed one update because I was away and when I updated to linux-lts-4.19.36-1 it all broke, so I rolled back to linux-lts-4.19.34-1. I waited for some time thinking it would be a problem just for linux-lts-4.19.36-1 and tried again linux-lts-4.19.52-1 (and all nvidia dependencies) which was still not working, and I wrote for help.

This is the linux-lts story.

Zen, and normal were not working either when lts broke. I used to have just linux and linux-lts, I installed linux-zen later and never worked. I can't say exactly when normal linux broke. Linux and linux-zen are still rolling and getting the latest updates.

Last edited by gudnait (2019-07-16 01:58:45)

Offline

#27 2019-07-16 10:03:18

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

The following assumes the base-devel group and git are installed and I recomend enabling Makepkg#Parallel_compilation to reduce build times

$ git clone git://git.archlinux.org/svntogit/packages.git --single-branch --branch "packages/linux-lts"
$ cd packages/trunk
$ git checkout dbd09408cb8ed51f02cf08ebad32ec169889543c #4.19.34
$ cd ../..
$ cp -r packages/trunk linux-git
$ rm -rf packages
$ cd linux-git
$ mv linux-lts.install linux.install
$ mv linux-lts.preset linux.preset
# Edit replace the PKGBUILD with the one below
$ makepkg -rsi #update bootloader for new kernel if needed

$ cd linux-git/src/linux/
$ git bisect start
$ git bisect $result #substitue good or bad here.
$ cd ../..
# If 4.19.35 is bad then you need a good (4.19.34).  If 4.19.35 is good then you need a bad (4.19.36)
$ git checkout $tag # substitue 4.19.34 or 4.19.36 here.
$ makepkg -ersif

$ cd linux-git/src/linux/
$ git bisect $result #substitue good or bad here
$ cd ../..
$ makepkg -ersif #repeat these four lines and test the generated kernel until git has found the bad commit

PKGBUILD

# Maintainer: Boohbah <boohbah at gmail.com>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Thomas Baechler <thomas@archlinux.org>
# Contributor: Jonathan Chan <jyc@fastmail.fm>
# Contributor: misc <tastky@gmail.com>
# Contributor: NextHendrix <cjones12 at sheffield.ac.uk>

pkgbase=linux-git
_srcname=linux
pkgver=0
pkgrel=1
arch=('x86_64')
url="https://www.kernel.org/"
license=('GPL2')
makedepends=('kmod' 'inetutils' 'bc' 'libelf')
options=('!strip')
source=(#'git+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git#tag=xX.Y'
        'git+https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git#tag=v4.19.35'
  'config'   # the main kernel config file
  '60-linux.hook'  # pacman hook for depmod
  '90-linux.hook'  # pacman hook for initramfs regeneration
  'linux.preset'   # standard config files for mkinitcpio ramdisk
)

sha256sums=('SKIP'
            '2dbe737dd5d186ca0b3b1753ad3d7a4a722b3eb03ec224dc24b49dd491c18cf1'
            'ae2e95db94ef7176207c690224169594d49445e04249d2499e9d2fbc117a0b21'
            '75f99f5239e03238f88d1a834c50043ec32b1dc568f2cc291b07d04718483919'
            'ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65')

_kernelname=${pkgbase#linux}
: ${_kernelname:=-ARCH}

pkgver() {
  cd "${_srcname}"

  git describe --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g;s/\.rc/rc/'
}

prepare() {
  cd ${_srcname}

  cp -Tf ../config .config

  # set localversion to git commit
  sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
  sed -i "s|^.*CONFIG_LOCALVERSION_AUTO.*|CONFIG_LOCALVERSION_AUTO=y|" ./.config

  # don't run depmod on 'make install'. We'll do this ourselves in packaging
#  git tracks scripts/depmod.sh so do not change it when using the existing source dir for bisection
#  sed -i '2iexit 0' scripts/depmod.sh

  # get kernel version
  make prepare

  # load configuration
  # Configure the kernel. Replace the line below with one of your choice.
  #make menuconfig # CLI menu for configuration
  #make nconfig # new CLI menu for configuration
  #make xconfig # X-based configuration
  #make oldconfig # using old config from previous kernel version
  make olddefconfig # old config from previous kernel, defaults for new options
  # ... or manually edit .config
}

build() {
  cd ${_srcname}

  make bzImage modules
}

_package() {
  pkgdesc="The Linux kernel and modules (git version)"
  depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=0.7')
  optdepends=('crda: to set the correct wireless channels of your country')
  backup=("etc/mkinitcpio.d/${pkgbase}.preset")
  install=linux.install

  cd ${_srcname}

  # get kernel version
  _kernver="$(make kernelrelease)"
  _kernver=${_kernver%-dirty} #https://bbs.archlinux.org/viewtopic.php?id=236702
  _basekernel="$(make kernelversion)"
  _basekernel=${_basekernel%.*}

  mkdir -p "${pkgdir}"/{boot,usr/lib/modules}
  make INSTALL_MOD_PATH="${pkgdir}/usr" modules_install
  cp arch/x86/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgbase}"

  # make room for external modules
  local _extramodules="extramodules-${_basekernel}${_kernelname}"
  ln -s "../${_extramodules}" "${pkgdir}/usr/lib/modules/${_kernver}/extramodules"

  # add real version for building modules and running depmod from hook
  echo "${_kernver}" |
    install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modules/${_extramodules}/version"

  # remove build and source links
  rm "${pkgdir}"/usr/lib/modules/${_kernver}/{source,build}

  # now we call depmod...
  depmod -b "${pkgdir}/usr" -F System.map "${_kernver}"

  # add vmlinux
  install -Dt "${pkgdir}/usr/lib/modules/${_kernver}/build" -m644 vmlinux

  # sed expression for following substitutions
  local _subst="
    s|%PKGBASE%|${pkgbase}|g
    s|%KERNVER%|${_kernver}|g
    s|%EXTRAMODULES%|${_extramodules}|g
  "

  # hack to allow specifying an initially nonexisting install file
  sed "${_subst}" "${startdir}/${install}" > "${startdir}/${install}.pkg"
  true && install=${install}.pkg

  # install mkinitcpio preset file
  sed "${_subst}" ../linux.preset |
    install -Dm644 /dev/stdin "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"

  # install pacman hooks
  sed "${_subst}" ../60-linux.hook |
    install -Dm644 /dev/stdin "${pkgdir}/usr/share/libalpm/hooks/60-${pkgbase}.hook"
  sed "${_subst}" ../90-linux.hook |
    install -Dm644 /dev/stdin "${pkgdir}/usr/share/libalpm/hooks/90-${pkgbase}.hook"
}

_package-headers() {
  pkgdesc="Header files and scripts for building modules for Linux kernel (git version)"

  cd ${_srcname}
  local _builddir="${pkgdir}/usr/lib/modules/${_kernver}/build"

  install -Dt "${_builddir}" -m644 Makefile .config Module.symvers
  install -Dt "${_builddir}/kernel" -m644 kernel/Makefile

  mkdir "${_builddir}/.tmp_versions"

  cp -t "${_builddir}" -a include scripts

  install -Dt "${_builddir}/arch/x86" -m644 arch/x86/Makefile
  install -Dt "${_builddir}/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s

  cp -t "${_builddir}/arch/x86" -a arch/x86/include

  install -Dt "${_builddir}/drivers/md" -m644 drivers/md/*.h
  install -Dt "${_builddir}/net/mac80211" -m644 net/mac80211/*.h

  # http://bugs.archlinux.org/task/13146
  install -Dt "${_builddir}/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h

  # http://bugs.archlinux.org/task/20402
  install -Dt "${_builddir}/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h
  install -Dt "${_builddir}/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h
  install -Dt "${_builddir}/drivers/media/tuners" -m644 drivers/media/tuners/*.h

  # add xfs and shmem for aufs building
  mkdir -p "${_builddir}"/{fs/xfs,mm}

  # copy in Kconfig files
  find . -name Kconfig\* -exec install -Dm644 {} "${_builddir}/{}" \;

  # add objtool for external module building and enabled VALIDATION_STACK option
  install -Dt "${_builddir}/tools/objtool" tools/objtool/objtool

  # remove unneeded architectures
  local _arch
  for _arch in "${_builddir}"/arch/*/; do
    [[ ${_arch} == */x86/ ]] && continue
    rm -r "${_arch}"
  done

  # remove files already in linux-docs package
  rm -r "${_builddir}/Documentation"

  # remove now broken symlinks
  find -L "${_builddir}" -type l -printf 'Removing %P\n' -delete

  # Fix permissions
  chmod -R u=rwX,go=rX "${_builddir}"

  # strip scripts directory
  local _binary _strip
  while read -rd '' _binary; do
    case "$(file -bi "${_binary}")" in
      *application/x-sharedlib*)  _strip="${STRIP_SHARED}"   ;; # Libraries (.so)
      *application/x-archive*)    _strip="${STRIP_STATIC}"   ;; # Libraries (.a)
      *application/x-executable*) _strip="${STRIP_BINARIES}" ;; # Binaries
      *) continue ;;
    esac
    /usr/bin/strip ${_strip} "${_binary}"
  done < <(find "${_builddir}/scripts" -type f -perm -u+w -print0 2>/dev/null)
}

_package-docs() {
  pkgdesc="Kernel hackers manual - HTML documentation that comes with the Linux kernel (git version)"

  cd ${_srcname}
  local _builddir="${pkgdir}/usr/lib/modules/${_kernver}/build"

  mkdir -p "${_builddir}"
  cp -t "${_builddir}" -a Documentation

  # Fix permissions
  chmod -R u=rwX,go=rX "${_builddir}"
}

pkgname=("${pkgbase}" "${pkgbase}-headers" "${pkgbase}-docs")
for _p in ${pkgname[@]}; do
  eval "package_${_p}() {
    $(declare -f "_package${_p#${pkgbase}}")
    _package${_p#${pkgbase}}
  }"
done

# vim:set ts=8 sts=2 sw=2 et:

Last edited by loqs (2019-07-23 09:55:34)

Offline

#28 2019-07-18 02:55:33

gudnait
Member
Registered: 2018-09-14
Posts: 45

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

Hi Loqs,
I will try what, I asume it is to compare the working and not working kernels... Please, give me a couple days to calmly read and try to understand what I will be doing. It is all new for me so please be patient, I'll have questions and will need your guidance too.
To the task smile
G.

Offline

#29 2019-07-23 03:01:15

gudnait
Member
Registered: 2018-09-14
Posts: 45

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

Hello, I started with the procedure (it's been some crazy days, I will have the time to work on this now smile)

so, it all went good with the first line

$ git clone git://git.archlinux.org/svntogit/packages.git --single-branch --branch "packages/linux"
Cloning into 'packages'...
remote: Enumerating objects: 7500, done.
remote: Counting objects: 100% (7500/7500), done.
remote: Compressing objects: 100% (4889/4889), done.
remote: Total 7500 (delta 3201), reused 6623 (delta 2590)
Receiving objects: 100% (7500/7500), 2.04 MiB | 586.00 KiB/s, done.
Resolving deltas: 100% (3201/3201), done.

Then moved with no problem to the directory: ($ cd packages/trunk)

but got this:

$ git checkout dbd09408cb8ed51f02cf08ebad32ec169889543c #4.19.34
fatal: reference is not a tree: dbd09408cb8ed51f02cf08ebad32ec169889543c

How should I continue? is it an error in the line?

Offline

#30 2019-07-23 09:55:15

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

My mistake the command should have been

$ git clone git://git.archlinux.org/svntogit/packages.git --single-branch --branch "packages/linux-lts"

Offline

#31 2019-07-23 23:08:05

gudnait
Member
Registered: 2018-09-14
Posts: 45

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

Hi,

Indeed that was the problem:

$ git clone git://git.archlinux.org/svntogit/packages.git --single-branch --branch "packages/linux-lts"
Cloning into 'packages'...
remote: Enumerating objects: 4592, done.
remote: Counting objects: 100% (4592/4592), done.
remote: Compressing objects: 100% (3059/3059), done.
remote: Total 4592 (delta 1941), reused 3940 (delta 1403)
Receiving objects: 100% (4592/4592), 867.13 KiB | 958.00 KiB/s, done.
Resolving deltas: 100% (1941/1941), done.


$ cd packages/trunk


$ git checkout dbd09408cb8ed51f02cf08ebad32ec169889543c #4.19.34
Note: checking out 'dbd09408cb8ed51f02cf08ebad32ec169889543c'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at dbd0940 upgpkg: linux-lts 4.19.34-1


$ cd ../..
$ cp -r packages/trunk linux-git
$ rm -rf packages
$ cd linux-git
$ mv linux-lts.install linux.install
$ mv linux-lts.preset linux.preset

This went just fine, copied the files to linux git, eliminated packages file changed the files names and replaced the PKKBUILD with the one you provided using KATE to modify it.

and got this:

$ makepkg -rsi 
==> ERROR: PKGBUILD contains CRLF characters and cannot be sourced.

so I used NANO that prompted me to eliminate "Not printable characters", so I did and was able to makepkg. It was a long process, it showed a lot of steps. while it was doing it, I read  this warning

net/batman-adv/.tmp_bat_algo.o: warning: objtool: batadv_param_set_ra()+0x2d: sibling call from callable instruction with modified stack frame

At a lot of lines

Then, after a while I got this:

Packages (3) linux-git-4.19.35.r0.g4b0e041c9dad-1  linux-git-docs-4.19.35.r0.g4b0e041c9dad-1
             linux-git-headers-4.19.35.r0.g4b0e041c9dad-1

Total Installed Size:  216.27 MiB

:: Proceed with installation? [Y/n] 
(3/3) checking keys in keyring                              [################################] 100%
(3/3) checking package integrity                            [################################] 100%
(3/3) loading package files                                 [################################] 100%
(3/3) checking for file conflicts                           [################################] 100%
(3/3) checking available disk space                         [################################] 100%
:: Processing package changes...
(1/3) installing linux-git                                  [################################] 100%
Optional dependencies for linux-git
    crda: to set the correct wireless channels of your country
(2/3) installing linux-git-headers                          [################################] 100%
(3/3) installing linux-git-docs                             [################################] 100%
:: Running post-transaction hooks...
(1/4) Updating linux-git module dependencies...
(2/4) Install DKMS modules
==> dkms install vboxhost/6.0.10_OSE -k 4.19.35-git
(3/4) Updating linux-git initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-git.preset: 'default'
  -> -k /boot/vmlinuz-linux-git -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-git.img
==> Starting build: 4.19.35-git
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-git.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-git.preset: 'fallback'
  -> -k /boot/vmlinuz-linux-git -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-git-fallback.img -S autodetect
==> Starting build: 4.19.35-git
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-git-fallback.img
==> Image generation successful
(4/4) Arming ConditionNeedsUpdate...

I did the next steps:

$ cd linux-git/src/linux/
$ git bisect start
Already on 'makepkg'

and here I am lost, I tried:

$ git bisect 4.19.35
usage: git bisect [help|start|bad|good|new|old|terms|skip|next|reset|visualize|view|replay|log|run]
[gudnait@tkhPC linux]$ git bisect $result
usage: git bisect [help|start|bad|good|new|old|terms|skip|next|reset|visualize|view|replay|log|run]

Can you please explain a bit further please?

What I understand is that we installed a new kernel (linux-git) that we will test. The one installed is the (linux-git-4.19.35.r0.g4b0e041c9dad-1). So I should try to use it? I don't understan how to use "git bisect $result) which result? how do I know if it is bad or good?

Offline

#32 2019-07-23 23:12:20

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

Yes you test linux-git-4.19.35.r0.g4b0e041c9dad-1.
If it is good then you would enter `git bisect good` if it is bad `git bisect bad`
Edit:
For good

cd linux-git/src
git bisect start
git bisect good
git checkout v4.19.36
cd ../..
maekpkg -ersif

For bad

cd linux-git/src
git bisect start
git bisect bad
git checkout v4.19.34
cd ../..
maekpkg -ersif

Edit:
then you repeat

$ cd linux-git/src/linux/
$ git bisect $result #substitue good or bad here
$ cd ../..
$ makepkg -ersif #repeat these four lines and test the generated kernel until git has found the bad commit

Last edited by loqs (2019-07-23 23:16:31)

Offline

#33 2019-07-25 13:21:58

gudnait
Member
Registered: 2018-09-14
Posts: 45

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

Thanks,
These last days I have been compiling and compiling.
Started with
V4.19.35 bad
V4.19.34 bad
V4.19.33 bad
working on V4.19.32
(it takes forever! yikes )

it is funny that V4.19.34 used to work, is it possible that the older nvidia driver have something to do with it?  anyway, I will continue the task untill I find the first GOOD one..

Offline

#34 2019-08-02 04:17:06

gudnait
Member
Registered: 2018-09-14
Posts: 45

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

Hi Guys,
It took me some time but here I am with some news:

I repeated:

cd linux-git/src/linux
git bisect start
git bisect bad #indeed none of the kernels tested worked, they are all freezing in "Loading initial Ramdisk..."
git checkout v4.19.XX
cd ../..
makepkg -ersif

for kernels versions:
V4.19.35 bad
V4.19.34 bad
V4.19.33 bad
V4.19.32 bad
V4.19.31 bad
V4.19.30 bad
V4.19.29 bad
V4.19.28 bad
V4.19.27 bad
V4.19.26 bad
V4.19.25 bad
V4.19.24 bad
V4.19.23 bad
V4.19.22 bad
V4.19.21 bad
V4.19.20 bad
V4.19.19 bad
V4.19.18 bad
V4.19.17 bad
V4.19.16 bad

So as I was testing the LTS kernels, I am really confused because I have the V4.19.16 running just fine!!

$ uname -r
4.19.16-1-lts

I am thinking that the problem is not the kernel but the bootloader. Somehow It doesn't want to load other options... Any ideas?

Last edited by gudnait (2019-08-02 04:18:37)

Offline

#35 2019-08-02 09:48:16

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

The following should test if some change in the PKGBUILD I provided is causing every built kernel to be bad

git clone git://git.archlinux.org/svntogit/packages.git --single-branch --branch "packages/linux-lts"
cd packages/trunk/
git checkout b7be169222e028fac9c1f0736aeb53d3ee2acd22 #linux-lts 4.19.16-1

Comment out line 3 and uncomment line 4

ln -s ../../linux-git/linux linux #link to the linux git tree from linux-git to save cloning it again
makepkg -rsi #test 4.19.16 PKGBUILD with only name change

Offline

#36 2019-08-02 18:07:11

gudnait
Member
Registered: 2018-09-14
Posts: 45

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

Hi Loqs,

I tried what you proposed:

$ git clone git://git.archlinux.org/svntogit/packages.git --single-branch --branch "packages/linux-lts"
Cloning into 'packages'...
remote: Enumerating objects: 4602, done.
remote: Counting objects: 100% (4602/4602), done.
remote: Compressing objects: 100% (3068/3068), done.
remote: Total 4602 (delta 1945), reused 3940 (delta 1403)
Receiving objects: 100% (4602/4602), 871.75 KiB | 815.00 KiB/s, done.
Resolving deltas: 100% (1945/1945), done.


$ cd packages/trunk/


$ git checkout b7be169222e028fac9c1f0736aeb53d3ee2acd22 #linux-lts 4.19.16-1
Note: checking out 'b7be169222e028fac9c1f0736aeb53d3ee2acd22'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at b7be169 upgpkg: linux-lts 4.19.16-1


$ ln -s ../../linux-git/linux linux

No problem with this, then I entered the PKGBUILD in ~/packages/trunk and commented the 3rd line and uncommented the 4rth (to change names...)

and ran:

$ makepkg -rsi
==> Making package: linux-lts-custom 4.19.16-1 (Fri Aug  2 13:37:27 2019)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
[sudo] password for gudnait: 
resolving dependencies...
looking for conflicting packages...

Packages (1) xmlto-0.0.28-3

Total Download Size:   0.02 MiB
Total Installed Size:  0.08 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 xmlto-0.0.28-3-x86_64              25.0 KiB   114K/s 00:00 [################################] 100%
(1/1) checking keys in keyring                              [################################] 100%
(1/1) checking package integrity                            [################################] 100%
(1/1) loading package files                                 [################################] 100%
(1/1) checking for file conflicts                           [################################] 100%
(1/1) checking available disk space                         [################################] 100%
:: Processing package changes...
(1/1) installing xmlto                                      [################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Retrieving sources...
  -> Downloading linux-4.19.tar.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   162  100   162    0     0    188      0 --:--:-- --:--:-- --:--:--   188
100 98.3M  100 98.3M    0     0   700k      0  0:02:23  0:02:23 --:--:-- 1227k
  -> Downloading linux-4.19.tar.sign...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   162  100   162    0     0    253      0 --:--:-- --:--:-- --:--:--   253
100   985  100   985    0     0    834      0  0:00:01  0:00:01 --:--:--  1851
  -> Downloading patch-4.19.16.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   162  100   162    0     0    245      0 --:--:-- --:--:-- --:--:--   245
100  496k  100  496k    0     0   187k      0  0:00:02  0:00:02 --:--:--  405k
  -> Found config
  -> Found 60-linux.hook
  -> Found 90-linux.hook
  -> Found linux-lts.preset
  -> Found 0001-add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by.patch
==> Validating source files with sha256sums...
    linux-4.19.tar.xz ... Passed
    linux-4.19.tar.sign ... Skipped
    patch-4.19.16.xz ... Passed
    config ... Passed
    60-linux.hook ... Passed
    90-linux.hook ... Passed
    linux-lts.preset ... Passed
    0001-add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by.patch ... Passed
==> Verifying source file signatures with gpg...
    linux-4.19.tar ... FAILED (unknown public key 38DBBDC86092693E)
==> ERROR: One or more PGP signatures could not be verified!
==> Removing installed dependencies...
checking dependencies...

Packages (1) xmlto-0.0.28-3

Total Removed Size:  0.08 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
(1/1) removing xmlto                                        [################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

$

So there is a problem with the signatures, couldn't finish the install...

==> Verifying source file signatures with gpg...
    linux-4.19.tar ... FAILED (unknown public key 38DBBDC86092693E)
==> ERROR: One or more PGP signatures could not be verified!

Digging a bit into this (it is totally new territory, I am feeling like treating symptoms instead of the disease) I found this:

 
gpg --recv-keys 38DBBDC86092693E
makepkg -sci

As a solution in https://bbs.archlinux.org/viewtopic.php?id=191954

And found this aswell: https://superuser.com/questions/1210758 … arch-linux
But I am very unsure what exactly I should do or what the error really means.

Offline

#37 2019-08-02 18:12:29

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

Did the gpg command result in an output like below?

gpg --recv-keys 38DBBDC86092693E
gpg: key 38DBBDC86092693E: 174 signatures not checked due to missing keys
gpg: key 38DBBDC86092693E: public key "Greg Kroah-Hartman <gregkh@linuxfoundation.org>" imported
gpg: key 4E2C6E8793298290: no user ID for key signature packet of class 10
gpg: key 4E2C6E8793298290: no user ID for key signature packet of class 12
gpg: key 4E2C6E8793298290: no user ID for key signature packet of class 12
gpg: key 38DBBDC86092693E: no user ID for key signature packet of class 11
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1

If so then the key was imported successfully  and makepkg should verify the tar ball successfully and continue the build.

Offline

#38 2019-08-02 19:28:09

gudnait
Member
Registered: 2018-09-14
Posts: 45

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

I did it now, It was a smaller output than the one you posted, but now it is building the kernel. Thanks smile
I'll tell you the result

Offline

#39 2019-08-03 01:34:14

gudnait
Member
Registered: 2018-09-14
Posts: 45

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

Hi Loqs,
In the end the custom LTS kernel was built with no errors, installed and tested.
It still freezes on "Loading initial Ramdisk..."
This suggests that the PKGBUILD you provided was just fine.
What a puzzle! any ideas?

Offline

#40 2019-08-03 11:27:37

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

I would suggest installing the devtools package then try building linux-lts-custom again with the command extra-x86_64-build followed by pacman -U to install it.
This builds the package in a clean chroot if this fails then the cause will likely be an update in the toolchain.

Offline

#41 2019-08-04 05:50:35

gudnait
Member
Registered: 2018-09-14
Posts: 45

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

Hi Loqs,
Ok, I tried what you suggested.
I installed devtools

$ sudo pacman -S devtools

then:

$ cd package/trunk/

$ extra-x86_64-build

$ sudo pacman -U linux-lts-custom-4.19.16-1-x86_64.pkg.tar.xz linux-lts-custom-headers-4.19.16-1-x86_64.pkg.tar.xz linux-lts-custom-docs-4.19.16-1-x86_64.pkg.tar.xz

$ sudo grub-mkconfig -o /boot/grub/grub.cfg

Then rebooted and tested linux-lts-custom and did not work. this confirms that the problem is in the bootloader or bootchain... can you help me check into that?

Offline

#42 2019-08-04 10:38:56

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

One last check to see if it was an update in the tool chain that caused the issue.  Using the ALA the clean chroot can be created using packages from a previous date.
Add as the first mirror in /etc/pacman.d/mirrorlist (the data obtained from [1])

Server=https://archive.archlinux.org/repos/2019/01/17/$repo/os/$arch

Remove the old archbuild so a new one will be generated.

#rm -rf /var/lib/archbuild

Then try extra-x86_64-build again after building the package remember to disable/remove the line in /etc/pacman.d/mirrorlist that was just added.

[1] https://git.archlinux.org/svntogit/pack … d3ee2acd22

Last edited by loqs (2019-08-04 11:08:39)

Offline

#43 2019-08-11 23:00:33

gudnait
Member
Registered: 2018-09-14
Posts: 45

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

Hi Loqs,

Sorry it's been a week, I was away because of work...

So, what I did was to backup and modify the /etc/pacman.d/mirrorlist which is now:

##
## Arch Linux repository mirrorlist
## Filtered by mirror score from mirror status page
## Generated on 2018-12-01
##
Server=https://archive.archlinux.org/repos/2019/01/17/$repo/os/$arch

Then I removed the old archbuild with the command you provided.

I am not really sure the steps after.

should I immediately do "# pacman -Syyuu"?

In my pacman.conf i have expluded several packages related to the working LTS kernel and nvidia drivers, should I keep those exclusions? before downgrading the whole system?

I don't understand what to do with the [1] URL:

Should I download the PKGBUILD and config from [1] URL? place it in the ~/packages/trunk and build it and install it with pacman -U?
I don't really understand what you mean with: "add as the first mirror ... (the data obtained from [1])"

(Please be patient, I am still learning and this is pretty advanced stuff for me smile )

Offline

#44 2019-08-11 23:11:21

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

I was referencing [1] for the date to use for the ALA.
You do not need to perform pacman -Syyuu the clean chroot has its own pacman databases.

cd package/trunk/
extra-x86_64-build
sudo pacman -U linux-lts-custom-4.19.16-1-x86_64.pkg.tar.xz linux-lts-custom-headers-4.19.16-1-x86_64.pkg.tar.xz linux-lts-custom-docs-4.19.16-1-x86_64.pkg.tar.xz

Then you can take the entry back out of the mirrorlist then and perform updates as normal.

Offline

#45 2019-08-12 00:38:02

gudnait
Member
Registered: 2018-09-14
Posts: 45

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

Hi Loqs,

Oh! I completely missed the chroot step!!

So if I understand I need to:

1. Create an Arch Live USB
2. Access the USB-drive Arch
3. change the mirrorlist
4. remove the archbuild
5. Mount my drives, first root, then boot and home partitions
6. arch-chroot to my partitions
7. Then:

cd package/trunk/
extra-x86_64-build
sudo pacman -U linux-lts-custom-4.19.16-1-x86_64.pkg.tar.xz linux-lts-custom-headers-4.19.16-1-x86_64.pkg.tar.xz linux-lts-custom-docs-4.19.16-1-x86_64.pkg.tar.xz

8. Put the mirrorlist back to how it was
9. Test the new linux-lts-custom installed in my partitions...

Does that seem correct?

Offline

#46 2019-08-12 01:17:38

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

It is simpler than that you just need steps 3,4,7,8 and 9.

Offline

#47 2019-08-12 12:58:05

gudnait
Member
Registered: 2018-09-14
Posts: 45

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

Thanks Loqs,

Well, it didn't work either. Same freeze, same place.
So, shall we test the bootchain? bootloader...

Offline

#48 2019-08-12 23:59:05

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

It has been years since I used grub so I may not be of much help.
If you post the contents of /boot/grub/grub.cfg hopefully someone might spot something.

Offline

#49 2019-08-13 18:03:51

gudnait
Member
Registered: 2018-09-14
Posts: 45

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

Hi Loqs,

First I will re-post my /boot/grub/grub.cfg

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root  6dea97b5-7010-4764-9166-2f9237511873
else
  search --no-floppy --fs-uuid --set=root 6dea97b5-7010-4764-9166-2f9237511873
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/01_grub-customizer_menu_color_helper ###
### END /etc/grub.d/01_grub-customizer_menu_color_helper ###

### BEGIN /etc/grub.d/10_linux_proxy ###




### END /etc/grub.d/10_linux_proxy ###

### BEGIN /etc/grub.d/40_custom_proxy ###
menuentry "Arch Linux" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6dea97b5-7010-4764-9166-2f9237511873' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  AEE3-031B
		else
		  search --no-floppy --fs-uuid --set=root AEE3-031B
		fi
		echo	'Loading Linux linux-lts ...'
		linux	/vmlinuz-linux-lts root=UUID=6dea97b5-7010-4764-9166-2f9237511873 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux-lts.img
}
### END /etc/grub.d/40_custom_proxy ###

### BEGIN /etc/grub.d/44_linux_proxy ###
submenu "Advanced options for Arch Linux"{
menuentry "Arch Linux, with Linux linux-lts" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-advanced-6dea97b5-7010-4764-9166-2f9237511873' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  AEE3-031B
		else
		  search --no-floppy --fs-uuid --set=root AEE3-031B
		fi
		echo	'Loading Linux linux-lts ...'
		linux	/vmlinuz-linux-lts root=UUID=6dea97b5-7010-4764-9166-2f9237511873 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux-lts.img
}
menuentry "Arch Linux, with Linux linux-lts (fallback initramfs)" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-fallback-6dea97b5-7010-4764-9166-2f9237511873' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  AEE3-031B
		else
		  search --no-floppy --fs-uuid --set=root AEE3-031B
		fi
		echo	'Loading Linux linux-lts ...'
		linux	/vmlinuz-linux-lts root=UUID=6dea97b5-7010-4764-9166-2f9237511873 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initramfs-linux-lts-fallback.img
}
menuentry "Arch Linux, with Linux linux-zen" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-zen-advanced-6dea97b5-7010-4764-9166-2f9237511873' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  AEE3-031B
		else
		  search --no-floppy --fs-uuid --set=root AEE3-031B
		fi
		echo	'Loading Linux linux-zen ...'
		linux	/vmlinuz-linux-zen root=UUID=6dea97b5-7010-4764-9166-2f9237511873 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux-zen.img
}
menuentry "Arch Linux, with Linux linux-zen (fallback initramfs)" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-zen-fallback-6dea97b5-7010-4764-9166-2f9237511873' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  AEE3-031B
		else
		  search --no-floppy --fs-uuid --set=root AEE3-031B
		fi
		echo	'Loading Linux linux-zen ...'
		linux	/vmlinuz-linux-zen root=UUID=6dea97b5-7010-4764-9166-2f9237511873 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initramfs-linux-zen-fallback.img
}
menuentry "Arch Linux, with Linux linux-lts-custom" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-custom-advanced-6dea97b5-7010-4764-9166-2f9237511873' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  AEE3-031B
		else
		  search --no-floppy --fs-uuid --set=root AEE3-031B
		fi
		echo	'Loading Linux linux-lts-custom ...'
		linux	/vmlinuz-linux-lts-custom root=UUID=6dea97b5-7010-4764-9166-2f9237511873 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux-lts-custom.img
}
menuentry "Arch Linux, with Linux linux-lts-custom (fallback initramfs)" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-custom-fallback-6dea97b5-7010-4764-9166-2f9237511873' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  AEE3-031B
		else
		  search --no-floppy --fs-uuid --set=root AEE3-031B
		fi
		echo	'Loading Linux linux-lts-custom ...'
		linux	/vmlinuz-linux-lts-custom root=UUID=6dea97b5-7010-4764-9166-2f9237511873 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initramfs-linux-lts-custom-fallback.img
}
menuentry "Arch Linux, with Linux linux-git" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-git-advanced-6dea97b5-7010-4764-9166-2f9237511873' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  AEE3-031B
		else
		  search --no-floppy --fs-uuid --set=root AEE3-031B
		fi
		echo	'Loading Linux linux-git ...'
		linux	/vmlinuz-linux-git root=UUID=6dea97b5-7010-4764-9166-2f9237511873 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux-git.img
}
menuentry "Arch Linux, with Linux linux-git (fallback initramfs)" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-git-fallback-6dea97b5-7010-4764-9166-2f9237511873' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  AEE3-031B
		else
		  search --no-floppy --fs-uuid --set=root AEE3-031B
		fi
		echo	'Loading Linux linux-git ...'
		linux	/vmlinuz-linux-git root=UUID=6dea97b5-7010-4764-9166-2f9237511873 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initramfs-linux-git-fallback.img
}
menuentry "Arch Linux, with Linux linux" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-6dea97b5-7010-4764-9166-2f9237511873' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  AEE3-031B
		else
		  search --no-floppy --fs-uuid --set=root AEE3-031B
		fi
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=UUID=6dea97b5-7010-4764-9166-2f9237511873 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux.img
}
menuentry "Arch Linux, with Linux linux (fallback initramfs)" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-6dea97b5-7010-4764-9166-2f9237511873' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  AEE3-031B
		else
		  search --no-floppy --fs-uuid --set=root AEE3-031B
		fi
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=UUID=6dea97b5-7010-4764-9166-2f9237511873 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initramfs-linux-fallback.img
}
}
### END /etc/grub.d/44_linux_proxy ###

### BEGIN /etc/grub.d/45_linux_xen ###
### END /etc/grub.d/45_linux_xen ###

### BEGIN /etc/grub.d/46_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-1C3C-5331' {
	insmod part_gpt
	insmod fat
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root  1C3C-5331
	else
	  search --no-floppy --fs-uuid --set=root 1C3C-5331
	fi
	chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/46_os-prober ###

### BEGIN /etc/grub.d/47_custom_proxy ###

# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

### END /etc/grub.d/47_custom_proxy ###

### BEGIN /etc/grub.d/48_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/48_custom ###

Now, I am thinking of different options:

1. Uninstall and Re-install grub
2. Uninstall Grub and Install rEFInd
3. Re-install Arch (keeping my Home directory intact) (That is the beauty of having a different Home partition)

1. So I guess that Uninstalling grub is a simple as

# pacman -Rs grub

to re-install it:

 # grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRU  #/boot being the mount point of my boot partition (nvme1n1p1)

2. I can uninstall grub, and will have to investigate the steps to install rEFInd

3. It is always and option to have a clean Arch install... hopefully it all will be solved...

Any Thoughts?

Offline

#50 2019-09-04 19:46:47

gudnait
Member
Registered: 2018-09-14
Posts: 45

Re: Latest kernels freeze on "Loading initial Ramdisk..." [SOLVED]

Hi guys,
So I finally solved the problem. I what I did was to perform a clean Arch Install. (May be I should have tried to reinstall grub alone clearing my EFI partition) but it turned out well to do everything from scratch.
I used /boot/efi as mounting point for the EFI partition and it did the trick.
Thanks a lot to everyone specially Loqs that tought me a LOT about building kernels.
I don't know what exactly was the problem but it was solved, so I will mark the topic as solved.
See you soon!
G.

Offline

Board footer

Powered by FluxBB