Dietpi: img文件如何刷入NanoPi Neo Air的eMMC?

创建于 2017-04-07  ·  3评论  ·  资料来源: MichaIng/DietPi

img文件如何刷入NanoPi Neo Air的eMMC?

Question

最有用的评论

@aesirteam

在 eMMC 上安装 DietPi(在此之前,您必须在 SD 卡上启动并运行 DietPi):

#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.

所有3条评论

@aesirteam

在 eMMC 上安装 DietPi(在此之前,您必须在 SD 卡上启动并运行 DietPi):

#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.

第一步:将.img文件复制到SD /opt路径;
第二步:开机,登录,fdisk eMMC
fdisk /dev/mmcblk2
d->n->p->...->w
mkfs.fat /dev/mmcblk2p1
第 3 步:blkid /dev/mmcblk2
第 4 步:dd if="$(ls | grep -m1 'DietPi_v'*'.img')" of=/dev/mmcblk2

但是 tty 控制台输出错误:

启动内核...

解压 Linux... 完成,启动内核。
加载请稍候...
开始:加载基本驱动程序......完成。
开始:运行 /scripts/init-premount ... 完成。
开始:安装根文件系统...开始:运行 /scripts/local-top ... 完成。
开始:运行 /scripts/local-premount ... 完成。
开始:现在将检查根文件系统... fsck from util-linux 2.25.2
[/sbin/fsck.ext4 (1) -- /dev/mmcblk2p2] fsck.ext4 -a -C0 /dev/mmcblk2p2
/dev/mmcblk2p2 包含有错误的文件系统,强制检查。
/dev/mmcblk2p2: inode 1223 有一个无效的范围节点 (blk 52271, lblk 0)

/dev/mmcblk2p2:意外的不一致; 手动运行 fsck。
(即,没有 -a 或 -p 选项)
fsck 退出,状态码为 4
完毕。
失败:根文件系统的文件系统检查失败
/dev/mmcblk2p2 上的根文件系统需要手动 fsck
由于 panic= boot 参数自动重启

根据您的指示,操作成功!!!
非常感谢你!

此页面是否有帮助?
0 / 5 - 0 等级