Skip to content

Instantly share code, notes, and snippets.

View klange's full-sized avatar
🤔
Contemplative.

K Lange klange

🤔
Contemplative.
View GitHub Profile
@klange
klange / gist:9218355
Last active August 29, 2015 13:56
hg vs git `status` times on bare repository
hg
real 0m0.040s
user 0m0.032s
sys 0m0.008s
git
real 0m0.003s
user 0m0.003s
sys 0m0.000s
toaru-0.5.2-dev /# mod mod/testb.ko[0000000006.82:kernel/fs/tty.c:140] WARNING: Incoming IOCTL request 16387
[0000000006.82:kernel/sys/module.c:33] NOTICE: Attempting to load kernel module: mod/testb.ko
[0000000006.82:kernel/sys/module.c:105] ERROR: Unresolved symbol in module: a_function
[0000000006.82:kernel/sys/module.c:106] ERROR: Did you forget to load a dependency?
[0000000006.82:kernel/fs/tty.c:140] WARNING: Incoming IOCTL request 16384
[0000000006.82:kernel/fs/tty.c:140] WARNING: Incoming IOCTL request 16387
Okay, going to load a module!
Something went wrong, failed to load module: mod/testb.ko
toaru-0.5.2-dev 1 /# mod mod/test.ko[0000000023.04:kernel/fs/tty.c:140] WARNING: Incoming IOCTL request 16387
toaru-0.6.1-dev /# log on
toaru-0.6.1-dev /# mod mod/testb.ko
Okay, going to load a module!
[0000000006.15:kernel/sys/module.c:262] NOTICE: Attempting to load kernel module: mod/testb.ko
[0000000006.15:kernel/sys/module.c:84] ERROR: test - not loaded
[0000000006.15:kernel/sys/module.c:270] ERROR: Failed to load module due to unsatisfied dependency.
Something went wrong, failed to load module: mod/testb.ko
toaru-0.6.1-dev 1 /# mod mod/test.ko
Okay, going to load a module!
[0000000024.87:kernel/sys/module.c:262] NOTICE: Attempting to load kernel module: mod/test.ko
[yutani-server] Window at 639x324 is 3 (652x447)
[yutani-server] Window at 248x330 is 4 (1280x720)
[yutani-server] Window at 323x9 is 2 (1280x28)
[yutani-server] Window at 323x9 is 2 (1280x28)
[yutani-server] Window at 345x56 is 4 (1280x720)
[yutani-server] Window at 345x56 is 4 (1280x720)
[yutani-server] Window at 409x246 is 3 (652x447)
[yutani-server] Window at 44x149 is 4 (1280x720)
[yutani-server] Window at 340x211 is 3 (652x447)
toaru-0.7.2-1ed5be7 /# rtl
Located an RTL 8139: 0x00000300
COMMAND register before: 0x0103
COMMAND register after: 0x0107
COMMAND register after: 0x0107
Interrupt Line: 0000000b
BAR0: 0x0000c001
BAR1: 0xfebd1000
RTL iobase: 0x0000c000
Determining mac address...
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
# Start qemu
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
expect "toaru-"
send "shell\n"
expect "toaru-test"
send "export PATH=/bin:/usr/bin\n"
expect "toaru-test"
Ethernet II, Src: (52:55:0a:00:02:02), Dst: (ff:ff:ff:ff:ff:ff) [type=0800)
IP packet [10.0.2.2 → 255.255.255.255] length=576 bytes
UDP [67 → 68] length=556 bytes
DHCP Offer: 10.0.2.15
Ethernet II, Src: (52:55:0a:00:02:02), Dst: (52:54:00:12:34:56) [type=0800)
IP packet [10.0.2.3 → 10.0.2.15] length=269 bytes
UDP [53 → 50053] length=249 bytes
DNS - 1 queries, 12 answers
Queries:
irc.freenode.net. - Type: 0001 0001
Answers:
irc.freenode.net. - Type: 0005 0001; TTL: 152; len: 19; CNAME: chat.freenode.net.
chat.freenode.net. - Type: 0001 0001; TTL: 152; len: 4; Address: 62.231.75.133
chat.freenode.net. - Type: 0001 0001; TTL: 152; len: 4; Address: 185.30.166.38
12:17 -!- toarutest [~toaru@204.28.125.145] has joined #osdev
12:17 < toarutest> Neat.
12:17 -!- asie [~textual@078088168214.elblag.vectranet.pl] has quit [Ping timeout: 240 seconds]
12:17 < toarutest> Someone
12:17 < klange> Hm.
12:17 -!- osa1 [~omer@151.250.207.41] has joined #osdev
12:17 < klange> oh right
12:17 < puckipedia> Someone
12:18 < QuinnStorm> 1121ytcxctrx3x---[----=
12:18 < toarutest> Someone told me to write an interactive console