zoukankan      html  css  js  c++  java
  • 嵌入式Linux系统开发环境搭建

    Linux kernel Complier:

    http://supportopensource.iteye.com/blog/680483

    sudo make mrproper         净化解压后的源代码 

    sudo make menuconfig     对内核选项进行配置

    sudo make dep         建立模块间的依赖信息 

    sudo make clean       删除配置时留下的一些不用的文件

    sudo make bzImage     编译内核,内核较小时可以用make zImage 

    sudo make modules    编译内核模块 

    sudo make modules_install   安装内核模块 

    sudo make install           安装内核 

    cd / 后在终端输入:sudo mkinitramfs 2.6.33.1 -o /boot/initrd.img-2.6.33.1-generic 

    make menuconfig' requires the ncurses libraries.

    # sudo apt-cache search ncurses   // 查询相关库,发现有很多

    # sudo apt-get install libncurses5-dev  // google一下只要libncurses5-dev

    drivers/mfd/ezx-pcap.c:206:2: error: implicit declaration of function ‘pxa_irq_to_gpio’

    http://permalink.gmane.org/gmane.linux.ports.arm.kernel/155647

    Linux2.6 内核的 Initrd 机制解析

    http://blog.csdn.net/echoisland/article/details/5955634

    arm-fsl-linux-gnueabi-gcc:命令未找到

    两个原因:1、真的没有这个交叉编译环境;2、没有调用权限,切换到root  3、sudo apt-get install g++-multilib  4、sudo apt-get install lib32-z1-dev

    error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory.

    sudo apt-get install lib32z1

    实现虚拟机VMware上linux与windows互相复制与粘贴

    http://blog.sina.com.cn/s/blog_626e09150101nh0r.html

    Linux kernel裁剪

    http://www.cnblogs.com/htc-javaMe/archive/2009/12/26/2562548.html

    出现这个或者fatal error: openssl/名单.h: No such file or directory。都是没有安装libssl-dev~

    使用sudo apt-get install libssl-dev来安装libssl-dev即可

    Ubuntu系统启动时出现错误,检查磁盘时发现严重错误:

    http://jingyan.baidu.com/article/0aa22375bbffbe88cc0d6419.html

    Ubuntu source list :

    http://blog.csdn.net/lilongherolilong/article/details/6704855

    http://wiki.ubuntu.org.cn/Qref/Source

    Ubuntu Soufou input :

    http://pinyin.sogou.com/linux/help.php

    解决Ubuntu无线网卡突然无法连接

    http://www.jianshu.com/p/eb95dbaa30ca

    Terminal command:

    # df -h  // 查看硬盘使用情况

    # sudo passwd root  // root用户建立

    # su   //  切换root用户

    # sudo apt-get update

    # apt-get install "name"

    # apt-get remove "name"

    # xz -d "filename"     // tar.xz

    # tar xvf "filename"  // used after the upper command

    #  tar -zxvf "filename" // .tar

    # vim ~/.bashrc  //自定义命令设置# apt-get install iptux   //  安装飞秋

    # find .  /( -name “_*“  -or  -newer while2 /)  -type  f  -print   // 在当前目录下查找(名字以_为开头并且比while2更新的)目录

    find . –name “.svn” –type d –R | xargs rm –rf :   //就会递归地把.svn目录删掉

    # find . -newer while2 -type f -exec ls -l {} /;  // -exec:后面可以接命令,它以/;来结束

    # find . -name "*.in" | xargs grep "thermcontact"  // 从当前目录开始查找所有扩展名为.in的文本文件,并找出包含”thermcontact”的行

    # sudo nautilus   // 图形化界面root复制

    权限控制

    sudo chmod 600 ××× (只有所有者有读和写的权限)
    sudo chmod 644 ××× (所有者有读和写的权限,组用户只有读的权限)
    sudo chmod 700 ××× (只有所有者有读和写以及执行的权限)
    sudo chmod 666 ××× (每个人都有读和写的权限)
    sudo chmod 777 ××× (每个人都有读和写以及执行的权限)

    其中×××指文件名(也可以是文件夹名,不过要在chmod后加-ld)

    minicom应用

    # sudo minicom -s   // 打开minicom应用

    # dmesg | grep ttyUSB     or  dmesg | grep ttyS   // 查看串口端口

    # sudo minicom -c on  // 启动应用, 支持彩色字符显示

    # 以下设置之后才能进入登陆界面

    Hardware Flow Control     NO

    Software Flow Control     NO

    Ubuntu TFTP配置全过程

    http://www.linuxidc.com/Linux/2013-07/87366.htm

    登陆开发板后常用命令

    # reboot   //  重启

    # cat /proc/version  // 查看内核版本

    # free    // 查看内存使用情况

    # df -m   // 查看硬盘使用情况

    # cat /proc/cpuinfo  // 查看CPU等信息

    # /etc/rc.d/init.d/start_userapp -->   开机启动脚本文件

      insmod /root/beep.ko   // 挂载驱动

      udevtrigger   // 立即触发

      beep_test   // 执行应用程序

    # ulimt -n    // 文件描述符的取值范围,一般1024

      

  • 相关阅读:
    P2523 [HAOI2011]Problem c
    P2518 [HAOI2010]计数
    P2513 [HAOI2009]逆序对数列
    P2519 [HAOI2011]problem a
    P5020 货币系统
    P2580 于是他错误的点名开始了(Trie)
    P3805 【模板】manacher算法
    基础
    白兔的字符串(hash入门)
    ACM的分类训练题集(转载)
  • 原文地址:https://www.cnblogs.com/alanfang/p/4958583.html
Copyright © 2011-2022 走看看