Port-vax archive

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

Re: About support for rtVAX300



[..]

I'm no on that point, weher I should be able to talk with the UART.

The machine boots int my (incomplete) scncnprobe().

void
scncnprobe(struct consdev *cn)
{
 
//static  vaddr_t dz_regs;

        extern vaddr_t iospace;
        vaddr_t * du_base;
        int diagcons;
        paddr_t ioaddr = 0x20100000;
        extern const struct cdevsw scn_cdevsw;

        switch(vax_boardtype) {
        case VAX_BTYP_RT300:
                diagcons = 0;
                break;
        default:
                cn->cn_pri = CN_DEAD;
                return;
        }
        if (diagcons)
                cn->cn_pri = CN_REMOTE;
        else
                cn->cn_pri = CN_NORMAL;
        cn->cn_dev = makedev(cdevsw_lookup_major(&scn_cdevsw), diagcons);
        du_base = (void *)iospace;
        ioaccess(iospace, ioaddr, 1);
        du_base[0xc]=0xa;
        DELAY(10000);
        du_base[0xc]=(u_char)0x42;
        DELAY(10000);
        __asm("halt");
 
}

...and finally halts at bottom.
I've used that dz_vsbus.c as example and this is the very first call
to my driver.
The UART in this moment should be still poper initialized from the ROM
code, so writing to this Transmit buffer at 0x2010000c should print out
the char 'B'.
I've tried the way with vax_map_physmem at 0x20100000 too (which should be
a page boundary) but I don't have any luck with that.
I get no Trap or some such, the machine properly halts..

-EZA0

2..1..0..
vax_cpudata: a000006
vax_cputype: a
vax_boardtype: a000000
vax_boardtype(sie): a000009
fromnet: 1

>> NetBSD/vax boot [1.11 (Thu Jan  3 17:33:22 CET 2013)] <<
>> Press any key to abort autoboot 5
SGEC: Ethernet address 00:00:f8:50:93:14
Trying BOOTP
Using IP address: 192.168.50.20
myip: rtvax (192.168.50.20)
root addr=192.168.50.50 path=/data/home/exports/rtvax
2070876+92260=0x210580

?06 HLT INST
    PC = 800F2161
>>> 


 .text          0x800f1e8c     0x1d07 scn.o
                0x800f1f78                scn_match
                0x800f1fc4                scninit
                0x800f1fce                scncnpollc
                0x800f1fd4                scncnputc
                0x800f203e                scncnreinit
                0x800f2058                scncninit
                0x800f20ec                scncnprobe
                0x800f2638                scnparam
                0x800f2798                scnopen
                0x800f2c74                scntty
                0x800f2cba                scnpoll
                0x800f2d22                scnwrite
                0x800f2d8a                scnread
                0x800f2df2                scncngetc
                0x800f2e34                scnhwiflow
                0x800f2eaa                scnstop
                0x800f2ed8                scnstart
                0x800f2fae                scnioctl
                0x800f3216                scn_attach
                0x800f365e                scnclose


...any further hints?

Regards,

Holm

-- 
      Technik Service u. Handel Tiffe, www.tsht.de, Holm Tiffe, 
     Freiberger Straße 42, 09600 Oberschöna, USt-Id: DE253710583
  www.tsht.de, info%tsht.de@localhost, Fax +49 3731 74200, Mobil: 0172 8790 741



Home | Main Index | Thread Index | Old Index