You are not logged in.

#1 2012-10-29 10:02:18

uzsolt
Member
Registered: 2012-06-13
Posts: 56

[Half-Solved] Radeon in mkinitcpio doesn't work

Hi all!

I want "early kms start" with radeon.
My problem that if radeon module is included in mkinitcpio.conf Arch won't boot. It seems for me radeon hangs the kernel and module loading doesn't will complete.

My mkinitcpio.conf:

$ sed "s@#.*@@ ; /^$/d" /etc/mkinitcpio.conf
MODULES="ahci sd_mod ext4 radeon"
BINARIES=""
FILES=""
HOOKS="base" 
COMPRESSION="xz"

What I'm doing wrong?

Edit: the radeon module works well if I don't want early kms start, switch to framebuffer some seconds after begin of boot process.

Last edited by uzsolt (2012-10-30 17:59:26)

Offline

#2 2012-10-29 15:39:58

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: [Half-Solved] Radeon in mkinitcpio doesn't work

On one of my machines, I also had to include the module for the bus the card was plugged into - in my case that was "intel_agp". You may want to try including all video-related modules found in lsmod output which radeon doesn't explicitly depend on.

Offline

#3 2012-10-29 15:51:45

uzsolt
Member
Registered: 2012-06-13
Posts: 56

Re: [Half-Solved] Radeon in mkinitcpio doesn't work

lsmod:

Module                  Size  Used by
fuse                   69173  5 
ablk_helper             1972  0 
cryptd                  8741  1 ablk_helper
aes_x86_64              7508  1 
aes_generic            26138  1 aes_x86_64
uvcvideo               72787  0 
videobuf2_vmalloc       2468  1 uvcvideo
videobuf2_memops        2246  1 videobuf2_vmalloc
videobuf2_core         24030  1 uvcvideo
videodev              100859  2 uvcvideo,videobuf2_core
media                  10405  2 uvcvideo,videodev
snd_hda_codec_via      38706  1 
radeon                859398  3 
arc4                    2039  2 
ath9k                  99678  0 
ath9k_common            2096  1 ath9k
snd_hda_intel          26180  1 
ttm                    64384  1 radeon
ath9k_hw              339155  2 ath9k_common,ath9k
snd_hda_codec          98033  2 snd_hda_codec_via,snd_hda_intel
drm_kms_helper         32877  1 radeon
snd_hwdep               6300  1 snd_hda_codec
ohci_hcd               21784  0 
ath                    15361  3 ath9k_common,ath9k,ath9k_hw
snd_pcm                75167  2 snd_hda_codec,snd_hda_intel
drm                   218724  5 ttm,drm_kms_helper,radeon
mac80211              424732  1 ath9k
ehci_hcd               41816  0 
usbcore               150334  3 uvcvideo,ohci_hcd,ehci_hcd
sr_mod                 14823  0 
snd_page_alloc          7217  2 snd_pcm,snd_hda_intel
cdrom                  35520  1 sr_mod
asus_laptop            18398  0 
snd_timer              18934  1 snd_pcm
i2c_algo_bit            5391  1 radeon
snd                    59989  8 snd_hwdep,snd_timer,snd_hda_codec_via,snd_pcm,snd_hda_codec,snd_hda_intel
kvm_amd                52187  0 
kvm                   373917  1 kvm_amd
usb_common               954  1 usbcore
i2c_piix4               8071  0 
soundcore               5442  1 snd
cfg80211              177058  3 ath,ath9k,mac80211
microcode              12377  0 
psmouse                71909  0 
sparse_keymap           3056  1 asus_laptop
pcspkr                  1899  0 
serio_raw               4689  0 
i2c_core               20707  6 drm,i2c_piix4,drm_kms_helper,i2c_algo_bit,radeon,videodev
rfkill                 15604  3 cfg80211,asus_laptop
k10temp                 2954  0 
evdev                  10266  13 
input_polldev           2882  1 asus_laptop
powernow_k8            13373  1 
mperf                   1267  1 powernow_k8
thermal                 8119  0 
processor              26855  1 powernow_k8
ac                      2536  0 
button                  4662  0 
video                  11276  0 
battery                 6773  0 
ext4                  440093  6 
crc16                   1359  1 ext4
jbd2                   78751  1 ext4
mbcache                 5977  1 ext4
sd_mod                 29559  8 
ahci                   21360  7 
libahci                20023  1 ahci
libata                167683  2 ahci,libahci
scsi_mod              133386  3 libata,sd_mod,sr_mod

