Tiny Core Base > Raspberry Pi

11.0armv7beta1a building bluetooth - kernel 4.19.81v7 crypto module missing?

(1/4) > >>

piCoreUser1:
Think this may be similar to your TimJ http://forum.tinycorelinux.net/index.php/topic,22987.msg143624.html#msg143624. If so, can you do same fix for 11.0 please? I have tried including all crypt modules in bluetooth-4.19.81-piCore-v7.tcz (copy of code can be uploaded as attachment). Here is my bluetooth-4.19.81-piCore-v7.tcz.list:

--- Code: ---tc@box:~$ cat /mnt/mmcblk0p2/tce/optional/bluetooth-4.19.81-piCore-v7.tcz.list
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/net/wireless/lib80211_crypt_wep.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/net/wireless/lib80211_crypt_tkip.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/net/wireless/lib80211_crypt_ccmp.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/net/bluetooth/bluetooth_6lowpan.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/net/bluetooth/bluetooth.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/net/bluetooth/rfcomm/rfcomm.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/net/bluetooth/hidp/hidp.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/net/bluetooth/bnep/bnep.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/fs/ecryptfs/ecryptfs.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/drivers/md/dm-crypt.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/drivers/bluetooth/hci_vhci.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/drivers/bluetooth/hci_uart.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/drivers/bluetooth/btwilink.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/drivers/bluetooth/btusb.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/drivers/bluetooth/btrtl.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/drivers/bluetooth/btmrvl_sdio.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/drivers/bluetooth/btmrvl.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/drivers/bluetooth/btintel.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/drivers/bluetooth/btbcm.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/drivers/bluetooth/bpa10x.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/drivers/bluetooth/bfusb.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/drivers/bluetooth/bcm203x.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/drivers/bluetooth/ath3k.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/drivers/block/cryptoloop.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/crypto/crypto_user.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/crypto/crypto_simd.ko
/usr/local/lib/modules/4.19.81-piCore-v7/kernel/crypto/cryptd.ko

--- End code ---
Installed:

--- Code: ---tc@box:~$ ls /usr/local/tce.installed
autoconf                     firmware-rpi-bt              icu-bin                      libnl                        perl5
automake                     firmware-rpi-wifi            icu-dev                      libssh2                      pkg-config
bash                         flex                         isl                          libxcb                       python2.7
binutils                     gamin                        libX11                       libxcb-dev                   python2.7-dev
bison                        gamin-dev                    libX11-dev                   linux-4.19.y_api_headers     readline
bluetooth-4.19.81-piCore-v7  gawk                         libXau                       m4                           readline-dev
bzip2                        gcc                          libXau-dev                   make                         rsync
bzip2-dev                    gcc_base-dev                 libXdmcp                     mc                           sed
bzip2-lib                    gcc_libs                     libXdmcp-dev                 mpc                          squashfs-tools
ca-certificates              gcc_libs-dev                 libacl                       mpfr                         util-linux_base-dev
compiletc                    git                          libattr                      nano                         util-macros
curl                         glib2                        libelf                       ncurses                      wifi
diffutils                    glibc_add_lib                libelf-dev                   ncurses-dev                  wireless-4.19.81-piCore-v7
e2fsprogs_base-dev           glibc_apps                   libffi_base-dev              ncurses-terminfo             wireless_tools
ell                          glibc_base-dev               libgcrypt                    openssh                      wpa_supplicant
expat2                       glibc_gconv                  libgpg-error                 openssl                      xcb-proto
expat2-dev                   gmp                          libgpg-error-dev             patch                        xorg-proto
file                         grep                         libiw                        pcre                         xtrans
findutils                    icu                          libmount-dev                 pcre-dev                     zlib_base-dev
t

--- End code ---
dmesg:

--- Code: ---[   13.739144] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[   13.739703] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[   21.903721] i2c /dev entries driver
[   22.033190] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   23.221889] brcmfmac: power management disabled
[  167.145874] bluetooth: Unknown symbol crypto_ecdh_key_len (err -2)
[  167.146736] bluetooth: Unknown symbol crypto_ecdh_encode_key (err -2)
[  167.199869] bluetooth: Unknown symbol crypto_ecdh_key_len (err -2)
[  167.201342] bluetooth: Unknown symbol crypto_ecdh_encode_key (err -2)
tc@box:~$

--- End code ---

I have read tinycore book and all relevant bluetooth posts, learnt a lot about building extensions. Looking forward to helping with progress on piCore11.0 - I am impressed with piCore and think the tinycore concept for RPi has a great future.

    [EDIT]: Fixed link pointing to post by TimJ.  Rich

piCoreUser1:
Sorry, thanks Rich - new to this board.

