Subject: arc bootloader (Re: Just Checking )
To: None <ur@a-r.org, imp@harmony.village.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-arc
Date: 03/28/2001 20:31:25
In <878zlqss4j.wl@alicia.a-r.org>
ur@a-r.org wrote:

> At Wed, 28 Mar 2001 00:14:32 +0900 (JST),
> Izumi Tsutsui wrote:
> > I'm tring to make bootloader, but can the ARC BIOS open raw disk device?
> > Bios_Open("multi(0)disk(0)", 0, &fd) does not work.
> > ("No such device" is returned) 
> 
> How about "multi(0)disk(0)fdisk(0)"?

Thanks, it works. But now I get another problem with
Bios_Seek(), which is needed for devsw.strategy.
I'll track this more. (Monitor output is attached)

In <200103272323.f2RNN5949773@harmony.village.org>
imp@harmony.village.org wrote:

> Many Jazz based bioses have issues with accessing the raw device.
> However, they can't be too bad or ARCINST.EXE wouldn't work.

BTW, I guess we have to have at least one FAT partition
on the boot disk to load primary bootloader, right?
(i.e. ARC BIOS can load programs only from FAT?)
Then the bootloader should recognize fdisk partition, too..
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp

---
NetBSD/arc fdboot
default boot device = 'multi(0)disk(0)fdisk(0)'
argc = 1
bootdev multi(0)disk(0)fdisk(0)
bootname =
Booting multi(0)disk(0)fdisk(0)
tring multi(0)disk(0)fdisk(0)/netbsd...

devopen: multi(0)disk(0)fdisk(0)/netbsd
devname = multi(0)disk(0)fdisk(0), fd = 2
kernel name = /netbsd
dkstrategy: seek
Monitor. Version 5704
Press H for help, Q to quit.
TlbL exception occurred.
 at=00000000 v0=80014fd8 v1=00000000 a0=00000002 a1=80100748 a2=00000000
 a3=801006d4 t0=00000000 t1=00000000 t2=0000000c t3=00000001 t4=00000001
 t5=0000000b t6=00000000 t7=00000000 s0=00000000 s1=8010c150 s2=00000200
 s3=00000001 s4=00000000 s5=00000000 s6=00000002 s7=ffff8101 t8=0000000b
 t9=00000001 k0=8004d640 k1=80000014 gp=80114080 sp=80100738 s8=000f4240
 ra=80100478 psr=20000803 epc=801007bc cause=90008308 errorepc=80070adc
 badvaddr=ffff8d90
>