Anonymous user
Gujin: Difference between revisions
→What can Gujin do?
[unchecked revision] | [unchecked revision] |
Line 35:
To have increased chances of success, we will ask the Gujin installer to reformat completely this USB disk or SD card, so first backup any interresting file you have in some other place.
Then, download this [http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/g/project/gu/gujin/install/2.8.
If you do not trust anybody, download the source file [http://sourceforge.net/projects/gujin/files/gujin/2.8.
Remember to visit [http://gujin.org http://gujin.org] to check if there is a newer version of Gujin, and to increase Gujin author counters and keep him happy.
Line 97:
You just need to copy that hello.kgz file into the USB stick, and reboot with this USB stick, you will get a menu with "hello.kgz" displayed.
If you click on this filename, you will have "Hello protected-mode text world! please reboot ..." displayed (Because this hello-world do not manage graphic modes, you have to "force start kernel in text mode" in Gujin configuration).
If you want a bit more complex "hello world" applications, you should download Gujin [http://sourceforge.net/projects/gujin/files/install/2.8.
you will find there few KGZ files, like previous example but with some addresses displayed to show the exact position of the application in memory.
You will see [http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/g/project/gu/gujin/install/2.8.
To get the source code, just download the file [http://sourceforge.net/projects/gujin/files/gujin/2.8.
To see the command used to compile them, just search the string "hello_32bits.kgz:" (with semicolon) in the file [http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/g/project/gu/gujin/gujin/2.8.
If you just want a real mode "hello world", you can do that too with an ELF file where the load address is null for the code segment.
Line 113:
There is a limit of 64 Kbytes for real mode ELF file.
Just create a file which [http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/g/project/gu/gujin/gujin/2.8.
/* hello_bios.c - public domain - no support whatsoever */
Line 217:
you can copy this hello_bios.kgz to the USB stick and run it, I hope the different functions of the source file are obvious.
The Gujin bootloader is willing to let the real mode and protected mode kernel to access the bootloader internal data (like what is the current video mode, how to display strings...) as long as the kernel is licensed under the GPL license - i.e. when the GZIP kernel contains a GZIP comment describing its license. That is illustrated by [http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/g/project/gu/gujin/install/2.8.
The main point about the GPL license is that it is not possible to draw a line in between Gujin possible bug and a closed source application: it is no allowed to modify Gujin data while in real mode - but there isn't any enforcement by hardware.
Obviously, Gujin will enable you to run an ELF file with a real mode part AND a protected mode part, just have a look at the example [http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/g/project/gu/gujin/install/2.8.
== See Also ==
|