Author Topic: Stuck In Openbsd Install Limbo  (Read 6636 times)

obscurite

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Stuck In Openbsd Install Limbo
« on: September 03, 2005, 02:35:29 am »
* Got the current ipk for 3.8
* Ran install openbsd
* Entered openbsd installer
* Aborted to shell after realizing i wanted to keep some space for linux
* rebooted
* Now stuck at boot prompt. No disk label, nothing boots.

I did the procedure that's supposed to prevent the booting of the linux partition:

mount /dev/mtdblock2 /mnt
cd /mnt/home/etc/rc.d

cat rc.rofilesys | sed -e '/vfat/s/^/#/' > vfat
diff -u rc.rofilesys vfat      # to double check
cp rc.rofilesys rc.rofilesys.vfat
cp vfat rc.rofilesys

The diff seemed to show that lines which were already commented out were just re-commented (double ##'s). Anyway, didn't really do anything... just thought I'd mention it.

I can boot into single user mode, but don't know what the heck I can do from there.

Now, do I need to do a NAND restore, or is there hope?

Thanks for listening. I apologize for being a moron!
C3100, 5500, former C860 owner

obscurite

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Stuck In Openbsd Install Limbo
« Reply #1 on: September 03, 2005, 03:11:32 am »
There may be hope... perhaps single user + insmod... will report back.
C3100, 5500, former C860 owner

obscurite

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Stuck In Openbsd Install Limbo
« Reply #2 on: September 03, 2005, 05:33:20 am »
Issue resolved for now. It took ages but I finally got a macos tiger system to mount my SD card (which i had to format and partition on my zaurus directly in single user mode). I insmod'd the bsdmod.o and copied the bsd.rd to /proc/zboot (got the idea from the install docs). Now I'm back at the (I)nstall, (U)pgrade or (S)hell? prompt.

Wish me luck!
C3100, 5500, former C860 owner

obscurite

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Stuck In Openbsd Install Limbo
« Reply #3 on: September 03, 2005, 08:35:35 am »
Good news... I decided on a partitioning scheme (3550mb /, 450mb /tmp) and got my WCF-11 card working (had to turn off WEP). The sets are now downloading (selected them all).

Hopefully the install will now complete (I've restarted it via ./install about 10 times trying different things ) and I can have a nice reward for staying up all night. hehe
C3100, 5500, former C860 owner

obscurite

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Stuck In Openbsd Install Limbo
« Reply #4 on: September 03, 2005, 07:05:58 pm »
I've done the install over and over like a moron. The problem is after I calibrate the screen, halt, reboot, I can't seem to find the boot partition in the boot> prompt.

I've tried every device name I can think of... nothing will boot. bsd, obsd and bsd.old are not found anywhere.

I made sure the OpenBSD partition was bootable/active. I even tried reinit'ing the MBR. The offset for a is 63 bytes. / is on a, /tmp is on b.

What the heck stupid newbie mistake am I making?
C3100, 5500, former C860 owner

plarusa

  • Newbie
  • *
  • Posts: 18
    • View Profile
Stuck In Openbsd Install Limbo
« Reply #5 on: September 03, 2005, 07:24:38 pm »
Quote
I've done the install over and over like a moron. The problem is after I calibrate the screen, halt, reboot, I can't seem to find the boot partition in the boot> prompt.

I've tried every device name I can think of... nothing will boot. bsd, obsd and bsd.old are not found anywhere.

I made sure the OpenBSD partition was bootable/active. I even tried reinit'ing the MBR. The offset for a is 63 bytes. / is on a, /tmp is on b.

What the heck stupid newbie mistake am I making?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=94426\"][{POST_SNAPBACK}][/a][/div]


I had a similar problem, but that was because I did not create the "a" label at the beginning of the a6 partition. I created the "b" label (swap) first. Once I corrected this mistake, it booted.
zaurus sl-3000 with OpenBsd
zaurus sl-860 with pdaXrom

obscurite

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Stuck In Openbsd Install Limbo
« Reply #6 on: September 03, 2005, 07:32:26 pm »
Thanks, but that doesn't appear to be my problem. a is most certainly before b. Can you please tell show me your fdisk and disklabel output for your current settings?
C3100, 5500, former C860 owner

barryg

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • http://web.kssp.upd.edu.ph/barry/zaurus/
Stuck In Openbsd Install Limbo
« Reply #7 on: September 03, 2005, 08:49:09 pm »
Good Day!

a. Can you post your fdisk, disklabel and dmesg?
b. Do you have any CF and/or SD card inserted when booting? Remove them and
   reboot .Details here[0].
c. Try not to allocate a slice for swap and tmp. You can swap to a
   file(will disable core dumps) and link /tmp to /var/tmp. My setup is
   here[1].
d. OpenBSD install boo boos will *not* require NAND restores. The only
   thing that is written to  the NAND area is the zbsdmod.o and
   /etc/rc,rofilesys and can be easily removed and restored(documented in
   INSTALL.zaurus)[2].  If you wiped your HDD, you can still boot single
   user and restore HDD contents and sufficiently documented in these
   forums[3].



Mabuhay! barryg

[0]
http://marc.theaimsgroup.com/?l=openbsd-ar...112545108819992

[1]
http://web.kssp.upd.edu.ph/barryg/zaurus/openbsd.html

[2]
ftp://ftp.openbsd.org/pub/OpenBSD/snapsho.../INSTALL.zaurus

[3]
http://www.xlfag.com/zaurus/
http://www.trisoft.de/en_c3000howto.htm

--
Barry Dexter A. Gonzaga, bofh

obscurite

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Stuck In Openbsd Install Limbo
« Reply #8 on: September 03, 2005, 09:28:05 pm »
Thanks barryg, will post my info asap!

P.S. I did have an SD card inserted (on which I had zbsdmod.o and bsd.rd - which I repeatedly need to get back into the installer). I tried removing it as the openbsd installer was starting up, but didn't notice any difference.
« Last Edit: September 03, 2005, 09:29:07 pm by obscurite »
C3100, 5500, former C860 owner

obscurite

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Stuck In Openbsd Install Limbo
« Reply #9 on: September 03, 2005, 10:39:26 pm »
Well, I managed to finally boot openbsd. Looks like my WCF11 CF card was the problem... I'll be damned.

Thanks barryg.
C3100, 5500, former C860 owner

obscurite

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Stuck In Openbsd Install Limbo
« Reply #10 on: September 04, 2005, 01:09:35 am »
Quote
a. Can you post your fdisk, disklabel and dmesg?

I decided to use simple partitions for the first time around. Next time I'll try something fancier. Here's my info - although I am no longer having install problems.

1. dmesg

OpenBSD 3.8 (GENERIC) #148: Fri Sep  2 14:12:27 MDT 2005
    deraadt@zaurus.openbsd.org:/usr/src/sys/arch/zaurus/compile/GENERIC
real mem  = 67108864 (65536K)
avail mem = 53383168 (52132K)
using 844 buffers containing 3457024 bytes (3376K) of memory
mainbus0 (root)
cpu0 at mainbus0: PXA27x rev 4 (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
pxaip0 at mainbus0: CPU clock = 416.002 MHz
pxaintc0 at pxaip0 addr 0x40d00000: Interrupt Controller
pxagpio0 at pxaip0 addr 0x40e00000: GPIO Controller
pxadmac0 at pxaip0 addr 0x40000000 intr 25: DMA Controller
saost0 at pxaip0 addr 0x40a00000
saost0: SA-11x0 OS Timer
com0 at pxaip0 addr 0x40100000 intr 22: pxa2x0, 32 byte fifo
com1 at pxaip0 addr 0x40200000 intr 21: pxa2x0, 32 byte fifo
com2 at pxaip0 addr 0x40700000 intr 20: pxa2x0, 32 byte fifo (SIR)
pxaudc0 at pxaip0: USB Device Controller
ohci0 at pxaip0, version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: PXA27x OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
lcd_pxaip0 at pxaip0
wsdisplay0 at lcd_pxaip0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1 added (std, vt100 emulation)
zkbd0 at pxaip0
wskbd0 at zkbd0: console keyboard, using wsdisplay0
scoop0 at pxaip0: PCMCIA/GPIO controller
scoop1 at pxaip0: PCMCIA/GPIO controller
pxapcic0 at pxaip0: 2 slots
pcmcia0 at pxapcic0
pcmcia1 at pxapcic0
zssp0 at pxaip0
apm0 at pxaip0
zts0 at pxaip0
wsmouse0 at zts0 mux 0
zaudio0 at pxaip0: I2C, I2S, WM8750 Audio
audio0 at zaudio0
clock: hz=100 stathz=64
wdc0 at pcmcia0 function 0 "HITACHI, microdrive" port 0x0/16: irq 138
wd0 at wdc0 channel 0 drive 0: <HMS360404D5CF00>
wd0: 32-sector PIO, LBA, 3906MB, 7999488 sectors
wd0(wdc0:0:0): using BIOS timings
boot_file: 'bsd'
boot device: wd0.
rootdev=0x1000 rrootdev=0x1000 rawdev=0x1002
WARNING: using filesystem date -- CHECK AND RESET THE DATE!
wi0 at pcmcia1 function 0 "The Linksys Group, Inc., Wireless Network CF Card, ISL37300P" port 0x0/64, irq 137
wi0: PRISM2.5 ISL3873 (0x800c), Firmware 1.0.4 (primary), 1.0.3 (station), address 00:06:25:03:e3:8d
wd0a:  aborted command reading fsbn 4322400 of 4322400-4322431 (wd0 bn 4322463; cn 4288 tn 2 sn 33), retrying
wd0: soft error (corrected)

2. fdisk

Disk: wd0       geometry: 7936/16/63 [7999488 Sectors]
Offset: 0       Signature: 0xAA55
         Starting       Ending       LBA Info:
 #: id    C   H  S -    C   H  S [       start:      size   ]
------------------------------------------------------------------------
 0: 00    0   0  0 -    0   0  0 [           0:           0 ] unused      
 1: 00    0   0  0 -    0   0  0 [           0:           0 ] unused      
 2: 00    0   0  0 -    0   0  0 [           0:           0 ] unused      
*3: A6    0   1  1 - 7935  15 63 [          63:     7999425 ] OpenBSD  

3. disklabel

# Inside MBR partition 3: type A6 start 63 size 7999425
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: HMS360404D5CF00
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 7936
total sectors: 7999488
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
#             size        offset  fstype [fsize bsize  cpg]
  a:       7300000            63  4.2BSD   2048 16384  328 # Cyl     0*-  7242*
  b:        699425       7300063    swap                   # Cyl  7242*-  7935
  c:       7999488             0  unused      0     0      # Cyl     0 -  7935
C3100, 5500, former C860 owner

barryg

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • http://web.kssp.upd.edu.ph/barry/zaurus/
Stuck In Openbsd Install Limbo
« Reply #11 on: September 04, 2005, 09:18:41 pm »
Good Day!

Congrats on your successful install.

And thank you for the dmesg/fdisk and disklabel output.

Does your CF wlan only prevent OpenBSD from booting?  Or is it usuable
after boot?  Did you try running kismet on it?

Your wlan's firmware are quite dated, but since updating CF wlan's firmware requires
a few voodoo, I would advise against updating it.

Mabuhay! barryg
--
Barry Dexter A. Gonzaga, bofh

obscurite

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Stuck In Openbsd Install Limbo
« Reply #12 on: September 05, 2005, 12:38:16 am »
Quote
Does your CF wlan only prevent OpenBSD from booting?  Or is it usuable
after boot?  Did you try running kismet on it?

Everything was quite stable with wi0 inserted and active. I haven't tried kismet yet, but will report back when I have.

Thanks again for the help. You should start a donations page
C3100, 5500, former C860 owner