Commit 47d972f3 authored by mntmn's avatar mntmn

mkimage: some bugfixes

parent e11fcd65
......@@ -19,17 +19,17 @@ sudo ./mkuserland2.sh
# Rescue System ---------------------------------------------------------
SIZE=2048M
SIZE=4096M
# create ext4 partition from target root directory directly at 4MiB offset
sudo /sbin/mke2fs -v -L 'MNTRESCUE' -N 0 -O 64bit -E offset=4194304 -d target-userland -m 5 -r 1 -t ext4 reform-system.img $SIZE
sudo /sbin/mke2fs -v -L 'MNTRESCUE' -N 0 -O 64bit -E offset=4194304 -d target-userland -m 5 -r 1 -t ext4 reform-rescue-system.img $SIZE
sudo /sbin/parted -s reform-system.img "mklabel msdos"
sudo /sbin/parted -s reform-system.img "mkpart primary ext4 4MiB -1s"
sudo /sbin/parted -s reform-system.img print
sudo /sbin/parted -s reform-rescue-system.img "mklabel msdos"
sudo /sbin/parted -s reform-rescue-system.img "mkpart primary ext4 4MiB -1s"
sudo /sbin/parted -s reform-rescue-system.img print
# mkuboot.sh needs to run before. this creates flash.bin.
# install u-boot for i.MX8MQ
sudo dd if=./u-boot/flash.bin of=reform-system.img conv=notrunc bs=1k seek=33
sudo dd if=./u-boot/flash.bin of=reform-rescue-system.img conv=notrunc bs=1k seek=33
echo Reform Rescue System Image created: reform-rescue-system.img
......@@ -50,3 +50,4 @@ sudo /sbin/parted -s reform-system.img print
sudo dd if=./u-boot/flash.bin of=reform-system.img conv=notrunc bs=1k seek=33
echo Reform Full System Image created: reform-system.img
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment