WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Network File Mount not working on Zero  (Read 1892 times)

Offline breadbanana

  • Newbie
  • *
  • Posts: 6
Network File Mount not working on Zero
« 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:
Code: [Select]
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:

Code: [Select]
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!



Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1267
Re: Network File Mount not working on Zero
« Reply #1 on: November 03, 2021, 07:29:33 PM »
Look in dmesg.   There is likely a crypto problem

Offline loti

  • Newbie
  • *
  • Posts: 4
Re: Network File Mount not working on Zero
« Reply #2 on: November 04, 2021, 01:09:51 PM »
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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14850
Re: Network File Mount not working on Zero
« Reply #3 on: November 05, 2021, 02:38:23 AM »
In the piCore-13.x kernel config for armv7, armv7l and armv8 we have:
Code: [Select]
# Hash modes
#
CONFIG_CRYPTO_CMAC=m
CONFIG_CRYPTO_HMAC=y

..but in the piCore-13.x kernel config for armv6 we have:
Code: [Select]
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
« Last Edit: November 05, 2021, 02:49:55 AM by Juanito »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Network File Mount not working on Zero
« Reply #4 on: November 05, 2021, 06:49:15 AM »
I will add in next release.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline breadbanana

  • Newbie
  • *
  • Posts: 6
Re: Network File Mount not working on Zero
« Reply #5 on: November 11, 2021, 05:10:26 PM »
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?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14850
Re: Network File Mount not working on Zero
« Reply #6 on: November 12, 2021, 12:16:10 AM »
* 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