Blackrose's Blog

Blackrose的布落格,记录走过的路程,记载生命的点滴。

芯片内部结构

android 4.2.2 external外部库

手上有一份适合于Ti AM335X芯片的android代码,想起来还没有了解过android用了哪些第三方库。

  • aac : AAC音频库
  • android-clat
    http://dan.drown.org/android/clat/
  • ant-glob
  • antlr
  • apache-harmony
    开源的java运行时库和类
    https://harmony.apache.org/
  • apache-http

  • apache-xml
    https://xml.apache.org/

  • astl

  • bison

  • blktrace

http://www.cse.unsw.edu.au/~aaronc/iosched/doc/blktrace.html
* bluetooth
* bouncycastle
* bsdiff
二进制文件的diff和patch工具
http://www.daemonology.net/bsdiff/
* bzip2
http://www.bzip.org/
* checkpolicy

  • chromium
    google的开源浏览器
    https://www.chromium.org/
  • cibu-fonts

  • clang
    适用于C语言系列的LLVM的前端
    http://clang.llvm.org/

  • compiler-rt
    http://compiler-rt.llvm.org/
  • dbus
    消息总线系统,用于应用程序间的通信
    https://www.freedesktop.org/wiki/Software/dbus/
  • dexmaker
    https://github.com/crittercism/dexmaker
  • dhcpcd
    嵌入式上的dhcp客户端
    http://roy.marples.name/projects/dhcpcd/index
  • dnsmasq
    http://www.thekelleys.org.uk/dnsmasq/doc.html
  • doclava
    google开发的java doclet
    https://code.google.com/archive/p/doclava/
  • droid-vnc-server
  • dropbear
    轻量的ssh服务端和客户端
    https://matt.ucc.asn.au/dropbear/dropbear.html
  • e2fsprogs
    Ext2, Ext3, Ext4文件系统的维护工具
    http://e2fsprogs.sourceforge.net/
  • easymock
    http://easymock.org/
  • eigen

  • elfutils

https://fedorahosted.org/elfutils/
* embunit
嵌入式单元测试框架
http://embunit.sourceforge.net/embunit/
* emma
* esd
* expat
* eyes-free
https://code.google.com/p/eyes-free/
* fat32lib
支持java语言操作FAT文件系统
https://github.com/waldheinz/fat32-lib
* fdlibm

  • flac
  • freetype
    https://www.freetype.org/
  • fsck_msdos

  • ganymed-ssh2

  • gcc-demangle
  • genext2fs
    以普通用户身份生成ext2文件系统
    http://genext2fs.sourceforge.net/
  • giflib
    http://giflib.sourceforge.net/
  • google-diff-match-patch
  • grub
    https://www.gnu.org/software/grub/
  • gtest
    google开发的C++测试框架
    https://github.com/google/googletest
  • guava
    https://github.com/google/guava
  • hamcrest
    http://hamcrest.org/
  • harfbuzz
    https://www.freedesktop.org/wiki/Software/HarfBuzz/
  • hyphenation

  • icu4c
    http://icu-project.org/apiref/icu4c/

  • iproute2
    http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
  • ipsec-tools
    http://ipsec-tools.sourceforge.net/
  • iptables
    http://www.netfilter.org/
  • jack

  • javasqlite
    http://www.ch-werner.de/javasqlite/

  • javasist
    http://jboss-javassist.github.io/javassist/
  • jdiff
    http://javadiff.sourceforge.net/
  • jhead
    http://www.sentex.net/~mwandel/jhead/
  • jmdns
    http://jmdns.sourceforge.net/
  • jmonkeyengine
  • jpeg
  • jsilver
  • jsr305
  • junit
    http://junit.org/junit4/
  • kernel-headers
  • libcap-ng
    https://people.redhat.com/sgrubb/libcap-ng/
  • libffi
    https://sourceware.org/libffi/
  • libgsm
    http://libgsm.sourcearchive.com/
  • liblzf
    http://oldhome.schmorp.de/marc/liblzf.html
  • libmtp
    http://libmtp.sourceforge.net/
  • libnfc-nci
    https://github.com/NXPNFCLinux/linux_libnfc-nci
  • libnfc-nxp
  • libnl-headers
  • libogg
    https://www.xiph.org/ogg/
  • libpcap
    https://sourceforge.net/projects/libpcap/
  • libphonenumber
    https://github.com/googlei18n/libphonenumber
  • libpng
    http://www.libpng.org/
  • libppp
  • libselinux
  • libsepol
  • libusb
  • libusb-compat
  • libvoribs
  • libvpx
  • libxml2
  • libxslt
  • libyuv
  • linux-tools-perf
  • littlemock
  • llvm
  • lohit-fonts
  • markdown
  • mdnsresponder
  • mksh
  • mockwebserver
  • mksh
  • mockwebserver
  • mp4parser
    https://github.com/sannies/mp4parser
  • mtpd
  • naver-fonts
  • netcat
    http://nc110.sourceforge.net/
  • netperf
    http://www.netperf.org/netperf/
  • neven
  • nist-sip
    http://users.cis.fiu.edu/~ege/JAIN/
  • oauth
    http://oauth.net/
  • okhttp
    https://github.com/square/okhttp
  • opencv
  • openfst
  • openssh
  • openssl
  • oprofile
  • ping
  • ping6
  • ppp
  • proguard
    http://proguard.sourceforge.net/
  • protobuf
    https://developers.google.com/protocol-buffers/
  • qemu
  • quake
  • regex-re2
  • replicaisland
  • safe-iop
  • sepolicy
  • skia
  • smali
  • sonivox
  • speex
    音频压缩库
    http://www.speex.org/
  • sqlite
    嵌入式设备的小型数据库
    https://www.sqlite.org
  • srec
  • srtp

  • stlport
    多平台的C++ STL库
    http://www.stlport.org/

  • strace
    linux下的应用程序诊断,调试工具
    http://sourceforge.net/projects/strace/
  • stressapptest
  • svox
  • tagsoup
    java实现的xml, html解析库
    http://home.ccil.org/~cowan/tagsoup/
  • tcpdump
    网络数据包分析工具
    http://www.tcpdump.org/
  • tiandroidutilities
  • tinyalsa
    Linux ALSA音频接口库
    https://github.com/tinyalsa/tinyalsa
  • tinyxml
    小型c++的xml解析库
    http://www.grinninglizard.com/tinyxml/
  • tinyxml2
  • tremolo

  • tslib
    触摸屏库
    https://github.com/kergoth/tslib

  • v8
    javascript引擎
    https://developers.google.com/v8/
  • webkit
    浏览器解析引擎
    https://webkit.org/
  • webp
    图片格式,提供有损和无损的压缩方式
    https://developers.google.com/speed/webp
  • webrtc
    浏览器端的实时通信
    https://webrtc.org/
  • wpasupplicant6
    Linux WPA Supplicant
    https://w1.fi/wpa_supplicant/
  • wpasupplicant8
  • wpasupplicant8_ti

  • xmlwriter
    java的xml操作库

  • yaffs2
    用于Flash的文件系统
    http://www.yaffs.net/yaffs-2-specification
  • zlib
    压缩库
    http://zlib.net/
  • xzing
    ZXing ("zebra crossing") is an open-source, multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages.
    https://github.com/zxing/zxing

键盘符号的英文

! 叹号 exclamation mark/bang
? 问号 question mark
, 逗号 comma
. 点号 dot/period/point
: 冒号 colon
; 分号 semicolon
” 双引号 quotation marks/double quote
‘ 单引号/撇号 apostrophe/single quote
` 重音号 backquote/grave accent
* 星号 asterisk/star
+ 加号 plus sign
- 减号/横线 hyphen/dash/minus sign
= 等号 equal sign
/ 斜线 slash
\ 反斜线 backslash/escape
| 竖线 bar/pipe/vertical bar
_ 下划线 underline/underscore
$ 美元符号 dollar sign
@ at at sign
# 井号 crosshatch/sharp/hash
% 百分号 percent sign/mod
& and/和/兼 and/ampersand
^ 折音号 circumflex/caret
~ 波浪号 tilde
{} (左右)花括号/大括号 (left/right|open/close) braces
[] (左右)方括号/中括号 (left/right|open/close) brackets
() (左右)圆括号/小括号 (left/right|open/close) parentheses
<> 尖括号 angle brackets
< 大于号 less than

小于号 greater than

mac osx下安装Zeronet

首先在zeronet官方网站下载软件包,解压后可以直接运行。但是双击"Zeronet.app"后会提示"classic environment support no longer"。解决办法是在终端运行以下命令,会自动下载bundle软件:

bash Zeronet.app

Official webist: https://zeronet.io/

Docker下编译brillo-m10-release软件包

apt-get install build-essential bc
git clone https://github.com/yyjdelete/yaffs2.git 
cd yaffs2/utils make cp mkyaffs2image /usr/bin

docker编译android-6.0.0_r25

前段时间学习Docker,顺便应用到公司产品上,实现了自动化编译,确实比以前人工测试好多了,避免了很多由环境引起的问题。终于学会volume,可以把本地目录mount到docker里面去编译了。下面是编译记录:

下载代码

mkdir android-6.0
repo init -u https://aosp.tuna.tsinghua.edu.cn/android/platform/manifest -b android-6.0.0_r25
repo sync -c

编译

apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip

apt-get install openjdk-7-jdk

lunch aosp_arm-eng
make -j4

常见问题:

  1. USER问题

    JACKVMCOMMAND="java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar out/host/linux-x86/framework/jack-launcher.jar " JACK_JAR="out/host/linux-x86/framework/jack.jar" out/host/linux-x86/bin/jack-admin start-server out/host/linux-x86/bin/jack-admin: line 27: USER: unbound variable

这是由于docker没有设置USER环境变量导致,手动添加后继续编译即可

export USER=$(whoami)

Link

android 6.0.0

Linux 4.1内核下ATMEL SAMA5D36 board DTS分析

sama5d36ek-dts.png

搭建docker registry的问题

给公司搭docker registry服务,发现用push的时候,会提示http不是安全的,要添加--insecure-registryg到docker启动项中,结果添加后client上依然是有问题的,各种search后,看到一点说,client也是要添加这个参数才可以,问题解决。