>   i don't think you can modify attachments with config(8), but

You can.  Or you can build a custom kernel.   My box finds my SATA
drive before my ATA drive though I use the ATA drive as wd0.   My
kernel config has:

wd1     at pciide? flags 0x0000
wd0     at pciide? flags 0x0000
wd*     at pciide? flags 0x0000

so they match in my desired order.   Resulting dmesg is:

...
wd1 at pciide0 channel 0 drive 0: <ST380013AS>
wd1: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd1(pciide0:0:0): using BIOS timings, Ultra-DMA mode 6
wd0 at pciide1 channel 0 drive 0: <ST380011A>
wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
...

You can do the same with config -e.  Lets see....

ukc> find wd
 42 wd* at wdc*|pciide* channel -1 flags 0x0
ukc> add wd1
Clone Device (DevNo, 'q' or '?') ? 42
Insert before Device (DevNo, 'q' or '?') ? 42
 42 wd1 at wdc*|pciide* channel -1 flags 0x0
ukc> add wd0
Clone Device (DevNo, 'q' or '?') ? 43 
Insert before Device (DevNo, 'q' or '?') ? 43
 43 wd0 at wdc*|pciide* channel -1 flags 0x0
ukc> find wd
 42 wd1 at wdc*|pciide* channel -1 flags 0x0
 43 wd0 at wdc*|pciide* channel -1 flags 0x0
 44 wd* at wdc*|pciide* channel -1 flags 0x0


which will make a generic kernel work on my machine.

// marc

Reply via email to