Unable to mount cifs shares - NanoPi M3

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Unable to mount cifs shares - NanoPi M3

Post by Sciamano »

Ok, I've managed to make it work although not exactly as it should.

I've followed the instructions here: http://wiki.friendlyarm.com/wiki/index. ... n_OS_Image

Specifically the sections:
[*]Install Cross Compiler
[*]Prepare mkimage

I've installed the u-boot-tools via

Code: Select all

sudo apt-get install u-boot-tools
but follow the instructions on the aforementioned page if your distro does not provide this package.

Now execute the following commands:

Code: Select all

git clone https://github.com/friendlyarm/linux-3.4.y.git
cd linux-3.4.y
git checkout nanopi2-lollipop-mr1
Then:

Code: Select all

touch .scmversion
make nanopi3_linux_defconfig
make menuconfig
IMPORTANT: Go to File Systems -> Network Filesystems and enable CIFS

then

Code: Select all

make uImage
After a looooong time you'll find the compiled uImage file in the arch/arm/boot/ subdirectory

I've copied this file in the boot partition of the SD card, but after booting up the M3 I've noticed no changes in behavior... CIFS shares still wouldn't mount.

Then I've tried renaming the newly compiled uImage to uImage.hdmi and when I rebooted, CIFS magically worked.

Since I'm using the M3 as a headless machine, this is not relevant to me.
I'm not sure why DietPi is booting with the uImage.hdmi file by default, but I guess that those who need the LCD/HDMI support should fiddle with this section during the menuconfig phase.

Code: Select all

Device Drivers -->
    Graphics support -->
      Nexell Graphics -->
        [ ] LCD
        [ ] HDMI
Maybe Fourdee would be able to explain this better. I'm sorry but I have not enough knowledge nor I'm skilled enough to go beyond this point :)

Anyway... CIFS is now enabled. Yippee! :D

If you run a headless machine too and you don't want to compile the kernel yourself, you can also take the shortcut and download the kernel compiled by me here: http://www.mediafire.com/?romf7vmc7ta14
But remember to rename it uImage.hdmi before copying it onto the SD card or you won't notice any changes.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Unable to mount cifs shares - NanoPi M3

Post by Sciamano »

Well, obviously something new happened immediately after... I tried dietpi-software and this is the output:

Code: Select all

│    [ ]      �<94><80>�<94><80>�<94><80>�<94><80>Desktops�<94><80>�<94><80>�<94><80>�<94><80>�<94><80>�<94><80>�<94><
│    [ ] 23   LXDE: ultra lightweight desktop                                │
│    [ ] 24   MATE: desktop enviroment                                   ▒   │
│    [ ] 25   XFCE: lightweight desktop environment                      ▒   │
│    [ ] 26   GNUStep: lightweight based on OpenStep                     ▒   │
│    [ ] 113  Chromium: (Optional) web browser                           ▒   │
│    [ ]      �<94><80>�<94><80>�<94><80>�<94><80>Remote Desktop Access�<94><80>�<94><80>�<94><80>�<94><80>�<94><80>�<
│    [ ] 27   TightVNC Server: desktop for remote connection             ▒   │
│    [ ] 28   VNC4 Server: desktop for remote connection                 ▒   │
│    [ ] 29   XRDP: remote desktop protocol (rdp) server     
:o :? :shock: :(
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Unable to mount cifs shares - NanoPi M3

Post by Fourdee »

Sciamano wrote:Well, obviously something new happened immediately after... I tried dietpi-software and this is the output:
Thats a new one on me lol. Looks as if fbdev + fonts are completely broken.

Might be worth checking locale is in order:

Code: Select all

locale

Code: Select all

root@DietPi:~# locale
LANG=en_GB.UTF-8
LANGUAGE=
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Unable to mount cifs shares - NanoPi M3

Post by Sciamano »

Code: Select all

root@NanoPi:~# locale
LANG=en_GB.UTF-8
LANGUAGE=
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
root@NanoPi:~# 
But also...

Code: Select all

[ ]      ────Desktops────────────────────────────────────────────── ↑   |
|    [ ] 23   LXDE: ultra lightweight desktop                            ▮   |
|    [ ] 24   MATE: desktop enviroment                                   ▒   |
|    [ ] 25   XFCE: lightweight desktop environment                      ▒   |
|    [ ] 26   GNUStep: lightweight based on OpenStep                     ▒   |
|    [ ] 113  Chromium: (Optional) web browser                           ▒   |
|    [ ]      ────Remote Desktop Access───────────────────────────────── ▒   |
|    [ ] 27   TightVNC Server: desktop for remote connection             ▒   |
|    [ ] 28   VNC4 Server: desktop for remote connection                 ▒   |
|    [ ] 29   XRDP: remote desktop protocol (rdp) server                 ▒   |
|    [ ] 30   NoMachine: multi-platform server and client access         ▒   |
|    [ ]      ────Media Systems───────────────────────────────────────── ▒   |
|    [ ] 32   HiFi: web interface music & radio player                   ▒   |
|    [ ] 33   SubSonic 5: web interface media streaming server    
The SBC fairy strikes again! :D
pitekkkk

Re: Unable to mount cifs shares - NanoPi M3

Post by pitekkkk »

Hello, I am not so good to compile kernel and unfortunately I don't have time to learn this.
After last update 148->149 on RPi 3 I have the same problem. How to solve this? without network drive my RPi is not so useful.
Thanks in advance for your help.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Unable to mount cifs shares - NanoPi M3

Post by Sciamano »

What problem are you experiencing, exactly?
Please post error messages.
pitekkkk

Re: Unable to mount cifs shares - NanoPi M3

Post by pitekkkk »

root@RPi:~# modprobe cifs
modprobe: ERROR: could not insert 'cifs': Unknown symbol in module, or unknown parameter (see dmesg)

it is not working by dietpi-config too
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Unable to mount cifs shares - NanoPi M3

Post by Sciamano »

It doesn't look like the same problem.
You do have the package cifs-utils (or -util, I don't remember exactly the name) installed, don't you?
pitekkkk

Re: Unable to mount cifs shares - NanoPi M3

Post by pitekkkk »

I have - in newest version cifs-utils, there is no cifs-util package to install.
In my opinion there is problem with CIFS.
I don't want to reinstall everything. What should I do now to fix this quite easy?
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Unable to mount cifs shares - NanoPi M3

Post by Sciamano »

It's not easy to debug without more information.

Please post your fstab:

Code: Select all

cat /etc/fstab
(copy and paste here)

and the result of:

Code: Select all

mount -a
BTW: DietPi recommends (and offers) to make a backup before upgrading for a reason. This is very easy to do (just use the command 'dietpi-backup' and follow instructions) and it saves from reinstalling everything in a case like yours.
Post Reply