Root/
Source at commit 1082 created 13 years 1 month ago. By azimutz, Keep up with trunk... | |
---|---|
1 | TODO List for Chameleon Boot Loader␊ |
2 | ====================================␊ |
3 | - Bring code closer to coding_standards.txt.␊ |
4 | ␊ |
5 | - Create a dummy module for any modules that are compiled in. This is needed for linking modules with␊ |
6 | dependencies that are not compiled in.␊ |
7 | ␊ |
8 | - Fix the module system when booting chameleon with multiboot. Cleanup the xcode 4 fix.␊ |
9 | ␊ |
10 | - Integrate Prasys current work on options and quick shortcut modified version of 18seven␊ |
11 | ␊ |
12 | - Add auto detection of efi string algorithm, so graphics enabler can be enabled by default while not␊ |
13 | conflicting with other efi string overridden content␊ |
14 | (original idea of Galaxy)␊ |
15 | ␊ |
16 | - Case insensitive parsing for the bootConfig options:␊ |
17 | should help the common/novice user to setup more easily.␊ |
18 | ␊ |
19 | ␊ |
20 | ====================================␊ |
21 | ␊ |
22 | DONE␊ |
23 | ␊ |
24 | - Add a more sophisticated acpi loading mechanism to enable loading custom acpi tables when dsdtdrop=y␊ |
25 | Here's a specification to think about:␊ |
26 | First we must care about if a forced DSDT full path has been specified␊ |
27 | (was what pb smith had in his first tries) and take it for the DSDT path as is.␊ |
28 | Then we have the case where no DSDT path was set where we run our usual DSDT search algorithm to␊ |
29 | find this file.␊ |
30 | In the latter case, the file has to be named DSDT.aml and be in one of the / /Extra or bt(0,0)/Extra␊ |
31 | directory.␊ |
32 | ␊ |
33 | Now a first idea to implement correctly the acpi tables loading would be:␊ |
34 | ␊ |
35 | Whether the path was hardcoded in the DSDT option or was automatically found, we extract the path part␊ |
36 | of the DSDT file that has been successfully found and we run a loop to enumerate all other acpi␊ |
37 | files in the same directory.␊ |
38 | Now for each acpi file found, we should compare the name with an existing acpi table found in␊ |
39 | the system that we would normally load and replace this usual injection by the content of the file.␊ |
40 | ␊ |
41 | Once DropDSDT=y is set, no other acpi table than dsdt is loaded, then it is the responsibility of the␊ |
42 | user to provide any other acpi table.␊ |
43 | ␊ |
44 | - Add a new module capable of writing proprietary Chameleon data to ioreg:␊ |
45 | Using the DT__xxx() API, we will create a set of functions to write␊ |
46 | to log info, chameleon boot info to be retrieved by helper applications...␊ |
47 | the only public function for log info purpose of this module would be:␊ |
48 | logMessageToIOREG(...); // var args printf style format␊ |
49 | flushLogToIOREG(); // store a unique log info property to the ioreg␊ |
50 | ␊ |
51 | The preferred internal behavior of the log info ioreg buffer␊ |
52 | would be to store the messages in a consolidated buffer then only write once,␊ |
53 | this buffer (i.e just before call the kernel) with flushLogToIOREG();␊ |
54 | The other public function for writing chameleon boot info data would be:␊ |
55 | ␊ |
56 | verbose() should incorporate a call to logMessageToIOREG() ␊ |
57 | to permit helper applications to extract␊ |
58 | this log info (i.e: the chameleon system pref pane)␊ |
59 | ␊ |
60 | - Add API for displaying and logging messages like:␊ |
61 | ␊ |
62 | void verbose(...)␊ |
63 | {␊ |
64 | ...␊ |
65 | logMessageToIOREG("%s: %sn", title, s);␊ |
66 | ␊ |
67 | }␊ |
68 | ␊ |
69 | void display_and_log( const char* title, const char* msg) ␊ |
70 | {␊ |
71 | printf("%s: %sn", title, s);␊ |
72 | logMessageToIOREG(title,s);␊ |
73 | }␊ |
74 | ␊ |
75 | void deprecated(const char * s)␊ |
76 | {␊ |
77 | display_and_log("WARNING: Deprecated option",s); ␊ |
78 | sleep(1); ␊ |
79 | }␊ |
80 | ␊ |
81 | void error_message(const char * s)␊ |
82 | {␊ |
83 | display_and_log("ERROR",s); ␊ |
84 | getc();␊ |
85 | }␊ |
86 |