Port-hpcsh archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Jornada 680 and Kingston 1Gb (50x)



>> I would suspect you need partition c (NetBSD partition) and d (whole
disk). The cf should look like a disk from a working i386 system,
you need to create partitions both with fdisk and disklabel. <<

Heh.. And you read it?

<The citation>

Installation Walkthrough

  This installation walkthrough is based on the transcript taken during a 
from-scratch
installation of NetBSD/hpcsh.
  Here is the CF card that we will do our sample installation onto:
wdc0 at pcmcia0 function 0
atabus2 at wdc0 channel 0
wd1 at atabus2 drive 0: <Transcend 256M>
wd1: drive supports 1-sector PIO transfers, LBA addressing
wd1: 244 MB, 978 cyl, 16 head, 32 sec, 512 bytes/sect x 500736 sectors
wd1: drive supports PIO mode 4
  We start by splitting the CF card into a small DOS partition and a NetBSD 
partition. It's
important that the DOS partition comes first. Windows get very confused 
otherwise.
# fdisk -u wd1
Disk: /dev/rwd1d
NetBSD disklabel disk geometry:
cylinders: 978, heads: 16, sectors/track: 32 (512 sectors/cylinder)
total sectors: 500736
BIOS disk geometry:
cylinders: 978, heads: 16, sectors/track: 32 (512 sectors/cylinder)
total sectors: 500736
Do you want to change our idea of what BIOS thinks? [n] <enter>
Partition table:
0: Primary 'big' DOS, 16-bit FAT (> 32MB) (sysid 6)
      start 32, size 500192 (244 MB, Cyls 0-977), Active
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Which partition do you want to change?: [none] 0
The data for partition 0 is:
Primary 'big' DOS, 16-bit FAT (> 32MB) (sysid 6)
      start 32, size 500192 (244 MB, Cyls 0-977), Active
sysid: [0..255 default: 6] 1
start: [0..978cyl default: 32, 0cyl, 0MB] <enter>
size: [0..978cyl default: 500192, 977cyl, 244MB] 14MB
bootmenu: [] <enter>
The bootselect code is not installed, do you want to install it now? [n] <enter>
Partition table:
0: Primary DOS with 12 bit FAT (sysid 1)
      start 32, size 28640 (14 MB, Cyls 0-56), Active
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Which partition do you want to change?: [none] 1
The data for partition 1 is:
<UNUSED>
sysid: [0..255 default: 169] <enter>
start: [0..978cyl default: 28672, 56cyl, 14MB] <enter>
size: [0..922cyl default: 472064, 922cyl, 231MB] <enter>
bootmenu: [] <enter>
The bootselect code is not installed, do you want to install it now? [n] <enter>
Partition table:
0: Primary DOS with 12 bit FAT (sysid 1)
      start 32, size 28640 (14 MB, Cyls 0-56), Active
1: NetBSD (sysid 169)
      start 28672, size 472064 (231 MB, Cyls 56-978)
2: <UNUSED>
3: <UNUSED>
Which partition do you want to change?: [none] <enter>
We haven't written the MBR back to disk yet. This is your last chance.
Partition table:
0: Primary DOS with 12 bit FAT (sysid 1)
      start 32, size 28640 (14 MB, Cyls 0-56), Active
1: NetBSD (sysid 169)
      start 28672, size 472064 (231 MB, Cyls 56-978)
2: <UNUSED>
3: <UNUSED>
Should we write new partition table? [n] y
      Now that partitions are ready we need to edit the NetBSD disklabel. We 
start by using
mbrlabel(8) that can update a NetBSD disk label from the Master Boot Record 
(MBR) label.
# mbrlabel wd1
Found MSDOS partition; size 28640 (13 MB), offset 32
   skipping existing MSDOS partition at slot e.
Found 4.2BSD partition; size 472064 (230 MB), offset 28672
   skipping existing unused partition at slot c.
6 partitions:
#             size        offset          fstype [fsize bsize cpg/sgs]
  c:       472064           28672         unused             0   0      # (Cyl. 
       56 -  977)
 d:        500736                 0       unused             0   0      # (Cyl. 
         0-  977)
 e:         28640               32          MSDOS                       # (Cyl. 
         0*-  55)
 f:        472064           28672         4.2BSD             0   0   0 # (Cyl.  
       56 -  977)
Not updating disk label.
      As we can see the disklabel is mostly complete, except that the NetBSD 
partition is
assigned to partition `f'. It doesn't make sense to create several UFS 
partitions (in the
disklabel sense) within the NetBSD MBR partition. In particular, note that we 
do not create
any swap partitions, as swapping to a CF card will wear it very fast. Let's 
change NetBSD
partition letter to `a', as the kernel likes it better that way:
# disklabel -e wd1
[rename partition f->a]
# disklabel wd1
[...]
6 partitions:
#            size       offset         fstype [fsize bsize cpg/sgs]
  a:      472064         28672         4.2BSD            0      0        0 # 
(Cyl.           56 - 977)
  c:      472064         28672         unused            0      0            # 
(Cyl.         56 - 977)
  d:      500736               0       unused            0      0            # 
(Cyl.          0-  977)
  e:        28640            32          MSDOS                               # 
(Cyl.          0*-  55)
     Now we format the two partitions we have just created:
# newfs_msdos wd1e
/dev/rwd1e: 28584 sectors in 3573 FAT12 clusters (4096 bytes/cluster)
MBR type: 1
bps=512 spc=8 res=1 nft=2 rde=512 sec=28640 mid=0xf8 spf=11 spt=32 hds=16 hid=32
# newfs wd1a
/dev/rwd1a: 230.5MB (472064 sectors) block size 8192, fragment size 1024
            using 6 cylinder groups of 38.42MB, 4918 blks, 9472 inodes.
super-block backups (for fsck -b #) at:
       [...]
     Now the CF card is formatted, but is still completely empty. We will mount 
the freshly-
formatted file systems and will start filling them with contents. In the 
examples below "..."
stands for the directory with release sets (the directory you specified as an 
argument to the -R
flag of the build.sh script if you did the build yourself). The examples below 
uses "hpcsh".
<The citation>

YES I've done all right. 
NetBSD it is loaded (I can see dmesg), but I cannot enter into system.

-------------------------------------------------------------------------------
http://www.one.lv - Tavs mobilais e-pasts!

Tagad lasi savu e-pastu ar mobilo telefonu - wap.one.lv!



Home | Main Index | Thread Index | Old Index