Author Topic: Zaurus Sl-3200 Issue With Openbsd39_arm.ipk  (Read 9408 times)

dda71

  • Newbie
  • *
  • Posts: 14
    • View Profile
Zaurus Sl-3200 Issue With Openbsd39_arm.ipk
« on: April 12, 2006, 04:47:38 am »
Hello,

I'm experiencing a strange problem.

This happened to me 3 times during the last 3 days.

I'm using the latest snapshot!

After some while the zaurus can't boot anymore. You see the Openbsd boot loader but it can't find the kernel anymore. I have to boot into linux (typing "r").

The openbsd39_arm.ipk has to be uninstalled and reinstalled to be able to boot again.

Does someone have same the problem?

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Zaurus Sl-3200 Issue With Openbsd39_arm.ipk
« Reply #1 on: April 12, 2006, 05:07:38 am »
Quote
Hello,

I'm experiencing a strange problem.

This happened to me 3 times during the last 3 days.

I'm using the latest snapshot!

After some while the zaurus can't boot anymore. You see the Openbsd boot loader but it can't find the kernel anymore. I have to boot into linux (typing "r").

The openbsd39_arm.ipk has to be uninstalled and reinstalled to be able to boot again.

Does someone have same the problem?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122809\"][{POST_SNAPBACK}][/a][/div]

No, not seen that but I am using my own initrd that allows me to use the whole drive for OpenBSD on my SL-C3000.

Could you tell me what the following commands show please..

fdisk wd0
disklabel wd0

-Andy
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

dda71

  • Newbie
  • *
  • Posts: 14
    • View Profile
Zaurus Sl-3200 Issue With Openbsd39_arm.ipk
« Reply #2 on: April 12, 2006, 06:15:30 am »
Sure, here it is:

fdisk wd0
 0: 83    0   1  1 -   19  15 63 [          63:       20097 ] Linux files*
 1: 83   20   0  1 -   39  15 63 [       20160:       20160 ] Linux files*
 2: 0C   40   0  1 - 2120   8  8 [       40320:     2097152 ] Win95 FAT32L
*3: A6 2121   0  1 - 11904  15 63 [     2137968:     9862272 ] OpenBSD


disklabel wd0

# Inside MBR partition 3: type A6 start 2137968 size 9862272
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: HMS360606D5CF00
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 11905
total sectors: 12000556
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:       1024128       2137968  4.2BSD   2048 16384  328 # Cyl  2121 -  3136
  b:        204624       3162096    swap                   # Cyl  3137 -  3339
  c:      12000556             0  unused      0     0      # Cyl     0 - 11905*
  d:        204624       3366720  4.2BSD   2048 16384  204 # Cyl  3340 -  3542
  e:        409248       3571344  4.2BSD   2048 16384  328 # Cyl  3543 -  3948
  f:       6291936       3980592  4.2BSD   2048 16384  328 # Cyl  3949 - 10190
  g:       1727712      10272528  4.2BSD   2048 16384  328 # Cyl 10191 - 11904
  i:         20097            63  ext2fs                   # Cyl     0*-    19
  j:         20160         20160  ext2fs                   # Cyl    20 -    39
  k:       2097152         40320   MSDOS                   # Cyl    40 -  2120*

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Zaurus Sl-3200 Issue With Openbsd39_arm.ipk
« Reply #3 on: April 12, 2006, 06:28:22 am »
looks ok, I'm presuming that wd0a is your boot disk? am I right?

and just checking, you haven't created an /etc/boot.conf have you (on the boot disk) ?
« Last Edit: April 12, 2006, 06:30:20 am by iamasmith »
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

dda71

  • Newbie
  • *
  • Posts: 14
    • View Profile
Zaurus Sl-3200 Issue With Openbsd39_arm.ipk
« Reply #4 on: April 12, 2006, 06:30:00 am »
Yes, wd0a is the boot disk.

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Zaurus Sl-3200 Issue With Openbsd39_arm.ipk
« Reply #5 on: April 12, 2006, 06:34:58 am »
What is the exact error when it tries to boot?
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

dda71

  • Newbie
  • *
  • Posts: 14
    • View Profile
Zaurus Sl-3200 Issue With Openbsd39_arm.ipk
« Reply #6 on: April 12, 2006, 06:54:45 am »
Quote
and just checking, you haven't created an /etc/boot.conf have you (on the boot disk) ?
No I don't have a boot.conf.

actually it is compiling konqueror-embedded (for 3 hours now), so I can't reboot  

I'm sorry I can't remember the exact message,   ; I was to lazzy to write it down ... as this problem happens at random interval, I will have to wait until it happens.

As far as I can remember the message was something like:
boot> can't find /bsd
boot> can't find /bsd.old
boot> can't find wd0a:/bsd
etc

It tried to find the kernel like described in "man 8 boot"
"By default, boot attempts to load the kernel executable /bsd.  If that
fails, it will attempt to load /obsd and then /bsd.old.  If it fails to
find any of these files, and no alternative kernel image has been speci-
fied, the system will be unable to boot."

I also tried to enter by hand
boot hd0a:/bsd
But it was not able to boot.

