Hi I''ve been trying (as a openBSD newbie) to get flashboot images for WRAP from http://tilde.se/flashboot/ to work, on a PC-Engines WRAP board. For this I used the WRAP12 image. My host system is a i386 running OpenBSD 4.0 (which should be sufficient, I guess). I''ve done this: gunzip -c WRAP12.bsd | dd of=/dev/sd0c && /usr/mdec/installboot -b /boot /usr/mdec/biosboot sd0 After inserting into a PC-Engines board, it won''t boot because the WRAP board says the stick isn''t bootable. Can someone give me a hint about this problem? Boudewijn Ector
On 2007/05/16 13:59, Boudewijn Ector wrote:> Hi > > I''ve been trying (as a openBSD newbie) to get flashboot images for WRAP > from http://tilde.se/flashboot/ to work, on a PC-Engines WRAP board. > For this I used the WRAP12 image. My host system is a i386 running > OpenBSD 4.0 (which should be sufficient, I guess). > > I''ve done this: > > gunzip -c WRAP12.bsd | dd of=/dev/sd0c && /usr/mdec/installboot -b /boot > /usr/mdec/biosboot sd0 > > After inserting into a PC-Engines board, it won''t boot because the WRAP > board says the stick isn''t bootable. > Can someone give me a hint about this problem?flashboot produces ramdisk kernels, not disk images. You need to fdisk+disklabel+newfs the CF, install the boot loader, and copy the kernel to the filesystem.
2007/5/16, Boudewijn Ector <lists at boudewijnector.nl>:> Hi > > I''ve been trying (as a openBSD newbie) to get flashboot images for WRAP > from http://tilde.se/flashboot/ to work, on a PC-Engines WRAP board. > For this I used the WRAP12 image. My host system is a i386 running > OpenBSD 4.0 (which should be sufficient, I guess). > > I''ve done this: > > gunzip -c WRAP12.bsd | dd of=/dev/sd0c && /usr/mdec/installboot -b /boot > /usr/mdec/biosboot sd0This is kernel image. Get one of 256 CF images. 256 MB Images with normal kernels: COMMELL-LE564.image GENERIC-RD.image SOEKRIS4501.image SOEKRIS4801.image WRAP12.image http://tilde.se/flashboot/download/?file=WRAP12.image They are bootable already, no need to run installboot. -- Regards Piotrek
> flashboot produces ramdisk kernels, not disk images. You need to > fdisk+disklabel+newfs the CF, install the boot loader, and copy the > kernel to the filesystem. > >Hi Guys, I''ve been trying around a bit in order to make the flashboot card boot. Tried to things on my WRAP board, at first the 256MB image: (on freeBSD: gunzip -c IMAGE | dd <etc>). Which resulted in : Press CTRL-A Z for help on special keys PC Engines WRAP.1C/1D/1E v1.08 640 KB Base Memory 130048 KB Extended Memory 01F0 Master 045A TRANSCEND Phys C/H/S 1006/16/63 Log C/H/S 1006/16/63 Using drive 0, partition 3; No O/S Now I''m still trying it again on OpenBSD (my box at the office), and I''ve done the following things (on a 512MB regular flash stick); fdisk -i sd0 Disklabeled it: 16 partitions: # size offset fstype [fsize bsize cpg] c: 1014048 0 unused 0 0 # Cyl 0 - 495* > a partition: [a] a offset: [32] size: [1013728] FS type: [4.2BSD] > w Ran newfs on it: root at foobar ~ # newfs sd0a Warning: 32 sector(s) in last cylinder unallocated /dev/rsd0a: 1013728 sectors in 990 cylinders of 32 tracks, 32 sectors 495.0MB in 4 cyl groups (323 c/g, 161.50MB/g, 20608 i/g) super-block backups (for fsck -b #) at: 32, 330816, 661600, 992384, Created the bootloader: root at foobar ~ # /usr/mdec/installboot -v /boot /usr/mdec/biosboot sd0 Mount, and copy the kernel: root at foobar ~ # mount /dev/sd0a /mnt/ root at foobar ~ # cp WRAP12.large.bsd /mnt/bsd What am I doing wrong?
On 2007/05/18 12:46, Boudewijn Ector wrote:> root at foobar ~ # /usr/mdec/installboot -v /boot /usr/mdec/biosboot sd0you don''t copy the boot loader to /mnt, and you tell installboot to use /boot not /mnt/boot.
Stuart Henderson wrote:> On 2007/05/18 12:46, Boudewijn Ector wrote: > >> root at foobar ~ # /usr/mdec/installboot -v /boot /usr/mdec/biosboot sd0 >> > > you don''t copy the boot loader to /mnt, and you tell installboot to > use /boot not /mnt/boot. >How to copy the bootloader? Just did a : root at foobar /usr #mkdir /mnt/boot root at foobar /usr # /usr/mdec/installboot -v /mnt/boot /usr/mdec/biosboot sd0 boot: /mnt/boot proto: /usr/mdec/biosboot device: /dev/rsd0c /usr/mdec/biosboot: entry point 0 proto bootblock size 512 /mnt/boot is 1 blocks x 16384 bytes fs block shift 2; part offset 32; inode block 165416, offset 552 using MBR partition 3: type 166 (0xa6) offset 32 (0x20) Still isn''t working.
On 2007/05/18 15:50, Boudewijn Ector wrote:> Stuart Henderson wrote: >> On 2007/05/18 12:46, Boudewijn Ector wrote: >> >>> root at foobar ~ # /usr/mdec/installboot -v /boot /usr/mdec/biosboot sd0 >>> >> >> you don''t copy the boot loader to /mnt, and you tell installboot to >> use /boot not /mnt/boot. >> > > How to copy the bootloader?cp - you can see an example in the installboot(8) EXAMPLES section.
>> How to copy the bootloader? >> > > cp - you can see an example in the installboot(8) EXAMPLES section. >Ok done that, still isn''t working yet. I''ve done these steps on a new CF disk (clean). root at foobar ~ # fdisk -i sd0 fdisk: sysctl(machdep.bios.diskinfo): Device not configured ----------------------------------------------------- ------ ATTENTION - UPDATING MASTER BOOT RECORD ------ ----------------------------------------------------- Do you wish to write new MBR and partition table? [n] y 16 partitions: # size offset fstype [fsize bsize cpg] a: 1013728 32 4.2BSD 2048 16384 323 # Cyl 0*- 494 c: 1014048 0 unused 0 0 # Cyl 0 - 495* > d partition to delete: [] a > a a offset: [32] size: [1013728] FS type: [4.2BSD] > p device: /dev/rsd0c type: SCSI disk: SCSI disk label: Card Reader CF bytes/sector: 512 sectors/track: 32 tracks/cylinder: 64 sectors/cylinder: 2048 cylinders: 495 total sectors: 1014048 free sectors: 0 rpm: 3600 16 partitions: # size offset fstype [fsize bsize cpg] a: 1013728 32 4.2BSD 2048 16384 16 # Cyl 0*- 494 c: 101404 8 0 unused 0 0 # Cyl 0 - 495* > w > quit No label changes. root at foobar ~ # newfs sd0a Warning: 32 sector(s) in last cylinder unallocated /dev/rsd0a: 1013728 sectors in 990 cylinders of 32 tracks, 32 sectors 495.0MB in 4 cyl groups (323 c/g, 161.50MB/g, 20608 i/g) super-block backups (for fsck -b #) at: 32, 330816, 661600, 992384, root at foobar ~ # cp /usr/mdec/boot /mnt/boot root at foobar ~ # mkdir /mnt/conf root at foobar ~ # /usr/mdec/installboot -v /mnt/boot /usr/mdec/biosboot sd0 boot: /mnt/boot proto: /usr/mdec/biosboot device: /dev/rsd0c /usr/mdec/biosboot: entry point 0 proto bootblock size 512 /mnt/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) root at foobar ~ # cp WRAP12.large.bsd /mnt/bsd
> If that''s a direct paste, you never mounted the partition after > running newfs on it... > >Hi Guys I''m still stuck, would someone be so kind to give me a hint? The commands below are entered on a 6GB MicroDrive system. This is a literal copy: root at foobar ~ # fdisk -i sd0 fdisk: sysctl(machdep.bios.diskinfo): Device not configured ----------------------------------------------------- ------ ATTENTION - UPDATING MASTER BOOT RECORD ------ ----------------------------------------------------- Do you wish to write new MBR and partition table? [n] y root at foobar ~ # fdisk sd0 fdisk: sysctl(machdep.bios.diskinfo): Device not configured Disk: sd0 geometry: 5859/64/32 [12000556 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 - 5858 63 32 [ 32: 11999200 ] OpenBSD root at foobar ~ # disklabel sd0 # Inside MBR partition 3: type A6 start 32 size 11999200 # /dev/rsd0c: type: SCSI disk: SCSI disk label: Card Reader CF flags: bytes/sector: 512 sectors/track: 32 tracks/cylinder: 64 sectors/cylinder: 2048 cylinders: 5859 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: 11999200 32 unused 0 0 # Cyl 0*- 5858 c: 12000556 0 unused 0 0 # Cyl 0 - 5859* root at foobar ~ # disklabel -E sd0 # Inside MBR partition 3: type A6 start 32 size 11999200 disklabel: Can''t get bios geometry: Device not configured Treating sectors 32-11999232 as the OpenBSD portion of the disk. You can use the ''b'' command to change this. Initial label editor (enter ''?'' for help at any prompt) > p device: /dev/rsd0c type: SCSI disk: SCSI disk label: Card Reader CF bytes/sector: 512 sectors/track: 32 tracks/cylinder: 64 sectors/cylinder: 2048 cylinders: 5859 total sectors: 12000556 free sectors: 11999200 rpm: 3600 16 partitions: # size offset fstype [fsize bsize cpg] a: 11999200 32 unused 0 0 # Cyl 0*- 5858 c: 12000556 0 unused 0 0 # Cyl 0 - 5859* > d partition to delete: [] a > p device: /dev/rsd0c type: SCSI disk: SCSI disk label: Card Reader CF bytes/sector: 512 sectors/track: 32 tracks/cylinder: 64 sectors/cylinder: 2048 cylinders: 5859 total sectors: 12000556 free sectors: 11999200 rpm: 3600 16 partitions: # size offset fstype [fsize bsize cpg] c: 12000556 0 unused 0 0 # Cyl 0 - 5859* > a partition: [a] offset: [32] size: [11999200] FS type: [4.2BSD] > p device: /dev/rsd0c type: SCSI disk: SCSI disk label: Card Reader CF bytes/sector: 512 sectors/track: 32 tracks/cylinder: 64 sectors/cylinder: 2048 cylinders: 5859 total sectors: 12000556 free sectors: 0 rpm: 3600 16 partitions: # size offset fstype [fsize bsize cpg] a: 11999200 32 4.2BSD 2048 16384 16 # Cyl 0*- 5858 c: 12000556 0 unused 0 0 # Cyl 0 - 5859* > w > q No label changes. root at foobar ~ # newfs sd0a Warning: 32 sector(s) in last cylinder unallocated /dev/rsd0a: 11999200 sectors in 11718 cylinders of 32 tracks, 32 sectors 5859.0MB in 37 cyl groups (323 c/g, 161.50MB/g, 20608 i/g) super-block backups (for fsck -b #) at: 32, 330816, 661600, 992384, 1323168, 1653952, 1984736, 2315520, 2646304, 2977088, 3307872, 3638656, 3969440, 4300224, 4631008, 4961792, 5292576, 5623360, 5954144, 6284928, 6615712, 6946496, 7277280, 7608064, 7938848, 8269632, 8600416, 8931200, 9261984, 9592768, 9923552, 10254336, 10584096, 10914880, 11245664, 11576448, 11907232, root at foobar ~ # mount /dev/sd0a /mnt/ root at foobar ~ # cp /usr/mdec/boot /mnt/boot root at foobar ~ # mkdir /mnt/conf root at foobar ~ # /usr/mdec/installboot -v /mnt/boot /usr/mdec/biosboot sd0 boot: /mnt/boot proto: /usr/mdec/biosboot device: /dev/rsd0c /usr/mdec/biosboot: entry point 0 proto bootblock size 512 /mnt/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) root at foobar ~ # cp WRAP12.large.bsd /mnt/bsd root at foobar ~ # umount /bsd