MeeGo 培训总结之ofono和kernel编译
一: ofonod工具
启动的命令是: ofonod -n -d '*'
启动后加入命令:export OFONO_AT_DEBUG=1 <打印log信息>
二: 内核编译:
由于Ubuntu中rpmbuild关联太复杂,在fradro系统可以直接编译,在ubuntu下,安装kernel-TPO-2.6.35.3MFLD-0.1.src.rpm包的折衷方法:
2. 操作环境:
当前目录:/home/administrator
rpm包存放目录:/home/administrator/kernel_src/src
3. 启动emulator
mad remote -r meego-handset-ia32-qemu-1.1.20101031.2201-sda-runtime poweron
4. 进入emulator里的xterm Terminal, 并包装以下包并关闭emulator:
zypper install linux-firmware
zypper install elfutils-libelf-devel
zypper install binutils-devel
5. mkdir test2 test3
6. sudo mount -o offset=512 /usr/lib/madde/linux-i686/runtimes/meego-handset-ia32-qemu- 1.1.20101031.2201-sda-runtime/meego-handset-ia32-qemu-1.1.20101031.2201-sda.raw test2
7. rsync -av test2 test3/
8. sudo umount test2
9. sudo chroot test3/test2
10. mkdir test & exit
11. sudo cp -r kernel_src/src/* test3/test2/test
12. sudo chroot test3/test2
13. cd test
rpm -ivvh kernel-TPO-2.6.35.3MFLD-0.1.src.rpm
14. cd /home/administrator/rpmbuild/SPECS
vi kernel-TPO.spec
在最上面一行加上:�fine _define_path_buzz 2
15. rpmbuild -bp kernel-TPO.spec
rpm包安装的結果:kernel源码并打上补丁。源码在BUILD目录, 通 过 cd ../BUILD进入目录。