├── .gitignore ├── CNAME ├── public ├── img │ ├── oled.jpg │ ├── body_bg.jpg │ └── spi_oled.jpg ├── codes │ └── oled.tar.gz ├── fonts │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.ttf │ └── fontawesome-webfont.woff ├── js │ ├── prettify │ │ ├── lang-rd.js │ │ ├── lang-go.js │ │ ├── lang-tex.js │ │ ├── lang-proto.js │ │ ├── lang-llvm.js │ │ ├── lang-yaml.js │ │ ├── lang-basic.js │ │ ├── lang-wiki.js │ │ ├── lang-lua.js │ │ ├── lang-hs.js │ │ ├── lang-erlang.js │ │ ├── lang-tcl.js │ │ ├── lang-r.js │ │ ├── lang-pascal.js │ │ ├── lang-lisp.js │ │ ├── lang-css.js │ │ ├── lang-mumps.js │ │ ├── lang-scala.js │ │ ├── lang-dart.js │ │ ├── lang-apollo.js │ │ ├── lang-ml.js │ │ ├── lang-n.js │ │ ├── lang-vhdl.js │ │ ├── lang-clj.js │ │ ├── prettify.css │ │ ├── lang-vb.js │ │ ├── lang-sql.js │ │ ├── prettify.js │ │ └── run_prettify.js │ ├── base.js │ └── jquery.pjax.js └── css │ ├── base.css │ └── highlight.css ├── assets ├── font │ ├── fontello.eot │ ├── fontello.ttf │ ├── fontello.woff │ ├── config.json │ └── fontello.svg ├── _sass │ ├── _nprogress.scss │ ├── _animation.scss │ └── _pygments.scss └── js │ ├── script.js │ └── nprogress.js ├── _includes ├── copyright.html ├── content.html ├── footer.html ├── disqus.html ├── contact.html ├── googleanalytics.html ├── share.html ├── header.html ├── nav.html └── navside.html ├── 404.html ├── sitemap.txt ├── _posts ├── linux │ ├── 2015-01-05-how-to-flash-on-linux.md │ ├── 2015-07-17-build-mainline-kernel.md │ ├── 2015-07-18-linux-sound.md │ ├── 2015-07-17-tty-debug.md │ ├── 2015-07-17-build-ubuntu-rootfs.md │ ├── 2015-07-17-install-ROS.md │ ├── 2015-07-18-linux-vnc-server.md │ ├── 2015-07-20-bootloader.md │ ├── 2015-07-17-build-linux-image.md │ └── 2015-07-18-boot-FreeBSD.md ├── start │ ├── 2014-12-31-enter-recovery-mode.md │ ├── 2014-12-28-Flash-image-to-nand-linux.md │ ├── 2015-07-20-unbrick-rock.md │ ├── 2015-07-17-download-to-sdcard.md │ ├── 2015-07-20-upgrade-nand-from-SD.md │ ├── 2015-07-21-firmware-naming.md │ ├── 2014-12-29-Q-and-A.md │ └── 2014-12-28-Flash-image-to-nand-windows.md ├── rock2 │ ├── 2015-05-17-rock2-square-resources.md │ ├── 2015-05-17-rock2-full-baseboard.md │ ├── 2015-05-17-rock2-loader-mode.md │ └── 2015-05-17-rock2-square-introduction.md ├── driver │ ├── 2015-07-20-making-bootable-sdcard.md │ ├── 2015-07-18-led-concrol.md │ ├── 2015-07-17-boot-process.md │ ├── 2015-01-06-control-led-with-gpio.md │ ├── 2015-07-18-infrared-configuration.md │ ├── 2015-05-17-custom-HDMI-resolution.md │ ├── 2015-07-20-using-camera-on-rock.md │ ├── 2014-12-31-radxa-display-setting.md │ └── 2015-12-02-oled-spi.md ├── hardware │ ├── 2015-01-05-extension-header.md │ ├── 2015-01-01-Radxa-Rock-Pro-Specification.md │ ├── 2014-12-29-differences-between-products.md │ ├── 2014-12-29-products.md │ ├── 2014-12-31-Radxa-Rock-Lite-docs.md │ └── 2015-07-21-product-history.md └── android │ ├── 2015-07-20-android-dev-tips.md │ ├── 2015-07-22-adb-trouble-shooting.md │ ├── 2015-07-17-build-android-source-code.md │ └── 2015-07-17-install-adb.md ├── _layouts ├── page.html ├── post.html └── base.html ├── pages ├── about.html ├── atom.xml ├── rss.xml └── archive.html ├── _config.yml ├── LICENSE.txt ├── ie.html ├── index.html ├── README.md └── index.md /.gitignore: -------------------------------------------------------------------------------- 1 | _site/ 2 | -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | docs.radxa.us 2 | -------------------------------------------------------------------------------- /public/img/oled.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radxa/docs/HEAD/public/img/oled.jpg -------------------------------------------------------------------------------- /public/img/body_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radxa/docs/HEAD/public/img/body_bg.jpg -------------------------------------------------------------------------------- /public/img/spi_oled.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radxa/docs/HEAD/public/img/spi_oled.jpg -------------------------------------------------------------------------------- /assets/font/fontello.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radxa/docs/HEAD/assets/font/fontello.eot -------------------------------------------------------------------------------- /assets/font/fontello.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radxa/docs/HEAD/assets/font/fontello.ttf -------------------------------------------------------------------------------- /assets/font/fontello.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radxa/docs/HEAD/assets/font/fontello.woff -------------------------------------------------------------------------------- /public/codes/oled.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radxa/docs/HEAD/public/codes/oled.tar.gz -------------------------------------------------------------------------------- /public/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radxa/docs/HEAD/public/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /public/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radxa/docs/HEAD/public/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /public/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radxa/docs/HEAD/public/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /public/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radxa/docs/HEAD/public/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /_includes/copyright.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /404.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: base 3 | title: 404 Not Found Error 4 | --- 5 | 6 |
7 |

