Connecting to a m0n0wall box over serial

I dug up my old m0n0wall box today and wanted to see what was on it. It’s an old WRAP embedded system from PC Engines. It doesn’t have any video out. I didn’t want to connect it to my network as it’s likely to have the ipaddress 192.168.1.1 and that would cause conflicts with my pfSense box.

So I connected up a serial cable, connected to the box using

1
sudo cu -l /dev/cuaU0 -s 38400

The docs say that the speed should be 115200 but I found that didn’t work (even after resetting the box back to factory defaults).

This is really just a blog post for me. In a few years I will stumble across this box again and need to know how to connect to it :)

Incase anyone stumbles across this on google looking for a FreeBSD compatible USB to serial. I used a USB to Serial cable that I had lying around. I worked fine with FreeBSD 11. The cable appeared as

1
Prolific Technology Inc. USB-Serial Controller D

in dmesg you see this:

1
2
3
ugen0.2: <Prolific Technology Inc. USB-Serial Controller D> at usbus0
uplcom0 on uhub4
uplcom0: <Prolific Technology Inc. USB-Serial Controller D, class 0/0, rev 1.10/4.00, addr 2> on usbus0

For reference here is the serial output of the WRAP box as it boots. This box used to be a lovely firewall but m0n0wall’s retirement and it’s slow processor forced an upgrade to a more powerful box.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
PC Engines WRAP.1C/1D/1E v1.11
640 KB Base Memory
130048 KB Extended Memory

01F0 Master 848A Flash Card                              
Phys C/H/S 984/16/8 Log C/H/S 984/16/8
Consoles: internal video/keyboard  
BIOS drive C: is disk0
BIOS 640kB/130048kB available memory

FreeBSD/i386 bootstrap loader, Revision 1.1
(root@mb64.neon1.net, Thu Jul 23 20:56:49 CEST 2009)
/kernel text=0x368050 data=0x3d474+0x22ef4 syms=[0x4+0x47050+0x4+0x5acc6]
Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.4-RELEASE-p5 #0: Sun Jan  9 22:24:57 CET 2011
    root@mb64.neon1.net:/usr/src/sys/i386/compile/M0N0WALL_EMBEDDED
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Geode(TM) Integrated Processor by National Semi (266.65-MHz 586-class CPU)
  Origin = "Geode by NSC"  Id = 0x540  Stepping = 0
  Features=0x808131<FPU,TSC,MSR,CX8,CMOV,MMX>
real memory  = 134217728 (128 MB)
avail memory = 105136128 (100 MB)
wlan: mac acl policy registered
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
cpu0 on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
ath0: <Atheros 5212> mem 0x80000000-0x8000ffff irq 12 at device 13.0 on pci0
ath0: Ethernet address: 00:1b:b1:02:bf:0e
ath0: mac 5.9 phy 4.3 radio 3.6
sis0: <NatSemi DP8381[56] 10/100BaseTX> port 0x1000-0x10ff mem 0x80040000-0x80040fff irq 10 at device 14.0 on pci0
sis0: Silicon Revision: DP83816A
miibus0: <MII bus> on sis0
nsphyter0: <DP83815 10/100 media interface> on miibus0
nsphyter0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis0: Ethernet address: 00:0d:b9:03:f1:74
sis1: <NatSemi DP8381[56] 10/100BaseTX> port 0x1400-0x14ff mem 0x80080000-0x80080fff irq 9 at device 15.0 on pci0
sis1: Silicon Revision: DP83816A
miibus1: <MII bus> on sis1
nsphyter1: <DP83815 10/100 media interface> on miibus1
nsphyter1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis1: Ethernet address: 00:0d:b9:03:f1:75
sis2: <NatSemi DP8381[56] 10/100BaseTX> port 0x1800-0x18ff mem 0x800c0000-0x800c0fff irq 11 at device 16.0 on pci0
sis2: Silicon Revision: DP83816A
miibus2: <MII bus> on sis2
nsphyter2: <DP83815 10/100 media interface> on miibus2
nsphyter2:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis2: Ethernet address: 00:0d:b9:03:f1:76
Geode PC Engines WRAP.1C/1D/1E v1.tinyBIOS V1.4a (C)1997-2005
isab0: <PCI-ISA bridge> port 0xf400-0xf43f,0xf600-0xf63f at device 18.0 on pci0
isa0: <ISA bus> on isab0
pci0: <bridge> at device 18.1 (no driver attached)
atapci0: <National Geode SC1100 ATA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 18.2 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pci0: <multimedia, audio> at device 18.3 (no driver attached)
Timecounter "Geode" frequency 27000000 Hz quality 1000
pci0: <bridge> at device 18.5 (no driver attached)
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xe0000-0xe7fff on isa0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A, console
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
RTC BIOS diagnostic error 80<clock_battery>
Timecounters tick every 1.000 msec
Fast IPsec: Initialized Security Association Processing.
IP Filter: v4.1.33 initialized.  Default = block all, Logging = enabled
md0: Preloaded image </mfsroot> 16777216 bytes at 0xc086b0e8
ad0: FAILURE - SETFEATURES SET TRANSFER MODE status=51<READY,DSC,ERROR> error=4<ABORTED>
ad0: 61MB <Flash Card 2N2-1205> at ata0-master BIOSPIO
Trying to mount root from ufs:/dev/md0
kern.coredump: 1 -> 0
Found configuration on ad0.
sis0: link state changed to DOWN
sis1: link state changed to DOWN
sis2: link state changed to DOWN
Initializing timezone... done
Configuring firewall... done
Configuring LAN interface... done
Configuring WAN interface... done
Starting syslog service... done
Starting webGUI... done
Starting DNS forwarder... done
Starting DHCP service... done
Starting NTP client... done


*** This is m0n0wall, version 1.33

Hope this helps some lost cave deweller somewhere.

dazza