-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathINSTALL
142 lines (99 loc) · 3.81 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
Quick start
===========
Install Longene, you have 3 steps to go:
1. Build the patched Linux kernel
2. Build Wine-For-Longene, without wineserver
3. Build Longene module
Provides
========
A patch for linux-2.6.34 kernel
Wine-For-Longene source
Longene-0.3.1 module
Requirements
============
Linux-2.6.34 source
The current version (0.3.1) of Longene provides a patche for Linux kernel.
Make sure your system has installed the X11 development include files
(called xlib6g-dev in Debian and XFree86-devel in Red Hat).
Make sure your system has at least gcc 3.2 available which Linux kernel 2.6.34
requires.
Build Linux kernel
==================
To build Longene, the first thing is to patch the Linux kernel 2.6.34.
Cd to top-level directory of the kernel source code (linux-2.6.34),
and run the following command:
patch -p1 < path/patchfile
where "patchfile" is "longene-0.3.1-linux-2.6.34.diff" and "path" is path
of the patchfile.
Both the kernel code and the general configuration (.config) are automatically
motified in this step.
After patching the kernel, configure it like:
make menuconfig
The general configuration file (.config) is provided in the patch (you can also
configure it yourself), you can just save and exit to run the next
commands:
make
make modules_install
make install
Now you have a patched Linux kernel for Longene, then reboot your system to
build the Longene module.
NOTE: If you decide to configure the patched kernel yourself,
the following settings are required:
Need to change the version number.:
General setup -> Local version -> -longene-0.3.1
Features tobe included:
1. [*] General setup -> Longene support
2. -*- General setup ->
Configure standard kernel features (for small systems) ->
Load all symbols for debugging/ksymoops
3. [*] General setup ->
Configure standard kernel features (for small systems) ->
Do an extra kallsyms pass
4. [*] General setup -> Disable heap randomization
5. [*] File systems -> Native language support ->
Simplified Chinese charset (CP936, GB2312)
Features tobe Excluded:
1. [ ] Enable loadable module support ->
Module versioning support
2. [ ] Processor type and features ->
Symmetric multi-processing support
Build Wine
==========
To build Wine, cd to the top-level directory of the Wine for Longene
source (wine-1.0-longene), then configure and build it:
./configure
make depend
make
make install
Build Longene module
=================================
To build the module, you need to make sure you are using the patched
kernel you have built. Then, cd to the "module" directory and run
the command:
make
After building, install the module to get the Longene running:
insmod unifiedkernel.ko
All done, Longene is running!
Run programs
================
Now you can run some Win32 programs in X terminal windows just like what
you do on Linux, such as:
./Hellworld.exe
Note that Longene is not completed yet, so some applications may crash the
system or not work properly as on Microsoft Windows. You can report these
bugs on :
http://www.longene.org/bugzilla
UNINSTALL
=========
If you don't want to use Longene any more, you can uninstall it:
1. Uninstall module:
rmmod unifiedkernel.ko
cd to the directory "module" and run command:
make clean
2. If you want, you can also unpatch Linux kernel:
cd to the top-level directory of the kernel source code, then run the
command:
patch -R -p1 < path/patchfile
as usual, where "path" is the path of the patch file and "patchfile" is
its file name.
And then, you can rebuild them.