[Soekris] Re: [Soekris NET4501] Boot problem

R van der Kroft Rene.van.der.Kroft at hva.nl
Sat Nov 20 18:23:59 UTC 2004


----- Original Message -----
Date: Saturday, November 20, 2004 12:34 pm
Subject: Re: [Soekris NET4501] Boot problem

> > - dd if=/dev/zero of=system128.img bs=1024k count=128
> > - vnconfig svnd0 system128.img
> > - fdisk -c 980 -h 8 -s 32 -i svnd0
> 
> Please give the output of fdisk.

# fdisk svnd0:

fdisk: sysctl(machdep.bios.diskinfo): Device not configured
Disk: svnd0     geometry: 2621/1/100 [262144 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   0 33 - 2508   0 80 [          32:      250848 ] OpenBSD

> > - disklabel -E svnd0
> >   a a = 250847
> >   a b = 1
> 
> And the output of disklabel

# disklabel svnd0:

using MBR partition 3: type A6 off 32 (0x20) size 250848 (0x3d3e0)
/dev/rsvnd0c:
type: SCSI
disk: vnd device
label: fictitious
flags:
bytes/sector: 512
sectors/track: 100
tracks/cylinder: 1
sectors/cylinder: 100
cylinders: 2621
total sectors: 262144
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:   250847       32    4.2BSD     2048 16384    16   # (Cyl.    0*- 2508*)
  b:        1   250879      swap                        # (Cyl. 2508*- 2508*)
  c:   262144        0    unused        0     0         # (Cyl.    0 - 2621*)


> > - newfs /dev/rsvnd0a

Warning: cylinder groups must have a multiple of 8 cylinders
Warning: 56 sector(s) in last cylinder unallocated
/dev/rsvnd0a:   250844 sectors in 2509 cylinders of 1 tracks, 100 sectors
        122.5MB in 2 cyl groups (1568 c/g, 76.56MB/g, 9856 i/g)
super-block backups (for fsck -b #) at:
 32, 156832,


> > - mount /dev/svnd0a /mnt
> > - Copy files and NET4501 bsd kernel
> 
> Which files?  Where?  How?

I've used the distro that was created by OpenSoekris/Flashdist, using 'cp -R /mnt'
The bsd kernel was made with de NET4501 config by OpenSoekris/Flashdist.
 
> > - cd /mnt/usr/mdec; cp boot /mnt
> > - cd /mnt/usr/mdec; ./installboot -v boot /usr/mdec/biosboot svnd0
> 
> Since you copied boot to /mnt, why did you not run
> 
>    /usr/mdec/installboot -v /mnt/boot /usr/mdec/biosboot svnd0
> 
> Also, -v gives lots of info: please give it.

# cd /mnt; /usr/mdec/installboot -v boot /usr/mdec/biosboot svnd0

boot: boot
proto: /usr/mdec/biosboot
device: /dev/rsvnd0c
/usr/mdec/biosboot: entry point 0
proto bootblock size 512
boot is 3 blocks x 16384 bytes
fs block shift 2; part offset 32; inode block 24, offset 936
using MBR partition 3: type 166 (0xa6) offset 32 (0x20)


> The other thing that might be of interest is the output of
> ls -l /mnt/usr/mdec /usr/mdec.

# ls -l /usr/mdec/
total 456
-r-xr-xr-x  1 root  bin   1523 Nov 16 22:47 biosboot
-r-xr-xr-x  1 root  bin  42644 Nov 16 22:47 boot
-r-xr-xr-x  1 root  bin  44320 Nov 16 22:47 cdboot
-r-xr-xr-x  1 root  bin   2048 Nov 16 22:47 cdbr
-r-xr-xr-x  1 root  bin  82668 Nov 16 22:47 installboot
-r-xr-xr-x  1 root  bin    512 Nov 16 22:47 mbr
-r-xr-xr-x  1 root  bin  53848 Nov 16 22:47 pxeboot


# ls -l /mnt/usr/mdec/
total 456
-r-xr-xr-x  1 root  bin   1523 Sep 17 20:11 biosboot
-r-xr-xr-x  1 root  bin  42644 Sep 17 20:11 boot
-r-xr-xr-x  1 root  bin  44320 Sep 17 20:11 cdboot
-r-xr-xr-x  1 root  bin   2048 Sep 17 20:11 cdbr
-r-xr-xr-x  1 root  bin  82668 Sep 17 20:11 installboot
-r-xr-xr-x  1 root  bin    512 Sep 17 20:11 mbr
-r-xr-xr-x  1 root  bin  53848 Sep 17 20:11 pxeboot



> > - umount /mnt/
> > - vnconfig -u svnd0
> >
> > Windows:
> > - dd if=s:\system128.img of=\\.\g: bs=1M
> >
> > When I boot the Soekris with the CompactFlash card it only gives the
> > follwing messages and doesn't boot!:
> >
> > Using drive 0, partition 3
> > Using drive 0, partition 3
> > Using drive 0, partition 3
> > Using drive 0, partition 3
> > Using drive 0, partition 3
> > Using drive 0, partition 3
> > Using drive 0, partition 3
> 
> What geometry does the Soekris report?


LBA 980-8-32


> > Hopefully somebody can help me.
> > Already tried flashdist and OpenSoekris, cleaning the MBR 
> doesn't help.
> >
> > Thanks for your time!
> 
> While it's great to say what commands you typed, if you don't give the
> output, your help is going to be limited to people who have typed 
> exactlythose commands on that hardware...
> 
> Finally, a hexdump -C of the first 512 bytes of the image file, 

# hexdump -C -n 512 system128.img
00000000  ea 05 00 c0 07 8c c8 8e  d0 bc fc ff 8e d8 b8 a0  |ê..À..È.мüÿ.ظ |
00000010  07 8e c0 31 f6 31 ff b9  00 02 fc f3 a4 ea 22 00  |..À1ö1ÿ¹..üó¤ê".|
00000020  a0 07 1e 07 0e 1f b4 02  cd 16 a8 03 74 0a b0 07  | .....´.Í.¨.t.°.|
00000030  e8 cb 00 80 0e b4 01 01  f6 c2 80 75 08 be 36 01  |èË...´..öÂ.u.¾6.|
00000040  e8 af 00 b2 80 be be 01  b9 04 00 8a 04 3c 80 74  |è¯.².¾¾.¹....<.t|
00000050  0f 83 c6 10 e2 f5 be 6a  01 e8 96 00 fb f4 eb fc  |..Æ.âõ¾j.è..ûôëü|
00000060  88 d0 24 0f 04 30 a2 27  01 b0 34 28 c8 a2 34 01  |.Ð$..0¢'.°4(È¢4.|
00000070  56 be 1a 01 f6 06 b4 01  01 75 01 46 e8 73 00 5e  |V¾..ö.´..u.Fès.^|
00000080  26 c7 06 fe 01 00 00 f6  06 b4 01 01 75 31 88 14  |&Ç.þ...ö.´..u1..|
00000090  bb aa 55 b4 41 cd 13 8a  14 72 24 81 fb 55 aa 75  |»ªU´AÍ...r$.ûUªu|
000000a0  1e f6 c1 01 74 19 b0 2e  e8 53 00 66 8b 4c 08 66  |.öÁ.t.°.èS.f.L.f|
000000b0  89 0e 12 01 56 b4 42 be  0a 01 cd 13 5e 73 19 b0  |....V´B¾..Í.^s.°|
000000c0  3b e8 3a 00 8a 74 01 8b  4c 02 b8 01 02 31 db cd  |;è:..t..L.¸..1ÛÍ|
000000d0  13 73 05 be 52 01 eb 81  be 7d 01 e8 14 00 26 81  |.s.¾R.ë.¾}.è..&.|
000000e0  3e fe 01 55 aa 75 05 ea  00 7c 00 00 be 61 01 e9  |>þ.Uªu.ê.|..¾a.é|
000000f0  67 ff 50 fc ac 84 c0 74  0f e8 02 00 eb f6 50 53  |gÿPü¬.Àt.è..ëöPS|
00000100  b4 0e bb 01 00 cd 10 5b  58 c3 10 00 01 00 00 00  |´.»..Í.[XÃ......|
00000110  c0 07 00 00 00 00 00 00  00 00 21 55 73 69 6e 67  |À.........!Using|
00000120  20 64 72 69 76 65 20 58  2c 20 70 61 72 74 69 74  | drive X, partit|
00000130  69 6f 6e 20 59 00 4d 42  52 20 6f 6e 20 66 6c 6f  |ion Y.MBR on flo|
00000140  70 70 79 20 6f 72 20 6f  6c 64 20 42 49 4f 53 0d  |ppy or old BIOS.|
00000150  0a 00 0d 0a 52 65 61 64  20 65 72 72 6f 72 0d 0a  |....Read error..|
00000160  00 4e 6f 20 4f 2f 53 0d  0a 00 4e 6f 20 61 63 74  |.No O/S...No act|
00000170  69 76 65 20 70 61 72 74  69 74 69 6f 6e 0d 0a 00  |ive partition...|
00000180  90 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000190  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001b0  00 00 00 00 00 00 4f 78  00 00 00 00 00 00 00 00  |......Ox........|
000001c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 80 01  |................|
000001f0  01 00 a6 07 e0 d3 20 00  00 00 e0 d3 03 00 55 aa  |..¦.àÓ ...àÓ..Uª|
00000200

> and the 512 bytes corresponding to the OpenBSD partition of it would be 
> helpful.

# hexdump -C -n 512 /dev/rsvnd0a
00000000  eb 3c 90 4f 70 65 6e 42  53 44 00 00 02 02 00 00  |ë<.OpenBSD......|
00000010  00 00 00 00 00 f8 00 00  00 00 00 00 10 00 00 00  |.....ø..........|
00000020  00 00 00 00 00 00 29 00  00 00 00 55 4e 49 58 20  |......)....UNIX |
00000030  4c 41 42 45 4c 55 46 53  20 34 2e 34 00 00 ea 48  |LABELUFS 4.4..êH|
00000040  00 c0 07 b0 58 e9 37 01  31 c0 8e d0 bc fc 7b 0e  |.À.°Xé7.1À.мü{.|
00000050  1f be e4 01 88 d6 b4 02  cd 16 0c 00 a8 03 74 03  |.¾ä..Ö´.Í...¨.t.|
00000060  4e 30 f6 e8 56 01 f6 c6  80 74 1e 52 bb aa 55 b4  |N0öèV.öÆ.t.R»ªU´|
00000070  41 cd 13 5a 72 13 81 fb  55 aa 75 0d f6 c1 01 74  |AÍ.Zr..ûUªu.öÁ.t|
00000080  08 c7 06 d1 01 84 01 eb  1a 52 b4 08 cd 13 72 b3  |.Ç.Ñ...ë.R´.Í.r³|
00000090  88 36 55 01 80 e1 3f 74  aa 88 0e 4c 01 b0 3b e8  |.6U..á?tª..L.°;è|
000000a0  25 01 5a 66 b8 18 00 00  00 bb e0 07 ff 16 d1 01  |%.Zf¸....»à.ÿ.Ñ.|
000000b0  66 be a8 03 00 00 bf 03  00 89 f9 83 f9 0c 72 03  |f¾¨...¿...ù.ù.r.|
000000c0  b9 0c 00 bb 00 40 b0 2e  e8 fc 00 fc 66 ad 66 60  |¹..».@°.èü.üf­f`|
000000d0  ff 16 d1 01 66 61 81 c3  00 04 4f e2 e9 09 ff 74  |ÿ.Ñ.fa.Ã..Oâé.ÿt|
000000e0  22 b8 49 00 08 e4 0f 85  95 00 fe 06 e3 00 66 ad  |"¸I..ä....þ.ã.f­|
000000f0  53 bb e0 07 ff 16 d1 01  5b 66 be 00 02 00 00 89  |S»à.ÿ.Ñ.[f¾.....|
00000100  f9 eb c3 be f3 01 e8 b3  00 b8 00 40 8e c0 26 81  |ùëþó.è³.¸. at .À&.|
00000110  3e 02 00 4c 46 74 0f b0  4d be ee 01 a2 f2 01 e8  |>..LFt.°M¾î.¢ò.è|
00000120  9a 00 fb f4 eb fc 51 88  d1 51 66 68 0d d0 01 c0  |..ûôëüQ.ÑQfh.Ð.À|
00000130  ea 00 00 12 40 e8 5d 00  66 a1 db 01 8b 0e d5 01  |ê...@è].f¡Û...Õ.|
00000140  66 60 8e c3 52 66 31 d2  66 89 d1 b1 90 66 f7 f1  |f`.ÃRf1Òf.ѱ.f÷ñ|
00000150  52 66 31 d2 b1 90 41 66  f7 f1 88 c5 c0 e4 06 88  |Rf1Ò±.Af÷ñ.ÅÀä..|
00000160  e1 5b fe c3 08 d9 58 88  d6 88 c2 31 db b8 01 02  |á[þÃ.ÙX.Ö.Â1Û¸..|
00000170  e8 1d 00 66 61 66 40 83  c3 20 e2 c4 c3 b0 52 be  |è..faf at .à âÄðR¾|
00000180  ec 01 eb 98 e8 0e 00 89  1e d9 01 be d3 01 b4 42  |ì.ë.è....Ù.¾Ó.´B|
00000190  cd 13 72 e9 c3 b9 20 02  66 50 28 e9 66 d3 e8 66  |Í.réù .fP(éfÓèf|
000001a0  a3 df 01 66 58 88 e9 66  d3 e0 66 05 20 00 00 00  |£ß.fX.éfÓàf. ...|
000001b0  66 a3 db 01 73 05 66 ff  06 df 01 c3 fc ac 08 c0  |f£Û.s.fÿ.ß.Ãü¬.À|
000001c0  74 0e e8 02 00 eb f6 53  b4 0e 31 db 43 cd 10 5b  |t.è..ëöS´.1ÛCÍ.[|
000001d0  c3 35 01 10 00 20 00 00  00 00 00 00 00 00 00 00  |Ã5... ..........|
000001e0  00 00 00 21 4c 6f 61 64  69 6e 67 00 0d 0a 45 52  |...!Loading...ER|
000001f0  52 20 3f 0d 0a 00 00 00  00 00 00 00 00 00 55 aa  |R ?...........Uª|
00000200


> At a guess, fdisk says that your OpenBSD partition starts at the first
> sector, so the mbr continually reloads itself.  Without any of the 
> outputsabove, its hard to say.

Thanks for you quick response!





More information about the Soekris-tech mailing list