Hello,
I’m currently prototype an embedded controller (pc104) on a pc. The diskboot utility seems to do all I want and more but I need a shell on one of the serial ports.
I can get this using
But the -x “devc-ser8250” seems to do nothing, and I am left with 2 serial drivers, the second of which I must kill before the serial login works. The port is also subject to hardware control once I’ve killed the second serial driver.
If I could not start the serial driver in diskboot and then open it afterwards I’d have a lot less hassle setting up the shell too, wouldn’t I?
Personnaly I don’t use diskboot. You can get a smaller image and faster boot time if you manually start only the program that are really required. For example why check for cd if know there isn’t one. Here is my build file for my PC. This is based on a file provide by cdm.
This sets up the kernel and proc.
- x86 based kernel using the bios.boot to set things up.
- Compression is turned on.
- Use startup-bios to finish setting up the machine.
I tried to write my own but had problems getting vi to work. TERM variable set wrong it claimed, but I set it to all the relevant ones I could find and nothing worked. This disk boot seemed like the best thing under the circumstances but the -x option seems bugged. I tried it all the ways I could think of as well.
-xdev***
-x dev***
-x "dev***
Just wondered if I was being as stupid as usual or if anyone else had noticed it.
Faster boot would be better.
diskboot only starts the disk drivers. Everything else is setup by the enumerators. So you can actually change the arguments to devc-ser8250 by editing /etc/system/config/enum/devices/character.
noc,
The error was “unrecognised TERM type” on the target. I tried ansi, qnx, qansi, qansi-m and vt100, all to no effect. I thought it must be some other setup problem so I tried messing around with some of vi’s other environmental variables and as expected no good. It would be nice to find out what I was doing wrong. More also complained but managed to struggle through.
As I mentioned in my last post, you will need to copy /usr/lib/terminfo directory onto the target, or at least the term related to the term type that you want.
Thanks noc I now have vi on my console, but not on my serial terminal.
I have a probelm where when I change the port characteristics using stty the changes revert back as soon as I type on the serial terminal.
Jim