You are not logged in.

#1 2016-11-06 13:29:30

UltrasonicMadness
Member
From: European Union
Registered: 2016-03-21
Posts: 17
Website

Cannot boot Arch with latest version of Linux since 4.7.

Since the release of Linux 4.7, I have been unable to boot Arch using the latest version of the kernel and I've had to boot using Linux 4.4 since. Attempting to boot the main ARCH kernel results in a black screen and no activity. I have tried this on multiple bootloaders as well: systemd-boot shows a black screen, using rEFInd or GRUB results in cryptic error messages (forgotten, but I can get them if necessary).

The laptop I am using is an HP Pavilion g6-2213sa with UEFI version F.14.

Maybe irrelevant but I am having trouble booting a lot of systems on this laptop including FreeBSD (garbled graphics) and Trisquel (boot menu on laptop does not detect SB drive). I've thought about upgrading the UEFI but I am really hesitant to do so.

How can I get the latest version of Linux working on this laptop again?

Any help is appreciated.
UltrasonicMadness

Offline

#2 2016-11-06 14:26:09

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Cannot boot Arch with latest version of Linux since 4.7.

Please provide any error messages you can.

Updating the UEFI firmware may not be a bad idea either.
It should be relatively safe as long as you know what you're doing and don't lose power during the update.

Offline

#3 2016-11-06 15:13:46

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Cannot boot Arch with latest version of Linux since 4.7.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2016-11-07 18:43:53

UltrasonicMadness
Member
From: European Union
Registered: 2016-03-21
Posts: 17
Website

Re: Cannot boot Arch with latest version of Linux since 4.7.

Apologies, yeah Newbie Corner is probably better for this.

The error message when booting with GRUB is just the system hanging on a screen saying

Loading Linux linux ...
Loading initial ramdisk ...

Booting with the fallback initramfs does the same thing, booting with Linux-lts shows the same message except it says Loading Linux linux-lts and it actually boots after 5 seconds (I had the others on for at least 30).

I've looked up updating the UEFI. I'll try it but the only method I've found for my laptop (through the official HP website) requires a PC running Windows 7 or 8 which I do not have. http://support.hp.com/gb-en/document/c00042629

Best regards
UltrasonicMadness

Offline

#5 2016-11-07 20:46:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: Cannot boot Arch with latest version of Linux since 4.7.

pass "quiet" to the kernel parameters (so see if anything else gets printed) and ensure to check on https://bbs.archlinux.org/viewtopic.php … 3#p1667353

Offline

#6 2016-11-07 21:12:03

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: Cannot boot Arch with latest version of Linux since 4.7.

seth wrote:

pass "quiet" to the kernel parameters (so see if anything else gets printed)

https://www.kernel.org/doc/Documentatio … meters.txt

quiet        [KNL] Disable most log messages

Offline

#7 2016-11-07 21:18:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: Cannot boot Arch with latest version of Linux since 4.7.

some error between brain and keyboard - i certainly meant to remove the parameter ;-)

Offline

#8 2016-11-07 23:09:33

UltrasonicMadness
Member
From: European Union
Registered: 2016-03-21
Posts: 17
Website

Re: Cannot boot Arch with latest version of Linux since 4.7.

I did check that link, nomodeset had no effect and removing quiet just added Booting a command list before the message I mentioned earlier.

Last edited by UltrasonicMadness (2016-11-07 23:10:00)

Offline

#9 2016-11-07 23:33:16

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: Cannot boot Arch with latest version of Linux since 4.7.

Is it the linux package from the official repositories that is failing and if so which version exactly is currently producing the failure.
Edit:
Also what was the last version of the package that booted successfully?

Last edited by loqs (2016-11-07 23:37:50)

Offline

#10 2016-11-07 23:51:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: Cannot boot Arch with latest version of Linux since 4.7.

