serial port
Hi
Any reason why the serial port is not enabled in grub_serial_init() ?
grub> terminal
Available terminal(s): console
Current terminal: console
grub> serial
grub> terminal
Available terminal(s): serial console
Current terminal: serial
Signature · 5 lines
Robert Millan <GPLv2> I know my rights; I want my phone call! <DRM> What use is a phone call, if you are unable to speak? (as seen on /.)
Robert Millan <[email protected]> writes:
Hi,
Quoted 9 lines
Any reason why the serial port is not enabled in
grub_serial_init()?grub> terminal
Available terminal(s): console
Current terminal: console
grub> serial
grub> terminal
Available terminal(s): serial console
Current terminal: serial
Perhaps because the serial command sets it up? Although I agree it seems a bit weird that it works this way. Perhaps it should be enabled with the same defaults from the beginning?
One problem of initializing it is that hardware will be accessed, while it might not be desirable.
--
Marco
Quoted 14 lines · Marco Gerards
Robert Millan <[email protected]> writes:
Hi,
Quoted 9 lines
Any reason why the serial port is not enabled in
grub_serial_init()?grub> terminal
Available terminal(s): console
Current terminal: console
grub> serial
grub> terminal
Available terminal(s): serial console
Current terminal: serial
Quoted 6 lines
Perhaps because the serial command sets it up? Although I agree it seems a bit weird that it works this way. Perhaps it should be enabled with the same defaults from the beginning?
One problem of initializing it is that hardware will be accessed, while it might not be desirable.
Maybe we could move this to grub_term.init ? This way hardware is not accessed untill user requests a switch.
Signature · 5 lines
Robert Millan <GPLv2> I know my rights; I want my phone call! <DRM> What use is a phone call, if you are unable to speak? (as seen on /.)
Quoted 11 lines · Robert Millan
Quoted 7 lines · Marco Gerards
Robert Millan <[email protected]> writes:
Perhaps because the serial command sets it up? Although I agree it seems a bit weird that it works this way. Perhaps it should be enabled with the same defaults from the beginning?One problem of initializing it is that hardware will be accessed, while it might not be desirable.
Maybe we could move this to grub_term.init ? This way hardware is not accessed untill user requests a switch.
This is the same way it works with gfxterm. You define video mode beforehand of the switch.
But there is actually a one architectual issue here... How are we going to support graphical terminal and serial terminal at the same time? eg. allow user to enable multiple terminals...
Quoted 19 lines · Robert Millan
Quoted 18 lines · Marco Gerards
Robert Millan <[email protected]> writes:
Hi,
Quoted 9 lines
Any reason why the serial port is not enabled in
grub_serial_init()?grub> terminal
Available terminal(s): console
Current terminal: console
grub> serial
grub> terminal
Available terminal(s): serial console
Current terminal: serialPerhaps because the serial command sets it up? Although I agree it seems a bit weird that it works this way. Perhaps it should be enabled with the same defaults from the beginning?
Quoted 5 lines
Quoted 2 lines
One problem of initializing it is that hardware will be accessed, while it might not be desirable.
Maybe we could move this to grub_term.init ? This way hardware is not accessed untill user requests a switch.
As long as it stays within serial.mod. Is that what you propose?
--
Marco
Quoted 13 lines · Vesa Jääskeläinen
Quoted 11 lines · Robert Millan
Quoted 7 lines · Marco Gerards
Robert Millan <[email protected]> writes:
Perhaps because the serial command sets it up? Although I agree it seems a bit weird that it works this way. Perhaps it should be enabled with the same defaults from the beginning?One problem of initializing it is that hardware will be accessed, while it might not be desirable.
Maybe we could move this to grub_term.init ? This way hardware is not accessed untill user requests a switch.
Quoted 6 lines
This is the same way it works with gfxterm. You define video mode beforehand of the switch.
But there is actually a one architectual issue here... How are we going to support graphical terminal and serial terminal at the same time? eg. allow user to enable multiple terminals...
For input or output?
Signature · 5 lines
Robert Millan <GPLv2> I know my rights; I want my phone call! <DRM> What use is a phone call, if you are unable to speak? (as seen on /.)
Quoted 13 lines · Vesa Jääskeläinen
Quoted 11 lines · Robert Millan
Quoted 7 lines · Marco Gerards
Robert Millan <[email protected]> writes:
Perhaps because the serial command sets it up? Although I agree it seems a bit weird that it works this way. Perhaps it should be enabled with the same defaults from the beginning?One problem of initializing it is that hardware will be accessed, while it might not be desirable.
Maybe we could move this to grub_term.init ? This way hardware is not accessed untill user requests a switch.
Quoted 6 lines
This is the same way it works with gfxterm. You define video mode beforehand of the switch.
But there is actually a one architectual issue here... How are we going to support graphical terminal and serial terminal at the same time? eg. allow user to enable multiple terminals...
It's not possible yet. It would be a nice feature to have. The problem is that the sizes do not match. Should we use the smallest terminal?
--
Marco
Quoted 14 lines · Robert Millan
Quoted 13 lines · Vesa Jääskeläinen
Quoted 11 lines · Robert Millan
Quoted 7 lines · Marco Gerards
Robert Millan <[email protected]> writes:
Perhaps because the serial command sets it up? Although I agree it seems a bit weird that it works this way. Perhaps it should be enabled with the same defaults from the beginning?One problem of initializing it is that hardware will be accessed, while it might not be desirable.
Maybe we could move this to grub_term.init ? This way hardware is not accessed untill user requests a switch.
Quoted 8 lines
Quoted 6 lines
This is the same way it works with gfxterm. You define video mode beforehand of the switch.
But there is actually a one architectual issue here... How are we going to support graphical terminal and serial terminal at the same time? eg. allow user to enable multiple terminals...
For input or output?
Both? IT would be a nice feature to have.
--
Marco
Quoted 11 lines · Marco Gerards
Quoted 6 lines · Vesa Jääskeläinen
This is the same way it works with gfxterm. You define video mode beforehand of the switch.
But there is actually a one architectual issue here... How are we going to support graphical terminal and serial terminal at the same time? eg. allow user to enable multiple terminals...
It's not possible yet. It would be a nice feature to have. The problem is that the sizes do not match. Should we use the smallest terminal?
Or just completely different ones?
For graphical menu I see that menu system would use different rendering method than text mode menu. Actually this is a requirement for graphical menu anyway. Different input methods could be merged after input translations has been completed. And separate output methods for specific terminal types? How this would work in reality I have not thought it yet.
Quoted 25 lines · Vesa Jääskeläinen
Quoted 7 lines · Robert Millan
Quoted 5 lines · Marco Gerards
Robert Millan <[email protected]> writes:
Perhaps because the serial command sets it up? Although I agree it seems a bit weird that it works this way. Perhaps it should be enabled with the same defaults from the beginning?Quoted 6 lines
Quoted 3 lines
One problem of initializing it is that hardware will be accessed, while it might not be desirable.
Maybe we could move this to grub_term.init ? This way hardware is not accessed untill user requests a switch.
This is the same way it works with gfxterm. You define video mode beforehand of the switch.
But there is actually a one architectual issue here... How are we going to support graphical terminal and serial terminal at the same time? eg. allow user to enable multiple terminals...
Quoted 5 lines
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Just thought I'd put my two cents in to this discussion, I'm not really planning on contributing code to Grub 2, though I might help stimulate discussion...
If you wanted to enable both serial and graphical terminals (or any other kind(s) of terminals, just that there are more than one enabled at once), you'd really have to switch to using the Model/View/Controller architecture for user interaction.
However there is also the difficulty that when you have two separate terminals into the same session (or whatever else you want to think of), that might become a security issue.
Just my two cents on this matter.
Hope this helps (though it might not),
Daryl Van Humbeck.
Quoted 4 lines · Daryl Van Humbeck
If you wanted to enable both serial and graphical terminals (or any other kind(s) of terminals, just that there are more than one enabled at once), you'd really have to switch to using the Model/View/Controller architecture for user interaction.
That has been the plan.
Quoted 3 lines
However there is also the difficulty that when you have two separate terminals into the same session (or whatever else you want to think of), that might become a security issue.
That is up-to user to choose what to do. If user do not care about security through any of the terminals then he/she can disable it (or better not to enable it at all). Then again you can reconsider whole security concept of the whole system if you do not trust one input. Making system secure is quite hard job, it kinda requires total knowledge of the system and that is not always even possible.