downloading, compiling and installing new kernel ?

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

downloading, compiling and installing new kernel ?

Postby vincentm77 » Sep 5th, '14, 17:11

Hi everyone,

rpmdrake does not provide the latest kernel (3.16.1) and I wonder if I could download (www.kernel.org) this kernel, compile it on my laptop and install it on my system...

The background to this question is that my wlan adapter RTL8723BE still doesn t work on my LenovoB5400, and I hope that a minor recent kernel might do the trick.

Any advice ?

Thanks
Vincent
vincentm77
 
Posts: 59
Joined: Sep 5th, '13, 16:56

Re: downloading, compiling and installing new kernel ?

Postby doktor5000 » Sep 5th, '14, 19:58

Please first read out updates policy https://wiki.mageia.org/en/Updates_policy

For the question about your wireless adapter, that's usually not a matter of kernel updates, but ensuring that the correct driver is used and that firmware is available.
Please post the output of
Code: Select all
lspcidrake -v


For your question in general, yes you can download kernel sources and build your own kernel.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18020
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: downloading, compiling and installing new kernel ?

Postby vincentm77 » Sep 11th, '14, 20:49

Thanks Doktor for your answer.
Code: Select all
lspcidrake -v
r8169           : Realtek Semiconductor Co., Ltd.|RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [NETWORK_ETHERNET] (vendor:10ec device:8168 subv:17aa subd:5024) (rev: 10)
wl              : Realtek Semiconductor Co., Ltd.|RTL8723BE PCIe Wireless Network Adapter [NETWORK_OTHER] (vendor:10ec device:b723 subv:17aa subd:b728)
Card:NVIDIA GeForce 400 series and later: NVIDIA Corporation|GF117M [GeForce 610M/710M/820M / GT 620M/625M/630M/720M] [DISPLAY_3D] (vendor:10de device:1140 subv:17aa subd:503f) (rev: a1)
i2c_i801        : Intel Corporation|8 Series/C220 Series Chipset Family SMBus Controller [SERIAL_SMBUS] (vendor:8086 device:8c22 subv:17aa subd:5024) (rev: 04)
unknown         : Intel Corporation|8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] [STORAGE_SATA] (vendor:8086 device:8c03 subv:17aa subd:5024) (rev: 04)
lpc_ich         : Intel Corporation|HM86 Express LPC Controller [BRIDGE_ISA] (vendor:8086 device:8c49 subv:17aa subd:5024) (rev: 04)
ehci_pci        : Intel Corporation|8 Series/C220 Series Chipset Family USB EHCI #1 [SERIAL_USB] (vendor:8086 device:8c26 subv:17aa subd:5024) (rev: 04)
shpchp          : Intel Corporation|8 Series/C220 Series Chipset Family PCI Express Root Port #4 [BRIDGE_PCI] (vendor:8086 device:8c16) (rev: d4)
shpchp          : Intel Corporation|8 Series/C220 Series Chipset Family PCI Express Root Port #3 [BRIDGE_PCI] (vendor:8086 device:8c14) (rev: d4)
shpchp          : Intel Corporation|8 Series/C220 Series Chipset Family PCI Express Root Port #1 [BRIDGE_PCI] (vendor:8086 device:8c10) (rev: d4)
snd_hda_intel   : Intel Corporation|8 Series/C220 Series Chipset High Definition Audio Controller [MULTIMEDIA_AUDIO_DEV] (vendor:8086 device:8c20 subv:17aa subd:5024) (rev: 04)
ehci_pci        : Intel Corporation|8 Series/C220 Series Chipset Family USB EHCI #2 [SERIAL_USB] (vendor:8086 device:8c2d subv:17aa subd:5024) (rev: 04)
unknown         : Intel Corporation|8 Series/C220 Series Chipset Family MEI Controller #1 [COMMUNICATION_OTHER] (vendor:8086 device:8c3a subv:17aa subd:5024) (rev: 04)
xhci_hcd        : Intel Corporation|8 Series/C220 Series Chipset Family USB xHCI [SERIAL_USB] (vendor:8086 device:8c31 subv:17aa subd:5024) (rev: 04)
snd_hda_intel   : Intel Corporation|Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [MULTIMEDIA_AUDIO_DEV] (vendor:8086 device:0c0c subv:17aa subd:5024) (rev: 06)
Card:Intel 810 and later: Intel Corporation|4th Gen Core Processor Integrated Graphics Controller [DISPLAY_VGA] (vendor:8086 device:0416 subv:17aa subd:503f) (rev: 06)
shpchp          : Intel Corporation|Xeon E3-1200 v3/4th Gen Core Processor PCI Express x8 Controller [BRIDGE_PCI] (vendor:8086 device:0c05) (rev: 06)
shpchp          : Intel Corporation|Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller [BRIDGE_PCI] (vendor:8086 device:0c01) (rev: 06)
unknown         : Intel Corporation|Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller [BRIDGE_HOST] (vendor:8086 device:0c04 subv:17aa subd:5024) (rev: 06)
hub             : Linux 3.12.25-desktop-3.mga4 ehci_hcd|EHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
hub             : Intel Corp.|Unknown [Hub|Unused|Full speed (or root) hub] (vendor:8087 device:8000)
ath9k_htc       : AVM Berlin|FRITZ!WLAN v2 (vendor:057c device:8403)
uvcvideo        : Vimicro corp.|Integrated Camera [Video|Video Control] (vendor:04f2 device:b2fa)
hub             : Linux 3.12.25-desktop-3.mga4 ehci_hcd|EHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
hub             : Intel Corp.|Unknown [Hub|Unused|Full speed (or root) hub] (vendor:8087 device:8008)
btusb           : Realtek |Bluetooth Radio  [Wireless|Radio Frequency|Bluetooth] (vendor:0bda device:b728)
hub             : Linux 3.12.25-desktop-3.mga4 xhci_hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0003)
hub             : Linux 3.12.25-desktop-3.mga4 xhci_hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)


Note that right now I am using a wifi usb-adapter (AVM Berlin).

I tried to boot the Cauldron LiveDVD and managed to get the RTL8723 adapter to work, though the connection kept being interrupted...

Vincent
Last edited by doktor5000 on Sep 11th, '14, 23:07, edited 1 time in total.
Reason: added code tags
vincentm77
 
Posts: 59
Joined: Sep 5th, '13, 16:56

Re: downloading, compiling and installing new kernel ?

Postby doktor5000 » Sep 11th, '14, 23:20

vincentm77 wrote:Thanks Doktor for your answer.
Code: Select all
lspcidrake -v
wl              : Realtek Semiconductor Co., Ltd.|RTL8723BE PCIe Wireless Network Adapter [NETWORK_OTHER] (vendor:10ec device:b723 subv:17aa subd:b728)


I tried to boot the Cauldron LiveDVD and managed to get the RTL8723 adapter to work, though the connection kept being interrupted...


Please next time use code tags as explained in ftp://ftp5.gwdg.de/pub/linux/mandriva/m ... e_tags.ogv


Apart from that, it seems for the Realtek RTL8723 the wrong driver is loaded. wl is used for Broadcom devices, check http://wireless.kernel.org/en/users/Drivers/b43 (especially the bottom parts and supported devices list).

Seems to me you need one of those http://wireless.kernel.org/en/users/Drivers/rtl819x and it seem this one, which seems only supported from kernel 3.15 and above:
rtl8723be is a PCI-E driver for RTL8723BE devices (3.15+).


Could you please post the output as root of
Code: Select all
journalctl -ab | grep -iE "fw|firmware|iwl|wifi|wire|80211|rtl"
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18020
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: downloading, compiling and installing new kernel ?

Postby vincentm77 » Sep 17th, '14, 20:36

Here we go:

Code: Select all
Sep 17 20:21:19 localhost.localdomain kernel: [Firmware Bug]: ACPI: BIOS _OSI(Linux) query ignored
Sep 17 20:21:19 localhost.localdomain kernel: psmouse serio1: synaptics: Touchpad model: 1, fw: 7.5, id: 0x1e0b1, caps: 0xd00073/0x240000/0xa0400, board id: 1695, fw id: 739436
Sep 17 20:21:19 localhost.localdomain kernel: [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
Sep 17 20:21:20 localhost.localdomain kernel: cfg80211: Calling CRDA to update world regulatory domain
Sep 17 20:21:20 localhost.localdomain kernel: lib80211: common routines for IEEE802.11 drivers
Sep 17 20:21:20 localhost.localdomain kernel: lib80211_crypt: registered algorithm 'NULL'
Sep 17 20:21:21 localhost.localdomain kernel: r8169 0000:05:00.0 eth0: RTL8168g/8111g at 0xffffc90004cb2000, c4:54:44:30:ee:4f, XID 10900880 IRQ 48
Sep 17 20:21:21 localhost.localdomain kernel: cfg80211: World regulatory domain updated:
Sep 17 20:21:21 localhost.localdomain kernel: cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Sep 17 20:21:21 localhost.localdomain kernel: cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Sep 17 20:21:21 localhost.localdomain kernel: cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Sep 17 20:21:21 localhost.localdomain kernel: cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm)
Sep 17 20:21:21 localhost.localdomain kernel: cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm)
Sep 17 20:21:21 localhost.localdomain kernel: cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm)
Sep 17 20:21:21 localhost.localdomain kernel: cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm)
Sep 17 20:21:23 localhost.localdomain kernel: usb 3-6: ath9k_htc: Firmware htc_9271.fw requested
Sep 17 20:21:24 localhost.localdomain kernel: usb 3-6: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272
Sep 17 20:21:24 localhost.localdomain kernel: ath9k_htc 3-6:1.0: ath9k_htc: FW Version: 1.3
Sep 17 20:21:24 localhost.localdomain kernel: ieee80211 phy0: Atheros AR9271 Rev:1
Sep 17 20:21:24 localhost.localdomain kernel: cfg80211: Calling CRDA for country: DE
Sep 17 20:21:24 localhost.localdomain kernel: cfg80211: Regulatory domain changed to country: DE
Sep 17 20:21:24 localhost.localdomain kernel: cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Sep 17 20:21:24 localhost.localdomain kernel: cfg80211:   (2400000 KHz - 2483500 KHz @ 40000 KHz), (N/A, 2000 mBm)
Sep 17 20:21:24 localhost.localdomain kernel: cfg80211:   (5150000 KHz - 5350000 KHz @ 80000 KHz), (N/A, 2000 mBm)
Sep 17 20:21:24 localhost.localdomain kernel: cfg80211:   (5470000 KHz - 5725000 KHz @ 80000 KHz), (N/A, 2698 mBm)
Sep 17 20:21:24 localhost.localdomain kernel: cfg80211:   (57240000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 4000 mBm)
Sep 17 20:21:53 localhost.localdomain network[987]: Configuring wireless regulatory domain  [  OK  ]
Sep 17 20:21:53 localhost.localdomain network[987]: Bringing up interface wlp0s20u6:  Error for wireless request "Set Encode" (8B2A) :
vincentm77
 
Posts: 59
Joined: Sep 5th, '13, 16:56

Re: downloading, compiling and installing new kernel ?

Postby doktor5000 » Sep 17th, '14, 20:53

I can only see something about the Atheros chip (ath9k_htc : AVM Berlin|FRITZ!WLAN v2 (vendor:057c device:8403)) ...
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18020
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: downloading, compiling and installing new kernel ?

Postby dequa » Dec 25th, '14, 10:34

hi, iam noob in linux, i'd been casual user of linuxmint for 2 years now. My LM17.1 have been working fine since i update the kernel to 3.17.4. Can I do the same on mageia somebody from openmandriva used the kernel from rosa web, can somebody tells me how to install theese kernel

https://forums.openmandriva.org/en/disc ... rking-well

thanks you very much!
dequa
 
Posts: 3
Joined: Dec 25th, '14, 10:29

Re: downloading, compiling and installing new kernel ?

Postby doktor5000 » Dec 25th, '14, 18:10

What particular issue(s) do you have with the current kernel for Mageia 4?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18020
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: downloading, compiling and installing new kernel ?

Postby dequa » Dec 25th, '14, 20:03

doktor5000 wrote:What particular issue(s) do you have with the current kernel for Mageia 4?


it cant´ recognize my rtl8723be wifi adapter, Iḿ on lenovo k2450-755
dequa
 
Posts: 3
Joined: Dec 25th, '14, 10:29

Re: downloading, compiling and installing new kernel ?

Postby jiml8 » Dec 25th, '14, 22:01

You might try the rtl8723ae driver, which is provided with the stock Mageia 4, or you might download the rtl8723be driver from github and just compile it rather than the entire kernel.

While there is no particular reason why you should not compile the entire kernel, since you have to ask the question the way you asked it, you probably would find it to be a long and difficult process. You would learn a lot, but if you start with a known good kernel and simply compile one driver for it, you will find that to be much easier under any circumstances.
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09

Re: downloading, compiling and installing new kernel ?

Postby dequa » Dec 31st, '14, 03:39

now my wifi is working, by simply install Mageia5 beta 1, it come up with kernel 3.17
Thanks you
I think this thread should mark SOLVED
dequa
 
Posts: 3
Joined: Dec 25th, '14, 10:29


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest