Embedded System
jelly_bear
Technologies come and technologies go, but insight is forever.
展开
-
编译《嵌入式linux应用手册》出现的问题
交叉编译出错提示/opt/FriendlyARM/toolschain/4.4.3/libexec/gcc/arm-none-linux-gnueabi/4.4.3/cc1: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' n转载 2011-08-04 16:35:46 · 581 阅读 · 0 评论 -
Ubuntu下安装低版本gcc
1.建立目标目录 :mkdir /usr/bin/gcc-2.952.在原文件中执行以下操作(cd ***/gcc-2.95.3)/configure --prefix=/usr/local/gcc-3.4.0 --enable-threads=posix --disable-checking --enable--long-long --host=i386-ubuntu-linux --w原创 2011-09-28 23:21:11 · 812 阅读 · 0 评论 -
Unable to lock the administration directory (/var/lib/dpkg/),is another process using it?
Description:无法获得锁 /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?Solution:sudo rm /v转载 2011-11-17 10:11:18 · 19434 阅读 · 2 评论 -
SecureCRT中 vim彩色显示
1> secureCRT的设置。Options->SessionOptions ->Emulation,然后把Terminal类型改成linux,并点中ANSI Color复选框。2> 服务器端的设置。在/etc/bashrc中添加:export TERM=xterm 语句。转载 2011-08-14 14:38:38 · 501 阅读 · 0 评论 -
bin/sh: hello :not found -sh: ./hello: not found
Build Options->Build BusyBox as a static binary (no shared libs)Build with Large File Support (for accessing file>2GB)如果选择 Build BusyBox as a static binary (no shared libs) 方式进行编译时,所需的库已经与程序静态地链转载 2011-11-07 14:26:36 · 757 阅读 · 0 评论 -
make 内核时出现问题
错误提示:drivers/message/fusion/mptsas.c: In function `mptsas_port_delete':drivers/message/fusion/mptsas.c:105: sorry, unimplemented: inlining failed in call to 'mptsas_set_rphy': function body not av转载 2012-04-02 22:26:38 · 4415 阅读 · 0 评论 -
ubuntu 启动出现问题
问题:an error occurred while mounting /mnt/hgfs解决:修改etc/fstab .host:/ /mnt/hgfs vmhgfs defaults,ttl=5,uid=1000,gid=1000,nobootwait 0 0转载 2012-04-10 19:44:11 · 994 阅读 · 0 评论 -
Enterprise Linux5 配置Samba服务器
1.修改samba的配置文件。 命令:# vi /etc/samba/smb.conf 添加以下代码: [root] comment = Root Directories browseable = yes writable = yes path = / vali原创 2011-06-21 10:04:00 · 841 阅读 · 0 评论 -
vmware tools 的安装
1.在虚拟机工具栏上,点击"VM " 选择 "Install VMware Tools ",等待一下,直到 linux的桌面出现一个光驱图标。 2.挂载光驱 #mount /dev/cdrom /mnt/cdrom 3. 复制VMwareTools-6.0.0-45731.tar.gz包到 /tmp #cp /mnt/cdrom/VMwareTo原创 2011-06-21 10:49:00 · 277 阅读 · 0 评论 -
安装 arm-linux-gcc
1. tar zxvf arm-linux-gcc-4.4.3 -C /2.vi /root/.bashrc在其最后添加代码: 错的:export PATH:/opt/FriendlyARM/toolschain/4.4.3/bin:$PATHexport PATH=$PATH: /opt/FriendlyARM/toolschain/4.5.1/bin3.vi /etc.转载 2011-09-27 21:01:11 · 526 阅读 · 0 评论 -
使用工具 autoconf 和automake 自动创建 Makefile
1.编写test.c test.h2 autoscan3 修改configure.scan 为 configure.in 在AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS]) 后面加入 AM_INIT_AUTOMAKE(test,1.0)在AC_OUTPUT 前加上 AC_CONFIG_FILES([Makef原创 2013-06-08 23:36:48 · 496 阅读 · 0 评论 -
ubuntu下 使用 Eclipse
1.利用software center 下载 java running evironment(JRE) 或者 JDK2.从www.eclipse.org/downloads/ 下载 Eclipse IDE 佛如 C/C++3.sudo tar zcvf eclipse-cpp-juno-SR2-linux-gtk.tar.gz -C /opt4 进入/opt/eclipse/运行原创 2013-06-09 22:01:36 · 675 阅读 · 0 评论 -
网络编程
TCPServer:#include #include #include #include #include #include #include #include #include int main(int argc, char** argv){ int sockfd, new_fd; struct sockaddr_in server_addr; //服务器地原创 2013-06-18 17:01:56 · 463 阅读 · 0 评论 -
Linux下GCC工具的安装
1.挂载光驱 # mount /dev/cdrom/mnt/cdrom 【注】若使用虚拟机,如mount光驱,提示找不到介质,说明ISO未连接上,设置-> CD/DVD ->conneted 2. 在光盘ISO中找到类似gcc-3.2.2-5.i386.rpm的包(在RPMS文件夹中) 3.将gcc-3.2.2-5.i386.rpm 拷贝到/tmp #原创 2011-06-21 10:37:00 · 425 阅读 · 0 评论 -
tftp 下载文件到开发板
tftp –r 要下载文件名 -g tftp 服务器端的 IP 地址转载 2011-12-01 18:51:31 · 646 阅读 · 0 评论 -
ubuntu ftp服务 开启
1.安装ftp$sudo apt-get install vsftpd2. 启动$sudo /etc/init.d/vsftpd start3.关闭$sudo /etc/init.d/vsfptd stop4.重启$sudo转载 2011-08-20 15:19:37 · 2122 阅读 · 0 评论 -
卸载软件包
rpm -e xxxxx --nodeps原创 2011-09-28 11:01:39 · 284 阅读 · 0 评论 -
crosstool在ubuntu下运行提示 getandpatch.sh: 1: patch: not found
1.执行apt-get update2.apt-get install patch转载 2011-10-06 14:52:40 · 670 阅读 · 0 评论 -
Ubuntu 连接 SecureCRT
ssh看做是telnet的加强版,telnet的密码和信息都是不加密的,而ssh则加密开启ubuntu上的ssh功能sudo apt-get install openssh-server openssh-client转载 2011-10-07 10:55:00 · 299 阅读 · 0 评论 -
Qtopia在arm上的移植错误:cannot find -luuid .
交叉编译e2fsprogs-1.38.tar.gz $tar zxvf e2fsprogs-1.38.tar.gz $cd e2fsprogs-1.38 $export CC=arm-linux-gcc //指定编译器 $./configure --host=arm-linux –enable-elf-shlibs转载 2011-11-17 13:11:28 · 801 阅读 · 0 评论 -
ubuntu 10.04如何安装kdevelop
kdevelop没有加进ubuntu 10.04的源;想要安装得通过ppa代码:sudo add-apt-repository ppa:kubuntu-ppa/backports然后代码:sudo apt-get updatesudo apt-get install kdevelop转载 2011-11-20 19:21:18 · 393 阅读 · 0 评论 -
Qtopia 编译问题总结
gcc :4.4.3arm-linux-gcc :4.3.2ubuntu:10.04·问题1. /usr/bin/ld: cannot find -luuid解决方法:apt-get install uuid-dev 问题2. wavplugin.cpp:435:45: 错误:从类型‘const char*’到类型‘char*’的转换无效解决方法:/x86-原创 2011-11-20 21:39:48 · 1020 阅读 · 0 评论 -
安装develop
sudo add-apt-repository ppa:kubuntu-ppa/backports 然后 代码: sudo apt-get update sudo apt-get install kdevelop转载 2011-11-24 21:45:02 · 460 阅读 · 0 评论 -
These critical programs are missing or too old 问题
问题原因是使用crosstool0.43生成工具链 无法识别binutils的2.20以上版本解决方法有两种方法(1)修改glibc文件夹中的configure文件(通过find /opt/crosstool -name configure命令查找)case $ac_prog_version in '') ac_prog_version="v. ?.??, bad"; a转载 2011-11-05 13:26:16 · 6438 阅读 · 1 评论 -
u-boot编译过程中出现的问题
出现问题: ………………. ………………. lib_arm/libarm.a(_udivsi3.o)(.text+0x8c):/home/qsg/u-boot-1.2.0/lib_arm/_udivsi3.S:67: relocation truncated to fit: R_ARM_PLT32 __div0 lib_arm/libarm.a(_umods转载 2011-10-07 14:45:44 · 2864 阅读 · 0 评论 -
update-alternatives: error: /var/lib/dpkg/alternatives/gcc corrupt:
1.rm gcc2.重新安装2个 update-alternative --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 40 update-alternative --install /usr/bin/gcc gcc /usr/bin/gcc-3.3 30原创 2011-11-30 09:51:27 · 1547 阅读 · 0 评论 -
登陆Scratchbox 问题
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!解决方法 echo 0| sudo tee /proc/sys/vm/vdso_enabled echo 4096 |sudo转载 2011-11-30 10:44:24 · 541 阅读 · 0 评论 -
GTK+ 移植时出现问题
#./configure提示:checking for GLIB - version >= 2.5.7*** 'pkg-config --modversion glib-2.0' returned 2.12.0, but GLIB (2.10.3)*** was found! If pkg-config was correct, then it is best*** to remo原创 2011-11-29 13:57:58 · 619 阅读 · 0 评论 -
反汇编
生成反汇编文件 objdump -d ***.o 查看文件属性 file转载 2013-09-09 18:48:04 · 695 阅读 · 0 评论