As I see radeon module uses the following modules: ttm, drm_kms_helper, drm, i2c_algo_bit, i2c_core.
lsinitcpio -a

==> Image: /boot/initramfs-linux.img 
==> Created with mkinitcpio 0.11.0
==> Kernel: 3.6.3-1-ARCH
==> Size: 1.9 MiB
==> Compressed with: xz
  -> Uncompressed size: 7.72 MiB (.246 ratio)
  -> Estimated extraction time: 0.268s

==> Included modules:
  ahci [explicit]	  drm_kms_helper	  i2c-core		  libata		  scsi_mod
  crc16			  ext4 [explicit]	  jbd2			  mbcache		  sd_mod [explicit]
  drm			  i2c-algo-bit		  libahci		  radeon [explicit]	  ttm

==> Included binaries:
  blkid		  busybox	  kmod		  mount		  switch_root

I think all needed modules are listed.

lspci output:

00:00.0 Host bridge: Advanced Micro Devices [AMD] RS780 Host Bridge
00:02.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (ext gfx port 0)
00:05.0 PCI bridge: Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 1)
00:06.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 2)
00:11.0 SATA controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode]
00:12.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.1 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0 USB OHCI1 Controller
00:12.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.1 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0 USB OHCI1 Controller
00:13.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices [AMD] nee ATI SBx00 SMBus Controller (rev 3a)
00:14.2 Audio device: Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 LPC host controller
00:14.4 PCI bridge: Advanced Micro Devices [AMD] nee ATI SBx00 PCI to PCI Bridge
00:14.5 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 11h Processor HyperTransport Configuration (rev 40)
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 11h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 11h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 11h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 11h Processor Link Control
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RV710 [Mobility Radeon HD 4500/5100 Series]
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
03:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)

Do you think should I add a plus module? If yes which one?

Offline

#4 2012-10-29 17:07:17

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: [Half-Solved] Radeon in mkinitcpio doesn't work

You might try some of these: uvcvideo, asus_laptop, video. Nothing looks obvious to me, though.

Offline

#5 2012-10-29 17:32:59

uzsolt
Member
Registered: 2012-06-13
Posts: 56

Re: [Half-Solved] Radeon in mkinitcpio doesn't work

Thanks for your answer but it isn't solution sad
I've add all modules (uvcvideo, asus_laptop, video) but same effect.

It wrote "Booting kernel", "ata1/2 softreset failed (device not ready)" (always, so it isn't new message). The "mounting /dev/sda6 real root" (or similar) message does not appear with radeon sad

Offline

#6 2012-10-30 05:58:36

uzsolt
Member
Registered: 2012-06-13
Posts: 56

Re: [Half-Solved] Radeon in mkinitcpio doesn't work

Is there any way to get a debug information?

Offline

#7 2012-10-30 14:11:20

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: [Half-Solved] Radeon in mkinitcpio doesn't work

uzsolt :

try (temporarily) adding udev autodetect and fsck to hooks, generate a new image and boot with it.
If that does work with early start, compare the modules in both images to see what you may have missed.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#8 2012-10-30 17:59:00

uzsolt
Member
Registered: 2012-06-13
Posts: 56

Re: [Half-Solved] Radeon in mkinitcpio doesn't work

Lone_Wolf: thanks, it works. Now I'll check the difference. Maybe radeon needs firmware?

Offline

Board footer

Powered by FluxBB