https://github.com/jpf/qemu-hello-world-asm
Output all of the assmbler needed to print "Hello, World" after booting Linux
https://github.com/jpf/qemu-hello-world-asm
Last synced: 16 days ago
JSON representation
Output all of the assmbler needed to print "Hello, World" after booting Linux
- Host: GitHub
- URL: https://github.com/jpf/qemu-hello-world-asm
- Owner: jpf
- Created: 2015-06-04T21:39:54.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-04T21:45:33.000Z (almost 11 years ago)
- Last Synced: 2025-03-17T19:56:24.521Z (about 1 year ago)
- Size: 1.79 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
These are the commands to run to boot a small version of GNU/Linux in QEMU, have it print "Hello, World", and then dump out all of the ASM needed to boot linux and print "Hello, World"
$ git clone git://git.qemu-project.org/qemu.git
$ cd qemu/
$ ./configure --target-list=i386-softmmu --enable-debug-tcg --enable-debug-info --enable-debug --enable-trace-backends=simple
$ make
$ wget http://wiki.qemu.org/download/linux-0.2.img.bz2
$ bunzip2 linux-0.2.img.bz2
$ ./i386-softmmu/qemu-system-i386 linux-0.2.img -display curses
At this point, edit /sbin/init to display "Hello, World" and end with "/sbin/reboot -p -f"
$ ./i386-softmmu/qemu-system-i386 linux-0.2.img -no-reboot -d in_asm 2>&1 | tee qemu-hello-world-asm