BushSTB serial0 ppp link <-> unix success
Theo Markettos
bush-hacking@earth.li
Thu, 8 Aug 2002 19:11:27 +0100 (BST)
On Thu, 8 Aug 2002, Matt Evans wrote:
> Dear Ladies & Gents,
>
> Further to our last discussion on the first (unused) serial port on
> the Bush STB, I have moved forwards a little.
>
> I managed to get the STB talking PPP at 115200bps to my BSD box, under
> RISC OS/NC OS, such that the desktop/NCFresco work transparently over
> the serial link as if it were a modem link.
[snip excellent news]
> (sorry, no binary yet; paste it into BASIC in a task window?)
The following may work (what it reports imples that it does, the effect I
can't test as I don't have a serial cable on my STB):
*memorya b 3010fc0 55
*memorya b 3010fc0 55
*memorya b 3010fc0 28
*memorya b 3010fc4 3f
*memorya b 3010fc0 aa
*memorya b 3010fc0 aa
(on my IBX100 the config registers are at SIO+&3F0<<2, as they are in RISC
OS)
This means: lines 1) and 2): enter '669 config mode
3) change register &28
4) to the value &3f
5),6) leave config mode
If you want to read a config register, replace line 4) with
*memory b 3010fc4+1
This may not work if the serial port is being used at the same time
(really it needs interrupts off, but the above still seems to do the
trick. Since *memory(a) are called from a module, they run in supervisor
mode and so can access the hardware)
Can anyone (Matt? :-) try this?
Theo