Chameleon

Chameleon Commit Details

Date:2010-09-01 15:38:58 (8 years 10 months ago)
Author:Azimutz
Commit:471
Parents: 470
Message:Final clean up on AutoReslution code. There's just a small issue (non fatal) on drawBootGraphics which i already knew; on to it. Added relevant keys to BootHelp.txt and updated CHANGES.txt.
Changes:
M/branches/azimutz/Chazi/i386/boot2/options.c
M/branches/azimutz/Chazi/doc-azi/CHANGES.txt
M/branches/azimutz/Chazi/doc/BootHelp.txt
M/branches/azimutz/Chazi/i386/boot2/graphic_utils.h
M/branches/azimutz/Chazi/i386/libsaio/pci_setup.c
M/branches/azimutz/Chazi/i386/boot2/gui.h

File differences

branches/azimutz/Chazi/doc/BootHelp.txt
7777
7878
7979
80
80
8181
8282
8383
......
104104
105105
106106
107
107
108108
109109
110
111
110
111
112112
113
113
114114
115115
116
117
118
119
120
121
122
VBIOS=Yes|No Inject VBIOS to device-properties.
EthernetBuiltIn=Yes|No Automatic "built-in"=yes device-properties generation
for ethernet interfaces.
for ethernet interfaces.
USBBusFix=Yes Enable all USB fixes below:
EHCIacquire=Yes Enable the EHCI fix (disabled by default).
values are kept.
Scan Single Drive Scan the drive only where the booter got loaded from.
=Yes|No Fix rescan pbs when using a DVD reader in AHCI mode.
=Yes|No Fix rescan pbs when using a DVD reader in AHCI mode.
Rescan=Yes Enable CD-ROM rescan mode.
Rescan Prompt=Yes Prompts for enable CD-ROM rescan mode.
SystemId=<UUID> Set manually the system id UUID,
SMUUID in smbios config (reserved field) isn't used.
SystemId=<UUID> Set manually the system id UUID, SMUUID in smbios config
(reserved field) isn't used.
SystemType=<n> Set the system type where n is between 0..6
(default =1 (Desktop)
(default =1 (Desktop)
md0=<file> Load raw img file into memory for use as XNU's md0
ramdisk. /Extra/Postboot.img is used otherwise.
AutoResolution=Yes Enable native resolution setting for booter Gui and
system, even without graphics acceleration.
(disabled by default)
Azi: quotes?? check with Danielkza...
Graphics Mode + F2 Change resolution while at boot prompt, e.g.:
Graphics Mode=1024x768x32 + press F2 key.
branches/azimutz/Chazi/doc-azi/CHANGES.txt
265265
266266
267267
268
268
269269
270270
271271
......
276276
277277
278278
279
279
280280
281281
282282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
283299
284300
285301
DebugInfo=y enables display of debug info.
Note: Boot Banner(*)=n will override DebugInfo=y , disabling the display of this info.
Key is disabled by default.
Disabled by default.
Motif: just making this info easily accessible.
Change:creation of this project, replacing Chazileon as my work folder.
Ence, Chazileon is now frozen until archival and deletion.
Motif: Chazileon has no svn history.
Motif: Chazileon (Chazi) has no svn history.
---------------//---------------//---------------
- (revs 465 --> ??)
Change:added AutoResolution patch, by Lebidou (AutoResolution branch). The main intention of this
patch, is allowing native resolution after boot, even without graphics acceleration (qe/ci).
The "side effect" is that it also enables native resolution at boot prompt (Gui).
The con: doesn't work for all devices!!
AutoResolution=y enables the patch.
Note: Obviously, it only works in Graphics Mode (Gui).
Disabled by default.
Motif: ... mentioned above. Check the topic for more details:
http://forum.voodooprojects.org/index.php/topic,1227.0.html
---------------//---------------//---------------
- (rev )
Change:template
branches/azimutz/Chazi/i386/libsaio/pci_setup.c
5454
5555
5656
57
58
59
60
57
58
59
60
6161
6262
6363
current->vendor_id, current->device_id, devicepath);
setup_gma_devprop(current);
break;
/* message to be removed once support for these cards is added
verbose("Intel VGA Controller [%04x:%04x] :: %s (currently NOT SUPPORTED)\n",
current->vendor_id, current->device_id, devicepath);
break;*/
//message to be removed once support for these cards is added
//verbose("Intel VGA Controller [%04x:%04x] :: %s (currently NOT SUPPORTED)\n",
//current->vendor_id, current->device_id, devicepath);
//break;
case PCI_VENDOR_ID_NVIDIA:
setup_nvidia_devprop(current);
branches/azimutz/Chazi/i386/boot2/graphic_utils.h
99
1010
1111
12
13
1412
1513
1614
#ifndef GRAPHIC_UTILS_H
#define GRAPHIC_UTILS_H
//Azi:includes
//#include "boot.h" - "graphic_utils.h" included only on graphics.h atm, that already includes boot.h.
typedef union {
branches/azimutz/Chazi/i386/boot2/gui.h
88
99
1010
11
12
13
14
1511
1612
1713
......
106102
107103
108104
109
105
110106
111107
112108
*
*/
//Azi:include
//#include "boot.h" - included on graphics.h
//#include "bootstruct.h" - same as above
//#include "graphic_utils.h" - same as above
#include "graphics.h"
#include "picopng.h"
uint16_tvsyncstart;
uint16_tvsyncend;
uint8_tmm;// Azi:autoresolution - debuginfo
uint16_tattr;//||||
uint16_tattr;
} window_t;
/*
branches/azimutz/Chazi/i386/boot2/options.c
2222
2323
2424
25
26
27
2825
2926
3027
......
10891086
10901087
10911088
1092
1093
1094
1095
1089
1090
10961091
10971092
10981093
......
11171112
11181113
11191114
1120
1121
1122
1123
1124
1125
11261115
11271116
11281117
1129
1130
1131
1132
1133
1134
1135
11361118
11371119
11381120
* @APPLE_LICENSE_HEADER_END@
*/
//Azi:include
//#include "boot.h" - included on graphics.h, which is included on gui.h
//#include "bootstruct.h" - same as above
#include "fdisk.h"
#include "ramdisk.h"
#include "gui.h"
// New behavior:
// Switch between text & graphic interfaces
// Only Permitted if started in graphics interface
if (useGUI) //Azi: check if Tab still works with AutoResolution (boot.c, 370)***
{
if (bootArgs->Video.v_display == GRAPHICS_MODE) //Azi: this is missing on Chazileon & AutoRes branch***
{
if (useGUI) {
if (bootArgs->Video.v_display == GRAPHICS_MODE) {
setVideoMode(VGA_TEXT_MODE, 0);
setCursorPosition(0, 0, 0);
showPrompt = (gDeviceCount == 0) || (menuBVR->flags & kBVFlagNativeBoot);
showBootPrompt(nextRow, showPrompt);
//changeCursor( 0, kMenuTopRow, kCursorTypeUnderline, 0 );
/*
* AutoResolution - make sure all values are set
*/
bootArgs->Video.v_display = VGA_TEXT_MODE;
useGUI = false;
} else {
gui.redraw = true;
setVideoMode(GRAPHICS_MODE, 0);
/*
* AutoResolution - make sure all values are set
*/
bootArgs->Video.v_display = GRAPHICS_MODE;
useGUI = true;
updateVRAM();
}
}

Archive Download the corresponding diff file

Revision: 471