<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="0.92">
 <channel>
   <title>Jeremy C. Reed's  blog</title>
   <link>http://www.reedmedia.net/~reed/journal/</link>
   <description>Jeremy C. Reed's  blog</description>
   <language>en</language>
<item>
 <title>29/Mar/2008</title>
 <link>http://www.reedmedia.net/~reed/journal/2008/20080329.html</link>
<pubDate>Sat, 29 Mar 2008 22:04:02 -0400
</pubDate>
 <description>

&lt;p&gt;
I wanted to test a sysinst fix. Installing in qemu
or bochs is a little slow. gxemul is lot faster,
but building sysinst with cross-compiler took too long.
hubertf reminded me about vnd which is already detected by sysinst.
First I created my image the wrong way:

&lt;pre&gt;
dd if=/dev/zero of=sysinst.vnd.image bs=1 count=1 seek=1048576000
&lt;/pre&gt;
&lt;p&gt;
That is the wrong way because the sparse file later failed in disklabel
with:
&lt;/p&gt;

&lt;pre&gt;
disklabel: ioctl DIOCWDINFO: Input/output error
&lt;/pre&gt;

&lt;p&gt;
So I created a 400 MB file and the vnode with the following:
&lt;/p&gt;

&lt;pre&gt;
dd if=/dev/zero of=~/tmp/sysinst.vnd.image bs=2048 count=204800
sudo vnconfig vnd0 sysinst.vnd.image
&lt;/pre&gt;

&lt;p&gt;
My built my custom src/distrib/utils/sysinst/ and ran it:
&lt;/p&gt;

&lt;pre&gt;
sudo ./arch/amd64/sysinst
&lt;/pre&gt;

&lt;p&gt;
sysinst gave choice of my wd0 (in use) or the vnd0.
So I chose the vnode and could use it.
If sysinst had it mounted I could look under /targetroot/.
Or I could mount with:
&lt;/p&gt;

&lt;pre&gt;
sudo mount /dev/vnd0a /mnt
&lt;/pre&gt;

&lt;p&gt;
Also I could see the vnode and remove the vnode with:
&lt;/p&gt;
&lt;pre&gt;
sudo vnconfig -l

sudo vnconfig -u vnd0
&lt;/pre&gt;

&lt;p&gt;
By the way, I was doing this so I could fix a bug with rc.conf
generation of the DHCP or manual network configuration.
I used sysinst to install just base and etc sets using the
local file system /usr/src/obj/releasedir.
&lt;/p&gt;

 </description>
</item>
<item>
 <title>17/Mar/2008</title>
 <link>http://www.reedmedia.net/~reed/journal/2008/20080317.html</link>
<pubDate>Wed, 19 Mar 2008 00:02:32 -0400
</pubDate>
 <description>

&lt;p&gt;
I learned about many emulators after I asked on
netbsd-users a couple days ago.
I found many useful websites plus
http://www.netbsd.org/ports/emulators.html.
&lt;/p&gt;

&lt;p&gt;
I installed gxemul, simh, es40 (wip), and tme.
(I have already used bochs and qemu.)
&lt;/p&gt;

&lt;p&gt;
I tried gxemul for hpcmips and pmax.
I created &quot;sparse&quot; files for the pseudo disk image:
&lt;/p&gt;

&lt;pre&gt;
dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=3000000

dd if=/dev/zero of=nbsd_pmax.img bs=1024 count=1 seek=3000000
&lt;/pre&gt;

&lt;p&gt;
I fetched 4.0 files for: hpcmipscd-4.0.iso, hpcmips' netbsd-GENERIC.gz,
hpcmips installation netbsd.gz kernel, and pmaxcd-4.0.iso.
I installed hpcmips on emulated MobilePro 770 with:
&lt;/p&gt;

&lt;pre&gt;
gxemul -e mobilepro770 -X -d nbsd_hpcmips.img -d b:hpcmipscd-4.0.iso netbsd.gz
&lt;/pre&gt;

&lt;p&gt;
sysinst was the same as i386 and had MBR editor too.
Then I booted into new install with:
&lt;/p&gt;

&lt;pre&gt;
gxemul -e mobilepro770 -X -d nbsd_hpcmips.img netbsd-GENERIC.gz
&lt;/pre&gt;

&lt;p&gt;
It had no network support.
dmesg said it was 98.303MHz and 32MB ram.
Any way to verify if it is really 98.303MHz? Is that accurate?
Next I installed pmax with:
&lt;/p&gt;

&lt;pre&gt;
gxemul -x -e 3max -d nbsd_pmax.img -d b:pmaxcd-4.0.iso
&lt;/pre&gt;

&lt;p&gt;
Note that capital -X switch is to enable framebuffer.
And lower-case -x is to open an xterm.
In this case it emulated a serial console.
The sysinst didn't have a MBR editor on pmax platform.
I was able to boot the new install with:
&lt;/p&gt;

&lt;pre&gt;
gxemul -x -e 3max -d nbsd_pmax.img
&lt;/pre&gt;

&lt;p&gt;
I see its console was a serial device.
Any way to know what /dev/console actually is?
Also I could not find any docs for &quot;dz&quot;, &quot;lkkbd&quot; or &quot;vsms&quot;.
Where are these documented?
&lt;/p&gt;

&lt;p&gt;
gxemul is way faster to me than bochs or qemu.
Later, I will test simh-vax, es40 (for AlphaServer), and tme (for Sun).
I am using these to document some installation and administration
steps that may differ on various platforms for my NetBSD book
in progress. Email me if you want to look at the 80+ page outline.
&lt;/p&gt;

 </description>
</item>
 </channel>
</rss>