404 Not Found Error

8 |
-------------------------------------------------------------------------------- /sitemap.txt: -------------------------------------------------------------------------------- 1 | --- 2 | title : Sitemap 3 | --- 4 | 5 | {% for page in site.pages %} 6 | {{site.address}}{{ page.url }} 7 | {% endfor %} 8 | 9 | {% for post in site.posts %} 10 | {{site.address}}{{ post.url }} 11 | {% endfor %} -------------------------------------------------------------------------------- /_includes/content.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

[{{ site.locals.content }}]

4 | 7 |
8 | -------------------------------------------------------------------------------- /_posts/linux/2015-01-05-how-to-flash-on-linux.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post 3 | title: Linux 下如何刷机 4 | category: Linux 5 | tags: [刷机] 6 | keywords: 刷机 7 | description: 8 | --- 9 | 10 | 参考: 11 | 12 | 1. http://cn.radxa.com/forum.php?mod=viewthread&tid=66&extra=page%3D1 13 | 14 | -------------------------------------------------------------------------------- /public/js/prettify/lang-rd.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\n\r]*/,null,"%"]],[["lit",/^\\(?:cr|l?dots|R|tab)\b/],["kwd",/^\\[@-Za-z]+/],["kwd",/^#(?:ifn?def|endif)/],["pln",/^\\[{}]/],["pun",/^[()[\]{}]+/]]),["Rd","rd"]); 2 | -------------------------------------------------------------------------------- /_includes/footer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /public/js/prettify/lang-go.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["pln",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])+(?:'|$)|`[^`]*(?:`|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\/\*[\S\s]*?\*\/)/],["pln",/^(?:[^"'/`]|\/(?![*/]))+/]]),["go"]); 2 | -------------------------------------------------------------------------------- /public/js/prettify/lang-tex.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\n\r]*/,null,"%"]],[["kwd",/^\\[@-Za-z]+/],["kwd",/^\\./],["typ",/^[$&]/],["lit",/[+-]?(?:\.\d+|\d+(?:\.\d*)?)(cm|em|ex|in|pc|pt|bp|mm)/i],["pun",/^[()=[\]{}]+/]]),["latex","tex"]); 2 | -------------------------------------------------------------------------------- /_includes/disqus.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | Loading Disqus comments... 4 |
-------------------------------------------------------------------------------- /public/js/prettify/lang-proto.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.sourceDecorator({keywords:"bytes,default,double,enum,extend,extensions,false,group,import,max,message,option,optional,package,repeated,required,returns,rpc,service,syntax,to,true",types:/^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,cStyleComments:!0}),["proto"]); 2 | -------------------------------------------------------------------------------- /_layouts/page.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: base 3 | --- 4 | 5 |
6 |

{{ page.title }}

7 | {{ content }} 8 |
9 | 10 | {% include contact.html %} 11 | {% include share.html %} 12 | {% include disqus.html %} -------------------------------------------------------------------------------- /_layouts/post.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: base 3 | --- 4 | 5 |
6 |

{{ page.title }}

7 | {{ content }} 8 |
9 | 10 | {% include contact.html %} 11 | {% include share.html %} 12 | {% include disqus.html %} 13 | 14 | -------------------------------------------------------------------------------- /public/js/prettify/lang-llvm.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^!?"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["com",/^;[^\n\r]*/,null,";"]],[["pln",/^[!%@](?:[$\-.A-Z_a-z][\w$\-.]*|\d+)/],["kwd",/^[^\W\d]\w*/,null],["lit",/^\d+\.\d+/],["lit",/^(?:\d+|0[Xx][\dA-Fa-f]+)/],["pun",/^[(-*,:<->[\]{}]|\.\.\.$/]]),["llvm","ll"]); 2 | -------------------------------------------------------------------------------- /public/js/prettify/lang-yaml.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:>?|]+/,a,":|>?"],["dec",/^%(?:YAML|TAG)[^\n\r#]+/,a,"%"],["typ",/^&\S+/,a,"&"],["typ",/^!\S*/,a,"!"],["str",/^"(?:[^"\\]|\\.)*(?:"|$)/,a,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,a,"'"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^\s+/,a," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\n\r]|$)/],["pun",/^-/],["kwd",/^\w+:[\n\r ]/],["pln",/^\w+/]]),["yaml","yml"]); 3 | -------------------------------------------------------------------------------- /_includes/contact.html: -------------------------------------------------------------------------------- 1 |
 2 | 如果需要更详细更全面的信息,请登陆
 3 | 
 4 | 官方网站     http://radxa.com
 5 | QQ讨论群     339567728
 6 | 中文论坛     http://cn.radxa.com/forum.php
 7 | 
 8 | 另外,本手册所使用的所有源码、固件、工具,都可以登陆以下地址下载
 9 | 国外服务器   http://dl.radxa.com/
10 | 百度云       http://pan.baidu.com/share/home?uk=3108273493#category/type=0
11 | 
12 | 手册内容经小编实际操作,均可正常使用,但因系统以及整理文档等原因
13 | 若出现错误,请谅解,并使用以下邮箱联系我们  kevin@radxa.com 
14 | 
15 | 			Radxa团队
16 |  			2015年7月
17 | 
18 | -------------------------------------------------------------------------------- /_includes/googleanalytics.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_posts/start/2014-12-31-enter-recovery-mode.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post 3 | title: 如何进入recovery 模式 4 | category: 上手指南 5 | tags: [recovery,模式] 6 | keywords: redxa,rock,recovery,模式 7 | description: 8 | --- 9 | 10 | 只需要4步 11 | 12 | 1. 断开电源 13 | 2. 拔掉USB线 14 | 3. 长按recovery键 15 | 4. 插入usb线到otg口 16 | 17 | 18 | 此时如何连接有刷机工具(RKBatchTool.exe, RKAndroidTool 或者linux下工具 ) 工具会自动识别设备 19 | 20 | ![image](http://cn.radxa.com/data/attachment/forum/201412/10/115141iab5zgauntihlb0a.jpeg) 21 | -------------------------------------------------------------------------------- /_includes/share.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 |
-------------------------------------------------------------------------------- /public/js/prettify/lang-basic.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^"(?:[^\n\r"\\]|\\.)*(?:"|$)/,a,'"'],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["com",/^REM[^\n\r]*/,a],["kwd",/^\b(?:AND|CLOSE|CLR|CMD|CONT|DATA|DEF ?FN|DIM|END|FOR|GET|GOSUB|GOTO|IF|INPUT|LET|LIST|LOAD|NEW|NEXT|NOT|ON|OPEN|OR|POKE|PRINT|READ|RESTORE|RETURN|RUN|SAVE|STEP|STOP|SYS|THEN|TO|VERIFY|WAIT)\b/,a],["pln",/^[a-z][^\W_]?(?:\$|%)?/i,a],["lit",/^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,a,"0123456789"],["pun", 3 | /^.[^\s\w"$%.]*/,a]]),["basic","cbm"]); 4 | -------------------------------------------------------------------------------- /public/js/prettify/lang-wiki.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\d\t a-gi-z\xa0]+/,null,"\t \u00a0abcdefgijklmnopqrstuvwxyz0123456789"],["pun",/^[*=[\]^~]+/,null,"=*~^[]"]],[["lang-wiki.meta",/(?:^^|\r\n?|\n)(#[a-z]+)\b/],["lit",/^[A-Z][a-z][\da-z]+[A-Z][a-z][^\W_]+\b/],["lang-",/^{{{([\S\s]+?)}}}/],["lang-",/^`([^\n\r`]+)`/],["str",/^https?:\/\/[^\s#/?]*(?:\/[^\s#?]*)?(?:\?[^\s#]*)?(?:#\S*)?/i],["pln",/^(?:\r\n|[\S\s])[^\n\r#*=A-[^`h{~]*/]]),["wiki"]); 2 | PR.registerLangHandler(PR.createSimpleLexer([["kwd",/^#[a-z]+/i,null,"#"]],[]),["wiki.meta"]); 3 | -------------------------------------------------------------------------------- /public/js/prettify/lang-lua.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$))/,null,"\"'"]],[["com",/^--(?:\[(=*)\[[\S\s]*?(?:]\1]|$)|[^\n\r]*)/],["str",/^\[(=*)\[[\S\s]*?(?:]\1]|$)/],["kwd",/^(?:and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,null],["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i], 2 | ["pln",/^[_a-z]\w*/i],["pun",/^[^\w\t\n\r \xa0][^\w\t\n\r "'+=\xa0-]*/]]),["lua"]); 3 | -------------------------------------------------------------------------------- /_posts/rock2/2015-05-17-rock2-square-resources.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post 3 | title: Rock2 Square 资源下载 4 | category: Rock2 5 | tags: [rock2] 6 | keywords: 资源,rock2,固件 7 | description: Rock2 Square 资源下载 8 | --- 9 | 10 | 固件下载地址 11 | 12 | 13 | ##Android## 14 | 15 | http://dl.radxa.com/rock2_square/images/android 16 | 17 | 18 | ##Linux## 19 | 20 | http://dl.radxa.com/rock2_square/images/nightly/ 21 | 22 | 23 | ##代码下载## 24 | 25 | - Android 26 | http://dl.radxa.com/rock2_square/source/ 27 | 28 | 29 | 参考: 30 | 31 | - http://cn.radxa.com/forum.php?mod=viewthread&tid=283&extra=page%3D1 -------------------------------------------------------------------------------- /pages/about.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: page 3 | title: 关于 4 | --- 5 | 6 |

关于Radxa Documents

7 | 8 |

用来汇总raxda的相关资料。

9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /public/js/prettify/lang-hs.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n\u000b\u000c\r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^\n\f\r'\\]|\\[^&])'?/,null,"'"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^(?:--+[^\n\f\r]*|{-(?:[^-]|-+[^}-])*-})/],["kwd",/^(?:case|class|data|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|module|newtype|of|then|type|where|_)(?=[^\d'A-Za-z]|$)/, 2 | null],["pln",/^(?:[A-Z][\w']*\.)*[A-Za-z][\w']*/],["pun",/^[^\d\t-\r "'A-Za-z]+/]]),["hs"]); 3 | -------------------------------------------------------------------------------- /public/js/prettify/lang-erlang.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n\u000b\u000c\r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["lit",/^[a-z]\w*/],["lit",/^'(?:[^\n\f\r'\\]|\\[^&])+'?/,null,"'"],["lit",/^\?[^\t\n ({]+/,null,"?"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^%[^\n]*/],["kwd",/^(?:module|attributes|do|let|in|letrec|apply|call|primop|case|of|end|when|fun|try|catch|receive|after|char|integer|float,atom,string,var)\b/], 2 | ["kwd",/^-[_a-z]+/],["typ",/^[A-Z_]\w*/],["pun",/^[,.;]/]]),["erlang","erl"]); 3 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | permalink: /:year/:month/:day/:title.html 2 | markdown: kramdown 3 | pygments: true 4 | 5 | kramdown: 6 | input: GFM 7 | 8 | # 作者信息 9 | author: 10 | name: 瑞莎科技-Radxa 11 | email: support@radxa.com 12 | weibo: weibo.com/radxa 13 | github: http://github.com/radxa 14 | 15 | # 站点信息 16 | title: Rock文档 17 | description: 文档资料 18 | rss_url: /pages/atom.xml 19 | 20 | # avatar头像及Favicon 21 | avatar: http://dl.radxa.com/media/logo/RADXA_X_135x135.png 22 | favicon: 23 | 24 | # google analytics 设置 25 | ga: 26 | id: UA-54767140-1 27 | url: docs.radxa.us 28 | 29 | # disqus 设置 30 | disqus: 31 | shortname: radxa-doc -------------------------------------------------------------------------------- /public/js/prettify/lang-tcl.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^{+/,a,"{"],["clo",/^}+/,a,"}"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:after|append|apply|array|break|case|catch|continue|error|eval|exec|exit|expr|for|foreach|if|incr|info|proc|return|set|switch|trace|uplevel|upvar|while)\b/,a],["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit", 3 | /^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["tcl"]); 4 | -------------------------------------------------------------------------------- /_layouts/base.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {% include header.html %} 5 | 6 | 7 | {% include nav.html %} 8 |
9 |
10 | {{ content }} 11 | {% include copyright.html %} 12 |
13 | 14 |
15 |
16 | Table of Contents 17 |
    18 |
    19 |
    20 |
    21 | 22 | {% include footer.html %} 23 | {% include googleanalytics.html %} 24 | 25 | -------------------------------------------------------------------------------- /_posts/driver/2015-07-20-making-bootable-sdcard.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: page 3 | title: 制作可以启动rock的SD卡 4 | category: 硬件操作 5 | tags: [启动,SD卡] 6 | keywords: 产品, 配置 7 | description: 8 | --- 9 | 10 | 11 | # 制作可以启动rock的SD卡 12 | 13 | 14 | 15 | * 下载工具,并借解压它http://dl.radxa.com/rock/tools/windows/SD_Firmware_Tool.zip 16 | * SD卡插入读卡器,读卡器连接到电脑上 17 | * 在广告下载的工具文件夹中,寻找一个“SD_Firewware_Tool.exe"的文件,然后打开它 18 | * 在”choose removable disk"项中,选择你广告插入的SD卡 19 | * 勾选"SD Boot" 20 | * 选择你想要烧录的镜像文件 21 | * 最后点击”create“按钮。当完成时,会有弹窗提示你。 22 | ![image](http://radxa.com/mw/images/b/bb/Boot_sdcard_1.jpg) 23 | 24 | 25 | 关闭rock设备 26 | 27 | 插入SD卡 28 | 29 | 重新启动rock就可以 30 | 31 | 32 | 33 | 34 | - 35 | -------------------------------------------------------------------------------- /pages/atom.xml: -------------------------------------------------------------------------------- 1 | --- 2 | layout: null 3 | --- 4 | 5 | 6 | 7 | {{ site.title }} 8 | {{ site.url }} 9 | {{ site.description }} 10 | {% for post in site.posts limit:20 %} 11 | 12 | {{ post.title }} 13 | {{ site.url }}{{ post.url }} 14 | {{ site.url }}{{ post.url }} 15 | {{ post.date | date_to_rfc822 }} 16 | {{ post.content | xml_escape }} 17 | 18 | {% endfor %} 19 | 20 | -------------------------------------------------------------------------------- /pages/rss.xml: -------------------------------------------------------------------------------- 1 | --- 2 | layout: null 3 | --- 4 | 5 | 6 | 7 | {{ site.title }} 8 | {{ site.url }} 9 | {{ site.description }} 10 | {% for post in site.posts limit:20 %} 11 | 12 | {{ post.title }} 13 | {{ site.url }}{{ post.url }} 14 | {{ site.url }}{{ post.url }} 15 | {{ post.date | date_to_rfc822 }} 16 | {{ post.content | xml_escape }} 17 | 18 | {% endfor %} 19 | 20 | -------------------------------------------------------------------------------- /_posts/hardware/2015-01-05-extension-header.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post 3 | title: Radxa Rock(pro/lite)的扩展接口 4 | category: 硬件信息 5 | tags: [产品, 接口] 6 | keywords: 接口,配置 7 | description: 8 | --- 9 | 10 | Radxa Rock(pro/lite)有两个2.54mm 40引脚(20*2)的板载扩展接口,包括GPIO,I2C,SPI,Line in,USB 2.0,PWM,ADC,LCD等接口。你可以很容易地将面包板或者其他传感器板卡连接到rock。所有的rock/rock pro/rock lite都是兼容的。 11 | 12 | ## 只用作GPIO的扩展接口 13 | 14 | ![image](http://radxa.com/mw/images/8/87/Extension_header_funca.png) 15 | 16 | ## 扩展接口的其他功能 17 | 18 | ![image](http://radxa.com/mw/images/f/fb/Extension_header_funcb.png) 19 | 20 | ## 全部的功能表 21 | 22 | 见http://radxa.com/Rock/extension_header 23 | 24 | ## FPC扩展接口 25 | 26 | Rock Pro and Lite(2014 Mid)在板子后面有三个FPC接口。 27 | 28 | -------------------------------------------------------------------------------- /public/js/prettify/lang-r.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^'\\]|\\[\S\s])*(?:'|$)/,null,"'"]],[["com",/^#.*/],["kwd",/^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![\w.])/],["lit",/^0[Xx][\dA-Fa-f]+([Pp]\d+)?[Li]?/],["lit",/^[+-]?(\d+(\.\d+)?|\.\d+)([Ee][+-]?\d+)?[Li]?/],["lit",/^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|\d+))(?![\w.])/], 2 | ["pun",/^(?:<>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|[!*+/^]|%.*?%|[$=@~]|:{1,3}|[(),;?[\]{}])/],["pln",/^(?:[A-Za-z]+[\w.]*|\.[^\W\d][\w.]*)(?![\w.])/],["str",/^`.+`/]]),["r","s","R","S","Splus"]); 3 | -------------------------------------------------------------------------------- /public/js/prettify/lang-pascal.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^'(?:[^\n\r'\\]|\\.)*(?:'|$)/,a,"'"],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["com",/^\(\*[\S\s]*?(?:\*\)|$)|^{[\S\s]*?(?:}|$)/,a],["kwd",/^(?:absolute|and|array|asm|assembler|begin|case|const|constructor|destructor|div|do|downto|else|end|external|for|forward|function|goto|if|implementation|in|inline|interface|interrupt|label|mod|not|object|of|or|packed|procedure|program|record|repeat|set|shl|shr|then|to|type|unit|until|uses|var|virtual|while|with|xor)\b/i,a], 3 | ["lit",/^(?:true|false|self|nil)/i,a],["pln",/^[a-z][^\W_]*/i,a],["lit",/^(?:\$[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)/i,a,"0123456789"],["pun",/^.[^\s\w$'./@]*/,a]]),["pascal"]); 4 | -------------------------------------------------------------------------------- /_posts/driver/2015-07-18-led-concrol.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post 3 | title: 控制Radxa Rock上的LED灯 4 | category: 硬件操作 5 | tags: [产品] 6 | keywords: radxa 7 | description: 8 | --- 9 | 10 | # 控制Radxa Rock上的LED灯 11 | 12 | Radxa Rock上有三个LED灯 13 | * LED -- GPIOref -- GPIO number 14 | * 绿灯 -- GPIO0_B4 -- 172 15 | * 蓝灯 -- GPIO0_B6 -- 174 16 | * 红灯 -- GPIO0_B7 -- 175 17 | 18 | 我们可以控制他们通过/sys/class/leds下的文件 19 | 20 | 比如如下操作 21 | * 关闭红灯 `echo none > /sys/class/leds/red/trigger` 22 | * 常亮红灯 `echo default-on > /sys/class/leds/red/trigger` 23 | * 闪烁绿灯 `echo timer > /sys/class/leds/green/trigger` 24 | * 心跳蓝灯 `echo heartbeat > /sys/class/leds/blue/trigger` 25 | 26 | 你还可以常看tgigger文件,了解其他对LED灯的工作方式 27 | 28 | `cat /sys/class/leds/red/trigger` 29 | 30 | -------------------------------------------------------------------------------- /public/js/prettify/lang-lisp.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,a,"("],["clo",/^\)+/,a,")"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,a], 3 | ["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["cl","el","lisp","lsp","scm","ss","rkt"]); 4 | -------------------------------------------------------------------------------- /_includes/header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{ page.title }} | {{ site.title }} 6 | 7 | {% if page.keywords %} 8 | 9 | {% endif %} 10 | 11 | {% if page.description %} 12 | 13 | {% endif %} 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /public/js/prettify/lang-css.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n\u000c"]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]+)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//], 2 | ["com",/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}\b/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); 3 | -------------------------------------------------------------------------------- /public/js/prettify/lang-mumps.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"]|\\.)*"/,null,'"']],[["com",/^;[^\n\r]*/,null,";"],["dec",/^\$(?:d|device|ec|ecode|es|estack|et|etrap|h|horolog|i|io|j|job|k|key|p|principal|q|quit|st|stack|s|storage|sy|system|t|test|tl|tlevel|tr|trestart|x|y|z[a-z]*|a|ascii|c|char|d|data|e|extract|f|find|fn|fnumber|g|get|j|justify|l|length|na|name|o|order|p|piece|ql|qlength|qs|qsubscript|q|query|r|random|re|reverse|s|select|st|stack|t|text|tr|translate|nan)\b/i, 2 | null],["kwd",/^(?:[^$]b|break|c|close|d|do|e|else|f|for|g|goto|h|halt|h|hang|i|if|j|job|k|kill|l|lock|m|merge|n|new|o|open|q|quit|r|read|s|set|tc|tcommit|tre|trestart|tro|trollback|ts|tstart|u|use|v|view|w|write|x|xecute)\b/i,null],["lit",/^[+-]?(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?/i],["pln",/^[a-z][^\W_]*/i],["pun",/^[^\w\t\n\r"$%;^\xa0]|_/]]),["mumps"]); 3 | -------------------------------------------------------------------------------- /_posts/android/2015-07-20-android-dev-tips.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: page 3 | title: android开发的一些小技巧 4 | category: Android 5 | tags: [android] 6 | keywords: 产品, 配置 7 | description: 8 | --- 9 | 10 | # android开发小技巧 11 | 12 | 本文将介绍一些rock android开发的小技巧。 13 | 14 | ### 备份android的APP应用 15 | 16 | 有时我们需要频繁的更换系统固件,但是安装在系统上的app又是必要的,待会又要重新安装。这时候你可以使用adb工具来节省一点时间。 17 | 18 | * 首先,你需要先安装adb。如果你之前没安装,可以参考http://radxa.com/Rock/linux_adb(linux). 19 | 或者http://radxa.com/Rock/windows_adb(windows). 20 | 21 | * 然后连接上设备后,使用如下命令备份 22 | `adb backup -apk -shared -all` 23 | 24 | * 当回复备份的时候,则使用以下命令 25 | `adb restore backup.ab` 26 | 27 | ### adb主机中,对android设备进行截图 28 | 29 | 只需要执行以下命令就可以 30 | 31 | adb shell "cat /dev/graphics/fb0 > /sdcard/fb.raw"` 32 | adb pull /sdcard/fb.raw` 33 | ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt rgb32 -s 1920x1080 -i fb.raw -f image2 -vcodec png fb-%d.png 34 | 35 | 36 | 37 | 38 | 39 | - 40 | -------------------------------------------------------------------------------- /public/js/prettify/lang-scala.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:""(?:""?(?!")|[^"\\]|\\.)*"{0,3}|(?:[^\n\r"\\]|\\.)*"?)/,null,'"'],["lit",/^`(?:[^\n\r\\`]|\\.)*`?/,null,"`"],["pun",/^[!#%&(--:-@[-^{-~]+/,null,"!#%&()*+,-:;<=>?@[\\]^{|}~"]],[["str",/^'(?:[^\n\r'\\]|\\(?:'|[^\n\r']+))'/],["lit",/^'[$A-Z_a-z][\w$]*(?![\w$'])/],["kwd",/^(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|object|override|package|private|protected|requires|return|sealed|super|throw|trait|try|type|val|var|while|with|yield)\b/], 2 | ["lit",/^(?:true|false|null|this)\b/],["lit",/^(?:0(?:[0-7]+|x[\da-f]+)l?|(?:0|[1-9]\d*)(?:(?:\.\d+)?(?:e[+-]?\d+)?f?|l?)|\\.\d+(?:e[+-]?\d+)?f?)/i],["typ",/^[$_]*[A-Z][\d$A-Z_]*[a-z][\w$]*/],["pln",/^[$A-Z_a-z][\w$]*/],["com",/^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/],["pun",/^(?:\.+|\/)/]]),["scala"]); 3 | -------------------------------------------------------------------------------- /_posts/hardware/2015-01-01-Radxa-Rock-Pro-Specification.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post 3 | title: Radxa Rock Pro的硬件配置 4 | category: 硬件信息 5 | tags: [产品, 配置] 6 | keywords: 产品, 配置 7 | description: 8 | --- 9 | 10 | # 揭开Radxa Rock Pro的面纱 11 | 12 | 13 | - 处理器:ARM CORTEX-A9 QUAD CORE @1.6GHZ 14 | - 图像处理器:MAIL400-MP4@533MHZ,OPENGL ES 2.0 15 | - RAM:2GB DDR3,800MHZ 16 | - 内存:8GB FLASH 17 | - 视频输出 18 | - 数字输出:HDMI1.4,最大支持1080P 19 | - 模拟输出:AV端口输出 20 | - 音频输出: 21 | - 3.5MM 音频口 22 | - S/PDIF 23 | - 调试:支持串口调试 24 | - 电源输入:5V DC接口 25 | - USB: 26 | - 两个USB 2.0 HOST,TYPE A 27 | - 一个USB OTG,miro USB接口 28 | - 串口:板载有串口引脚 29 | - 以太网支持:10/100M bit/s RJ45接口 30 | - SD/MMC卡:可外接micro SD卡,最大支持128G内存卡 31 | - 按键输入:一个电源键,一个复位键,一个恢复键 32 | - LED灯:三个可编程的LED灯 33 | - 实时时钟:板载有实时时钟 34 | - 红外:一个红外接收器 35 | - 扩展:共有80个pins 36 | - 支持GPIO,I2C,SPI,line in,USB2.0 ,PWM,ADC,LCD,GPS等 37 | - 重量:61克(仅主板) 38 | - 尺寸:100*80 MM 39 | - 系统:支持Linux、Andriod、FreeBSD系统,默认搭载Android4.2.2 40 | 41 | -------------------------------------------------------------------------------- /public/js/prettify/lang-dart.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"]],[["com",/^#!.*/],["kwd",/^\b(?:import|library|part of|part|as|show|hide)\b/i],["com",/^\/\/.*/],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["kwd",/^\b(?:class|interface)\b/i],["kwd",/^\b(?:assert|break|case|catch|continue|default|do|else|finally|for|if|in|is|new|return|super|switch|this|throw|try|while)\b/i],["kwd",/^\b(?:abstract|const|extends|factory|final|get|implements|native|operator|set|static|typedef|var)\b/i], 2 | ["typ",/^\b(?:bool|double|dynamic|int|num|object|string|void)\b/i],["kwd",/^\b(?:false|null|true)\b/i],["str",/^r?'''[\S\s]*?[^\\]'''/],["str",/^r?"""[\S\s]*?[^\\]"""/],["str",/^r?'('|[^\n\f\r]*?[^\\]')/],["str",/^r?"("|[^\n\f\r]*?[^\\]")/],["pln",/^[$_a-z]\w*/i],["pun",/^[!%&*+/:<-?^|~-]/],["lit",/^\b0x[\da-f]+/i],["lit",/^\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i],["lit",/^\b\.\d+(?:e[+-]?\d+)?/i],["pun",/^[(),.;[\]{}]/]]), 3 | ["dart"]); 4 | -------------------------------------------------------------------------------- /_posts/hardware/2014-12-29-differences-between-products.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: page 3 | title: radxa系列产品的比较 4 | category: 硬件信息 5 | tags: [产品, 配置] 6 | keywords: 产品, 配置 7 | description: 8 | --- 9 | 10 | >随着产品的发布和更新,radxa产品越来越多。看看它们的区别吧。 11 | 12 | 13 | ## radxa rock 、radxa rock lite和 radxa rock pro三者的区别 14 | 15 | 主要的区别是: 16 | 17 | 1. radxa rock pro(2014年中): 2GB ram, 8GB nand flash with lvds and camera interface 18 | 19 | 2. radxa rock lite(2014年中): 1GB ram, no nand flash(use uSD card for the OS), wifi only 20 | 21 | 3. radxa rock(2013): 2GB ram, 8GB nand flash, wifi and bluetooth 22 | 23 | 4. radxa rock lite(2013): 1GB ram, 4GB nand flash, wifi only 24 | 25 | 26 | 27 | 28 | ## Rock pro与Rock的区别: 29 | 30 | - 增加LVDS接口(FPC接口位于主板底部) 31 | 32 | - 增加触控面板接口 33 | 34 | - 增加连接摄像模块的CSI接口 35 | 36 | - 主板多了扬声器驱动电路 37 | 38 | - 其余和Rock保持一致 39 | 40 | 41 | ## Rock pro与Rock lite的区别: 42 | 43 | - lite内存减小了到1GB 44 | 45 | - lite除掉了蓝牙模块 46 | 47 | - lite除去了nand存储,统一使用SD卡 48 | 49 | -------------------------------------------------------------------------------- /_posts/rock2/2015-05-17-rock2-full-baseboard.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post 3 | title: Rock2 Full Baseboard 4 | category: Rock2 5 | tags: [产品,rock2] 6 | keywords: Rock2 Full Baseboard 7 | description: Rock2 Full Baseboard 8 | --- 9 | 10 | - Oct 11, 2014 11 | 12 | 第一块 PCB 样板到了 13 | 14 | ![image](http://radxa.com/mw/images/d/de/Rock2_module_pcb_top.png) 15 | 16 | 17 | ![image](http://radxa.com/mw/images/b/bf/Rock2_module_pcb_bottom.png) 18 | 19 | - Oct 11, 2014 20 | 21 | module 终于 SMT 了,现在等待 baseboard... 22 | 23 | ![image](http://radxa.com/mw/images/9/9d/Rock2_module_smt.jpg) 24 | 25 | - Nov 2, 2014 26 | 27 | base board 到了,酷吗? 28 | 29 | ![image](http://radxa.com/mw/images/b/b0/Rock2_base_top.jpg) 30 | 31 | ![image](http://radxa.com/mw/images/8/82/Rock2_base_bottom.jpg) 32 | 33 | Bring up: 34 | 35 | 如何使 basic system 在 rock2 上运行? 36 | 37 | 38 | [Rock2 bringing up](http://radxa.com/Rock2/bringup) 39 | 40 | 41 | 参考: 42 | 43 | - http://radxa.com/Rock2/full_bb 44 | 45 | -------------------------------------------------------------------------------- /public/js/prettify/lang-apollo.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\n\r]*/,null,"#"],["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/, 2 | null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[ES]?BANK=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[!-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["apollo","agc","aea"]); 3 | -------------------------------------------------------------------------------- /_posts/driver/2015-07-17-boot-process.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: page 3 | title: nand、sdcard双启动 4 | category: 硬件操作 5 | tags: [双启动] 6 | keywords: 产品, 配置 7 | description: 8 | --- 9 | 10 | 11 | # 启动流程 12 | 13 | ## NAND上面的双启动 14 | 15 | * 在NAND flash上用于双启动的boot镜像可以从下面的网址得到: 16 | http://dl.radxa.com/rock/images/dual_boot/ 17 | 18 | * 下载之后,按照 http://radxa.com/Rock/flash_the_image 烧写。 19 | 20 | ## 在SD卡、U盘/移动硬盘上的双启动 21 | 22 | 如果你想在SD卡、U盘/移动硬盘上进行双启动,那么按照下面的步骤: 23 | 24 | * 把整个Nand给Android使用 25 | 26 | * 使用SD卡/U盘/移动硬盘安装Lubuntu 27 | 28 | * 双启动 29 | 下面是存档的步骤: 30 | 31 | 从 http://dl.radxa.com/rock/images/android/ 下载纯净的android,并烧写 32 | 从SD卡或者 U盘或者移动硬盘 下载parameter文件,并烧写到 “parameter”分区。 33 | 从 http://dl.radxa.com/rock/images/ubuntu/partitions/ 下载最新的boot-linux.img,并烧写到 “recovery”分区。 34 | 从 http://dl.radxa.com/rock/images/ubuntu/partitions/ 下载最新的rootfs,烧写到SD卡/U盘/移动硬盘的“first partition” 35 | 从 http://dl.radxa.com/rock/images/android/BootUbuntu.apk 下载并安装用于从Android引导到linux的应用程序。 36 | 37 | 38 | 39 | 40 | - 41 | 42 | 43 | -------------------------------------------------------------------------------- /public/js/prettify/lang-ml.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^#(?:if[\t\n\r \xa0]+(?:[$_a-z][\w']*|``[^\t\n\r`]*(?:``|$))|else|endif|light)/i,null,"#"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])(?:'|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\(\*[\S\s]*?\*\))/],["kwd",/^(?:abstract|and|as|assert|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|if|in|inherit|inline|interface|internal|lazy|let|match|member|module|mutable|namespace|new|null|of|open|or|override|private|public|rec|return|static|struct|then|to|true|try|type|upcast|use|val|void|when|while|with|yield|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|global|include|method|mixin|object|parallel|process|protected|pure|sealed|trait|virtual|volatile)\b/], 2 | ["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^(?:[_a-z][\w']*[!#?]?|``[^\t\n\r`]*(?:``|$))/i],["pun",/^[^\w\t\n\r "'\xa0]+/]]),["fs","ml"]); 3 | -------------------------------------------------------------------------------- /_posts/android/2015-07-22-adb-trouble-shooting.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: page 3 | title: ADB连接不上怎么办 4 | category: Android 5 | tags: [android,adb] 6 | keywords: 产品, 配置 7 | description: 8 | --- 9 | 10 | 11 | 12 | 很多人遇到这样的情况,android 起来之后,连接上数据线, 然后在命令提示符下运行adb命令 adb shell,adb kill-server. adb devices. 但是发现 device not found 或者 devices list 为空。 这种情况如何解决。 13 | 14 | 15 | 1、首先要确认是否正确安装了 官方提供的adb驱动。虽然官方提供的驱动是基于google提供的驱动改的,但是有一些针对自己产品的改动。请确认是使用官方驱动。下载地址:http://dl.radxa.com/rock/tools/windows/radxa_adb_driver.zip 16 | 17 | 2、使用官方提供的adb工具,下载地址:http://dl.radxa.com/rock/tools/windows/adb_tools.zip。你可以到这个目录下执行adb命令。如果不常用rock调试,不建议把这个adb 目录放到环境变量里面,防止与其他android设备冲突。 18 | 19 | 3、如果1,2 步完成后,执行adb命令没有反应。看是否自己的PC的USB接口是否是USB3.0, 目前rock 对USB3.0兼容性不好,请用USB2.0 连接。如果还是不行,重启(只限于第一次安装驱动的时候重启,之后不需要)后再尝试 20 | 21 | 4、前3步确认没有问题,依然无法连接,执行adb kill-server,或者调出任务管理器 干掉所有的adb进程。再尝试。 22 | 23 | 5、前4个步骤确认后还存在问题,更换USB数据线后继续尝试。 24 | 25 | 一般来说。 是adb驱动和adb工具使用不对造成的。 26 | 27 | 很多人说可以使用手机助手来解决这个问题,但是发现adb连接时好时坏,或者一旦退出手机助手 adb用不了等问题。 28 | 29 | 这些基本都是由于adb驱动或者工具冲突导致的。 30 | 31 | 按照上面的步骤一步步执行。应该是没有问题的。 32 | 33 | 如果还不行,请提出。 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 Su Yan - Released under The MIT License. 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /_posts/rock2/2015-05-17-rock2-loader-mode.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post 3 | title: Rock2如何进入loder mode? 4 | category: Rock2 5 | tags: [rock2,loder] 6 | keywords: loder,rock2 7 | description: Rock2如何进入loder 模式? 8 | --- 9 | 10 | 当板子如法启动,等待从PC通过USB OTG接口的命令,此时板子处于Loder mode。square baseboard有三个键,恢复键、重启键和电源键(recovery key, reset key and the power key)。当进入loder mode时,我们需要使用恢复键和重启键。 11 | 12 | ![此处输入图片的描述][1] 13 | 14 | 为了进入loder mode,你应该: 15 | 16 | 1. 给板子上电,红色led指示板子开机 17 | 2. 连接USB OTG接口和PC(注意,你必须先连接OTG线,然后按下面的键) 18 | 3. 按住恢复键(靠近WiFi天线的那个) 19 | 4. 短按重启键(靠近DC的那个) 20 | 5. 放开恢复键 21 | 22 | 现在,开发板应该处于 loder 模式了。 23 | 24 | Windows 25 | 26 | Linux: 27 | 28 | 确保你有USB ID 2207:320a,此时rock2 square 处于loder模式了。 29 | 30 | ``` 31 | lsusb 32 | ... 33 | Bus 001 Device 018: ID 2207:320a 34 | ... 35 | ``` 36 | 37 | For developers: 38 | 39 | 在u-boot命令行,你可以输入rockusb来进去loder模式。 40 | 41 | 你还可以看: 42 | 43 | [Rock2/square_bb/hardware][2] 44 | [rock/Loader_mode][3] 45 | 46 | [1]: http://radxa.com/mw/images/1/1e/Loader_mode.jpg 47 | [2]: http://radxa.com/Rock2/square_bb/hardware 48 | [3]: http://radxa.com/Rock/Loader_mode 49 | 50 | 参考: 51 | 52 | - http://radxa.com/Rock2/square_bb/loader_mode 53 | 54 | -------------------------------------------------------------------------------- /ie.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | Not support IE9 and below 6 | 7 | 8 | 29 | 30 | 31 |

    !

    32 |

    Not support IE9 and below

    33 |

    Recommend to use Chrome or Firefox as your primary browser.

    34 | 35 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: page 3 | title: 首页 4 | --- 5 | 6 |
    7 |
    8 |
    9 |
    10 |
    {{ site.locals.newest }}
    11 | {% for post in paginator.posts %} 12 | 13 | {{post.title}} 14 | {{ post.date | date:"%Y年%m月%d日" }} 15 | 16 | {% endfor %} 17 |
    18 |
    19 | {% for cate in site.cates %} 20 |
    21 |
    22 |
    {{ cate }}
    23 | {% for tag in site.tags %} 24 | {% if tag[0] == cate %} 25 | {% for post in tag[1] %} 26 | 27 | {{post.title}} 28 | {{ post.date | date:"%Y%m月%d日" }} 29 | 30 | {% endfor %} 31 | {% endif %} 32 | {% endfor %} 33 |
    34 |
    35 | {% endfor %} 36 |
    37 | 38 | -------------------------------------------------------------------------------- /_posts/start/2014-12-28-Flash-image-to-nand-linux.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post 3 | title: 将image烧写到NAND(Linux) 4 | category: 上手指南 5 | tags: [入门, linux, image, NAND] 6 | keywords: image,NAND 7 | description: 8 | --- 9 | 10 | 11 | 12 | 从Android 4.4起,Rockchip提供了一个在Linux系统下的升级工具(闭源)。叫做“upgrade_tool”。 它支持烧写update.img、parameter、bootloader和其他分区,注意它是基于命令行的工具。 13 | 14 | 15 | * 下载工具 16 | 17 | 从[这里][2]下载Rockchip的Linux升级工具并解压,然后你会得到一个在Linux下二进制可执行文件,叫做“upgrade_tool”。 18 | 19 | * 让板子进入[Loader模式][1],并运行命令烧写升级包updata.img 20 | 21 | `sudo ./upgrade_tool uf /path/to/update.img` #(UF Upgrade Flash) 22 | 23 | * 如果你在升级过程中有一个错误,你可以首先使用以下命令来低格nandflash 24 | 25 | `sudo ./upgrade_tool lf #(LF Lowlevel Format)` # will erase everything on nand 26 | 27 | * 烧写 parameter 28 | 29 | `sudo ./upgrade_tool di -p /path/to/parameter` #(DI Download Image) 30 | 31 | * 烧写 bootloader 32 | 33 | `sudo ./upgrade_tool ul /path/to/bootloader` #(UL Upgrade Loader) 34 | 35 | * 烧写内核(boot.img) 36 | 37 | `sudo ./upgrade_tool di -b /path/to/boot.img` #(DI Download Image) 38 | 39 | 40 | 其他 41 | 有一些在upgrade_tool中使用的其他命令,比如: 42 | UL: 升级Loader 43 | EF: 擦除nand flash 44 | 45 | 46 | [1]:/2014/12/31/enter-recovery-mode.html 47 | 48 | [2]:http://dl.radxa.com/rock/tools/linux/Linux_Upgrade_Tool_v1.21.zip 49 | 50 | -------------------------------------------------------------------------------- /pages/archive.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: page 3 | title: 归档 4 | comments: false 5 | --- 6 | 7 | {% for post in site.posts %} 8 | {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} 9 | {% capture this_month %}{{ post.date | date: "%m" }}{% endcapture %} 10 | {% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %} 11 | {% capture next_month %}{{ post.previous.date | date: "%m" }}{% endcapture %} 12 | 13 | {% if forloop.first %} 14 | {{this_year}}年-{{this_month}}月 15 | 23 | {% else %} 24 | {% if this_year != next_year %} 25 | 26 | {{next_year}}年-{{next_month}}月 27 | 31 | {{next_year}}年-{{next_month}}月 32 |