All times are UTC-06:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Dec 01, 2006 3:31 am 
Offline

Joined: Fri Oct 22, 2004 6:00 am
Posts: 81
Hello!

Can i redirect I/O of the OpenFirmware console to the serial port at runtime?
I've continued Darwin (OS X) for Pegasos project and now i need to debug my VESA framebuffer routines a little. Unfortunately OpenFirmware doesn't support fb8 yet so after vesa-set-mode i simply can't print on the screen. I'd like to switch the console to the serial port at this point and continue talking to the OF using my PC laptop.


Top
   
 Post subject:
PostPosted: Tue Dec 05, 2006 12:52 am 
Offline

Joined: Fri Oct 22, 2004 6:00 am
Posts: 81
Well, thanks for silence...
I've done this myself in another way - just Open("/pci/isa/serial:115200,8,n,1,-") and then Write() there.


Top
   
 Post subject:
PostPosted: Tue Dec 05, 2006 7:40 am 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
Quote:
Well, thanks for silence...
I've done this myself in another way - just Open("/pci/isa/serial:115200,8,n,1,-") and then Write() there.
:)

That's exactly how to do it.

The other solution would be to follow the article in the sidebar and set serial i/o as your default. In fact running this line through the Forth interpreter from inside BootX will do exactly the same thing (stdout will be redirected).

The VESA stuff will still work.

_________________
Matt Sealey


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group