I've been checking RPi site https://raw.githubusercontent.com/raspberrypi/firmware/master/extra/System7.map
and it looks like this could be the required kernel module: crypto/ecdh_generic.ko. Does it have to be exact 4.19.81v7 or would a 4.19.88v7 module be worth trying to insert using insmod (if I can locate one)?

Thanks, bob

piCoreUser1:
OK, looks like the answer is 'no':


--- Code: ---tc@box:~/build/kernel-modules$ sudo insmod ecdh_generic.ko
insmod: can't insert 'ecdh_generic.ko': invalid module format

--- End code ---

This module was copied from my current Raspbian kernel /lib/modules/4.19.75-v7+/kernel/crypto.

Rich:
Hi piCoreUser1

--- Quote from: piCoreUser1 on December 31, 2019, 11:32:18 AM ---Sorry, thanks Rich - new to this board. ...
--- End quote ---
No problem. The link you posted pointed to a reply page with the TimJ post quoted in the editing box. If you want to include a link
to someone else's post, right click and copy the title directly above that post.


--- Quote --- ... Does it have to be exact 4.19.81v7 or would a 4.19.88v7 module be worth trying to insert ...
--- End quote ---
Modules tend to be kernel specific.

Go here:
http://tinycorelinux.net/11.x/armv7/releases/RPi/src/kernel/
If you download  modules.tar.gz, you'll find  crypto/ecdh_generic.ko  in there.

piCoreUser1:
Yes, helpful. I thought it would have 'crypt' in the module name, which is why I missed it originally.

Just to help others, I've listed other steps taken:


--- Code: ---tc@box:~$ sudo modprobe hci_uart
modprobe: can't load module hci_uart (kernel.tclocal/drivers/bluetooth/hci_uart.ko): unknown symbol in module, or unknown parameter

--- End code ---
dmesg:

--- Code: ---[  493.958719] hci_uart: Unknown symbol serdev_device_set_baudrate (err -2)
[  493.958807] hci_uart: Unknown symbol serdev_device_set_flow_control (err -2)
[  493.958839] hci_uart: Unknown symbol serdev_device_open (err -2)
[  493.958925] hci_uart: Unknown symbol serdev_device_write_flush (err -2)
[  493.958980] hci_uart: Unknown symbol __serdev_device_driver_register (err -2)
[  493.959007] hci_uart: Unknown symbol serdev_device_set_tiocm (err -2)
[  493.959026] hci_uart: Unknown symbol serdev_device_write_buf (err -2)
[  493.959062] hci_uart: Unknown symbol serdev_device_close (err -2)
[  494.043687] hci_uart: Unknown symbol serdev_device_set_baudrate (err -2)
[  494.043840] hci_uart: Unknown symbol serdev_device_set_flow_control (err -2)
[  494.043899] hci_uart: Unknown symbol serdev_device_open (err -2)
[  494.044059] hci_uart: Unknown symbol serdev_device_write_flush (err -2)
[  494.044158] hci_uart: Unknown symbol __serdev_device_driver_register (err -2)
[  494.044209] hci_uart: Unknown symbol serdev_device_set_tiocm (err -2)
[  494.044247] hci_uart: Unknown symbol serdev_device_write_buf (err -2)
[  494.044317] hci_uart: Unknown symbol serdev_device_close (err -2)

--- End code ---
Similar process to above, looked for 'serdev' in module.tar.gz added drivers/tty/serdev to bluetooth_modules.lst and rebuilt extension.

reboot


--- Code: ---tc@box:~$ sudo modprobe hci_uart
tc@box:~$ lsmod
Module                  Size  Used by    Not tainted
hci_uart               40960  0
btbcm                  16384  1 hci_uart
bluetooth             397312  2 hci_uart,btbcm
ecdh_generic           28672  1 bluetooth
serdev                 20480  1 hci_uart
i2c_dev                20480  0
brcmfmac              286720  0
brcmutil               20480  1 brcmfmac
cfg80211              626688  1 brcmfmac
rfkill                 32768  3 bluetooth,cfg80211
evdev                  24576  0
squashfs               45056 95
spidev                 20480  0
i2c_bcm2835            16384  0
raspberrypi_hwmon      16384  0
hwmon                  16384  1 raspberrypi_hwmon
spi_bcm2835            20480  0
zram                   28672  1
zsmalloc               28672  1 zram
fixed                  16384  0
uio_pdrv_genirq        16384  0
uio                    20480  1 uio_pdrv_genirq
z3fold                 20480  1
lz4                    16384  4
lz4_compress           45056  1 lz4

--- End code ---


Navigation

[0] Message Index

[#] Next page

Go to full version