On 16 Mar, Ronald G Minnich wrote:
> On Fri, 16 Mar 2001 [EMAIL PROTECTED] wrote:
>
>> I keep finding that I really need to be able to use linuxbios to choose
>> a kernel image and enter a kernel command line. This is a basic
>> feature of nearly every kernel loader such a lilo and syslinux.
>
> sounds good to me ...
I have added a number of string functions and an input capability that
currently works with serial console but will also support keyboard
if/when code for it is added.
When keyboard support is added, key strokes can come from either serial
console or keyboard and will ouput on serial console and the video
console.
Here is the basic list of functions:
char *strcpy(char *dst, const char *src);
int strlen(const char *src);
char *strncpy(char *dst, const char *src, int max);
int strnlen(const char *src, int max);
int strcmp(const char *s1, const char *s2);
int strncmp(const char *s1, const char *s2, int n);
char *strcat(char *dest, const char *src);
char *strncat(char *dest, const char *src, int n);
long strtol(const char * nptr, char **endptr, int base);
char *strsep(char **stringp, const char *delim);
// Non-standard functions
int getline(char* buf, int maxlen);
int strarg(char *string, int max_argc, char *argv[]);
getline() returns a line from the console. It allows backspace editing
only.
strarg() takes a string and breaks it down into argc/argv.
The actual "user interface" or "command line" implementation is very
hard coded and not in the "standard" code. It is in my board specific
code at this time.
I still need to work up a clean patch but at least wanted to let people
know where things where.
>> I think I heard that someone had some sort of serial console input
>> code. Is this available? Is it useful? ...or should I start from
>> scratch?
>
> It will be very hard for non-serial-console people, easy for
> serial-console people. We don't turn on vga in linuxbios (yet).
>
> But I think anything would help.
Serial console is just better! ;-)
> ron
Cheers!
Ty
--
Tyson D Sawyer iRobot Corporation
Senior Systems Engineer Real World Interface Div.
[EMAIL PROTECTED] Robots for the Real World
603-532-6900 ext 206 http://www.irobot.com