How to build and install Longene-0.3.0 under Ubuntu 10.04

Discuss Linux Unified Kernel project in English

版主: Jeff91, linooxlee, Dekar

How to build and install Longene-0.3.0 under Ubuntu 10.04

帖子liuguo09 于 2010-06-21 16:10

In order to run Longene-0.3.0 under Ubuntu 10.04/Fedora 12/13, standard linux kernel above 2.6.30 is needed. So you can download longene-0.3.0(linux-2.6.34).tar.bz2 from downcenter in longene website. Never forget to download the linux-2.6.34 source code.

The install method is almost as same as the linux-2.6.30 except for the kernel configuration. The longene patch for linux-2.6.34 doesn't include the .config file. So you should copy the distribution config file /boot/config-*** to the Linux-2.6.34 top directory and rename it .config.
Then:
代码: 全选
make menuconfig

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)

Excluded:
1. [ ] General setup -> enable deprecated sysfs features to support old userspace tools
2. [ ] Enable loadable module support -> Module versioning support
3. [ ] Processor type and features -> Symmetric multi-processing support
4. [ ] Processor type and features -> Enable -fstack-protector buffer overflow detection

Save and exit, then:
代码: 全选
make
make modules_install
make install


Other installation steps are as same as Longene-0.3.0 for Linux-2.6.30. So for more details, just refer to http://www.longene.org/forum/viewtopic.php?f=19&t=4218
Studies pass into character.
头像
liuguo09
 
帖子: 140
注册: 2009-08-03 11:35

Re: How to build and install Longene-0.3.0 under Ubuntu 10.04

帖子Jeff91 于 2010-06-29 20:41

I am getting a pile of errors when I try to apply the kernel patch to 2.6.34 source
代码: 全选
jeff@jubuntu ~/Downloads/longene-0.3.0-linux-2.6.34/module $ patch -p1 < /home/jeff/Downloads/longene*/longene-0.3.0-linux-2.6.34.diff
patching file arch/x86/include/asm/irq_vectors.h
Hunk #1 FAILED at 27.
Hunk #2 FAILED at 157.
2 out of 2 hunks FAILED -- saving rejects to file arch/x86/include/asm/irq_vectors.h.rej
patching file arch/x86/include/asm/thread_info.h
Hunk #1 FAILED at 120.
1 out of 1 hunk FAILED -- saving rejects to file arch/x86/include/asm/thread_info.h.rej
patching file arch/x86/kernel/hw_breakpoint.c
Hunk #1 FAILED at 411.
1 out of 1 hunk FAILED -- saving rejects to file arch/x86/kernel/hw_breakpoint.c.rej
patching file arch/x86/kernel/ldt.c
Hunk #1 FAILED at 119.
1 out of 1 hunk FAILED -- saving rejects to file arch/x86/kernel/ldt.c.rej
patching file arch/x86/kernel/process.c
Hunk #1 FAILED at 92.
Hunk #2 FAILED at 696.
2 out of 2 hunks FAILED -- saving rejects to file arch/x86/kernel/process.c.rej
patching file arch/x86/kernel/ptrace.c
Hunk #1 FAILED at 44.
Hunk #2 FAILED at 604.
Hunk #3 FAILED at 662.
Hunk #4 FAILED at 685.
Hunk #5 FAILED at 733.
Hunk #6 FAILED at 1774.
Hunk #7 FAILED at 1796.
7 out of 7 hunks FAILED -- saving rejects to file arch/x86/kernel/ptrace.c.rej
patching file arch/x86/kernel/signal.c
Hunk #1 FAILED at 37.
Hunk #2 FAILED at 861.
2 out of 2 hunks FAILED -- saving rejects to file arch/x86/kernel/signal.c.rej
patching file arch/x86/kernel/traps.c
Hunk #1 FAILED at 879.
1 out of 1 hunk FAILED -- saving rejects to file arch/x86/kernel/traps.c.rej
patching file arch/x86/kernel/vm86_32.c
Hunk #1 FAILED at 48.
Hunk #2 FAILED at 162.
2 out of 2 hunks FAILED -- saving rejects to file arch/x86/kernel/vm86_32.c.rej
patching file arch/x86/mm/mmap.c
Hunk #1 FAILED at 30.
Hunk #2 FAILED at 134.
2 out of 2 hunks FAILED -- saving rejects to file arch/x86/mm/mmap.c.rej
patching file arch/x86/vdso/vdso32-setup.c
Hunk #1 FAILED at 371.
1 out of 1 hunk FAILED -- saving rejects to file arch/x86/vdso/vdso32-setup.c.rej
patching file fs/dcache.c
Hunk #1 FAILED at 2147.
1 out of 1 hunk FAILED -- saving rejects to file fs/dcache.c.rej
patching file fs/exec.c
Hunk #1 FAILED at 61.
Hunk #2 FAILED at 758.
Hunk #3 FAILED at 895.
Hunk #4 FAILED at 977.
Hunk #5 FAILED at 1745.
5 out of 5 hunks FAILED -- saving rejects to file fs/exec.c.rej
patching file fs/ext3/namei.c
Hunk #1 FAILED at 40.
Hunk #2 FAILED at 795.
2 out of 2 hunks FAILED -- saving rejects to file fs/ext3/namei.c.rej
patching file fs/ext4/namei.c
Hunk #1 FAILED at 39.
Hunk #2 FAILED at 817.
2 out of 2 hunks FAILED -- saving rejects to file fs/ext4/namei.c.rej
patching file fs/fcntl.c
Hunk #1 FAILED at 141.
Hunk #2 FAILED at 439.
2 out of 2 hunks FAILED -- saving rejects to file fs/fcntl.c.rej
patching file fs/file.c
Hunk #1 succeeded at 472 with fuzz 2 (offset -16 lines).
patching file fs/namei.c
Hunk #1 FAILED at 2130.
Hunk #2 FAILED at 2352.
Hunk #3 FAILED at 2765.
3 out of 3 hunks FAILED -- saving rejects to file fs/namei.c.rej
patching file fs/open.c
Hunk #1 FAILED at 176.
Hunk #2 FAILED at 225.
Hunk #3 FAILED at 348.
Hunk #4 FAILED at 544.
Hunk #5 FAILED at 1075.
5 out of 5 hunks FAILED -- saving rejects to file fs/open.c.rej
patching file fs/read_write.c
Hunk #1 FAILED at 387.
Hunk #2 FAILED at 405.
Hunk #3 FAILED at 426.
Hunk #4 FAILED at 455.
4 out of 4 hunks FAILED -- saving rejects to file fs/read_write.c.rej
patching file fs/select.c
Hunk #1 FAILED at 945.
1 out of 1 hunk FAILED -- saving rejects to file fs/select.c.rej
patching file fs/stat.c
Hunk #1 FAILED at 243.
Hunk #2 FAILED at 255.
Hunk #3 FAILED at 280.
Hunk #4 FAILED at 313.
4 out of 4 hunks FAILED -- saving rejects to file fs/stat.c.rej
patching file fs/sync.c
Hunk #1 FAILED at 281.
1 out of 1 hunk FAILED -- saving rejects to file fs/sync.c.rej
patching file include/linux/init_task.h
Hunk #1 FAILED at 107.
Hunk #2 FAILED at 173.
2 out of 2 hunks FAILED -- saving rejects to file include/linux/init_task.h.rej
patching file include/linux/sched.h
Hunk #1 FAILED at 108.
Hunk #2 FAILED at 1357.
Hunk #3 FAILED at 1505.
Hunk #4 FAILED at 2202.
4 out of 4 hunks FAILED -- saving rejects to file include/linux/sched.h.rej
patching file include/linux/win32_thread.h
patching file init/Kconfig
Hunk #1 FAILED at 1133.
1 out of 1 hunk FAILED -- saving rejects to file init/Kconfig.rej
patching file kernel/exit.c
Hunk #1 FAILED at 57.
Hunk #2 FAILED at 535.
Hunk #3 FAILED at 865.
Hunk #4 FAILED at 1042.
Hunk #5 FAILED at 1087.
5 out of 5 hunks FAILED -- saving rejects to file kernel/exit.c.rej
patching file kernel/fork.c
Hunk #1 FAILED at 75.
Hunk #2 FAILED at 780.
Hunk #3 FAILED at 1039.
Hunk #4 FAILED at 1203.
Hunk #5 FAILED at 1586.
Hunk #6 FAILED at 1600.
Hunk #7 FAILED at 1741.
7 out of 7 hunks FAILED -- saving rejects to file kernel/fork.c.rej
patching file kernel/pid.c
Hunk #1 FAILED at 389.
1 out of 1 hunk FAILED -- saving rejects to file kernel/pid.c.rej
patching file kernel/sched.c
Hunk #1 FAILED at 2649.
Hunk #2 FAILED at 2697.
Hunk #3 FAILED at 2896.
3 out of 3 hunks FAILED -- saving rejects to file kernel/sched.c.rej
patching file kernel/signal.c
Hunk #1 FAILED at 37.
Hunk #2 FAILED at 122.
Hunk #3 FAILED at 509.
Hunk #4 FAILED at 1708.
Hunk #5 FAILED at 1985.
5 out of 5 hunks FAILED -- saving rejects to file kernel/signal.c.rej
patching file mm/mmap.c
Hunk #1 FAILED at 44.
Hunk #2 FAILED at 1367.
Hunk #3 FAILED at 1374.
Hunk #4 FAILED at 1384.
Hunk #5 FAILED at 1396.
Hunk #6 FAILED at 1405.
Hunk #7 FAILED at 1423.
Hunk #8 FAILED at 1843.
8 out of 8 hunks FAILED -- saving rejects to file mm/mmap.c.rej
patching file mm/mprotect.c
Hunk #1 FAILED at 28.
Hunk #2 FAILED at 317.
2 out of 2 hunks FAILED -- saving rejects to file mm/mprotect.c.rej
patching file mm/msync.c
Hunk #1 FAILED at 14.
Hunk #2 FAILED at 101.
2 out of 2 hunks FAILED -- saving rejects to file mm/msync.c.rej
patching file mm/thrash.c
Hunk #1 FAILED at 22.
Hunk #2 FAILED at 66.
2 out of 2 hunks FAILED -- saving rejects to file mm/thrash.c.rej
patching file net/socket.c
Hunk #1 FAILED at 1327.
Hunk #2 FAILED at 1404.
Hunk #3 FAILED at 1553.
Hunk #4 FAILED at 1756.
Hunk #5 FAILED at 1800.
Hunk #6 FAILED at 1831.
Hunk #7 FAILED at 1850.
7 out of 7 hunks FAILED -- saving rejects to file net/socket.c.rej
patching file security/security.c
Hunk #1 FAILED at 268.
Hunk #2 FAILED at 702.
2 out of 2 hunks FAILED -- saving rejects to file security/security.c.rej


Suggestions? I'm assuming that means the patching failed.

~Jeff
头像
Jeff91
 
帖子: 20
注册: 2010-06-09 11:04
地址: Blue Island, IL

Re: How to build and install Longene-0.3.0 under Ubuntu 10.04

帖子zxbeef 于 2010-06-29 21:41

Jeff91 写道:I am getting a pile of errors when I try to apply the kernel patch to 2.6.34 source
代码: 全选
jeff@jubuntu ~/Downloads/longene-0.3.0-linux-2.6.34/module $ patch -p1 < /home/jeff/Downloads/longene*/longene-0.3.0-linux-2.6.34.diff
patching file arch/x86/include/asm/irq_vectors.h
Hunk #1 FAILED at 27.
Hunk #2 FAILED at 157.
2 out of 2 hunks FAILED -- saving rejects to file arch/x86/include/asm/irq_vectors.h.rej
patching file arch/x86/include/asm/thread_info.h
Hunk #1 FAILED at 120.
1 out of 1 hunk FAILED -- saving rejects to file arch/x86/include/asm/thread_info.h.rej
patching file arch/x86/kernel/hw_breakpoint.c
Hunk #1 FAILED at 411.
1 out of 1 hunk FAILED -- saving rejects to file arch/x86/kernel/hw_breakpoint.c.rej
patching file arch/x86/kernel/ldt.c
Hunk #1 FAILED at 119.
1 out of 1 hunk FAILED -- saving rejects to file arch/x86/kernel/ldt.c.rej
patching file arch/x86/kernel/process.c
Hunk #1 FAILED at 92.
Hunk #2 FAILED at 696.
2 out of 2 hunks FAILED -- saving rejects to file arch/x86/kernel/process.c.rej
patching file arch/x86/kernel/ptrace.c
Hunk #1 FAILED at 44.
Hunk #2 FAILED at 604.
Hunk #3 FAILED at 662.
Hunk #4 FAILED at 685.
Hunk #5 FAILED at 733.
Hunk #6 FAILED at 1774.
Hunk #7 FAILED at 1796.
7 out of 7 hunks FAILED -- saving rejects to file arch/x86/kernel/ptrace.c.rej
patching file arch/x86/kernel/signal.c
Hunk #1 FAILED at 37.
Hunk #2 FAILED at 861.
2 out of 2 hunks FAILED -- saving rejects to file arch/x86/kernel/signal.c.rej
patching file arch/x86/kernel/traps.c
Hunk #1 FAILED at 879.
1 out of 1 hunk FAILED -- saving rejects to file arch/x86/kernel/traps.c.rej
patching file arch/x86/kernel/vm86_32.c
Hunk #1 FAILED at 48.
Hunk #2 FAILED at 162.
2 out of 2 hunks FAILED -- saving rejects to file arch/x86/kernel/vm86_32.c.rej
patching file arch/x86/mm/mmap.c
Hunk #1 FAILED at 30.
Hunk #2 FAILED at 134.
2 out of 2 hunks FAILED -- saving rejects to file arch/x86/mm/mmap.c.rej
patching file arch/x86/vdso/vdso32-setup.c
Hunk #1 FAILED at 371.
1 out of 1 hunk FAILED -- saving rejects to file arch/x86/vdso/vdso32-setup.c.rej
patching file fs/dcache.c
Hunk #1 FAILED at 2147.
1 out of 1 hunk FAILED -- saving rejects to file fs/dcache.c.rej
patching file fs/exec.c
Hunk #1 FAILED at 61.
Hunk #2 FAILED at 758.
Hunk #3 FAILED at 895.
Hunk #4 FAILED at 977.
Hunk #5 FAILED at 1745.
5 out of 5 hunks FAILED -- saving rejects to file fs/exec.c.rej
patching file fs/ext3/namei.c
Hunk #1 FAILED at 40.
Hunk #2 FAILED at 795.
2 out of 2 hunks FAILED -- saving rejects to file fs/ext3/namei.c.rej
patching file fs/ext4/namei.c
Hunk #1 FAILED at 39.
Hunk #2 FAILED at 817.
2 out of 2 hunks FAILED -- saving rejects to file fs/ext4/namei.c.rej
patching file fs/fcntl.c
Hunk #1 FAILED at 141.
Hunk #2 FAILED at 439.
2 out of 2 hunks FAILED -- saving rejects to file fs/fcntl.c.rej
patching file fs/file.c
Hunk #1 succeeded at 472 with fuzz 2 (offset -16 lines).
patching file fs/namei.c
Hunk #1 FAILED at 2130.
Hunk #2 FAILED at 2352.
Hunk #3 FAILED at 2765.
3 out of 3 hunks FAILED -- saving rejects to file fs/namei.c.rej
patching file fs/open.c
Hunk #1 FAILED at 176.
Hunk #2 FAILED at 225.
Hunk #3 FAILED at 348.
Hunk #4 FAILED at 544.
Hunk #5 FAILED at 1075.
5 out of 5 hunks FAILED -- saving rejects to file fs/open.c.rej
patching file fs/read_write.c
Hunk #1 FAILED at 387.
Hunk #2 FAILED at 405.
Hunk #3 FAILED at 426.
Hunk #4 FAILED at 455.
4 out of 4 hunks FAILED -- saving rejects to file fs/read_write.c.rej
patching file fs/select.c
Hunk #1 FAILED at 945.
1 out of 1 hunk FAILED -- saving rejects to file fs/select.c.rej
patching file fs/stat.c
Hunk #1 FAILED at 243.
Hunk #2 FAILED at 255.
Hunk #3 FAILED at 280.
Hunk #4 FAILED at 313.
4 out of 4 hunks FAILED -- saving rejects to file fs/stat.c.rej
patching file fs/sync.c
Hunk #1 FAILED at 281.
1 out of 1 hunk FAILED -- saving rejects to file fs/sync.c.rej
patching file include/linux/init_task.h
Hunk #1 FAILED at 107.
Hunk #2 FAILED at 173.
2 out of 2 hunks FAILED -- saving rejects to file include/linux/init_task.h.rej
patching file include/linux/sched.h
Hunk #1 FAILED at 108.
Hunk #2 FAILED at 1357.
Hunk #3 FAILED at 1505.
Hunk #4 FAILED at 2202.
4 out of 4 hunks FAILED -- saving rejects to file include/linux/sched.h.rej
patching file include/linux/win32_thread.h
patching file init/Kconfig
Hunk #1 FAILED at 1133.
1 out of 1 hunk FAILED -- saving rejects to file init/Kconfig.rej
patching file kernel/exit.c
Hunk #1 FAILED at 57.
Hunk #2 FAILED at 535.
Hunk #3 FAILED at 865.
Hunk #4 FAILED at 1042.
Hunk #5 FAILED at 1087.
5 out of 5 hunks FAILED -- saving rejects to file kernel/exit.c.rej
patching file kernel/fork.c
Hunk #1 FAILED at 75.
Hunk #2 FAILED at 780.
Hunk #3 FAILED at 1039.
Hunk #4 FAILED at 1203.
Hunk #5 FAILED at 1586.
Hunk #6 FAILED at 1600.
Hunk #7 FAILED at 1741.
7 out of 7 hunks FAILED -- saving rejects to file kernel/fork.c.rej
patching file kernel/pid.c
Hunk #1 FAILED at 389.
1 out of 1 hunk FAILED -- saving rejects to file kernel/pid.c.rej
patching file kernel/sched.c
Hunk #1 FAILED at 2649.
Hunk #2 FAILED at 2697.
Hunk #3 FAILED at 2896.
3 out of 3 hunks FAILED -- saving rejects to file kernel/sched.c.rej
patching file kernel/signal.c
Hunk #1 FAILED at 37.
Hunk #2 FAILED at 122.
Hunk #3 FAILED at 509.
Hunk #4 FAILED at 1708.
Hunk #5 FAILED at 1985.
5 out of 5 hunks FAILED -- saving rejects to file kernel/signal.c.rej
patching file mm/mmap.c
Hunk #1 FAILED at 44.
Hunk #2 FAILED at 1367.
Hunk #3 FAILED at 1374.
Hunk #4 FAILED at 1384.
Hunk #5 FAILED at 1396.
Hunk #6 FAILED at 1405.
Hunk #7 FAILED at 1423.
Hunk #8 FAILED at 1843.
8 out of 8 hunks FAILED -- saving rejects to file mm/mmap.c.rej
patching file mm/mprotect.c
Hunk #1 FAILED at 28.
Hunk #2 FAILED at 317.
2 out of 2 hunks FAILED -- saving rejects to file mm/mprotect.c.rej
patching file mm/msync.c
Hunk #1 FAILED at 14.
Hunk #2 FAILED at 101.
2 out of 2 hunks FAILED -- saving rejects to file mm/msync.c.rej
patching file mm/thrash.c
Hunk #1 FAILED at 22.
Hunk #2 FAILED at 66.
2 out of 2 hunks FAILED -- saving rejects to file mm/thrash.c.rej
patching file net/socket.c
Hunk #1 FAILED at 1327.
Hunk #2 FAILED at 1404.
Hunk #3 FAILED at 1553.
Hunk #4 FAILED at 1756.
Hunk #5 FAILED at 1800.
Hunk #6 FAILED at 1831.
Hunk #7 FAILED at 1850.
7 out of 7 hunks FAILED -- saving rejects to file net/socket.c.rej
patching file security/security.c
Hunk #1 FAILED at 268.
Hunk #2 FAILED at 702.
2 out of 2 hunks FAILED -- saving rejects to file security/security.c.rej


Suggestions? I'm assuming that means the patching failed.

~Jeff


you are in a incorrect dir.
you should get a copy of linux-2.6.34 source code and apply the kernel patch in it. Not in the module dir
zxbeef
 
帖子: 487
注册: 2009-03-04 14:33

Re: How to build and install Longene-0.3.0 under Ubuntu 10.04

帖子Jeff91 于 2010-06-29 23:05

zxbeef 写道:you are in a incorrect dir.
you should get a copy of linux-2.6.34 source code and apply the kernel patch in it. Not in the module dir


Ahh right, my mistake. >.<

~Jeff
头像
Jeff91
 
帖子: 20
注册: 2010-06-09 11:04
地址: Blue Island, IL

Re: How to build and install Longene-0.3.0 under Ubuntu 10.04

帖子staalmannen 于 2010-07-26 0:23

Anyone tried to set up a PPA patching the generic Ubuntu kernel (and generic .config)? I guess that would make things easier for a lot of us since we would be able to get automatic updates from this PPA repository, and it would reduce the load on this server too...

I have just set up a similar PPA for another project providing Plan9 syscall compatibility (https://launchpad.net/~staal1978/+archive/glendix)
staalmannen
 
帖子: 1
注册: 2010-07-26 0:18


回到 English

在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客