Skip to content

Instantly share code, notes, and snippets.

@klange
Created May 9, 2014 03:54
Show Gist options
  • Save klange/80779b0b10d68f9a8781 to your computer and use it in GitHub Desktop.
Save klange/80779b0b10d68f9a8781 to your computer and use it in GitHub Desktop.
klange@luka strawberry-dev 148 ~/P/osdev-strawberry$ time expect test.exp [05/08 20:53:28]
spawn qemu-system-i386 -kernel toaruos-kernel -m 512 -serial stdio -hda toaruos-disk.img -k en-us -rtc base=localtime -net nic,model=rtl8139 -net user --initrd hdd/mod/zero.ko,hdd/mod/random.ko,hdd/mod/serial.ko,hdd/mod/procfs.ko,hdd/mod/tmpfs.ko,hdd/mod/ata.ko,hdd/mod/ext2.ko,hdd/mod/debug_shell.ko,hdd/mod/ps2mouse.ko,hdd/mod/ps2kbd.ko,hdd/mod/lfbvideo.ko,hdd/mod/packetfs.ko -display none -append start=--vga root=/dev/hda -no-reboot
qemu: multiboot knows VBE. we don't.
toaru-0.7.2-e37fdd2-dirty /# shell
Shell started with pid = 5
root@toaru-test /$ export PATH=/bin:/usr/bin [05/08 20:53:29]
root@toaru-test /$ uname -a [05/08 20:53:29]
toaru toaru-test 0.7.2-e37fdd2-dirty strawberry May 8 2014 20:23:25 i686
root@toaru-test /$ ls /dev [05/08 20:53:30]
hda kbd mouse null pex random ttyS0 ttyS1 ttyS2 ttyS3
zero
root@toaru-test /$ cat /proc/meminfo [05/08 20:53:30]
MemTotal: 523892 kB
MemFree: 487136 kB
root@toaru-test /$ cd /tmp [05/08 20:53:30]
root@toaru-test /tmp$ test-write test.c "#include <stdio.h> [05/08 20:53:30]
> int main(int argc, char * argv) {
> printf(\"Hello world!\n\");
> return 0;
> }
> "
test-write: wrote 99 bytes
root@toaru-test /tmp$ cat test.c [05/08 20:53:30]
#include <stdio.h>
int main(int argc, char * argv) {
printf("Hello world!\n");
return 0;
}
root@toaru-test /tmp$ gcc -o test test.c [05/08 20:53:30]
root@toaru-test /tmp$ ./test [05/08 20:53:34]
reboot
Hello world!
root@toaru-test /tmp$ reboot [05/08 20:53:34]
real 0m5.931s
user 0m0.013s
sys 0m0.012s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment