Chameleon

Chameleon Commit Details

Date:2010-08-06 18:23:12 (13 years 8 months ago)
Author:Azimutz
Commit:315
Parents: 314
Message:Small clean up before committing latest trunk.
Changes:
M/branches/azimutz/Chazileon/Makefile
M/branches/azimutz/Chazileon/i386/libsaio/smbios_patcher.c
M/branches/azimutz/Chazileon/doc/BootHelp.txt
M/branches/azimutz/Chazileon/i386/boot2/gui.c
M/branches/azimutz/Chazileon/i386/libsaio/efi.h
M/branches/azimutz/Chazileon/i386/boot2/boot.h
M/branches/azimutz/Chazileon/i386/doc/README

File differences

branches/azimutz/Chazileon/doc/BootHelp.txt
5757
5858
5959
60
60
6161
6262
6363
Hide Partition Remove unwanted partition(s) from the boot menu.
=hd(x,y) [hd(m,n)] only non mac osx boot partitions can be hidden.
Rename Partition Rename partition(s) for the boot menu.
Rename Partition Rename partition(s) for the boot menu.
=hd(x,y) <alias> [;hd(m,n) <alias2> ...]
GUI=No Disable the GUI (enabled by default).
branches/azimutz/Chazileon/i386/libsaio/efi.h
478478
479479
480480
481
481
482482
483483
484484
//
// ////////////////////////////////////////////////////
// Extended EFI Services
//////////////////////////////////////////////////////
//////////////////////////////////////////////////////
//
EFI_PTR64 ReportStatusCode;
#endif
branches/azimutz/Chazileon/i386/libsaio/smbios_patcher.c
8686
8787
8888
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
89
10690
10791
10892
......
150134
151135
152136
153
154
137
155138
156139
157140
......
216199
217200
218201
219
202
220203
221204
222205
{ "",""}
};
// defaults for a Mac Pro 2,1..
//Azi: for testing..!
static const SMStrEntryPair const sm_macpro21_defaults[]={
{"SMbiosvendor","Apple Computer, Inc."},
{"SMbiosversion","MP21.88Z.007F.B06.0608221120"},
{"SMbiosdate","04/01/2008"},
{"SMmanufacter","Apple Computer, Inc."},
{"SMproductname","MacPro2,1"},
{"SMsystemversion","1.0"},
{"SMserial","SOMESRLNMBR"},
{"SMfamily","MacPro"},
{"SMboardmanufacter","Apple Computer, Inc."},
{"SMboardproduct","Mac-F4208DC8"},
{ "",""}
};
// defaults for a Mac Pro 3,1.. Change to/add 4,1?
// defaults for a Mac Pro
static const SMStrEntryPair const sm_macpro31_defaults[]={
{"SMbiosvendor","Apple Computer, Inc."},
{"SMbiosversion","MP31.88Z.006C.B05.0802291410"},
sm_defaults=sm_macmini_defaults;
break;
case 2:
//sm_defaults=sm_imac_defaults;
sm_defaults=sm_macpro21_defaults; //Azi: for testing..!
sm_defaults=sm_imac_defaults;
break;
default:
{
return 0x0301; // Core 2 Duo
}
//Azi: warning: ‘sm_get_bus_speed’ defined but not used
static int sm_get_bus_speed(const char *name, int table_num)
{
if (Platform.CPU.Vendor == 0x756E6547) // Intel
branches/azimutz/Chazileon/i386/boot2/boot.h
9191
9292
9393
94
95
94
9695
9796
9897
......
123122
124123
125124
126
125
126
127
127128
128129
129130
......
176177
177178
178179
179
180
180181
181182
182183
*/
//definitionnamelocation/functiondescription/comment
// Internal use: remove/move, if possible/benefitial?? leave for later...
#define kBootDeviceKey"Boot Device"// options.c, getValFKand this??
// leave for later...
#define kTextModeKey"Text Mode"// graphics.c, getNumberArrayFromPropertytextmode resolution??
#define kProductVersion"ProductVersion"// boot.c, getValFK, internalkey on SystemVersion.plist
#define kKernelFlagsKey"Kernel Flags"// * options.c, getValFK
#define kPatchKernelKey"PatchKernel"// # stringTable.c, getBollFKMeklort
#define kRootDeviceKey"rd"// * options.c, processBootArgumenttest this
#define kRootDeviceKey"rd"// * options.c, processBootArgumenttest this,
#define kBootDeviceKey"Boot Device"// options.c, getValFKand this??
#define kBootUUIDKey"boot-uuid"// options.c, processBootArgumenttest this
#define kHelperRootUUIDKey"Root UUID"// options.c, getValFKcan't test this
#define kArchX86_64Flag"64"// # boot.c, getValFK
//----------
#define kVerboseModeFlag"-v"// * options.c, getValFK
#define kOldSafeModeFlag"-f"// kIgnoreCacheModeFlag*, options.c, getValFK
#define kOldSafeModeFlag"-f"// kIgnoreCacheModeFlag***, options.c, getValFK
#define kSafeModeFlag"-x"// * options.c, getValueFBK (5) & getValFK
#define kSingleUserModeFlag"-s"// * options.c, getValFK
#define kIgnoreBootFileFlag"-F"// * options.c, getValFBK
branches/azimutz/Chazileon/i386/boot2/gui.c
189189
190190
191191
192
193
192
193
194194
195195
196196
......
693693
694694
695695
696
696
697697
698698
699699
......
18641864
18651865
18661866
1867
1867
18681868
18691869
18701870
int compareIndex = (upperLimit - lowerLimit) >> 1; // Midpoint
int result;
// NOTE: This algorithm assumes that the embeddedImages is sorted.
// This is currently done using the make file. If the array is every
// NOTE: This algorithm assumes that the embedded images are sorted.
// This is currently done using the make file. If the array is ever
// manualy generated, this *will* fail to work properly.
while((result = strcmp(name, embeddedImages[compareIndex].name)) != 0)
{
}
else
{
// parse screen size parameters
// parse display size parameters
if (getIntForKey("screen_width", &val, &bootInfo->themeConfig) && val > 0)
{
screen_params[0] = val;
}
else
{
// parse boot screen size parameters
// parse display size parameters
if (getIntForKey("boot_width", &pos, &bootInfo->themeConfig) && pos > 0)
{
screen_params[0] = pos;
branches/azimutz/Chazileon/i386/doc/README
5151
5252
5353
54
54
5555
5656
5757
......
6262
6363
6464
65
65
6666
6767
6868
stage bootstrap loader "boot2()". In order to be able to load the
big kernel image (bigger than 512K or 640K, depends on the memory
configuration), the second stage boot loader will run on the protected
mode. This bootstarp loader does not have any stand alone device
mode. This bootstrap loader does not have any stand alone device
drivers, all the I/O's are through the BIOS calls. Since the first
stage boot code will no longer be used at this moment, the memory
location of the first stage boot code (0000:1000H to 0000:1200H) will
and boot data segments must not be greater than 64K.
The boot loader loads the kernel image at memory location above 1 MB
to skip the memory hole between 521K??/640K and 1MB. After the kernel
to skip the memory hole between 512K/640K and 1MB. After the kernel
is loaded, the boot loader stores the information in the stack and
then passes control to kernel. Currently, the three information passed
from the boot loader to the kernel are type of the boot device, size
branches/azimutz/Chazileon/Makefile
116116
117117
118118
119
119
120120
121121
122122
@tar -cjf $(SYMROOT)/$(PRODUCT)-src.tar.bz2 ${EXCLUDE} .
clean:
rm -rf sym obj dst revision
rm -rf sym obj dst
#distclean: clean
#@rm -f $(SYMROOT)/$(PRODUCT)-src.*

Archive Download the corresponding diff file

Revision: 315