1) I then entered an "r" to boot into linux.
2) I uninstalled the openbsd39_arm.ipk
3) reinstalled it.
4) choosed reboot in qtopia
5) and now, it was able to re-boot openbsd
« Last Edit: April 12, 2006, 07:01:41 am by dda71 »

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Zaurus Sl-3200 Issue With Openbsd39_arm.ipk
« Reply #7 on: April 12, 2006, 07:39:03 am »
It may sound a silly question but when you were asked for the package sets during installation you didn't deselect bsd did you?... double check that the file bsd exists on the root of your boot drive.
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

dda71

  • Newbie
  • *
  • Posts: 14
    • View Profile
Zaurus Sl-3200 Issue With Openbsd39_arm.ipk
« Reply #8 on: April 12, 2006, 08:03:47 am »
Quote
It may sound a silly question but when you were asked for the package sets during installation you didn't deselect bsd did you?... double check that the file bsd exists on the root of your boot drive.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122830\"][{POST_SNAPBACK}][/a][/div]

  no of course not.

If I didn't install the /bsd kernel it would not have worked at all.

When I had the problem,
1) I booted into linux, launched the bsd.rd boot with the "openbsd install" icon.
2) I launched a shell (option 3, from install, upgrade or shell)
3) I manually mounted the old install via 'mount /dev/wd0a /mnt', and I could see the kernel and the entire installation I did, everything looked fine. I wanted to be sure everything was still there. I then umount /mnt and reboot into linux
4) uninstalled and reinstalled the openbsd39_arm.ipk package
5) openbsd boot was working again.

darkloran

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • http://freeloran.free.fr/zaurus.html
Zaurus Sl-3200 Issue With Openbsd39_arm.ipk
« Reply #9 on: April 12, 2006, 08:09:19 am »
Quote
boot> can't find /bsd
boot> can't find /bsd.old
boot> can't find wd0a:/bsd
i've experienced such a problem when CF memory card is inserted in CF slot and i'm doing a reboot.

doing a simple boot with CF mem inserted is OK (i mean when the system is completely halted like taking off power and battery).

loran
SL-C3000 -- Cacko1.23b1
CE-RH2 remote / Belkin usblan / Asus WL-110 / Sandisk SD UII 256MB / Sandisk CF UII 1GB
STOREX OTG Club 40GB / Belkin IR Keyboard / Logitech mouse

dda71

  • Newbie
  • *
  • Posts: 14
    • View Profile
Zaurus Sl-3200 Issue With Openbsd39_arm.ipk
« Reply #10 on: April 12, 2006, 08:30:45 am »
Quote
i've experienced such a problem when CF memory card is inserted in CF slot and i'm doing a reboot.

Actually I only use the zaurus harddrive, I don't have any other devices inserted/connected, no sd-card or xyz, not even an usb mouse.

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Zaurus Sl-3200 Issue With Openbsd39_arm.ipk
« Reply #11 on: April 12, 2006, 09:08:22 am »
The only thing that I can think of at present is that for some reason is that the OpenBSD boot sequence may be kicking in sometime before Linux launches cardmgr. If cardmgr hasn't been run and the drive been initialised then the bootloader won't see the drive.

You could try modifying rc.zboot and adding the following line...

cardmgr -o

before the line that does insmod zbsdmod. This causes the cardmanager to load once, initialise the hardware and quit. This is all I use in my initrd for the 3000 to make sure that the drive is initialised. If you do this it shouldn't matter if you boot into Linux and a later script runs cardmgr in daemon mode.

This may be worth a try...

-Andy
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

dda71

  • Newbie
  • *
  • Posts: 14
    • View Profile
Zaurus Sl-3200 Issue With Openbsd39_arm.ipk
« Reply #12 on: April 12, 2006, 09:20:19 am »
Quote
You could try modifying rc.zboot and adding the following line...
cardmgr -o

Yes, I will give it a try and let you know if I still run into the same problem!
thanks!!!

coreilly

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Zaurus Sl-3200 Issue With Openbsd39_arm.ipk
« Reply #13 on: May 20, 2006, 04:33:39 pm »
Quote
Quote
You could try modifying rc.zboot and adding the following line...
cardmgr -o

Yes, I will give it a try and let you know if I still run into the same problem!
thanks!!!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122844\"][{POST_SNAPBACK}][/a][/div]

i have the same problem... and putting cardmgr -o into the rc.zboot doesn't seem to correct the error... any others ideas?? the error message is

open(hd0a:/etc/boot.conf): Invalid argument
boot>
booting hd0a:/bsd: openb hda0:.bsd: Invalid argument
 failed(22), will try /obsd

open(hd0a:/etc/boot.conf): Invalid argument
boot>
booting hd0a:/bsd: openb hda0:.bsd: Invalid argument
 failed(22), will try /bsd.old

open(hd0a:/etc/boot.conf): Invalid argument
boot>
booting hd0a:/bsd: openb hda0:.bsd: Invalid argument
 failed(22), will try /bsd

I have gone into the install and down to the shell and made sure all the directories and the install went as planned.. the bsd kernel is there... the partition A6 is flagged with the * ... any other ideas?

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Zaurus Sl-3200 Issue With Openbsd39_arm.ipk
« Reply #14 on: May 22, 2006, 06:12:32 am »
As previously mentioned, double check there is no CF media in the slot otherwise the internal hd will be enumerated as hd1/wd1
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card