我装的是这版本的 Ubuntu
现在u盘重新刷入ubuntu系统,然后可以从u盘启动 但是就是无法脱离优盘 单独从emmc启动
我刷的步骤是 :
1、U盘写入ubuntu镜像,然后启动使用winscp把附件的install.sh拷贝到root目录下,覆盖原来root下的,下面是install.sh的内容#!/bin/sh
echo "Start copy system for DATA partition."
mkdir -p /ddbr
chmod 777 /ddbr
VER=`uname -r`
IMAGE_KERNEL="/boot/zImage"
IMAGE_INITRD="/boot/initrd.img-$VER"
PART_ROOT="/dev/data"
DIR_INSTALL="/ddbr/install"
IMAGE_DTB="/boot/dtb.img"
if [ ! -f $IMAGE_KERNEL ] ; then
echo "Not KERNEL. STOP install !!!"
return
fi
if [ ! -f $IMAGE_INITRD ] ; then
echo "Not INITRD. STOP install !!!"
return
fi
#edit by achaoge,
#disable 64bit and metadata_csum features for uboot compatibility
#ref: https://kshadeslayer.wordpress.com/2016/04/11/my-filesystem-has-too-many-bits/
/sbin/resize2fs -s $PART_ROOT
/sbin/tune2fs -O ^metadata_csum $PART_ROOT
#echo "Formatting DATA partition..."
#umount -f $PART_ROOT
#mke2fs -F -q -t