Dietpi: Wie flasht man eine img-Datei in eMMC von NanoPi Neo Air?

Erstellt am 7. Apr. 2017  ·  3Kommentare  ·  Quelle: MichaIng/DietPi

Wie flasht man eine img-Datei in eMMC von NanoPi Neo Air?

Question

Hilfreichster Kommentar

@aesirteam

Installieren Sie DietPi auf dem eMMC (davor muss DietPi auf einer SD-Karte installiert sein):

#7Zip prereqs
apt-get install -y p7zip

wget 'http://dietpi.com/downloads/images/DietPi_NanoPiNEOAir-armv7-(Jessie).7z' -O image.7z
p7zip -d image.7z

#Run BLKID to check index of EMMC (should be entry for /dev/mmcblk1, but may be /dev/mmcblk2 etc). 
blkid

#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)Change /dev/mmcblk1 in command below accordingly
dd if="$(ls | grep -m1 'DietPi_v'*'.img')" of=/dev/mmcblk1 

#Power off, unplug SD card, power on.

Alle 3 Kommentare

@aesirteam

Installieren Sie DietPi auf dem eMMC (davor muss DietPi auf einer SD-Karte installiert sein):

#7Zip prereqs
apt-get install -y p7zip

wget 'http://dietpi.com/downloads/images/DietPi_NanoPiNEOAir-armv7-(Jessie).7z' -O image.7z
p7zip -d image.7z

#Run BLKID to check index of EMMC (should be entry for /dev/mmcblk1, but may be /dev/mmcblk2 etc). 
blkid

#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)Change /dev/mmcblk1 in command below accordingly
dd if="$(ls | grep -m1 'DietPi_v'*'.img')" of=/dev/mmcblk1 

#Power off, unplug SD card, power on.

Schritt 1: Kopieren Sie die .img-Datei in den SD /opt-Pfad;
Schritt 2: Einschalten, anmelden, fdisk eMMC
fdisk /dev/mmcblk2
d->n->p->...->w
mkfs.fat /dev/mmcblk2p1
Schritt 3: blkid /dev/mmcblk2
Schritt 4: dd if="$(ls | grep -m1 'DietPi_v'*'.img')" of=/dev/mmcblk2

aber tty-Konsolenausgabefehler:

Kernel starten...

Linux dekomprimieren... fertig, Kernel booten.
Laden, bitte warten...
Beginnen: Wichtige Treiber laden ... fertig.
Beginnen: Ausführen von /scripts/init-premount ... fertig.
Beginn: Root-Dateisystem mounten ... Beginn: /scripts/local-top ausführen ... fertig.
Beginnen: Ausführen von /scripts/local-premount ... fertig.
Beginnen: Überprüft jetzt das Root-Dateisystem ... fsck from util-linux 2.25.2
[/sbin/fsck.ext4 (1) -- /dev/mmcblk2p2] fsck.ext4 -a -C0 /dev/mmcblk2p2
/dev/mmcblk2p2 enthält ein Dateisystem mit Fehlern, Prüfung erzwungen.
/dev/mmcblk2p2: Inode 1223 hat einen ungültigen Extent-Knoten (blk 52271, lblk 0)

/dev/mmcblk2p2: UNERWARTETE INKONSISTENZ; FÜHREN Sie fsck MANUELL AUS.
(dh ohne -a oder -p Optionen)
fsck wurde mit Statuscode 4 beendet
fertig.
Fehler: Dateisystemprüfung des Root-Dateisystems fehlgeschlagen
Das Root-Dateisystem auf /dev/mmcblk2p2 erfordert einen manuellen fsck
Automatischer Neustart wegen Panik=Bootargument

Nach Ihren Anweisungen, Operation gelungen!!!
Vielen Dank!

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen