NanoPi Neo Air - install to internal eMMC

Hi everybody,

i have tried to install dietpi to the internal emmc storage. I tried it by copy the imgage directly via etcher and zadig tools and also with the nand-sata-install script.
After exceuting the nand-sata-install script nothing happens, absoluty nothing… :frowning:
Via the Zadig tool (windows) the eMMC Storage dont get accessable in the windows explorer. So i cant choose it in etcher as a drive.

Any ideas?

Fladdie

I do not use the tools mentioned above. I just prepare an image with working wifi and dd this image to the emmc:

dd if=image of=/dev/mmcblk1 bs=10M

Constraint: The image has to be smaller than 8 GB (size of emmc).

EDIT:
Confirmed working, however, does require adjustments to DietPi code and fstab on image, make sure you read all steps in the code section.

Another method:

  • downloads neo image
  • mounts /boot, allowing to set wifi creds in dietpi.txt
  • writes to EMMC:
#Download image / extract
wget 'http://dietpi.com/downloads/images/DietPi_NanoPiNEOAir-armv7-(Jessie).7z' -O image.7z
#NanoPi T3 = wget 'http://dietpi.com/downloads/images/DietPi_NanoPiM3T3-armv7-(Jessie).7z' -O image.7z 
7z x -aoa image.7z

#Mount image to set WiFi creds in dietpi.txt:
modprobe loop
losetup -f
losetup /dev/loop2 "$(ls | grep -m1 'DietPi_v'*'.img')"
partprobe /dev/loop2
mkdir -p /mnt/loop2p1
mkdir -p /mnt/loop2p2
mount /dev/loop2p1 /mnt/loop2p1
mount /dev/loop2p2 /mnt/loop2p2

# - Enter Wifi creds and enable wifi, then save and exit
nano  /mnt/loop2p1/dietpi.txt

# Edit boot script to target EMMC for resize
#    replace all instances of /dev/mmcblk0 with /dev/mmcblk2
nano /mnt/loop2p1/dietpi/boot

# Edit FSTAB
#    replace all instances of /dev/mmcblk0 with /dev/mmcblk2
nano /mnt/loop2p2/etc/fstab

sync
umount -f /mnt/loop2p1
umount -f /mnt/loop2p2
losetup -d /dev/loop2

#Write to EMMC
# - Following assumes you have no other files in this directory with name 'DietPi_v*.img' (other than the one we downloaded above)
dd if="$(ls | grep -m1 'DietPi_v'*'.img')" of=/dev/mmcblk2

EMMC performance is pretty good:

DietPi-Config




       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ DietPi - Filesystem benchmarks β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
       β”‚  Flash Storage : Write = 36.9 MB/s | Read = 77.8 MB/s         β”‚
       β”‚  USB Drive     : Write = Not Tested | Read = Not Tested       β”‚
       β”‚  RAM           : Write = Not Tested | Read = Not Tested       β”‚
       β”‚                                                               β”‚
       β”‚       Flash Storage Benchmark SD/EMMC IO performance.         β”‚
       β”‚       USB Drive     Benchmark USB drive IO performance.       β”‚
       β”‚       RAM           Benchmark RAM IO performance.             β”‚
       β”‚                                                               β”‚
       β”‚                                                               β”‚
       β”‚                <Ok>                    <Back>                 β”‚
       β”‚                                                               β”‚
       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