Building Ubuntu Kernels with Debug Symbols (by quqi99)
2016-02-26 02:46
603 查看
作者:张华 发表于:2016-02-25
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本版权声明
( http://blog.csdn.net/quqi99 )
使用gdb或者crash时需要debug symbols, 可以从http://ddebs.ubuntu.com/pool/main/l/linux/下载,但有时候里面没有需要自己生成,下需方法使用了debian/rules脚本来为Ubuntu Kernel生成debug symbols, 所以它不需要注释的那些make命令, 这个脚本会自动生成.config文件,如果要修改可以使用fakeroot debian/rules editconfigs命令。如果使用的是社区的Kernel, 默认的.config文件应该已经包括了生成debug symbols的配置。git clone git://kernel.ubuntu.com/ubuntu/linux.git ubuntu-linux
#git clone --reference ubuntu-linux git://kernel.ubuntu.com/ubuntu/ubuntu-vivid.git
git clone --reference ubuntu-linux git://kernel.ubuntu.com/ubuntu/ubuntu-xenial.git
cd ubuntu-xenial
git tag -l Ubuntu-*
git checkout -b Ubuntu-4.4.0-0.10 Ubuntu-4.4.0-0.10
sudo apt-get install fakeroot pkg-config-dbgsym git build-essential kernel-package kernel-wedge
sudo apt-get install libncurses5-dev qt4-dev-tools
#make xconfig #or make menuconfig
#make localmodconfig #speed compliling time for test
#make-kpkg #a script which automates and replaces the sequence "make dep; make clean; make bzImage; make modules"
#make mrproper
#git reset --hard HEAD
fakeroot debian/rules clean
#fakeroot debian/rules editconfigs
fakeroot debian/rules binary-generic binary-headers skipdbg=false
相关文章推荐
- 保存数据时报:Incorrect string value: '\xF0\x9F\x91\x8D' for column 'f_char_name' at row 1
- UICollectionView之控件瀑布流
- UICollectionView之控件瀑布流
- 1101. Quick Sort (25)
- Android Volley完全解析(三),定制自己的Request
- 从交互设计角度,聊聊Web网站和移动App的六大差异
- 支付宝福卡破解——咻一咻的ui怎么实现
- UIView(包括子类)的几个初始化时执行动作的时机
- 在forms.ModelForm使用request.POST
- lucene 入门
- UGUI逐帧动画
- iOS开发中UICollectionView的使用方法
- UVA 1152(p237)----4 Values Whose Sum is Zero
- leetcode-128-Longest Consecutive Sequence
- UESTC 360 Another LCIS 线段树
- UI进阶第六天,绘制图形
- leetcode-115-Distinct Subsequences
- View Programming Guide for iOS 学习笔记_1
- Collection Views and Building Custom Layouts-备
- UVA 540(p117)----Team Queue