Booting problem with relation to WiFi after installation

Help with issues regarding installation of Debian

Booting problem with relation to WiFi after installation

Postby shaind » 2019-12-01 10:57

Hello,

I am new to GNU/Linux and just installed Debian on a laptop.(Debian 10.2 AMD64 nonfree version, DVD iso file written on USB pendrive using rufus)
The laptop(HP PROBOOK 445R G6) has a Realtek RTL8822BE WiFi/BT card.

During installation, it failed to configure network. I went on with wired LAN anyway and completed installation. But after I removed the pendrive and rebooted the system, the Booting process halted with error messages saying

"r8822be : halmac_init_hal failed"

I searched the internet and found that this WiFi card has many problems on linux systems with the same error messages, but in my case, the system won't boot and I am unable to log on to the system. I tried again with the card removed (by setting the card to disabled state in BIOS) but the system still stops during boot (in this case, no error message and only a blank black screen with cursor blinking).

Is there a solution for this problem?

Can I re-install Debian with wifi card removed first and install wifi driver afterwards?
shaind
 
Posts: 3
Joined: 2019-11-27 08:40

Re: Booting problem with relation to WiFi after installation

Postby Dai_trying » 2019-12-01 13:49

Blank screen with blinking cursor is usually indicative of a graphics issue, I would switch to tty1 (Ctrl+Alt+F1) and log in to your system, edit your sources.list to include non-free and then run apt update, then you can install firmware-amd-graphics. This should allow you to boot into the system and then you should be able to figure out the WiFi issue.
Dai_trying
 
Posts: 836
Joined: 2016-01-07 12:25

Re: Booting problem with relation to WiFi after installation

Postby shaind » 2019-12-02 10:06

Dai_trying wrote:Blank screen with blinking cursor is usually indicative of a graphics issue, I would switch to tty1 (Ctrl+Alt+F1) and log in to your system, edit your sources.list to include non-free and then run apt update, then you can install firmware-amd-graphics. This should allow you to boot into the system and then you should be able to figure out the WiFi issue.


Thank you for your suggestion, but in my case, the system does not respond to Ctrl+Alt+F1 or Ctrl+Alt+Fn+F1.

What else can I do to install AMD Graphics driver?
shaind
 
Posts: 3
Joined: 2019-11-27 08:40

Re: Booting problem with relation to WiFi after installation

Postby Dai_trying » 2019-12-02 14:01

You could use a LiveCd and boot into a live session and then create a chroot environment where you can configure the system, but I am not sure you could install anything without an internet connection.

I have a short guide on chrooting into an OS which is aimed at users wanting to re-instal grub after some failure but you should be able to install packages (if you have internet connection) by copying /etc/resolve.conf from live session to chroot environment before using the sudo chroot command. If you need more specific instruction first make sure you can get a live-session with internet connection on that machine using a LiveCd (try MXLinux as it is probably easiest), and I can give exact instructions that should work.

Also you could check if the package firmware-realtek is installed as that is the firmware your WiFi card should need.

Obviously this might seem a little daunting to a new user, so if that is the case here you could first try a fresh install after removing your wifi device to see if that works as it would be easier.
Dai_trying
 
Posts: 836
Joined: 2016-01-07 12:25

Re: Booting problem with relation to WiFi after installation

Postby Head_on_a_Stick » 2019-12-02 18:49

Add systemd.unit=multi-user.target as a kernel command line parameter to boot to a console.

@Dai_trying: buster now has the arch-install-scripts pakage that provides the arch-chroot(1) command, this will mount the API filesystems and copy over /etc/resolv.conf automatically before chrooting.

And the Debian ISO images have a "rescue mode" in the Advanced Options GRUB sub-menu that can open a shell in an installed system that cannot be booted normally: https://www.debian.org/releases/buster/ ... 06.en.html
Don't break DebianHow to report bugs

SharpBang GNU/Linux® — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10695
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Booting problem with relation to WiFi after installation

Postby stevepusser » 2019-12-02 19:49

If it's a really new laptop and the standard MX Linux 19 also has trouble getting to a GUI in a Live Session, I have a respin here with a 5.3 kernel (pretty much the same as in buster-backports), plus Mesa 19.2.1 and a backported amdgpu driver (not in backports the last time I looked): https://archive.org/details/mx19x64updated

There's also a chance that the newer kernel and firmware might just support your wi-fi card out of the box...
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Clipgrab 3.8.6, Hedgewars 1.0.0, PulseEffects 4.6.9, Telegram-desktop 1.8.15, Pale Moon 28.8.0, KeepassXC 2.5.1
User avatar
stevepusser
 
Posts: 11321
Joined: 2009-10-06 05:53

Re: Booting problem with relation to WiFi after installation

Postby Dai_trying » 2019-12-02 20:37

Head_on_a_Stick wrote:@Dai_trying: buster now has the arch-install-scripts pakage that provides the arch-chroot(1) command, this will mount the API filesystems and copy over /etc/resolv.conf automatically before chrooting.


That sounds great, I will look into it now thank you :D
Dai_trying
 
Posts: 836
Joined: 2016-01-07 12:25

Re: Booting problem with relation to WiFi after installation

Postby shaind » 2019-12-05 01:33

I finally got my laptop to boot into GUI. Here's what I did.

I first installed Windows on a separate partition and downloaded amdgpu 19.30 from AMD website.
During boot I pressed Ctrl+Alt+F2 and surprisingly, it worked(unlike tty1) and let me log into the command line.
(I first tried to boot with debian rescue mode from GRUB menu, only to find out that the rescue mode does not contain NTFS driver and cannot mount the partition that I downloaded the package file.)
Then I installed the amdgpu package with amdgpu-install script (as mentioned in https://amdgpu-install.readthedocs.io/en/latest/) with some dependency problems which I fixed with apt-get -f install (I was connected via wired LAN).

After reboot the GUI worked fine. (The WiFi didn't - It did not show me any of my home SSIDs.)

Now I'm struggling to fix the WiFi problem...

Thank you all for your advice.
shaind
 
Posts: 3
Joined: 2019-11-27 08:40

Re: Booting problem with relation to WiFi after installation

Postby Dai_trying » 2019-12-05 07:47

Check you have firmware-realtek installed which should supply the firmware required for your WiFi device, you may need to reboot (or log-out and back in) to allow the firmware to be detected.
Dai_trying
 
Posts: 836
Joined: 2016-01-07 12:25

Re: Booting problem with relation to WiFi after installation

Postby Head_on_a_Stick » 2019-12-07 09:48

shaind wrote:Then I installed the amdgpu package with amdgpu-install script (as mentioned in https://amdgpu-install.readthedocs.io/en/latest/) with some dependency problems which I fixed with apt-get -f install (I was connected via wired LAN).

^ This is a really bad idea, Debian already includes the open source amdgpu driver (which performs better than the proprietary version you have installed) and all you needed to do was install the non-free firmware for the card.

See also viewtopic.php?f=16&t=142974
Don't break DebianHow to report bugs

SharpBang GNU/Linux® — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10695
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Installation

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable