[aklug] ttylinux up and running on bochs

From: Christopher Howard <choward@indicium.us>
Date: Sat Sep 04 2010 - 16:38:11 AKDT

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ended up using the i686 version of ttylinux, which uses more RAM, so I
gave myself 64M of RAM.

# cat /proc/version
Linux version 2.6.30.5 (root@batman) (gcc version 4.3.4 (GCC) ) #1 SMP
PREEMPT Tue Jul 6 21:29:51 MST 2010

Idling, though, it only uses 16MB of memory:

# cat /proc/meminfo
MemTotal: 56148 kB
...
MemFree: 40068 kB
...

Now, this is still the ttylinux live CD - haven't set up my own system
on the "hard drive" yet.

Here's my Bochs config file (tiny.conf):
# configuration file generated by Bochs
plugin_ctrl: unmapped=1, biosdev=1, speaker=1, extfpuirq=1, ioapic=1
config_interface: textconfig
display_library: term
memory: host=64, guest=64
romimage: file="/usr/local/share/bochs/BIOS-bochs-latest"
vgaromimage: file="/usr/local/share/bochs/VGABIOS-lgpl-latest"
boot: cdrom, disk
floppy_bootsig_check: disabled=0
# no floppya
# no floppyb
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata0-master: type=cdrom, path="ttylinux-i686-11.2.iso", status=inserted,
biosdetect=auto, model="Generic 1234"
ata0-slave: type=disk, mode=flat, translation=auto, path="tiny.img",
cylinders=980, heads=10, spt=17, biosdetect=auto, model="WDAC280"
ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
ata2: enabled=0
ata3: enabled=0
parport1: enabled=1, file=""
parport2: enabled=0
com1: enabled=1, mode=null, dev=""
com2: enabled=0
com3: enabled=0
com4: enabled=0
usb_uhci: enabled=0
usb_ohci: enabled=0
i440fxsupport: enabled=0
vga_update_interval: 50000
vga: extension=vbe
cpu: count=1, ips=174063616, reset_on_triple_fault=1, ignore_bad_msrs=1
cpuid: cpuid_limit_winnt=0, mmx=1, sse=sse2, xapic=1, sep=1, aes=0,
xsave=0, movbe=0
print_timestamps: enabled=0
port_e9_hack: enabled=0
text_snapshot_check: enabled=0
private_colormap: enabled=0
clock: sync=realtime, time0=local
# no cmosimage
ne2k: enabled=0
pnic: enabled=0
sb16: enabled=0
# no loader
log: tiny.log
logprefix: %t%e%d
panic: action=fatal
error: action=report
info: action=report
debug: action=ignore
pass: action=fatal
keyboard_type: mf
keyboard_serial_delay: 250
keyboard_paste_delay: 100000
keyboard_mapping: enabled=0, map=
user_shortcut: keys=none
mouse: enabled=0, type=ps2

And I created the "drive" img with this command:

dd if=/dev/zero of=tiny.img bs=512 count=166600

Apparently, you have to make sure that the .img file you use matches
size-wise the specs you gave in the Bochs options for cylinders, heads,
and sectors. According to some documentation I found online
(http://bochs.sourceforge.net/doc/docbook/user/howto.html) the "count"
is supposed to equal the sectors calculated by Sectors = Cylinders *
Heads * SectorsPerTrack.

I went with the specs for a 85MB WDAC280 (Western Digital) drive, which
I found here (along with a bunch of other old drive specs):

http://www.computerhope.com/hdwd.htm#2

Boot up went fine, except for one issue I ran into and solved, which I
documented here:

http://www.linuxquestions.org/questions/linux-server-73/bochs-fatal-error-all-available-memory-is-already-allocated-830383/

I haven't tried setting up a network interface to the outside world, but
plan on getting to that soon.

Anyway, probably more than you all wanted to know, but I wanted to get
it all down in ASCII while I still remember it. :)

- --
Christopher Howard
frigidcode.com
theologia.indicium.us
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyC5nMACgkQQ5FLNdi0BcVVhgCfRZj/uZg9tk7bORkQkQjNFFY3
cX8An2wzOxXtGq1tHurlczdaTjFUQNUL
=QXrt
-----END PGP SIGNATURE-----
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Sat Sep 4 16:41:06 2010

This archive was generated by hypermail 2.1.8 : Sat Sep 04 2010 - 16:41:06 AKDT