update qemu study
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# boot & kernel
|
||||
|
||||
## 1. 어셈블리 컴파일 (바이너리 파일 생성)
|
||||
|
||||
```bash
|
||||
nasm -f bin boot.asm -o boot.bin
|
||||
nasm -f bin kernel.asm -o kernel.bin
|
||||
```
|
||||
|
||||
## 2. 디스크 이미지 만들기
|
||||
|
||||
### boot.bin(512바이트) 뒤에 kernel.bin을 붙입니다.
|
||||
|
||||
```bash
|
||||
cat boot.bin kernel.bin > os.img
|
||||
|
||||
truncate -s 1440k os.img
|
||||
|
||||
qemu-system-x86_64 -drive format=raw,file=os.img -display curses
|
||||
```
|
||||
Reference in New Issue
Block a user