Re: armish fdisk/disklabel free sectors

2006-10-14 Thread Stuart Henderson
On 2006/10/13 19:37, Theo de Raadt wrote:
  Speaking of zaurus -- any way to get a com0 on this thing?
 
 You have to buy the special Zaurus adapter for this.  It is a little
 bit hard to find.  If you do so, you can even use it as a serial
 console.

Sharp ce-170ts (try amazon), there is another one (serialio zslimcable)
which fits the socket but is not suitable for use with sl-c3xxx.



armish fdisk/disklabel free sectors

2006-10-13 Thread Stuart Henderson
installing OpenBSD/armish on an n2100 I had to manually fdisk
as when I just used `fdisk -i' disklabel only saw 16383*1008-63
sectors free.

I don't know if this is indicative of a problem or whether
it's just information that might be useful to someone installing
but either way it's in the list archives now.

I haven't seen much in the way of power specs published for
these btw, with a 3.5 drive connected the included PSU
(12V 5A made by Seasonic) draws approx 15W (39VA) at idle,
18W (43VA) compiling. (and the soldering's pretty easy).

device: /dev/rwd0c
type: ESDI
disk: ESDI/IDE disk
label: ST3120811AS
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 234441648
free sectors: 16514001
rpm: 3600

16 partitions:
# sizeoffset  fstype [fsize bsize  cpg]
  c: 234441648 0  unused  0 0

... (same after z, g d, and so on).

fdisk: 1 print
Disk: wd0   geometry: 16383/16/63 [234441648 Sectors]
Offset: 0   Signature: 0xAA55
 Starting   Ending   LBA Info:
 #: idC   H  S -C   H  S [   start:  size   ]

 0: 000   0  0 -0   0  0 [   0:   0 ] unused
 1: 000   0  0 -0   0  0 [   0:   0 ] unused
 2: 000   0  0 -0   0  0 [   0:   0 ] unused
*3: A60   1  1 - 232580  15 63 [  63:   234441585 ] OpenBSD

fdisk: 1 edi 3
 Starting   Ending   LBA Info:
 #: idC   H  S -C   H  S [   start:  size   ]

*3: A60   1  1 - 16382  15 63 [  63:16514001 ] OpenBSD
Partition id ('0' to disable)  [0 - FF]: [A6] (? for help)
Do you wish to edit in CHS mode? [n]
offset: [63]
size: [16514001] 234441585

(235551648-63 = 234441585)

OpenBSD/armish booting ...
initarm: Configuring system ...
physmemory: 32768 pages at 0xa000 - 0xa7ff
kernelsize text 2a9df1 total 343570 end c04ff398esym c0543570
physical_freestart a0544000 end a800
[ using 279000 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2006 OpenBSD. All rights reserved.
http://www.OpenBSD.org

OpenBSD 4.0-current (GENERIC) #57: Wed Oct 11 08:28:25 MDT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/armish/compile/GENERIC
real mem  = 134217728 (131072K) 128MB
avail mem = 115597312 (112888K)
using 1664 buffers containing 6815744 bytes (6656K) of memory
mainbus0 (root)
cpu0 at mainbus0: i80219 600MHz step A-0 (XScale core)
cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
cpu0: 32KB(32b/l,32way) I-cache, 32KB(32b/l,32way) wr-back-lock D-cache
iopxs0 at mainbus0: Thecus Nx100: i80321 I/O Processor
iopiic0 at iopxs0: I2C controller
iic0 at iopiic0
ricohrtc0 at iic0 addr 0x32: RICOH RS5C372[AB] Real-time Clock
pcaled0 at iic0 addr 0x60: PCA9532 LED controller
gpio0 at pcaled0: 16 pins
fintek0 at iic0 addr 0x2e: F75375 rev 1.5
pci0 at iopxs0
re0 at pci0 dev 1 function 0 Realtek 8169 rev 0x10: irq 27, address 
00:14:fd:10:3e:3c
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 3
re1 at pci0 dev 2 function 0 Realtek 8169 rev 0x10: irq 30, address 
00:14:fd:10:3e:3d
rgephy1 at re1 phy 7: RTL8169S/8110S PHY, rev. 3
pciide0 at pci0 dev 3 function 0 CMD Technology SiI3512 SATA rev 0x01: DMA
pciide0: using irq 29 for native-PCI interrupt
pciide0: port 0: device present, speed: 1.5Gb/s
wd0 at pciide0 channel 0 drive 0: ST3120811AS
wd0: 16-sector PIO, LBA48, 114473MB, 234441648 sectors
wd0(pciide0:0:0): using BIOS timings, Ultra-DMA mode 6
uhci0 at pci0 dev 4 function 0 VIA VT83C572 USB rev 0x61: irq 27
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 4 function 1 VIA VT83C572 USB rev 0x61: irq 27
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 4 function 2 VIA VT6202 USB rev 0x63: irq 29
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: VIA EHCI root hub, rev 2.00/1.00, addr 1
uhub2: 4 ports with 4 removable, self powered
gpio1 at iopxs0: 8 pins
obio0 at mainbus0
com0 at obio0 addr 0xfe80 intr 28: ns16550a, 16 byte fifo
com0: console
clock: hz= 100 stathz = 100
boot device: wd0.
root on wd0a
rootdev=0x1000 rrootdev=0x1000 rawdev=0x1002



Re: armish fdisk/disklabel free sectors

2006-10-13 Thread Jeff Quast

Hi Stuart,

On 10/13/06, Stuart Henderson [EMAIL PROTECTED] wrote:

installing OpenBSD/armish on an n2100 I had to manually fdisk


INSTALL.armish in the fdisk section says Write some good explaination
here..., so maybe this is known -- but nobody has written a good
section for this.


(12V 5A made by Seasonic) draws approx 15W (39VA) at idle,
18W (43VA) compiling. (and the soldering's pretty easy).


This machine looks really fun though! Thanks for the power stats, too!


obio0 at mainbus0
com0 at obio0 addr 0xfe80 intr 28: ns16550a, 16 byte fifo
com0: console


I don't mind soldering -- but soldering what? Is this for com0?

Thanks!!



Re: armish fdisk/disklabel free sectors

2006-10-13 Thread Stuart Henderson
On 2006/10/13 16:50, Jeff Quast wrote:
 On 10/13/06, Stuart Henderson [EMAIL PROTECTED] wrote:
 installing OpenBSD/armish on an n2100 I had to manually fdisk
 
 INSTALL.armish in the fdisk section says Write some good explaination
 here..., so maybe this is known -- but nobody has written a good
 section for this.

didn't spot that this time round - that'll teach me for reading it a
few days ago and only skimming it while actually installing!

it was suggested off-list that recent disk emulation changes may
(or may not) have been involved; fdisk creates a partition of the
size that would be appropriate for the c*h*s geometry shown by
fdisk, disklabel and atactl so it might be something different
though.

 (12V 5A made by Seasonic) draws approx 15W (39VA) at idle,
 18W (43VA) compiling. (and the soldering's pretty easy).
 
 This machine looks really fun though! Thanks for the power stats, too!
 
 obio0 at mainbus0
 com0 at obio0 addr 0xfe80 intr 28: ns16550a, 16 byte fifo
 com0: console
 
 I don't mind soldering -- but soldering what? Is this for com0?

yes, you need to attach a .1 2x5-pin header (minus one pin)
to the space conveniently located on the drive backplane away
from anything that's too easy to damage. I bought a strip
with enough to do several boxes, if someone wants one or two
headers somewhere I can post to cheaply (.uk/europe) then mail
me offlist.

if you have multiple boxes to build, you can just move the
backplane around if you only need one with a console. you need
the serial console to install the OpenBSD boot loader onto
flash, or to netboot, but not to actually run it (though it helps).

I moved j3 to j4 as well (irq for serial port, info on
http://www.debonaras.org/wiki/Info/ThecusN2100 internals page)

the fan's not the quietest but not too worrying.

runs ok with 512MB RAM borrowed from my main desktop machine,
I don't have any larger stick to try it with (the RAM controller
in the 80219 is meant to support 1GB of DDR ECC RAM, but I don't
know what this board supports). much nicer for port-building
than a zaurus :-)

thanks to all involved with porting to this arch...(and well,
everyone who spends time working on OpenBSD)



Re: armish fdisk/disklabel free sectors

2006-10-13 Thread Diana Eichert
On Fri, 13 Oct 2006, Stuart Henderson wrote:

 runs ok with 512MB RAM borrowed from my main desktop machine,
 I don't have any larger stick to try it with (the RAM controller
 in the 80219 is meant to support 1GB of DDR ECC RAM, but I don't
 know what this board supports). much nicer for port-building
 than a zaurus :-)

darn, y'all have taken all the fun out of finding the rs232 serial console
port. :-(

the Certance CP3100 comes with a 256M stick in one socket, it supports up
to a 1GB stick, this from the horse's mouth, ie the original design house.
I'd be really surprised if yours didn't work with 1GB.

diana



Re: armish fdisk/disklabel free sectors

2006-10-13 Thread Diana Eichert
On Fri, 13 Oct 2006, Jeff Quast wrote:

 Hi Stuart,
SNIP
 This machine looks really fun though! Thanks for the power stats, too!

  obio0 at mainbus0
  com0 at obio0 addr 0xfe80 intr 28: ns16550a, 16 byte fifo
  com0: console

 I don't mind soldering -- but soldering what? Is this for com0?

 Thanks!!

embedded system h/w hacking, yippie.  look for any pin headers, maybe 4 or
5 together.  if there aren't any headers look for a 4 or 5 solder pads in
roll.  if you find either one of these then you need to first find which
pin/pad is GND, then with this knowledge in hand you can start checking
voltages on the other pins/pads.  You may also find a dual roll of
pins/pads of anywhere from 10 - 16 pins, most likely this is the JTAG
port.

WARNING, mucking about your h/w can 'cause premature failure.  I've
accidently shorted PWR to GND before, fortunately the DC power fuse
failed.  Unfortunately the fuse was a very SMALL fuse that was oh so fun
to replace.



Re: armish fdisk/disklabel free sectors

2006-10-13 Thread Jeff Quast

On 10/13/06, Stuart Henderson [EMAIL PROTECTED] wrote:

On 2006/10/13 16:50, Jeff Quast wrote:
 On 10/13/06, Stuart Henderson [EMAIL PROTECTED] wrote:
 installing OpenBSD/armish on an n2100 I had to manually fdisk

 (12V 5A made by Seasonic) draws approx 15W (39VA) at idle,
 18W (43VA) compiling. (and the soldering's pretty easy).

 This machine looks really fun though! Thanks for the power stats, too!

 obio0 at mainbus0
 com0 at obio0 addr 0xfe80 intr 28: ns16550a, 16 byte fifo
 com0: console

 I don't mind soldering -- but soldering what? Is this for com0?

yes, you need to attach a .1 2x5-pin header (minus one pin)
to the space conveniently located on the drive backplane away
from anything that's too easy to damage.



you need
the serial console to install the OpenBSD boot loader onto
flash, or to netboot, but not to actually run it (though it helps).

I moved j3 to j4 as well (irq for serial port, info on
http://www.debonaras.org/wiki/Info/ThecusN2100 internals page)



much nicer for port-building
than a zaurus :-)


Speaking of zaurus -- any way to get a com0 on this thing? I notice a
funny port under a rubber pad on the back of the 3100 -- I don't know
of any cable for the port on the back, but my dmesg indicates theres
at least one comport logically...

Would be nice to plug into a conserver for debugging and bug posts,
I've had a few panics... If soldering is required on this zaurus
board, count me out!


thanks to all involved with porting to this arch...


second this! -- Though a few panics, my zaurus is as stable as I
imagine a mobile i386 would be under the kind of abuse it gets...



Re: armish fdisk/disklabel free sectors

2006-10-13 Thread Theo de Raadt
 Speaking of zaurus -- any way to get a com0 on this thing?

You have to buy the special Zaurus adapter for this.  It is a little
bit hard to find.  If you do so, you can even use it as a serial
console.

 Would be nice to plug into a conserver for debugging and bug posts,
 I've had a few panics... If soldering is required on this zaurus
 board, count me out!

No soldering is required.  the adapter just plugs in.