Skip to content
Snippets Groups Projects
Commit a41a1f82 authored by minute's avatar minute
Browse files

rename mkreform.sh to makeimage.sh and clean it up a bit

parent 47d554e6
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# stty intr ^]
qemu-system-arm -M virt -m 2048 -kernel linux/arch/arm/boot/zImage -drive if=none,file=reform-system.img,format=raw,id=hd -device virtio-blk-device,drive=hd -netdev user,id=mynet,hostfwd=tcp:127.0.0.1:10022-:22 -device virtio-net-device,netdev=mynet -append "console=ttyAMA0,115200 root=/dev/vda1 single" -serial stdio -no-reboot -monitor none -nographic -smp 4
#!/bin/sh
set -x
set -e
sudo apt install parted multistrap udisks2 gcc-aarch64-linux-gnu
git submodule update --init --recursive
......@@ -3,18 +3,18 @@
set -x
set -e
./mkdeps.sh
./mkkernel.sh # TODO make kernel 2 times, once with LOADADDR for target and once for virt
sudo apt install parted multistrap udisks2 gcc-aarch64-linux-gnu
./mkkernel.sh
./mkuboot.sh
sudo ./mkuserland.sh
sudo ./mkuserland2.sh
mkdir -p target
# DEPS: parted multistrap udisksctl g++-arm-linux-gnueabihf
# change 16000 below to the number of megabytes your image file should have
# change 8000 below to the number of megabytes your image file should have
if [ ! -f reform-system.img ]; then
dd if=/dev/zero of=reform-system.img bs=1M count=0 seek=4000
dd if=/dev/zero of=reform-system.img bs=1M count=0 seek=8000
else
echo "reform-system.img already exists. Delete it if you want to change the image size."
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment