Hello

W dniu 2012-06-08 19:59, R. Diez pisze:
Hallo Piotr:

 > The shortest way to achieve it is to build RedBoot.
 > [...]

Thanks for your help.

The first thing I wanted to do is to see redboot's serial console. This
is the serial port I have configured in the or1ksim simulator:

section uart
enabled = 1
baseaddr = 0x90000000
irq = 2
16550 = 1
/* channel = "xterm:" */
channel = "tcp:10084"
end


I couldn't work out how to configure the serial port in redboot, can you
help? The magical "ecosconfig add" command would be ideal.

By default, one serial port is enabled. The parameters are as follows: 115200 8N1. It is possible to change the baud rate in the ecc file. RedBoot's console is attached to this port. That should work out of the box. Your UART configuration in or1ksim is OK.


There seem to be 2 serial ports in the redboot configuration, one for
GDB and another one probably for the console. I guess the baud rate and
so on don't really matter when running in a simulator.

That is because eCos names two serial channels for special purpose tasks: one is used for diagnostics (and console) and one is used for GDB. It is possible to use one UART peripheral for both channels. This is the default behavior in OpenRISC configuration


I didn't see the serial port's base address 0x90000000 anywhere in the
ecos.ecc file. The Ethernet controller's base address is normally
0x92000000, but I couldn't find that address either in the configuration
file.

That's true. Those base addresses and hard-coded inside the drivers for now. I am planning to push them into configuration file.


I tried running redboot with both "channel=" settings above in or1ksim,
in order to interact with redboot's console, but I'm getting the same
kind of garbage one line at a time when I press ENTER:

$T0a40:00008778;01:00025d64;#f7
$T0a40:00008778;01:00025d64;#f7
$T0a40:00008778;01:00025d64;#f7

It seems clean enough, so something must be working alright. That
garbage could be the GDB protocol, or maybe it's the interactive
console, only I failed to configure something properly.

That's definitely bad news. You should see a regular, human-readable console here. Could you please send me by email your ecc file and or1ksim configuration? I will take a look and try to see what's wrong.


Thanks again,
rdiez


Regards
Piotr
_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc

Reply via email to