(06-10-2020, 01:11 PM)chaoskampf Wrote: I will try smth like bellow to move existing and configured Kali installation from SD to eMMC.
Steps:
1. Boot from kali on sd
2. Write u-boot and friends to eMMC:
3. Create partition on eMMC (starting at 32768 sector)Code:dd if=idbloader.img of=/dev/mmcblk2 bs=32k seek=1 conv=fsync
dd if=uboot.img of=/dev/mmcblk2 bs=64k seek=128 conv=fsync
dd if=trust.img of=/dev/mmcblk2 bs=64k seek=192 conv=fsync
4. Mount the partition in /mntCode:(parted) mkpart primary ext3 32768s -1s
5.
6.Code:cd /mnt
7.Code:mkdir dev proc sys mnt
8.Code:rsync -aHxv --numeric-ids --progress /* /mnt --exclude=/dev --exclude=/proc --exclude=/sys --exclude=/mnt
9. Edit boot.txt and change "root=PARTUUID=${uuid}" to "root=/dev/mmcblk2p1"Code:chroot /mnt
10.
11. reboot (without sd)Code:mkimage -A arm64 -T script -O linux -d boot.txt boot.scr
Any suggestions and comments are appreciated.
(edited)
I will try your guide above during the day. Where do you find the latest version of these files:
idbloader.img
uboot.img
trust.img
I followed your guide and it works!!!
Thankyou!!!!!!
I actually had Manjaro installed so I skipped step 2 and just deleted p1 and p2 since the boot stuff was already there.
Added a few code steps that might not be obvious to everyone:
1. Boot from kali on sd
2. Write u-boot and friends to eMMC:
Code:
dd if=idbloader.img of=/dev/mmcblk2 bs=32k seek=1 conv=fsync
dd if=uboot.img of=/dev/mmcblk2 bs=64k seek=128 conv=fsync
dd if=trust.img of=/dev/mmcblk2 bs=64k seek=192 conv=fsync
3. Create partition on eMMC (starting at 32768 sector)
Code:
parted /dev/mmcblk2
(parted) mkpart primary ext3 32768s -1s
mkfs.ext3 /dev/mmcblk2p1
4. Mount the partition in /mnt
mount -t ext3 /dev/mmcblk2p1 /mnt
5.
Code:
cd /mnt
6.
Code:
mkdir dev proc sys mnt
7.
Code:
apt update
sudo apt install rsync
rsync -aHxv --numeric-ids --progress /* /mnt --exclude=/dev --exclude=/proc --exclude=/sys --exclude=/mnt
8.
Code:
chroot /mnt
9. Edit boot.txt and change "root=PARTUUID=${uuid}" to "root=/dev/mmcblk2p1"
cd /boot
vi boot.txt
10.
Code:
mkimage -A arm64 -T script -O linux -d boot.txt boot.scr
11. reboot (without sd)