Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Debian 11 Live - ATI RV710[Radeon HD 4350] Graphic Card error : update-initramfs does not work as expected

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
hopperman
Posts: 35
Joined: 2021-09-25 19:00
Has thanked: 1 time

[SOLVED] Debian 11 Live - ATI RV710[Radeon HD 4350] Graphic Card error : update-initramfs does not work as expected

#1 Post by hopperman »

I made persistent Debian Live LXDE from USB pendrive and it works. But it gives error about my graphic card ATI Radeon HD 4350 :

Code: Select all

[i]drm: radeon_pci_probe [radeon]] * Error * radeon kernel modesetting for R600 or later requires firmware installed.[/i]
I found my graphic card's driver from https://www.amd.com/en/support/graphics ... on-hd-4350 and download it. I tried to install it, it says some errors occured during install and log contains :
Detected a previous installation, /usr/share/ati/amd-uninstall.sh
Dryrun uninstall succeeded continuing with installation.
Check if system has the tools required for installation.
Uninstalling any previously installed drivers.
Forcing uninstall of AMD Catalyst(TM) Proprietary Driver.
No integrity verification is done.
restore of system environment completed
Uninstall fglrx driver complete.
For detailed log of uninstall, please see /etc/ati/fglrx-uninstall.log
System must be rebooted to avoid system instability and potential data loss.
/usr/share/ati/amd-uninstall.sh completed with 0

Creating symlink /var/lib/dkms/fglrx/8.97.100.7/source ->
/usr/src/fglrx-8.97.100.7

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
cd /var/lib/dkms/fglrx/8.97.100.7/build; sh make.sh --nohints --uname_r=5.10.0-8-amd64 --norootcheck...(bad exit status: 1)
[Error] Kernel Module : Failed to build fglrx-8.97.100.7 with DKMS
[Error] Kernel Module : Removing fglrx-8.97.100.7 from DKMS
[Reboot] Kernel Module : update-initramfs

Then I read viewtopic.php?t=142815 and it says :
Voluminous wrote: 2019-07-21 13:15 Thank you all for the replies, but I just solved the problem...
I ran sudo update-initramfs –u to see what it will say about the missing firmware, and after rebooting the message is gone and I can control the backlight.

Seems when installing the firmware-amd-graphics package, the setting-up phase didn't run update-initramfs for some reason.
I tried to run

Code: Select all

sudo update-initramfs -u
but it gives :

I: update-initramfs is disabled (live system is running on read-only media).

So, I think that my problem is about live mode. I used below command :

Code: Select all

sudo /usr/sbin/update-initramfs.orig.initramfs-tools -u
it gives :

Code: Select all

user@debian:~$ sudo /usr/sbin/update-initramfs.orig.initramfs-tools -u
update-initramfs: Generating /boot/initrd.img-5.10.0-8-amd64
cryptsetup: ERROR: Couldn't resolve device overlay
cryptsetup: WARNING: Couldn't determine root device
live-boot: core filesystems devices utils udev blockdev dns.
I am using a separate "persistence" disk partition to save my data and it works well.
What is the problem? Lots of things seems work but actually I am missing something? Any help is appreciated.
Last edited by hopperman on 2021-10-05 07:11, edited 4 times in total.

mm3100
Posts: 336
Joined: 2020-10-21 21:39
Has thanked: 8 times
Been thanked: 13 times

Re: Debian 11 - Bullseye : ATI RV710[Radeon HD 4350] Graphic Card gives Error

#2 Post by mm3100 »

Please don't use fglrx driver for amd cards, just follow wiki for amd ati cards.
https://wiki.debian.org/AtiHowTo
You need firmware-amd-graphics package.

hopperman
Posts: 35
Joined: 2021-09-25 19:00
Has thanked: 1 time

Re: Debian 11 - Bullseye : ATI RV710[Radeon HD 4350] Graphic Card gives Error

#3 Post by hopperman »

mm3100 wrote: 2021-09-25 19:42 Please don't use fglrx driver for amd cards, just follow wiki for amd ati cards.
https://wiki.debian.org/AtiHowTo
You need firmware-amd-graphics package.
I got it :
firmware-amd-graphics.png
firmware-amd-graphics.png (194.45 KiB) Viewed 9741 times
but my problem continues. xrand gives :

Code: Select all

user@debian:~$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 400, current 1280 x 1024, maximum 1280 x 1024
default connected 1280x1024+0+0 0mm x 0mm
   1280x1024      0.00* 
   1152x864       0.00  
   640x480        0.00  
   720x400        0.00

hopperman
Posts: 35
Joined: 2021-09-25 19:00
Has thanked: 1 time

Re: Debian 11 Live - ATI RV710[Radeon HD 4350] Graphic Card error : update-initramfs does not work as expected

#4 Post by hopperman »

Although I have already installed firmware-amd-graphics. However, it says at the end of installation :

Code: Select all

I: update-initramfs is disabled (live system is running on read-only media).
Result is that, I could not installed my graphic card correctly. Please help.

hopperman
Posts: 35
Joined: 2021-09-25 19:00
Has thanked: 1 time

