Skip to contentSkip to conversation

LPT

DISCUSSION Kirill Kuprijanov 3 participants 8 messages Dec 14, 2010 – Feb 10, 2011

lore
Share & tools
lore
#0 lore raw

Hello,

I have a motherboard with LCD indicator attached to it's LPT port. I would like to make grub show some early splash screen on it. All the things regarding protocol and pin assignments are ok, as I already have a programm to show stuff on LCD from OS (Debian). So the question is "how to make a grub module that is capable of setting levels on LPT pins?" and a second one is "how to make use of it during bootup procedure?

Thanks in advance,
Kirill

#1 lore raw
Quoted 10 lines · Kirill Kuprijanov

Hello,

I have a motherboard with LCD indicator attached to it's LPT port. I would like to make grub show some early splash screen on it. All the things regarding protocol and pin assignments are ok, as I already have a programm to show stuff on LCD from OS (Debian). So the question is "how to make a grub module that is capable of setting levels on LPT pins?" and a second one is "how to make use of it during bootup procedure?

Currently GRUB has no LPT driver whatsoever. You would need to write one. I suggest having look in our tree at ns8250.c (serial driver), hello.c (module usage). As for how to write LPT driver, old DOS documentation is usually of assistance (nothing changed there).

Quoted 9 lines

Thanks in advance,
Kirill

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#4 lore raw
In reply to Kirill Kuprijanov

Kirill,

Creating a new module is the easy part. As a newbie myself, recently I found this blog helpful: http://blog.fpmurphy.com/2010/06/grub2-modules.html
.

As far as writing C or assembly code to talk to the LPT port, there are plenty of articles out there (like this one:
http://logix4u.net/Legacy_Ports/Parallel_Port/A_tutorial_on_Parallel_port_In
terfacing.html ) that show what I/O addresses are generally used for what.

Jordan Strub

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Kirill Kuprijanov
Sent: Tuesday, December 14, 2010 12:55 PM
To: [email protected]
Subject: LPT

Hello,

I have a motherboard with LCD indicator attached to it's LPT port. I would like to make grub show
some early splash screen on it. All the things regarding protocol and pin assignments are ok, as I
already have a programm to show stuff on LCD from OS (Debian). So the question is "how to make a
grub module that is capable of setting levels on LPT pins?" and a second one is "how to make use of
it during bootup procedure?

Thanks in advance,
Kirill

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

#5 lore raw
Quoted 12 lines · Jordan

Kirill,

Creating a new module is the easy part. As a newbie myself, recently I found this blog helpful: http://blog.fpmurphy.com/2010/06/grub2-modules.html
.

As far as writing C or assembly code to talk to the LPT port, there are plenty of articles out there (like this one:
http://logix4u.net/Legacy_Ports/Parallel_Port/A_tutorial_on_Parallel_port_In
terfacing.html ) that show what I/O addresses are generally used for what.

If you use any external code (there shouldn't be any need), please first tell which code it is, so we can check for license compatibility

Quoted 39 lines

Jordan Strub

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Kirill Kuprijanov
Sent: Tuesday, December 14, 2010 12:55 PM
To: [email protected]
Subject: LPT

Hello,

I have a motherboard with LCD indicator attached to it's LPT port. I would like to make grub show
some early splash screen on it. All the things regarding protocol and pin assignments are ok, as I
already have a programm to show stuff on LCD from OS (Debian). So the question is "how to make a
grub module that is capable of setting levels on LPT pins?" and a second one is "how to make use of
it during bootup procedure?

Thanks in advance,
Kirill

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#2 lore raw
In reply to Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 11 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 10 lines · Kirill Kuprijanov

Hello,

I have a motherboard with LCD indicator attached to it's LPT port. I would like to make grub show some early splash screen on it. All the things regarding protocol and pin assignments are ok, as I already have a programm to show stuff on LCD from OS (Debian). So the question is "how to make a grub module that is capable of setting levels on LPT pins?" and a second one is "how to make use of it during bootup procedure?

Quoted 4 lines

Currently GRUB has no LPT driver whatsoever. You would need to write one. I suggest having look in our tree at ns8250.c (serial driver), hello.c (module usage). As for how to write LPT driver, old DOS documentation is usually of assistance (nothing changed there).

Does that mean LPT driver is actually a grub module (just to prove me right)? Then what about some code to show the splash itself? Should it be a second separate module or should I place it in some other place?

Quoted 17 lines
Quoted 9 lines

Thanks in advance,
Kirill

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

#3 lore raw
Quoted 12 lines · Kirill Kuprijanov
Quoted 11 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 10 lines · Kirill Kuprijanov

Hello,

I have a motherboard with LCD indicator attached to it's LPT port. I would like to make grub show some early splash screen on it. All the things regarding protocol and pin assignments are ok, as I already have a programm to show stuff on LCD from OS (Debian). So the question is "how to make a grub module that is capable of setting levels on LPT pins?" and a second one is "how to make use of it during bootup procedure?

Quoted 7 lines
Quoted 4 lines

Currently GRUB has no LPT driver whatsoever. You would need to write one. I suggest having look in our tree at ns8250.c (serial driver), hello.c (module usage). As for how to write LPT driver, old DOS documentation is usually of assistance (nothing changed there).

Does that mean LPT driver is actually a grub module (just to prove me right)?

I would write it as a separate module.

Quoted 3 lines

Then what about some code to show the splash itself? Should it be a second separate module or should I place it in some other place?

It must be at least be in a separate file and use a sane interface to LPT port. When it's done this way, whether it's compiled into separate module or not is just 2 lines of change

Quoted 25 lines
Quoted 13 lines
Quoted 9 lines

Thanks in advance,
Kirill

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#6 lore raw
In reply to Vladimir 'φ-coder/phcoder' Serbinenko

Hello,

so I'm nearly finished with couple of modules:

1. isa_lpt - to do the direct business with usual LPT ports
2. lpt - to interface any number of usual and unusual (say, PCI add-on cards) ports
3. t6963 - very special module to show pictures on my LCD (with internal toshiba 6963-compatible controller). This is where I gave up doing things 'the universal' way and had lots of distinct things (like pixel size and controller interface of the LCD).

Now I have two more question:
1. how to make delays of 200ns in code?
Oh, yes, I've noticed there is a function to make microsecond waits, but still, is there a way to make nanosecond wait?

2. what to do next? I have a local branch of bazaar repo and commit to it. What to do next with it?

Quoted 62 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 12 lines · Jordan

Kirill,

Creating a new module is the easy part. As a newbie myself, recently I found this blog helpful: http://blog.fpmurphy.com/2010/06/grub2-modules.html
.

As far as writing C or assembly code to talk to the LPT port, there are plenty of articles out there (like this one:
http://logix4u.net/Legacy_Ports/Parallel_Port/A_tutorial_on_Parallel_port_In
terfacing.html ) that show what I/O addresses are generally used for what.

If you use any external code (there shouldn't be any need), please first tell which code it is, so we can check for license compatibility

Quoted 33 lines

Jordan Strub

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Kirill Kuprijanov
Sent: Tuesday, December 14, 2010 12:55 PM
To: [email protected]
Subject: LPT

Hello,

I have a motherboard with LCD indicator attached to it's LPT port. I would like to make grub show
some early splash screen on it. All the things regarding protocol and pin assignments are ok, as I
already have a programm to show stuff on LCD from OS (Debian). So the question is "how to make a
grub module that is capable of setting levels on LPT pins?" and a second one is "how to make use of
it during bootup procedure?

Thanks in advance,
Kirill

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 6 lines

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

#7 lore raw
Quoted 12 lines · Kirill Kuprijanov

Hello,

so I'm nearly finished with couple of modules:

1. isa_lpt - to do the direct business with usual LPT ports
2. lpt - to interface any number of usual and unusual (say, PCI add-on cards) ports
3. t6963 - very special module to show pictures on my LCD (with internal toshiba 6963-compatible controller). This is where I gave up doing things 'the universal' way and had lots of distinct things (like pixel size and controller interface of the LCD).

Quoted 8 lines

Now I have two more question:
1. how to make delays of 200ns in code?
Oh, yes, I've noticed there is a function to make microsecond waits, but still, is there a way to make nanosecond wait?

2. what to do next? I have a local branch of bazaar repo and commit to it. What to do next with it?

<short answer>
Could you send the patches here?

Quoted 78 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 65 lines · Jordan
Quoted 7 lines

Kirill,

Creating a new module is the easy part. As a newbie myself, recently I found this blog helpful:
http://blog.fpmurphy.com/2010/06/grub2-modules.html
.

Quoted 8 lines

As far as writing C or assembly code to talk to the LPT port, there are plenty of articles out there (like this one:
http://logix4u.net/Legacy_Ports/Parallel_Port/A_tutorial_on_Parallel_port_In

terfacing.html ) that show what I/O addresses are generally used for what.

If you use any external code (there shouldn't be any need), please first tell which code it is, so we can check for license compatibility

Quoted 37 lines

Jordan Strub

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Kirill
Kuprijanov
Sent: Tuesday, December 14, 2010 12:55 PM
To: [email protected]
Subject: LPT

Hello,

I have a motherboard with LCD indicator attached to it's LPT port. I would
like to make grub show
some early splash screen on it. All the things regarding protocol and pin
assignments are ok, as I
already have a programm to show stuff on LCD from OS (Debian). So the question is "how to make a
grub module that is capable of setting levels on LPT pins?" and a second one
is "how to make use of
it during bootup procedure?

Thanks in advance,
Kirill

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 6 lines

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko