mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-30 00:00:15 +01:00
Updated Boot HermitCore from a raw image (markdown)
parent
23b9482204
commit
797e6a3f27
1 changed files with 3 additions and 5 deletions
|
@ -41,9 +41,7 @@ $ sudo losetup --find --show -o 1048576 stream.raw
|
|||
/dev/loop2
|
||||
```
|
||||
|
||||
**Note:** The numbers of the loop devices depend on your systems and if you already setup another loop device.
|
||||
|
||||
The option `-o` defines the offset from start of the file. The offset 1048576 is actually 1024^2 = 1MB and that's the start of our partition. Now, we are able to format our partition.
|
||||
**Note:** The numbers of the loop devices depend on your systems and if you already setup another loop device. The option `-o` defines the offset from start of the file. The offset 1048576 is actually 1024^2 = 1MB and that's the start of our partition. Now, we are able to format our partition.
|
||||
|
||||
```bash
|
||||
$ sudo mke2fs /dev/loop2
|
||||
|
@ -64,8 +62,8 @@ Afterwards, we are able to mount the partition, to install grub and our applicat
|
|||
```bash
|
||||
$ sudo mount /dev/loop2 /mnt
|
||||
$ sudo grub-install --root-directory=/mnt --no-floppy --modules="normal part_msdos ext2 multiboot biosdisk" /dev/loop1
|
||||
sudo cp /opt/hermit/bin/ldhermit.elf isodir/boot/
|
||||
sudo cp /opt/hermit/x86_64-hermit/extra/benchmarks/stream /mnt/boot/
|
||||
$ sudo cp /opt/hermit/bin/ldhermit.elf isodir/boot/
|
||||
$ sudo cp /opt/hermit/x86_64-hermit/extra/benchmarks/stream /mnt/boot/
|
||||
```
|
||||
|
||||
**Note:** `loop1`is the MBR, while `loop2`is our partition.
|
||||
|
|
Loading…
Add table
Reference in a new issue