nanopi sd-fuser error

Dustin
I am following the quick start instructions for the nanopi.

I am using a sandisk 8gb micro sd card.

When I run the sd-fuser I get an incompatible device error.

I tried using the sd-fuser in Fedora and Ubuntu.

The sd comes up as dev/mmcblk0

Also, just an fyi, the git repo is slow to clone at least for me in the
states.  I gave up and just went to the web and downloaded the zip.

Thanks for your help,
Dustin

davef
Just guessing ... but have you formatted this card before?

Maybe, try a Windows format and then determine what the /dev/sd? is.

Maybe you can 
sudo dd if=/dev/zero /dev/mmcblk0  (haven't tried that before)

Dustin
Got it working.  The fusing.sh is looping to look for the device.  My sd
card is /dev/mmcblk0/  I am not sure if there is a way to change but I was
able to modify to find mine

Changed line 52 from:
/dev/sd[a-z] | /dev/loop0)

To this:
/dev/mmcblk[0-9] | /dev/loop0)


Unless I am mistaken, the original line would allow fusing to run using on
any drive that starts with /dev/sd  This would include my hard drive
partitions.  Am I right about this?  Maybe a pattern matching that would
ensure only sdb or sdc or mmcblk as acceptable would be better.

davef
Just guessing again ... that line possibly identifies any new devices
plugged in.  Hopefully not your hard drive!

I think there is some reason for it being identified as mmcbkl0 rather than
sdb, sdc, etc

Switching over to Ubuntu ....

davef
Years ago when formatting SD cards so that the kernel went into an
unformatted partition and the rootfs into an ext4 partition the card was
found at /dev/mmcblkp0.

I recall that a few years ago things seemed to change to /dev/sdx.

fusing.sh in sd-fuse_nanopi completely sets everything to zero and places
all the required files on the card.  My NanoPi card says /dev/sdb

That is the limit of my knowledge.

Dustin
Ok, I thought I had it working but I did not.

My solution was only partially loading, uboot flashed but nothing else.

The failure was due to the same routine determining that whether the sd
card was a supported reader.

So I think the change may actually have worked but only if you make the
change to all the .sh files that first "check for fusing" 

But I was running Fedora from a live usb which may have been why the sd was
coming up mmcblk

So I tried again, this time from an Ubuntu machine and it worked!

One thing I do find bit confusing is that though my sd is /dev/sdb1, when
running fusing.sh I have to run ./fusing/sh /dev/sdb and not /dev/sdb1

I guess I better make sure I only have one usb connected?

Oh well, I am learning a lot about bash scripting in my attempts.