Ubuntu零散记录

Posted by 夏敏的博客 on September 16, 2016
  • Android6.0编译事情

Ubuntu16.04的安装源已经默认没有openjdk7了,所以要自己手动添加仓库,如下: sudo add-apt-repository ppa:openjdk-r/ppa sudo apt-get update sudo apt-get install openjdk-7-jdk

去kernel目录下. xiamin@xiamin:~/Work/marshmallow/android-6.0/kernel$ make rockchip_defconfig xiamin@xiamin:~/Work/marshmallow/android-6.0/kernel$ make rk3288-tb_8846.img

返回工程根目录, make -j8

若编译时链接出错, 编译ART失败.照着下面的去修改ld链接文件 aosp中的ld就是ld.gold,虽然不是链接过去,但是你可以通过md5sum发现二者是同一个文件。 所以这里也链接到全局的ld.gold, 可以拷贝过去或者链接过去 cd prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin mv ld ld.old1 cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin 或者ln -s /usr/bin/ld.gold ld

  • top时S状态的含义

    R (TASK_RUNNING),可执行状态
    S (TASK_INTERRUPTIBLE),可中断的睡眠状态
    D (TASK_UNINTERRUPTIBLE),不可中断的睡眠状态
    T (TASK_STOPPED or TASK_TRACED),暂停状态或跟踪状态
    Z (TASK_DEAD – EXIT_ZOMBIE),退出状态,进程成为僵尸进程

  • open-file browsing in terminal CMD

    nautilus .

  • 我的bashrc

    alias ar='adb remount '
    alias log='adb logcat -v time | grep -E -i -n'
    alias ab='adb reboot '
    alias ap='adb push '
    alias gd='git diff '
    alias ga='git add '
    alias gs='git status '
    alias gc='git checkout '
    alias build='cd ../../../;source build/envsetup.sh;lunch 5;cd -;mm -B'
    alias app='cd ~/Desktop/Android/Android4.4/packages/robot/'
    alias framework='cd ~/Desktop/Android/Android4.4/frameworks'
    alias repo='~/Desktop/Android/rk3288/rk-repo/repo'
    alias ...='cd ../../../'
    alias Vim='/opt/sublime_text/sublime_text'
    alias Vi='/opt/sublime_text/sublime_text'
    alias subline_text='/opt/sublime_text/sublime_text'
    alias android-studio='/home/xiamin/soft_xiamin/android-studio-3.0/android-studio-3/bin/studio.sh'
    alias ec='/home/xiamin/soft_xiamin/adt-bundle-linux-x86_64-20131030/eclipse/eclipse'
    alias java7='export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64/;export PATH=$JAVA_HOME/bin:$PATH;export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar'
    alias java8='export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/;export PATH=$JAVA_HOME/bin:$PATH;export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar'
    alias java6='export JAVA_HOME=/usr/jdk1.6.0_45;export PATH=$JAVA_HOME/bin:$PATH;export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar'
    

谢谢大家阅读,如有帮助,来个喜欢或者关注吧!


本文作者:Anderson/Jerey_Jobs

博客地址 : 夏敏的博客/Anderson大码渣/Jerey_Jobs
简书地址 : Anderson大码渣
github地址 : Jerey_Jobs

作者:Anderson大码渣,欢迎关注我的简书: Anderson大码渣