Skip to content

Instantly share code, notes, and snippets.

View Akagi201's full-sized avatar
🎯
Focusing

Bob Liu Akagi201

🎯
Focusing
View GitHub Profile
  • getopt不兼容问题
  • 解决没有objcopy问题

Lua简洁

Lua作为一门方便嵌入(其它应用程序)并可扩展的轻量级脚本语言来设计的, 因此, 他一直遵从着简单, 小巧, 可移植, 快速的原则, 官方实现完全采用ANSI C编写, 能以C程序库的形式嵌入到宿主程序中. Lua的每个版本都保持着开放源码的传统, 不过各版采用的许可协议并不相同, 自5.0版(最新版是5.1)开始她采用的是著名的MIT许可协议(与三条款BSD许可证内容颇为近似, 使用者可以"为所欲为"). 正由于上述特点, 所以Lua在游戏开发, 机器人控制, 分布式应用, 图像处理, 生物信息学等各种各样的领域中得到了越来越广泛的应用.

LuCI简介

Luci是Lua Configuration Interface的简称, 意在OpenWrt整个系统的配置集中化. 详见链接: http://wiki.openwrt.org/doc/uci.

LuCI的启动流程分析

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
Nick Real Email QQ GitHub Trello What
Akagi201 刘博 [email protected] 1413031398 Akagi201 Akagi201 Everything
andy 安恒哲 [email protected] 475636574 andyfighting andytrello linux/C
We couldn’t find that file to show.

pepe2k刷机方法

  1. 按住reset键然后加电, 绿灯开始闪烁.
  2. 按住reset不放, 闪烁3次的时候, 这个时候放开手指, 会自动启动web刷机界面(web failsafe mode), 可以刷uboot, 固件跟art.
  3. 按住Reset不放, 闪烁5次的时候, 这个时候放开手指, 进入uboot命令行(U-Boot console), 只能用串口去操作了.
  4. 按住Reset不放, 闪烁7次的时候, 这个时候放开手指, 会进入U-Boot netconsole, 可以远程连接去用串口命令.

Ref

# /etc/portage/package.use
dev-libs/boost static-libs
dev-vcs/git subversion perl
dev-vcs/subversion perl -dso