(06-26-2016, 07:31 AM)martinayotte Wrote: Look at the /boot/uEnv.txt. You can probably overwrite default root=/dev/mmcblk0p2 to /dev/sda1 by using "extraargs"
http://linux-sunxi.org/UEnv.txt
thanks for great advice .
but i fail .
something is wrong with me .
my step is next .
1)
rewrite /boot/uEnv.txt
console=tty0 console=ttyS0,115200n8 no_console_suspend
kernel_filename=pine64/Image
initrd_filename=initrd.img
ethaddr=36:c9:e3:f1:b8:05
optargs=disp.screen0_output_mode=720p60
extraargs=root=/dev/sda1
2)do next shell script
Code:
ntpd -s
date
echo '--------------------'
mkdir -p /ma1
umount /ma1
mount /dev/sda1 /ma1
df
echo '--------------------'
read X
echo $X
cd /ma1
mkdir -p bin etc home lib opt root sbin srv usr var
for x in /bin /etc /home /lib /opt /root /sbin /srv /usr /var
do
rsync -avHx --delete $x/ /ma1$x/
done
for x in boot dev media mnt proc run sys tmp
do
rm -rf /ma1/$x
done
cd /ma1
mkdir -p boot dev media mnt proc run sys tmp
3)rewite /ma1/etc/fstab
Code:
# UNCONFIGURED FSTAB FOR BASE SYSTEM
# <file system> <dir> <type> <options> <dump> <pass>
/dev/mmcblk0p1 /boot vfat defaults 0 2
#/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
/dev/sda1 / ext4 defaults,noatime 0 1
#####################
#/dev/mmcblk0p3 none swap sw 0 0
/dev/sda2 none swap sw 0 0
in order to return SD card only system , i rewrite uEnv.txt originally.
in this state
Code:
root@pine64pro:/home/debian# mount /dev/sda1 /ma1
root@pine64pro:/home/debian# ls /ma1
bin boot dev etc home lib lost+found media mnt opt proc root run sbin srv sys tmp usr var
and /boot/uEnv.txt
console=tty0 console=ttyS0,115200n8 no_console_suspend
kernel_filename=pine64/Image
initrd_filename=initrd.img
ethaddr=36:c9:e3:f1:b8:05
optargs=disp.screen0_output_mode=720p60
root=/dev/sda1
also fail .
----
regards