Chameleon

Chameleon Svn Source Tree

Root/tags/2.3/CHANGES

Source at commit HEAD created 3 years 1 month ago.
By ifabio, Few update to kernelPatcher (Credits to CrazyBirdy)
1- Micky1979 : Added support for Sierra
2- Zenith432 : HDA bus scans and codecs enumeration.
3- Pike R. Alpha : Add support for (LZVN) grey logo.
4- Slice : Added NvidiaSingle
5- cparm : Rock - Paper - Scissors algo
6- Bronya : Improve support for AMD CPU.
7- Bungo : Added "machine-signature"
8- Zenith432 : Protect timing code in scan_cpu() from interrupts, use bios for sleep()
9- Zenith432 : Fix setupChosenNode, Tweak asm.s
10- Zenith432 : Change identity snprintf to strncpy + misc printf issues
11- cparm : Implement strlcat()
12- Zenith432 : Sanitize 16-bit assembly
13- Zenith432 : Fix bug in malloc_init, use bios for enableA20()
14- meklort : Slightly improve decive selection name - add os version.
15- Zenith432 : Interrupt Management
16- Bungo : Added ability to auto-select last booted partition as the boot volume.
17- Bungo : Added MacOSVerCurrent and MacOSVer2Int function to use instead of macros.
18- Bungo : Fixed bug in gDarwinBuildVerStr extracting.
19- Bungo : Fixed fixedUUID function (convert.c smbios.c).
20- Bungo : Added Logging start time.
21- Bungo : Added getRTCdatetime() Int 1Ah function 02h - RTC service.
22- Zenith432 : Use caching with ExFat filesystem.
23- Zenith432 : Add turning off USB legacy for XHCI (XHCILegacyOff).
24- ErmaC : C6 & C7 States credits to Clover Team.
25- ErmaC : define recursive cpu series for BrandString.
26- Zenith432 : saio_types.h, biosfn.c - minor typo in bios-defined data structure that isn't actually used.
27fake_efi.c - eliminate redundant scan of bt(0,0) in setupSmbiosConfigFile. loadConfigFile already does a fall-back scan of bt(0,0), so another scan isn't needed.
28sys.c - While scanning a volume, getOSVersion looks for 5 files and switches back-n-forth between hd(X,Y)/....SystemVersion.plist on the newly scanned volume and bt(0,0)/hd(X,Y)/...SystemVersion.plist - which is an invalid path - should always return an error.
29- Zenith432 : Change to disk.c - Prevent getOSVersion from looking for SystemVersion.plist on FAT32 or exFAT file systems - since those filesystems never serve as system volumes.
30UFS may serve as system volume, but there's no driver to read from it.
31Change to sys.c - Eliminate a dubious recursion in diskScanBootVolumes(). It recognises the filesystem, then calls getOSVersion, which attempts to open 5 files in order to find SystemVersion - then when parsing the device name - calls diskScanBootVolumes() - as a form of on-demand scanning. This doesn't result in an infinite recursion - because the volume is already in the map. However, this auto-scan is only useful if user enters an explicit hd(X,Y) device-spec that has never been scanned before - an unlikely occurrence.
32- Zenith432 : Patch from Issue 388, init_module_system() in modules.c dereferences NULL pointer
33- Zenith432 : Full implementation of exfat support for Chameleon's boot2 stage.
34- Micky1979 : Incorporated force umount option -u (boot1-install.c)
35- Zenith432 : Replace boot0 with boot0xg. Now boot0xg has all features of previous boot0. ( http://www.insanelymac.com/forum/topic/302938-exfat-volume-boot-record-for-chameleon )
36- Zenith432 : Completed patch for ExFAT support ( http://www.insanelymac.com/forum/topic/302938-exfat-volume-boot-record-for-chameleon )
37- Zenith432 : add EXFAT boot support by Zenith432
38- zenith432 : Merge patch from issue 386 (boot2 does not know how to read files from FAT partitions on GPT)
39- meklort : Update laoder.h to latest, declare gMI global, Load modules passed in via the multiboot header / first bootloader,
40Fix mboot.h include, Add ?log command to print out bdmesg without needing Wait=y, Add slightly more debugging for modules.
41- ErmaC : Rename CPU_MODEL_xxx into CPUID_MODEL_xxx follow Apple source name
42- ErmaC : Rename decompress_lzvn function to lzvn_decode follow Apple source name.
43- ErmaC : Add more chameleon UI stuff (default) made by blackosx
44- ErmaC : Split out states generator from acpi_patcher (Credits to Clover Teams)
45- ErmaC : Merged proposed patch by N3 (Boot from vanilla Recovery HD, Installation DMG)
46- bitshoveler : Fix "sed: RE error: illegal byte sequence", which turns out to be from feeding sed a TIFF file (buildpkg.sh)
47- bitshoveler : Remove "-x" option from "ld" command which breaks build under newer Xcode versions (MakeInc.dir)
48- bitshoveler : CacheInit(), CacheRead() prototypes: use u_int32_t instead of long where appropriate (saio_internal.h)
49- bitshoveler : Improved defensiveness against malloc failure (disk.c)
50- bitshoveler : Use u_int32_t instead of long where appropriate (cache.c)
51- bitshoveler : Make some constant arrays static; other minor fixes (acpi_patcher.c)
52- bitshoveler : Make 'buffer' arg to aml_add_buffer 'const char *', was just 'char *' (aml_generator)
53- bitshoveler : Various fixes to problems exposed by Clang static analyzer (picopng.c)
54- ErmaC : Rollback changes for msdos.c (2327) thx to bltz
55- bitshoveler : Remove "-x" option from "ld" command which breaks build under newer Xcode versions (/i386/modules/MakeInc.dir)
56- bitshoveler : Comment out some unused functions by expanding "#if UNUSED" conditional (stringTable.c)
57- bitshoveler : Comment out unused static functions, which cause build to fail in "release" mode (vbe.c)
58- bitshoveler : Fix null pointer handling (nvidia.c)
59- bitshoveler : Only write terminating null char if malloc succeeded (strndup.c)
60- bitshoveler : Fix memory leak (bdmesg.c)
61- ErmaC : (re)enable klibc module
62- ErmaC : Merge Recovery Icons(png) courtesy of blackosx
63- ErmaC : Merge Yosemite patch (ready from June 2014) Thanks all involved in the test and develop;
64Special thanks: Alex J, viv xix, zenith432 from http://forge.voodooprojects.org/p/chameleon/issues/375/
65Testing and improvements: Pike R. Alpha, ErmaC, Bungo, blackosx, Micky1979, crazybirdy, oldnapalm, janek202, MinusZwei and Andy Vandijck.
66
67- Pike R. Alpha : dynamic "random-seed" implementation ( http://www.insanelymac.com/forum/topic/301350-lets-make-random-seed-really-random/ )
68- ErmaC : getCPUTick() helper function ( http://www.insanelymac.com/forum/topic/301350-lets-make-random-seed-really-random/ )
69- ErmaC : Add Yosemite Icons detection for chameleon UI
70- blackosx : Add chameleon UI Icons for Yosemite
71- ErmaC : Use macro instead of full checkOSVersion
72- viv xix : Move checkOSVersion into boot header
73- ErmaC : define macro for OS X Versions
74- Slice and Clover Team : Replace "NULL" terminated strings and fit Boot2 Sectors size
75- ErmaC : Update bootargs
76- crazybirdy : Fit length for "Loading Darwin"
77- meklort : Update align directives to 2^(old_align)
78- Ermac : Bump svn to 2.3
79- ErmaC : Update efi Header
80- cparm : buffer BPS
81- cparm : devprop_generate_string optimized by cparm
82- ErmaC : Update CPUID and change conditional logic.
83- ErmaC : Typo & ID names
84- meklort : Make compile on gcc w/ errors enabled.
85- bitshoveler : Remove the '-x' option from the offending 'ld' command
86- Jief : Makefile dependency missing for boot0 and boot1h
87- ErmaC : Temp disable klibc module
88- meklort : Silence output.
89- meklort : Add --no-print-directory.
90- meklort : Replace \t with tab.
91- ErmaC : Update Chameleon.xcodeproj
92- ErmaC : Merge LZVN decompression routine by MinusZwei (C Conversion) based on works from Pike R. Alpha and AnV Software (Andy Vandijck).
93- Bungo : Loading custom ECDT.aml, Darwin version string printing, clean boot-args, change firmware rev. to real Mac (0x0001000a), added kernel-compatibility, boot-file, boot-args, machine-signature, random-seed DT properties & some minor changes.
94- ErmaC : Merge tja's patch http://forum.voodooprojects.org/index.php/topic,5951.0.html
95- bitshoveler : Optimized basic string functions strlen, strncmp, strncat, strcat
96- ErmaC : Replaced sprintf with snprintf in spd.c.
97- bitshoveler : Fixed inadvertent text buffer overflow in getDDRSerial
98- bitshoveler : optimize get_hda_controller_name()
99- Bungo : One of the changes as of rev2284 is boot option SystemId has now been deprecated. Instead use key SMsystemuuid in smbios.plist.
100- bitshoveler : Defend against buffer overruns
101- bitshoveler : Fix memory leak, defend against buffer overruns, add a check for malloc() failure
102- bitshoveler : getMemoryInfoString: defend against buffer overruns, change O(n^2) algorithm to O(n)
103- bitshoveler : Add closedir() to match opendir() call; relocate a malloc() call to fix a memory leak on error; better defense against buffer overruns
104- bitshoveler : Improve robustness against buffer overruns
105- bitshoveler : Add closedir() for every opendir() call, make more robust against buffer overruns
106- bitshoveler : Fix memory leak
107- bitshoveler : Fix cppcheck detected memory leak and error, make more robust against buffer overrun
108- bitshoveler : get_pci_dev_path: get rid of tmp buffer, use snprintf, improved O(n) algorithm instead of O(n^2) (whoopee); dump_pci_dt: hack fix for printf format string vs. args mismatch
109- bitshoveler : Fix memory leak; use snprintf instead of sprintf to make more robust
110- bitshoveler : Fix badly formed comment inside #ifdef
111- bitshoveler : setup_gma_devprop: fix memory leak
112- bitshoveler : setup_nhm: fix cppcheck error
113- bitshoveler : Correct cppcheck detected errors, make more robust against errors
114- bitshoveler : AllocateMemoryRange: fix cppcheck detected memory leak
115- bitshoveler : search_and_get_acpi_fd: fix pointer-to-temporary return problem; use snprintf instead of sprintf to prevent buffer overflows
116- bitshoveler : sym_expand_string_value(): fix cppcheck errors; more to be done here
117- bitshoveler : append_string(): fix cppcheck errors
118- bitshoveler : conf_write_autoconf(): fix cppcheck errors
119- bitshoveler : Fix memory leak for new_layout in main()
120- bitshoveler : Implement snprintf(); implement missing zero-fill in strncpy()
121- bitshoveler : Use original *BSD source for strlcpy()
122- ErmaC: Port from Enoch the support for IVY Bridge and Haswell Intel Graphics cards. http://www.insanelymac.com/forum/topic/288241-intel-hd4000-and-haswell-inject-aaplig-platform-id/
123- 2255: ErmaC add Skip flag key for Intel/nVidia/ATi from Enoch
124- 2252: revert define processors name to match with xnu kernel name
125- 2252: Merge from Enoch the Geoff Seeley patch http://forge.voodooprojects.org/p/chameleon/issues/59/
126- 2251: bdmesg can show Chameleon and Clover boot logs
127- 2248: Infos about lack for 32/64 bit (Credits to Pike R. Alpha)
128- 2248: Fix issue booting x86 after rev.2175 (Credits to Bronxteck, Alex Burma and Leon).
129- 2245: ErmaC : Add new CPU Model IDs
130- 2245: Add boot support to 10.9 (thx old napalm)
131- 2245: ErmaC : Update gui Icons OS detection
132- 2245: Update default theme Icon set (thx BlackOsx)
133- 2243: Add Linux GPT Partition Label
134- 2234: Fix menuBVR initialization problem
135- Implement ErmaC's HDAEnabler.dylib module
136- Fix Bug in the loop that look for an ATI card. Credits to Jief Luce
137- Fix extension without kPropOSBundleRequired property weren't loaded. Credits to Jief Luce
138- Fix Revision mismatch http://forge.voodooprojects.org/p/chameleon/issues/330/
139- ErmaC : Improve PCI info. Interface program and device revision.
140- Fix Possible bug in i386/libsaio/device_inject.c devprop_add_device() http://forge.voodooprojects.org/p/chameleon/issues/319/
141- Fix warnings/errors from new llvm/clang (xcode 4.6)
142- Fix base64 decode, fixes Issue http://forge.voodooprojects.org/p/chameleon/issues/320/
143- meklort : FileNVRAM module import
144- cparm : Added a workaroud for Xcode 4.4.x compatibility 504B030414030100630004731141000000007D0000008B00000003000B0062696E01990700020041450308001AED80DA50DF6080B0390FE095B3BC129E1FC27C104EC97897EF27CD1175766CB18C66FF42EFB7023911BDFD5E4BC9AEEC32FF3473963F70B255581D7B74DE9F
145- cparm : Fixed a buffer overflow in the plist loader
146- cparm : Ported the nvidia plist helper (less time to spend on the device id more time to code :-) )
147- cparm : Added a Sata module, known as YellowIconFixer in my branch, useful to fix yellow icon issue (can also fix an issue with the apple's dvd player application in moutain lion)
148 , for now not added in the pkg script !!!
149
150- cparm : Ported the OS detection to the trunk, updated the default theme to v 1.1 (credit to blackosx)
151
152- Added AtiPorts option to GraphicsEnabler, so users can override the default number of ports. It proved
153 to be useful when used to limit the number of ports that a framebuffer registers, which seems to be a
154 requirement on laptops that can only use 2 ports at the same time.
155 Thanks to Akbar for testing and AniV also for the tip:
156 http://forum.voodooprojects.org/index.php/topic,1959.msg10402.html#msg10402
157- Added NVidia ION AHCI controllers dev id to AHCIPortInjector kext.
158 Forgot to mention source on the commit: http://forum.voodooprojects.org/index.php/topic,1170.0.html
159- Renamed com.apple.Boot.plist to org.chameleon.Boot.plist.
160- Added "ShowInfo" key (enabled by default for now), which enables/disables the display of
161 partition and resolution related info, on the Gui.
162 This info may not play well with some custom themes.
163- Modules can now be selected between not compiled, compiled into chameleon, or compiled as modules.
164- New makefile + configuration system.
165- Added the BOOT2_MAX_LENGTH constant in memory.h. This is now used in mboot.c to relocate the correct
166 number of bytes for boot2.
167- Added new ATi/AMD Graphics Card Enabler.
168- Added new SMBIOS patcher.
169Includes changes to "manufacter" keys, from SM*manufacter to SM*manufacturer.
170- Added module system.
171- Added automatic P-States & C-States generation for native power management.
172- Added Booter Log Dump Tool
173- Added Booter message Logging (":/boot-log" ioreg property)
174- Removed -x32 option, use arch=i386 instead
175- Added automatic SMBusspeed detection for lga1156 core i5/7 cpus
176- Added new iMac11,1 sbios default model for lga1156 core i5/17 mobos
177- md0 code. Notified xnu when an md ramdisk is specified
178- Added rollover image support for selected device icons.
179 Use device_<type>_o.png in theme folder. Credits goes to Blackosx.
180- Revisited theme resource embedding. Using the device_<type> icons are optional with
181 the exception of device_generic.
182- Optimized memory detection speed
183- Added displaying source device and partition number for file read operations.
184- Increased boot2's maximum size from 383.5k to 447.5k.
185 Updated stage 1 loaders for handling the new size limit.
186- Added alternate format for setting the default partition. The user can specify the selected
187 volume UUID for the "Default Partition" key.
188- Implemented SPD memory automatic detection and injection,seems to work really great ...
189- Factorized code to prepare a dynamic memory detection algorithm ...
190- Optimized smbios table address search
191- Optimized cursor spinout in textmode if no verbose mode is set
192- Added ram table structures definitions
193- Added getSmbios() a param permitting to select between orig and new smbios entries
194- Changed "Default Partition" behavior to accept only native system volumes or foreign partitions.
195- Added NVIDIA new NVCAP customization support and support for ION gfx cards from aserebln
196- Added ATI new framebuffers support and new cards from PCEFI10.6
197- improved ACPI file search algo by implementing a cache.
198- Nvidia injection fix
199- pciroot would not always return correct UID in auto detection mode
200- Fixed the hibernation problem in boot2/resume.c
201- Fixed all new booter versions with SystemType would override the facp value even if correct,
202 now keeps the facp value if correct and no override has been done, implemented a best effort algo.
203 for maximizing the chance to get the most correct value before we decide to use a fixed value (1=desktop)
204- Fixed display cosmetics of UUID, now a convert.c file contains all
205 conversions api, to be completed by function that we should reuse.
206
207- Fixed SystemType would be always forced to a value, now optionally changed
208 only if overridden
209- Kept SystemID as the only option to change manually the system-id
210 For theses reasons, SystemId from bootConfig and SMUUID from smbiosConfig are now DEPRECATED.
211
212- Integrated JrCs fadt patch (kept for RC5 the existing DSDT.aml retry algo that disappeared in his patch,
213 should be more discussed for RC6)
214- Added JrCs modified convention name change to coding_standards
215- Now malloc (ex. MALLOC in Asere patch) is renamed malloc(size) and is an alias
216 to safe_malloc(size, file, line) with _FILE_ and _LINE_ preprocessor definitions
217- Added a new 'Rename Partition Feature', now permitting to rename partition
218 like 'System reserved' to a more meaningful name
219- Added SystemID option permitting to change the System UUID to a fixed value.
220- Added the PciRoot auto detection feature imported from pcefi10.5
221- Added automatic "system-id" injection from dmi bios, also compatible
222 with SystemID boot option and former SMUUID from smbios,plist
223- Added "system-type' automatic injection (1=Desktop) plus override possibility
224 with the new system-type option in bootConfig
225- Added SMserial and SMproductname new options for smbios.plist
226- Merged with asere patch, while keeping my fake_efi.c changes, and adding a new
227 stringForKey() API, also changed the DT__XXXX() set of functions
228 to handle const char * values instead of char*.
229

Archive Download this file

Revision: HEAD