Re: Debian 11 Live - ATI RV710[Radeon HD 4350] Graphic Card error : update-initramfs does not work as expected

#5 Post by hopperman »

I confirmed that a firmware file exists as in :

Code: Select all

 /usr/lib/firmware/radeon/RV710_uvd.bin

But how can I load it into initramfs?

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Debian 11 Live - ATI RV710[Radeon HD 4350] Graphic Card error : update-initramfs does not work as expected

#6 Post by bw123 »

In the past, I was sometimes successful with this kind of problem by booting live to single user mode, then login as root at terminal, place or install firmware, and run

Code: Select all

# modprobe -r radeon && modprobe radeon
It will crash X if it's up, so don't do that. I'm not sure it's all that great for the hardware. It might hang certain hardware, or otherwise do something bad.
good luck

p.s. I think firmware should be in /lib/firmware/radeon or just /lib/firmware it might be oky in /usr/lib/firmware but you might want to check.
resigned by AI ChatGPT

arzgi
Posts: 1185
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: Debian 11 Live - ATI RV710[Radeon HD 4350] Graphic Card error : update-initramfs does not work as expected

#7 Post by arzgi »

Code: Select all

:~$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
One example.

hopperman
Posts: 35
Joined: 2021-09-25 19:00
Has thanked: 1 time

Re: Debian 11 Live - ATI RV710[Radeon HD 4350] Graphic Card error : update-initramfs does not work as expected

#8 Post by hopperman »

arzgi wrote: 2021-09-26 16:11

Code: Select all

:~$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
One example.
I will try your suggestion with a module named as "radeon" as in the bw123's post. And I will report the result.

hopperman
Posts: 35
Joined: 2021-09-25 19:00
Has thanked: 1 time

Re: Debian 11 Live - ATI RV710[Radeon HD 4350] Graphic Card error : update-initramfs does not work as expected

#9 Post by hopperman »

Dear arzgi , I edited the file /etc/modules as :

Code: Select all

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
radeon
and reboot but it did not work. Did I do something wrong?

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Debian 11 Live - ATI RV710[Radeon HD 4350] Graphic Card error : update-initramfs does not work as expected

#10 Post by bw123 »

You might want to do something the live installation isn't best suited for, but that's ok. I tried the same thing, but eventually realized if I want my own custom installation, I should just go ahead and install the normal way.

This live manual used to be accurate, but not sure if everything works this way anymore.
https://live-team.pages.debian.net/live ... al.en.html

They have a mailing list you could browse also, or ask some specific questions, like how to unpack/repack the rootfs or boot to update the initramfs.
https://lists.debian.org/debian-live/

Have fun, and good luck
resigned by AI ChatGPT

hopperman
Posts: 35
Joined: 2021-09-25 19:00
Has thanked: 1 time

Re: Debian 11 Live - ATI RV710[Radeon HD 4350] Graphic Card error : update-initramfs does not work as expected

#11 Post by hopperman »

Thanks bw123, I have already sent an e-mail about my issue as you suggested and thanks about the link of "live manual". I started to read it. I hope I can solve my problem by using either of them.

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: Debian 11 Live - ATI RV710[Radeon HD 4350] Graphic Card error : update-initramfs does not work as expected

#12 Post by Aki »

Hello hopperman,

The initramfs in live usb/cdrom images is always loaded at boot time from the ISO image as a read-only file. Therefore, you cannot change it unless you change and rebuild the full usb/cdrom ISO image. Furthermore, the initramfs in live usb/cdrom images is different from the ones in standard debian kernels: it contains some special scripts required to make it work.

There's a trick if you use a persistent file system, anyway. You can use the kexec kernel feature to restart the operating system using an initramfs and/or kernel stored in the persistent file system. In the following example, I have installed a new kernel in the persistent file system, then I have rebuilt the initramfs and then rebooted the new kernel and initramfs using kexec:

Code: Select all

# Install some required programs in the persistent file system
apt install kexec-tools wget

# Download and install the newer kernel
wget http://ftp.us.debian.org/debian/pool/main/l/linux-signed-amd64/linux-image-5.14.0-1-amd64_5.14.6-3_amd64.deb
dpkg -i linux-image-5.14.0-1-amd64_5.14.6-3_amd64.deb

# Rebuild the initramfs 
# credits: https://superuser.com/questions/903142/how-to-run-update-initramfs-from-bootable-usb
export kernel_ver='5.14.0-1-amd64'
mkinitramfs -v -o /boot/initrd.img-${kernel_ver} ${kernel_ver}

# Check contents of the rebuilt initramfs, if you wish
ls -la /boot
lsinitramfs /boot/initrd.img-5.14.0-1-amd64 | grep live

# use kexec to load in memory new kernel and new initramfs and start them from memory
# note: dont'use the --reuse-cmdline (because override kexec options) and use current kernek parameters (even the initrd, too)
kexec --append="boot=live components persistence" --initrd=/boot/initrd.img-5.14.0-1-amd64 -l /boot/vmlinuz-5.14.0-1-amd64
kexec -e
The persistent file system is configured with persistence.conf containing:

Code: Select all

/   union
Hope that helps.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

hopperman
Posts: 35
Joined: 2021-09-25 19:00
Has thanked: 1 time

Re: Debian 11 Live - ATI RV710[Radeon HD 4350] Graphic Card error : update-initramfs does not work as expected

#13 Post by hopperman »

Thanks aki for your answer. I am trying it now, but since I am a beginer, I want to ask about kexec's installation progress step by step not to loss my working OS. So could you please help me?

First step ask me this :
Image

Which one do I need to choose? Yes or no ?
And does yes or no requires me do changes inside my boot configuration file after then ?
Attachments
installation_part1.png
installation_part1.png (22.44 KiB) Viewed 9118 times

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: Debian 11 Live - ATI RV710[Radeon HD 4350] Graphic Card error : update-initramfs does not work as expected

#14 Post by Aki »

Hello,
You can choose "Yes". No other changes are needed.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

hopperman
Posts: 35
Joined: 2021-09-25 19:00
Has thanked: 1 time

Re: Debian 11 Live - ATI RV710[Radeon HD 4350] Graphic Card error : update-initramfs does not work as expected

#15 Post by hopperman »

Dear aki,
I installed kexec and try to update my kernel now but it gives some "Fatal Errors". I am sending the output of the end lines of the mkinitramfs command are :

Code: Select all

Calling hook klibc-utils
/usr/share/initramfs-tools/scripts/panic/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/init-bottom/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/init-top/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/local-premount/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/local-block/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/local-bottom/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/init-premount/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/local-top/ORDER ignored: not executable
 
Are they important ?
Last edited by hopperman on 2021-10-04 16:43, edited 1 time in total.

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: Debian 11 Live - ATI RV710[Radeon HD 4350] Graphic Card error : update-initramfs does not work as expected

#16 Post by Aki »

Hello,
You can skip them: they are not "fatal errors".
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

hopperman
Posts: 35
Joined: 2021-09-25 19:00
Has thanked: 1 time

Re: Debian 11 Live - ATI RV710[Radeon HD 4350] Graphic Card error : update-initramfs does not work as expected

#17 Post by hopperman »

Dear aki, I repacked an image file named with my old kernel's name which is "loaded with my graphics card drivers" successfully. But I do not use your command since in your case you create a "new image file" whose name is "initrd.img-5.14.0-1-amd64" which is not the same with the old kernel image.

In my /boot folder there are below files already :

Code: Select all

user@debian:/boot$ ls -al
total 74829
drwxr-xr-x 1 root root     4096 Sep 27 21:03 .
drwxr-xr-x 1 root root     4096 Sep 26 10:11 ..
-rw-r--r-- 1 root root   236220 Aug  3 08:50 config-5.10.0-8-amd64
-rw-r--r-- 1 root root 69480423 Sep 27 21:03 initrd.img-5.10.0-8-amd64
-rw-r--r-- 1 root root       83 Aug  3 08:50 System.map-5.10.0-8-amd64
-rw-r--r-- 1 root root  6821216 Aug  3 08:50 vmlinuz-5.10.0-8-amd64

So in my case, since I just updated kernel modules for graphics card driver, I should create an image file whose name is the same with the old one : "inirtd.img-5.10.0-8-amd64".

Do I have to overrite the new file over the old one having the same name? Can I do it without any error? Or do I need to do this replacement in another OS to be in safe?

Also you wrote in your message that :
# note: dont'use the --reuse-cmdline (because override kexec options) and use current kernek parameters (even the initrd, too)
kexec --append="boot=live components persistence" --initrd=/boot/initrd.img-5.14.0-1-amd64 -l /boot/vmlinuz-5.14.0-1-amd64
why did not you use the new image file having "new kernel" name ? In other words, why did not you use "kexec --append="boot=live components persistence" --initrd=/boot/initrd.img-5.14.6-3-amd64 -l /boot/vmlinuz-5.14.6-3-amd64" ? How kexec understands that it should use the newer kernel instead of the old one although the file name did not change in boot parameter?

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: Debian 11 Live - ATI RV710[Radeon HD 4350] Graphic Card error : update-initramfs does not work as expected

#18 Post by Aki »

Hello,

You need to replace the old inirtd.img-5.10.0-8-amd64 with the new one.

I used the initrd from a newer kernel because this way I was able to check the version of the kernel loaded by kexec.

kexec knows which initrd it has to load and which kernel it has to load/start because they are passed as arguments of the command.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

hopperman
Posts: 35
Joined: 2021-09-25 19:00
Has thanked: 1 time

Re: Debian 11 Live - ATI RV710[Radeon HD 4350] Graphic Card error : update-initramfs does not work as expected

#19 Post by hopperman »

Dear Aki, thanks a lot ! Your guide solved my problem :)
I updated the kernel! New kernel has my graphics card drivers and when I replace it over the old one I can use my graphics card without any problem !

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: [SOLVED] Debian 11 Live - ATI RV710[Radeon HD 4350] Graphic Card error : update-initramfs does not work as expected

#20 Post by Aki »

Hello,

I'm happy I helped you to sort it out.

Happy Debian & happy hacking.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply