1 | TODO List for Chameleon Boot Loader␊ |
2 | ====================================␊ |
3 | 27.12.2010 Slice␊ |
4 | - numerous errors, mistakes, reservation, non-finished codes... Spaghetti sources!␊ |
5 | - kernelcache never used (adler32 is wrong?)␊ |
6 | - more careful CPU detection␊ |
7 | - readNVRAM is wrong␊ |
8 | - graphicsEnabler for X3100 is not good␊ |
9 | - ATI Radeon enabler is not perfect␊ |
10 | ␊ |
11 | ␊ |
12 | 16.12.2010 Slice␊ |
13 | - I want to implement NVRAM for use with nvram, bless, StartupDisk.prefPane, and with VoodooHDA in future. ␊ |
14 | 1. Write a script rc.shutdown.local and place it into /etc␊ |
15 | <--------------␊ |
16 | #!/bin/sh␊ |
17 | nvram -p >nvram.inf␊ |
18 | echo Hello! NVRAM is saved!␊ |
19 | -------------->␊ |
20 | 2. Read and interpret nvram.inf to place variables into /options node␊ |
21 | 3. Prepare some other boot-time variables in the node (platform-uuid, BootOrder, FirmwareFeatures, efi-boot-device and so on)␊ |
22 | 4. Implement boot flag -c to clear growing amount of nvram savings.␊ |
23 | ␊ |
24 | - ATI GraphicsEnabler is not perfect. ␊ |
25 | 1. ATY,SCLK, ATY,MCLK, ATY,RefCLK must be read from VideoBIOS but not constant values. Excluded!␊ |
26 | 2. FakeDeviceID needed␊ |
27 | ␊ |
28 | - Intel GraphicsEnabler needs to be corrected by calculating LCD info. Done!␊ |
29 | --------------------------------------------------------------------------------------------------------␊ |
30 | - Integrate Prasys current work on options and quick shortcut modified version of 18seven␊ |
31 | ␊ |
32 | - Add autodetection of efistring algorythm to enabke graphics enabler to beanbled by default while not conflicting whith other efi string overriden content␊ |
33 | (original idea of Galaxy)␊ |
34 | ␊ |
35 | - Add a more sophisticated acpi loading mechanism to enable loading custom acpi tables when dsdtdrop=y␊ |
36 | Here's a specification to think about:␊ |
37 | First we must care about if a forced DSDT full path has been specified (was the pb smith had in␊ |
38 | his first tries) and take it for the DSDT path as is.␊ |
39 | Then we have the case where no DSDT path was set where we run our usual DSDT search algorithm to find this file.␊ |
40 | In the latter case, the file has to be named DSDT.aml and be in one of the / /Extra or bt(0,0)/Extra directory.␊ |
41 | ␊ |
42 | Now a first idea to implement correctly the acpi tables loading would be:␊ |
43 | ␊ |
44 | Whatever the path was hardcoded in the DSDT option or was automatically found, we extract the path part of ␊ |
45 | the DSDT file that has been successfully found and we run a loop to enumerate all other acpi files in the same directory.␊ |
46 | Now for each acpi file found, we should compare the name with an existing acpi table found in the system that␊ |
47 | we would normally load and replace this usual injection by the content of the file.␊ |
48 | ␊ |
49 | Once DropDSDT=y is set, no other acpi table than dsdt is loaded, then it is the responsability of user␊ |
50 | to provide any other acpi table.␊ |
51 | ␊ |
52 | - Add a new module capable of writing proprietary Chameleon data to ioreg:␊ |
53 | Using the DT__xxx() API, we will create a set of functions to write␊ |
54 | to log info, chameleon boot info to be retrieved by helper applications...␊ |
55 | the only public function for log info purpose of this module would be:␊ |
56 | logMessageToIOREG(...); // var args printf style format␊ |
57 | flushLogToIOREG(); // store a unique log info property to the ioreg␊ |
58 | ␊ |
59 | The preferred internal behavior of the log info ioreg buffer␊ |
60 | would be to store the messages in a consolidated buffer then only write once,␊ |
61 | this buffer (i.e just before call the kernel) with flushLogToIOREG();␊ |
62 | The other public function for writing chameleon boot info data would be:␊ |
63 | ␊ |
64 | verbose() should incorporate a call to logMessageToIOREG() ␊ |
65 | to permit helper applications to extract␊ |
66 | this log info (i.e: the chameleon system pref pane)␊ |
67 | ␊ |
68 | - Add API for displaying and logging messages like:␊ |
69 | ␊ |
70 | void verbose(...)␊ |
71 | {␊ |
72 | ...␊ |
73 | logMessageToIOREG("%s: %sn", title, s);␊ |
74 | ␊ |
75 | }␊ |
76 | ␊ |
77 | void display_and_log( const char* title, const char* msg) ␊ |
78 | {␊ |
79 | printf("%s: %sn", title, s);␊ |
80 | logMessageToIOREG(title,s);␊ |
81 | }␊ |
82 | ␊ |
83 | void deprecated(const char * s)␊ |
84 | {␊ |
85 | display_and_log("WARNING: Deprecated option",s); ␊ |
86 | sleep(1); ␊ |
87 | }␊ |
88 | ␊ |
89 | void error_message(const char * s)␊ |
90 | {␊ |
91 | display_and_log("ERROR",s); ␊ |
92 | getc();␊ |
93 | }␊ |
94 | ␊ |
95 | - Case unsensitive parsing for the bootConfig options:␊ |
96 | should help the common/novice user to setup more easily.␊ |
97 | ␊ |
98 | |