Page 1 of 2
How to set serial speed and other CFE settings?
Posted: Sat Nov 24, 2012 7:13 pm
by Deniil
I was just wondering how to set serial speed and other settings in CFE?
U-Boot for other A1's have a set or variables the sets various things like disk config and speed, serial speed and whatnot, but what about the CFE in the X1000? Is there any complete list of variables or such that CFE or OS4 running on X1000 listen to that can be configured?
PS. When will we get a CFE update that supports pmu -astate=A5?

Re: How to set serial speed and other CFE settings?
Posted: Sun Nov 25, 2012 7:47 am
by trevordick
Deniil wrote:I was just wondering how to set serial speed and other settings in CFE?
U-Boot for other A1's have a set or variables the sets various things like disk config and speed, serial speed and whatnot, but what about the CFE in the X1000? Is there any complete list of variables or such that CFE or OS4 running on X1000 listen to that can be configured?
It's in the AmigaONE X1000 CFE Guide which registered owners can download from the A-EON Technology website and IIRC it's also included on your A1-X1000 system.
The web link is:
http://a-eon.com/?page=download&os=amigaos
PS. When will we get a CFE update that supports pmu -astate=A5?

Trevor
Re: How to set serial speed and other CFE settings?
Posted: Sun Dec 16, 2012 12:20 pm
by Deniil
Thanks!
Now I have finally come around to look into those supplied docs, but the CFE one is the same as the printed papers that came with the machine and they do not contain any exhaustive list of CFE environment variables such as how to set the serial speed or IDE speed, only a few mentioned in text to get the machine setup for normal use.
I also have a CF-card which doesn't seem to work in UDMA mode in a CF->IDE adapter. Here U-Boot supplied variables to force a particular port to a particular speed, which was also useful if one had a bad cable that required IDE speed to be set lower for a disk for example. I cannot find any such info for CFE.
Re: How to set serial speed and other CFE settings?
Posted: Sun Dec 16, 2012 6:15 pm
by LyleHaze
I have been told, but I have not yet tested,
That if an app opens the serial port and sets the baud rate,
debug will continue to flow, using the new serial settings.
Once the Debug logger is running this will be on
my list of things to try.
If you try it, let us know what you find!
LyleHaze
Re: How to set serial speed and other CFE settings?
Posted: Sun Dec 16, 2012 7:15 pm
by Deniil
@LyleHaze
Well I don't have a problem once OS4 is running, it just seems like CFE acts slowly, just as if the serial was set to 9600 and it prints to this at the same time as the screen. I know this setting slowed down the XE so among the first thinks I did was to set it to 115200 which improved early bootup speed. The X1000 is seriously slow booting, slower than the XE and way slower than SAM (which use at least PIO4 to load the kickstart). Anything that can improve this would be very welcomed and increasing the serial speed in CFE would be the first step. Just can't find any info how to do that.
Re: How to set serial speed and other CFE settings?
Posted: Sun Dec 16, 2012 11:59 pm
by nbache
Deniil wrote:I also have a CF-card which doesn't seem to work in UDMA mode in a CF->IDE adapter. Here U-Boot supplied variables to force a particular port to a particular speed, which was also useful if one had a bad cable that required IDE speed to be set lower for a disk for example. I cannot find any such info for CFE.
The variables for setting parameters of the IDE (or SATA or SCSI) drivers are not really UBoot's or CFE's concern, they are only used as the medium to accept and store them. It is OS4 which actually needs them. So you can use the same documentation to set them in CFE as you did in UBoot. You just need to be aware that the syntax for setting a firmware env variable is a little different in CFE compared to UBoot: setenv -p <var> <value>, not setenv ... followed by saveenv. The -p makes the env var permanent.
Best regards,
Niels
Re: How to set serial speed and other CFE settings?
Posted: Fri Dec 21, 2012 7:28 pm
by Deniil
@nbache
Ok, I see. But my primary question; the serial speed, this setting in U-Boot affected U-Boot, or at least the SLB as well. Surely there must be a similar setting for CFE itself.
Re: How to set serial speed and other CFE settings?
Posted: Fri Dec 21, 2012 10:51 pm
by nbache
Deniil wrote:@nbache
Ok, I see. But my primary question; the serial speed, this setting in U-Boot affected U-Boot, or at least the SLB as well. Surely there must be a similar setting for CFE itself.
I would think that each component which uses the serial (or
a serial) port, would set its own speed. For instance, I remember using a serial terminal link to install Linux on the X1000, and there a step in the procedure was to set the bootargs to use the serial port with a specific bps rate.
But you are talking about the boot procedure into OS4, as I understand it. Do you have any evidence that this actually does output to serial? Have you tried hooking up a cable and a terminal program at the other end? There is the os4_commandline CFE variable (or UBoot variable; again, they are the same), which sets the boot output to go either to the memory debug buffer (default) or to serial. But I don't think it has any speed setting arguments?
More general, in CFE you can always enter "help" at the prompt to get a list of supported commands. Entering "help" followed by a specific command gives you a short documentation on that command. I'd recommend outputting the command list over the serial link and capture and print it at the other end - nice list to have handy, as big parts of it scrolls off the screen when entering "help" in CFE.
And of course there's "printenv" to give you the CFE variables already set.
Best regards,
Niels
Re: How to set serial speed and other CFE settings?
Posted: Tue Jan 01, 2013 10:58 am
by BillEaves
I thought I would ask this question again, seeing as its not happenned yet.
When will we get a CFE update that supports pmu -astate=A5?
Re: How to set serial speed and other CFE settings?
Posted: Tue Jan 01, 2013 9:16 pm
by nbache
BillEaves wrote:I thought I would ask this question again, seeing as its not happenned yet.
When will we get a CFE update that supports pmu -astate=A5?
Maybe you should open a separate thread for that question?
I don't know what "pmu -astate=A5" is, but it doesn't have anything to do with serial speed, does it? So the people (if any) who might be able and/or willing to comment, will probably not see the question here.
Best regards,
Niels