LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Help Compiling Xanmod Kernel 4.19.29 Slackware -current? (https://www.linuxquestions.org/questions/slackware-14/help-compiling-xanmod-kernel-4-19-29-slackware-current-4175650457/)

linus72 03-19-2019 05:19 AM

Help Compiling Xanmod Kernel 4.19.29 Slackware -current?
 
1 Attachment(s)
OK so I wanted to build the Xanmod kernel because its patched with aufs which I need for Linux-Live-Kit for Slackware.
First I tried using the huge config which failed at the end no idea why.
Then I used the default Xanmod config and everything built fine.
I booted off it, kernel panic, needs initrd maybe
As suggested by /usr/share/mkinitrd/mkinitrd_command_generator.sh
Code:

mkinitrd -c -k 4.19.29-xanmod -c -k 4.19.29-xanmod15 -f ext4 -r /dev/sda6 -m usb-storage:ums-realtek:ehci-hcd:ehci-pci:uhci-hcd:jbd2:mbcache:crc32c-intel:ext4:aufs -u -o /boot/initrd.gz
I then edited lilo.conf, ran lilo, then rebooted.
And got whats in the pic attached.
Now using generic config and building.
So what went wrong??
I got the Xanmod kernel source here
https://xanmod.org/
It came with a patch also but is the patch for a vanilla kernel source or what?
I didnt apply patch to xanmod source.
any help appreciated!

allend 03-19-2019 08:26 AM

From the ChangeLog for -current
Quote:

Sun Mar 3 22:03:39 UTC 2019
a/mkinitrd-1.4.11-x86_64-12.txz: Rebuilt.
Updated to busybox-1.30.1.
mkinitrd: allow a colon-delimited list of kernel versions with -k
mkinitrd_command_generator.sh: allow a colon-delimited list of kernel
versions with -k
Perhaps
Code:

/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 4.19.29-xanmod:4.19.29-xanmod15

linus72 03-19-2019 06:22 PM

1 Attachment(s)
Hell yes thank you allend!
I had to change it to
Code:

/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 4.19.29-xanmod15:4.19.29-xanmod15
And then I put it, modules etc on my 14.2 install and it works great!
Just made a rc1 live build of my 14.2 install!
see attached pic

linus72 03-19-2019 07:22 PM

Hey what exactly does this mean- I got this building broadcom-sta for the xanmod kernel
Code:

make: Entering directory '/usr/src/linux-4.19.29-xanmod15'
CFG80211 API is prefered for this kernel version
/tmp/SBo/broadcom-sta-6.30.223.271/Makefile:85: Neither CFG80211 nor Wireless Extension is enabled in kernel


bassmadrigal 03-20-2019 12:00 AM

Quote:

Originally Posted by linus72 (Post 5975648)
Hey what exactly does this mean- I got this building broadcom-sta for the xanmod kernel
Code:

make: Entering directory '/usr/src/linux-4.19.29-xanmod15'
CFG80211 API is prefered for this kernel version
/tmp/SBo/broadcom-sta-6.30.223.271/Makefile:85: Neither CFG80211 nor Wireless Extension is enabled in kernel


My guess is your kernel doesn't have cfg80211 enabled under Networking Support -> Wireless

linus72 03-20-2019 03:48 PM

hey bassmadrigal, I reinstalled SBo pkg b43fcutter, b43firmware, and broadcom-sta
Doing lsmod shows this
Code:

bash-4.3# lsmod
Module                  Size  Used by
appletalk              40960  0
psnap                  16384  1 appletalk
llc                    16384  1 psnap
ax25                  73728  0
i915                2101248  6
kvmgt                  28672  0
vfio_mdev              16384  0
mdev                  20480  2 kvmgt,vfio_mdev
vfio_iommu_type1      28672  0
vfio                  32768  3 kvmgt,vfio_mdev,vfio_iommu_type1
kvm                  729088  1 kvmgt
irqbypass              16384  1 kvm
drm_kms_helper        208896  1 i915
drm                  532480  8 drm_kms_helper,i915
i2c_algo_bit          16384  1 i915
fb_sys_fops            16384  1 drm_kms_helper
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
dell_wmi              16384  0
gpio_ich              16384  0
sparse_keymap          16384  1 dell_wmi
joydev                24576  0
hid_generic            16384  0
wmi_bmof              16384  0
uas                    28672  0
sky2                  69632  0
cfg80211              774144  0
dell_laptop            24576  0
dell_smbios            28672  2 dell_wmi,dell_laptop
dell_wmi_descriptor    16384  2 dell_wmi,dell_smbios
dcdbas                16384  1 dell_smbios
dell_smm_hwmon        16384  0
coretemp              16384  0
snd_pcsp              16384  1
psmouse              172032  0
usbmouse              16384  0
usbhid                57344  0
hid                  139264  2 usbhid,hid_generic
input_leds            16384  0
serio_raw              16384  0
i2c_i801              32768  0
lpc_ich                28672  0
wmi                    28672  4 dell_wmi,wmi_bmof,dell_smbios,dell_wmi_descriptor
snd_hda_codec_idt      61440  1
snd_hda_codec_generic    86016  1 snd_hda_codec_idt
video                  45056  3 dell_wmi,dell_laptop,i915
snd_hda_intel          45056  3
snd_hda_codec        151552  3 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec_idt
snd_hda_core          94208  4 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec,snd_hda_codec_idt
snd_hwdep              16384  1 snd_hda_codec
snd_pcm              114688  4 snd_hda_intel,snd_hda_codec,snd_pcsp,snd_hda_core
snd_timer              36864  1 snd_pcm
snd                    90112  16 snd_hda_codec_generic,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_pcsp,snd_pcm,snd_hda_codec_idt
soundcore              16384  1 snd
mac_hid                16384  0
aufs                  290816  0
ahci                  40960  3
libahci                40960  1 ahci
ums_realtek            20480  0
usb_storage            73728  2 uas,ums_realtek

When I pull up WICD it says no networks found and entry for wireless is empty
what is my wireless eth1, wlan0, I dont know??
It all worked in my slackware default kernel 4.4.172...

Ian M 03-20-2019 04:21 PM

Quote:

Originally Posted by linus72 (Post 5975648)
/tmp/SBo/broadcom-sta-6.30.223.271/Makefile:85: Neither CFG80211 nor Wireless Extension is enabled in kernel[/CODE]

Assuming the slackbuild builds successfully, I don't think this is anything to worry about, I get the same warning on stock 14.2 and the module builds and works fine.

From your lsmod listing the Broadcom wl module hasn't been loaded, you could try loading it manually with modprobe wl and see if that tells you anything useful.

linus72 03-20-2019 05:00 PM

ok thanks I got same warning with 4.4.172

modprobe wl gives this with 4.19.29-xanmod15
Code:

modprobe: ERROR: could not insert 'wl': Unknown symbol in module, or unknown parameter (see dmesg)
dmesg says
Code:

[  18.699269] intel_powerclamp: No package C-state available
[  27.479355] NET: Registered protocol family 3
[  27.544218] NET: Registered protocol family 5
[  33.041751] sky2 0000:09:00.0 eth0: enabling interface
[  33.042846] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  35.775855] sky2 0000:09:00.0 eth0: Link is up at 100 Mbps, full duplex, flow control both
[  35.775882] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  38.141366] sky2 0000:09:00.0 eth0: disabling interface
[  38.151419] sky2 0000:09:00.0 eth0: enabling interface
[  38.151945] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  38.219607] sky2 0000:09:00.0 eth0: disabling interface
[  38.236661] sky2 0000:09:00.0 eth0: enabling interface
[  38.237132] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  40.869473] sky2 0000:09:00.0 eth0: Link is up at 100 Mbps, full duplex, flow control both
[  40.869499] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

Not sure what else in dmesg to look for?

linus72 03-20-2019 05:22 PM

In my AntiX and Arcolinux installs where it works I get this from lsmod
Code:

wl                  6463488  0
cfg80211              798720  1 wl
sky2                  73728  0

Ceni in antix says wlan0 is my wireless connection. But others like Arcolinux call it wlp12s0?
Any help appreciated!

bassmadrigal 03-20-2019 09:42 PM

You can check and see if the system recognizes your wifi adapter by running iwconfig.

It would provide you output for the various connections you have and display whether they support wireless or not. As you can see from the below, my wireless is wlan0.

Code:

jbhansen@craven-moorhead:~$ /sbin/iwconfig
eth0      no wireless extensions.

lo        no wireless extensions.

wlan0    IEEE 802.11  ESSID:"dad-use-this-one" 
          Mode:Managed  Frequency:5.26 GHz  Access Point: A0:04:60:XX:XX:XX 
          Bit Rate=150 Mb/s  Tx-Power=22 dBm 
          Retry short limit:7  RTS thr:off  Fragment thr:off
          Power Management:on
          Link Quality=53/70  Signal level=-57 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:3138  Invalid misc:63785  Missed beacon:0

tun0      no wireless extensions.

I am not sure how xanmod configures their kernel. If that option is enabled then the error message may be inconsequential.

If that doesn't work, provide us the output of the following command:

Code:

lspci -k | grep -iA3 net
It should let us know what network devices you have and what modules are loaded for them.

linus72 03-21-2019 05:39 AM

OK thanks very much!
iwconfig
Code:

enp9s0    no wireless extensions.

lo        no wireless extensions.

wlp12s0  IEEE 802.11  ESSID:off/any 
          Mode:Managed  Access Point: Not-Associated  Tx-Power=200 dBm 
          Retry short limit:7  RTS thr:off  Fragment thr:off
          Encryption key:off
          Power Management:off

Code:

[root@bz-pc bz]# lspci -k | grep -iA3 net
09:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8040 PCI-E Fast Ethernet Controller (rev 13)
        Subsystem: Dell 88E8040 PCI-E Fast Ethernet Controller
        Kernel driver in use: sky2
        Kernel modules: sky2
0c:00.0 Network controller: Broadcom Inc. and subsidiaries BCM4312 802.11b/g LP-PHY (rev 01)
        Subsystem: Dell Wireless 1397 WLAN Mini-Card
        Kernel driver in use: wl
        Kernel modules: ssb, wl


bassmadrigal 03-21-2019 11:19 AM

Wow! That is pumping out some crazy device names (at least device names that I'm not used to seeing). It looks like your wireless is wlp12s0 and your ethernet is enp9s0.

linus72 03-21-2019 01:00 PM

yeah bassmadrigal thats what I said lol
I tried using wlp12s0 and no dice
But, I have it all working by default in AntiX and installed same package as antix to my debian install broadcom-dkms...
In slackware I use broadcom-sta from SBo but now it doesnt work either....mmm I have many kernels between my installs of slack 4.4.172, antix, debian 4.9.08 and xanmod 4.19.29 and 5.0.2 in arcolinux...

linus72 03-21-2019 06:41 PM

Oh man not this again-
Apparently on my laptop the f2 button turns wireless on or off and either I hit it or my cat did lol
So now wireless is working lmao I cant believe I forgot about it
Thanks for all help guys


All times are GMT -5. The time now is 02:33 PM.