Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: breadbanana on November 03, 2021, 03:58:49 PM
-
Network File Mount not working on Zero
So i have this image, which i use for development purposes, which should run on both Zero and Pi3 Hardware.
At Bootlocal.sh i do some network mounts in this way:
mount -t cifs //SERVERPATH /mnt/app/lib -o user=XXX,password=YYY,vers=2.0
Everything works fine on the Pi3, but when i boot the same image on the Zero i get:
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
mount: mounting //SERVERPATH on /mnt/app/lib failed: No such file or directory
I've tce-loaded both filesystems-5.10.16-piCore and filesystems-5.10.16-piCore-v7.
At Zero I'm connected to the ethernet network via an USB Ethernet Adapter, so i had to get the net-usb-5.10.16-piCore. The device is connected to the network, have IP, I can connect to it via SSH, and i can ping my Server from it...
Am I missing something?
Thanks!
-
Look in dmesg. There is likely a crypto problem
-
I had the same problem in Release 13.x. I found out, that hmac.ko is not installed.
I've extracted it from a nnn.piCore_modules.tar.xz file and installed it.
Now I can mount my network-files living on my samba4 server.
It's a workaround and I hope helps you until the file is in the next release.
Loti
-
In the piCore-13.x kernel config for armv7, armv7l and armv8 we have:
# Hash modes
#
CONFIG_CRYPTO_CMAC=m
CONFIG_CRYPTO_HMAC=y
..but in the piCore-13.x kernel config for armv6 we have: CONFIG_CRYPTO_CMAC=m
CONFIG_CRYPTO_HMAC=m..hence the problem.
I guess hmac.ko will need to be added to modules-5.10.16-piCore.gz in the image
-
I will add in next release.
-
I had the same problem in Release 13.x. I found out, that hmac.ko is not installed.
I've extracted it from a nnn.piCore_modules.tar.xz file and installed it.
Now I can mount my network-files living on my samba4 server.
It's a workaround and I hope helps you until the file is in the next release.
Loti
What is the procedure to install it on tiny core?
-
* Download http://tinycorelinux.net/13.x/armv6/releases/RPi/src/kernel/5.10.16-piCore_modules.tar.xz and uncompress it.
* copy modules/lib/modules/5.10.16-piCore/kernel/crypto/hmac.ko to /lib/modules/5.10.16-piCore/kernel/crypto
* sudo depmod -a
* sudo modprobe hmac