add (and this time i mean it smile "debug ignore_loglevel acpi=off" (acpi being a random guess) and also take a very close look at the mkinitcpio output (maybe "-v" it)

Back on the modesetting thing: do you add the gpu driver to the initramfs? (https://wiki.archlinux.org/index.php/Ke … _KMS_start)

Offline

#11 2016-11-08 22:34:52

UltrasonicMadness
Member
From: European Union
Registered: 2016-03-21
Posts: 17
Website

Re: Cannot boot Arch with latest version of Linux since 4.7.

loqs:
I think the first version of the kernel that had this problem was ~4.7 and the current version I have is 4.8.6-1 I update using pacman relatively often so the last version that worked was probably the one before that. The LTS version I have is 4.4.30-1.

seth:
I tried adding the debug flags to the LTS boot option and I got a log a mile long (probably not even joking) displayed on the screen, tried the same with the regular Linux option and I got the same old Booting a command list, Loading Linux linux, Loading initial ramdisk. Sorry if I am no help, this is all I see. I tried mkinitcpio but I haven't a clue what I'd be looking for in my situation.

I am considering trying to get BIOS compatibility mode working on this laptop. Only problem I can foresee with that is it would lock me out of SteamOS (something I'm quite interested in given the constant problems I have with Steam on any other GNU/Linux distribution) and I am quite interested in this whole UEFI thing, especially since I had the option to disable secure boot entirely. I don't even know if UEFI is the problem, it's just that my BIOS-based desktops seem to run the latest kernel fine.

Offline

#12 2016-11-08 22:49:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: Cannot boot Arch with latest version of Linux since 4.7.

If it was UEFI, it'd likely not vary w/ the kernel and you could still expect some error message.
Ensure you do not add the GPU module to initramfs (early kms) and maybe also try a VGA console https://wiki.archlinux.org/index.php/GR … ramebuffer

Offline

#13 2016-11-09 16:07:39

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: Cannot boot Arch with latest version of Linux since 4.7.

Does the latest version of the install media ( 2016.11.01 ) which includes the 4.8.6 kernel boot successfully?

Offline

#14 2016-11-10 19:24:37

UltrasonicMadness
Member
From: European Union
Registered: 2016-03-21
Posts: 17
Website

Re: Cannot boot Arch with latest version of Linux since 4.7.

seth:
I tried setting this option, it gave the GRUB bootloader a slightly bolder font and squashed it to the left side of the screen (not massively so, still looks okay)

loqs:
I tried this, it does not boot. Same problem, just shows a black screen (as the boot media uses systemd-boot)

Offline

#15 2016-11-10 19:28:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: Cannot boot Arch with latest version of Linux since 4.7.

The relevant question is whether the VGA console works or you're getting a "black screen" after GRUB still.

Offline

#16 2016-11-10 19:56:32

UltrasonicMadness
Member
From: European Union
Registered: 2016-03-21
Posts: 17
Website

Re: Cannot boot Arch with latest version of Linux since 4.7.

My apologies, I totally forgot to mention that bit. It didn't work.

Offline

#17 2016-11-10 20:11:30

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: Cannot boot Arch with latest version of Linux since 4.7.

Bisect linux-git between 4.6 and 4.7? That should give you the first bad commit if it is a kernel issue.

Offline

#18 2016-11-10 23:46:59

UltrasonicMadness
Member
From: European Union
Registered: 2016-03-21
Posts: 17
Website

Re: Cannot boot Arch with latest version of Linux since 4.7.

I've got the version that started doing this. Linux 4.7.5 worked, Linux 4.7.6 did not. I read the article about bisecting and I couldn't follow it, apologies.

Offline

#19 2016-11-11 00:42:51

Texbrew
Member
From: The Lone Star State
Registered: 2016-02-09
Posts: 580

Re: Cannot boot Arch with latest version of Linux since 4.7.

Though I don't remember the fine details, I recently had a black screen problem with one of the 4.7 kernel upgrades. I think I found that I could start  a virtual terminal (I think by using [CTRL] Alt + T or maybe [CTRL] Alt +F1) while in black screen. My temporary fix was to install linux-lts. Using another computer, I muddled through how to get the LTS kernel to boot.

That experience made me wary of any more kernel upgrades. Watched the forums, and when I learned a later kernel version fixed the black screen trouble, I proceeded with upgrades first in an Arch VM, then with bare-metal installs.

All of my Arch installs are now on 4.8.6-1-ARCH kernel. Unless there's a compelling reason not to do so, I suggest you upgrade your system.

This very issue is what prompted me to follow the sage advice of others, i.e. subscribe to Arch-Announce, read the Front Page, and visit the forum before blindly doing system upgrades.

tex

Offline

#20 2016-11-11 00:54:25

chancho
Member
From: Hong Kong
Registered: 2006-07-14
Posts: 114

Re: Cannot boot Arch with latest version of Linux since 4.7.

if you think it is a kernel upgrade problem. you can use archlinux installation usb to boot your computer, arch-chroot iinto your old system and downgrade the kernel. by the way, there are other options before you do that.
1) try booting your system with the fallback kernel
2) check old system error log after boot with installation usb.

Offline

#21 2016-11-11 00:55:42

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: Cannot boot Arch with latest version of Linux since 4.7.

https://cdn.kernel.org/pub/linux/kernel … eLog-4.7.6 good news is there are not too many patches there.

$ git clone https://aur.archlinux.org/linux-git.git
$ cd linux-git
$ rm config config.x86_64
$ curl -o config 'https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux&id=3979828cb7fdcea4014071b48e1118319d77360b'
$ curl -o config.x86_64 'https://git.archlinux.org/svntogit/packages.git/plain/trunk/config.x86_64?h=packages/linux&id=3979828cb7fdcea4014071b48e1118319d77360b'
$ sed -i 's/_srcname=linux/_srcname=linux-stable/' PKGBUILD
$ sed -i 's/torvalds\/linux.git/stable\/linux-stable.git/' PKGBUILD
$ sed -i 's/becc0c98cff692dee9500f19d38882636caf4c58d5086c7725690a245532f5dc/8ac2fb81f4c932c6b1877ca2bda9a98c3ffbb42359dce7dea588c97df4db8c8a/' PKGBUILD
$ sed -i 's/44d8d9669f7d2b4772e0640970d987cdf8c7425365bacca7d13db06cb12f1685/931724fe1a57134442fecc739ccb32984c1c6a0f0ae7e7311fd9536bb0e47ead/' PKGBUILD
$ makepkg -o
$ cd src/linux-stable/
$ git bisect start
$ git bisect bad v4.7.6
$ git bisect good v4.7.5
Bisecting: 34 revisions left to test after this (roughly 5 steps)
[8c48d21dc2f90c07c2ae7e2c16b2807596d722ca] net: can: ifi: Configure transmitter delay
$ cd ../..
$ makepkg -ef

Select the default option for config selections when prompted
Should produce linux-git-4.7.5.r35.g8c48d21-1-x86_64.pkg.tar.xz
Install linux-git along side the existing kernel package(s) add bootloader entry if needed

$ cd linux-git/src/linux-stable/
$ git bisect result

Where result is good or bad.  Repeat from ../.. until git bisect reaches conclusion
Have checked the instructions work for me to build the package.
This does assume that if 4.7.5 was built locally it really would be good and 4.7.6 really would be bad.
Edit:
Make changes to PKGBUILD using sed and use the config files that arch was using for 4.7.5

Last edited by loqs (2016-11-11 03:03:11)

Offline

#22 2016-11-11 22:47:00

UltrasonicMadness
Member
From: European Union
Registered: 2016-03-21
Posts: 17
Website

Re: Cannot boot Arch with latest version of Linux since 4.7.

Texbrew:
The system doesn't even appear to get past the bit where systemd says which version of it is being loaded. I don't think the CTRL+ALT+Fx trick would work here. I have been trying later kernels. I just tried the new 4.8.7 today and it didn't work.

chancho:
I know it's a problem with the kernel, I literally tried every version of the kernel I'd had on this system (starting with 4.6.4-1) to find the version which could not start (4.7.6-1). I could downgrade the main kernel as I'm currently loading Arch using the LTS branch of Linux.
In any case how do I check the system error log?

loqs:
I tried your series of commands, it all seemed to be going well until this:

$ makepkg -o
==> Making package: linux-git 4.9rc4.r0.gbc33b0c-1 (Fri 11 Nov 22:42:37 GMT 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Missing dependencies:
  -> xmlto
  -> docbook-xsl
==> ERROR: Could not resolve all dependencies.

Offline

#23 2016-11-11 23:06:38

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: Cannot boot Arch with latest version of Linux since 4.7.

https://www.archlinux.org/pacman/makepkg.8.html
the -s option will install the dependencies
the -r option will remove them after the build is finished
the -i option will auto install the built package(s)
Edit:
It should just be enough to add the -s option to the makepkg -o command

Last edited by loqs (2016-11-11 23:08:17)

Offline

#24 2016-11-11 23:53:24

Texbrew
Member
From: The Lone Star State
Registered: 2016-02-09
Posts: 580

Re: Cannot boot Arch with latest version of Linux since 4.7.

UltrasonicMadness wrote:

Texbrew:
The system doesn't even appear to get past the bit where systemd says which version of it is being loaded. I don't think the CTRL+ALT+Fx trick would work here. I have been trying later kernels. I just tried the new 4.8.7 today and it didn't work.

As I said in my previous post, I don't remember the fine details of how I got a virtual terminal, or exactly how I proceeded from there. Your last post suggests I'm out of my depth, sorry. I will stay in touch with this thread hoping you find the fix.

tex

Offline

#25 2016-11-12 00:42:53

chancho
Member
From: Hong Kong
Registered: 2006-07-14
Posts: 114

Re: Cannot boot Arch with latest version of Linux since 4.7.

may be others will have a better answer, but i will try
"journalctl -b" which will give you the system log from the very beginning of last booting.

Offline

Board footer

Powered by FluxBB