自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Win_cao专栏

Striving for excellence……

  • 博客(154)
  • 收藏
  • 关注

原创 A/B OTA update 错误

imx8 android 9.0 支持A/B OTA升级make otapackage -j32./build/tools/releasetools/ota_from_target_files -i ota/old-target_files.zip ota/new-target_files.zip ota/incremental_ota_update.zip一、adb 本地测试升...

2019-06-25 16:20:21 2102 1

原创 20190618新的开始

The Ubuntu 16.04 64bit version and openjdk-8-jdk of Ubuntu are the most tested environment for the Android Pie 9.0 build.0. 安装Ubuntu 16.04.5 LTSwin@autolink-bsp:~$1. sudo apt-get install vim2....

2019-06-20 09:05:06 443

原创 一些笔录

一、串口打印logcat+++ b/common/rootdir/root/init.sc8830.rc+service logcat /system/bin/logcat -f /dev/kmsg *:w+ class main+ user root+ group log+ oneshot+3). disabble SElinux/system/core/in...

2019-05-22 16:46:14 298

原创 SC9832 Android7.0 基准仓库建立

一入做机深似海,从此红尘是路人。首先FTP取得新鲜出炉的SDK,然后建立自己的Git-Repo仓库。MOCORDROID7.0_Trunk_K310_17A_SHARKLS_W17.16.2$ tree -l.├── IDH│   ├── conf-scx35l.tar.gz│   ├── Doc│   │   ├── 9832_7.0_Rele

2017-08-25 09:46:18 3412

原创 自定义DEBUG

#define DEBUG#ifdef  DEBUG#define LOG(fmt, arg...)         printk(KERN_ALERT "##Win.cao>>[%s:%d] "fmt"\n", __func__, __LINE__, ##arg)#else#define LOG(...)#endif

2017-07-19 18:42:37 895

原创 ubuntu14.04 samba 无法访问。您可能没有权限使用网络资源

ubuntu14.04 samba 无法访问。您可能没有权限使用网络资源 。。。ubuntu自身文件夹底部,连接到服务器可以正常访问。windows可以访问其它samba服务器,偏偏我这个新安装的ubuntu14.04 samba不行。经过折腾终于搞定,记录关键点如下:一、学会搜索盲目搜索有时候也会浪费时间,查log才是程序员干的事:/var/log/samba/B

2016-11-10 14:57:05 13693

原创 关闭 uart0 让出给其它外设使用

一、禁止打印bootable/bootloader/lk/app/mt_boot/mt_boot.c把里面的cmdline传参的printk.disable_uart修改为printk.disable_uart=1#ifdef USER_BUILD sprintf(cmdline,"%s%s",cmdline," printk.disable_uart=1"); #

2016-11-05 10:48:45 4085 4

原创 充电状态三色指示灯

一、配置三种颜色frameworks/base/core/res/res/values/config.xml799 800 0xFFFF0000//红色 801 802 803 0xFF0000FF//蓝色 804 805 806

2016-10-09 16:55:38 5853

原创 VR 触摸板模拟上下左右按键

最后一个点和第一个点形成直角,判断直角边长,上报对应按键值(LEFT、RIGHT、UP、DOWN、ENTER)gslX680.c 实现。。。

2016-09-28 19:35:59 3381

原创 MTK驱动移植相关路径

一、Flash兼容bootable/bootloader/preloader/tools/emigen/MT6735/MemoryDeviceList_MT6735.xlsbootable/bootloader/preloader/tools/emigen/MT6735/MemoryDeviceList_MT6735M.xlsbootable/bootloader/preloa

2016-08-25 14:57:54 3988

原创 FT9338指纹移植笔记

一、驱动Porting①xxx_defconfigCONFIG_MTK_SPI=y②dws配置四个dct/dct/codegen.dws添加自定义变量名,以便dws可以选择dct/EINT_YuSu.cmpdct/GPIO_YuSu.cmp③驱动调试驱动定义好相关引脚#define GPIO_FOCAL_FP_RST_PIN    

2016-08-17 11:24:09 5612 1

原创 ubuntu 配置安装vsftpd

一、安装软件包apt-get install vsftpd -y二、添加ftp帐号和目录先检查一下nologin的位置,通常在/usr/sbin/nologin或者/sbin/nologin下。使用下面的命令创建帐户,该命令指定了/alidata/www/wwwroot为用户pwftp的家目录,您可以自己定义帐户名和目录:#useradd -d

2016-01-28 12:02:29 1367

原创 MT7620A SD卡初始化失败

插着TF卡开机,系统启动时TF卡初始化失败。[ 6.880000] MTK MSDC device init.[ 6.930000] mtk-sd: MediaTek MT6575 MSDC Driver[ 6.940000] sdhci-pltfm: SDHCI platform and OF driver helper[ 6.950000] usbcore: ...

2016-01-22 14:36:44 3489

原创 MT7620A 解除写保护

openwrt mount /dev/mmc 。。。Read-only file systemis write-protected, mounting read-onlyND_WP GPIO #48 驱动:sdhci-mt7620.c  软件解除

2015-12-11 14:55:05 3256 1

原创 MT7620A 挂载SD卡

make menuconfigCONFIG_PACKAGE_kmod-mmc=yCONFIG_PACKAGE_kmod-sdhci=yCONFIG_PACKAGE_kmod-sdhci-mt7620=yCONFIG_PACKAGE_kmod-nls-cp437=yCONFIG_PACKAGE_kmod-nls-iso8859-1=yCONFIG_PA

2015-12-11 14:41:25 5206

原创 Openwrt 网络存储NAS之FTP服务

1. Pure-FTPD2. vsftpd

2015-11-19 16:35:06 6255

原创 Openwrt 网络存储NAS之Samba服务

Samba

2015-11-19 16:09:17 7713

原创 Openwrt 安装UPnP

1. miniupnpd2. luci-app-upnp

2015-11-19 16:08:09 17076

原创 Openwrt 离线下载

1、aria22、迅雷离线下载3、挂载SD卡或U盘

2015-11-19 15:40:06 3221

原创 mt7620 双SSID

1、/etc/config/wireless2、/etc/config/network3、/etc/config/dhcp4、/etc/config/fireware

2015-11-19 15:38:15 2020

原创 Openwrt 广告植入

privoxy  结合wifidog   。。。

2015-11-04 09:58:12 3126 2

原创 远程设置Mac 黑名单和踢下线实现

Mac 地址黑名单和踢下线实现 。。。

2015-10-22 17:04:44 3055 1

原创 云端远程操作实现

wifidog URL和Mac 白名单实现。。。1、重启(定时)2、设置ssid3、关闭认证等

2015-10-22 17:02:45 2145

原创 wifidog URL和Mac 白名单实现

wifidog URL和Mac 白名单实现 。。。

2015-10-22 17:00:05 3265 1

原创 wifidog 源码简要分析

wifidog 源码简要分析 。。。

2015-10-22 16:59:06 1100

原创 Openwrt 修改Mac地址

一、查看Mac地址root@M201:~# ls /dev/mtdblockmtdblock0  mtdblock1  mtdblock2  mtdblock3  mtdblock4  mtdblock5root@M201:~# ls /dev/mtdblock*/dev/mtdblock0  /dev/mtdblock2  /dev/mtdblock4/dev/mtdbl

2015-09-08 18:42:54 9170

原创 Openwrt 之GPS调试

由于mt7620n只有一个UART lite接口,在原生的OpenWrt中作为了内核打印和tty控制台使用。 而在很多情况下,需要使用串口与外部芯片通讯,这时就需要从OpenWrt中释放串口。 一、如何释放1.关闭串口控制台 target/linux/ramips/base-files/etc/inittab 注释掉:::askconsole:/bin/ash –login关闭内核打印 p

2015-09-08 18:00:48 4339

原创 Openwrt 无线中继

无线中继可以实现以路由自己为客户端远程连接另外一个无线路由器。主要是通过增加wifi-iface实现的,增加后系统就有两个匿名的wifi-iface配置,其中一个用来解决其他设别接入路由器,另外一个用来解决无线中继。一、增加wwan网络接口 vim /etc/config/network config interface 'wwan'        option pro

2015-08-26 14:37:15 3143

原创 Openwrt 网页多用户访问

一、添加用户访问web1、vim ./lua/luci/controller/admin/index.luapage.sysauth = {"root","win"}2、vim ./lua/luci/controller/admin/servicectl.luaentry({"servicectl"}, alias("servicectl", "status")).sysa

2015-06-12 14:31:43 5471

原创 Openwrt 串口多用户访问

参考:http://wiki.openwrt.org/doc/howto/secure.access一、编译配置1、make menuconfigAdministration --->   sudo ... ...Utilities --->   shadow-groupadd ... ...   shadow-useradd ... ...  

2015-06-12 11:29:01 1789

原创 Openwrt 串口密码登入

为了安全性考虑,进行串口登入的时候也希望像ssh那样要求输入用户名和密码才能进入控制台。一、客制化busyboxmake menuconfigBase system --->  busybox ......         [*] Customize busybox option               Login/Password Management Ut

2015-06-05 15:49:15 8519

原创 Openwrt 之 Samba配置

一、添加编译配置make menuconfigNetwork --->  samba36-server .......Samba 3.6 SMB/CIFS serverLuci --->  3. Applications --->(若需要web页面控制则选上)       luci-app-samba ......Network Shares -samba

2015-06-02 10:19:37 11153

原创 Openwrt 之Patch应用

一、参考官网http://wiki.openwrt.org/doc/devel/patches二、用patch管理内核的修改1、清空回到干净状态make target/linux/{clean,prepare} V=s QUILT=12、进入内核根目录cd build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux

2015-05-13 14:34:18 3518

原创 制作Openwrt SDK开发环境

做路由器应用开发并不需要整个源码环境,只要制作一个可以编译生成ipk的特定的SDK环境就好,恰巧openwrt配置提供了这样的选项功能。若要给应用开发人员提供SDK开发环境,只要在make menuconfig 的时候选上[*] Build the OpenWrt SDK make V=99 编译之后bin/ramips/OpenWrt-SDK-ramips-for-linux

2015-05-04 18:21:03 3541 2

原创 Openwrt之helloworld

一、制作helloworld软件包   在制作好的SDK环境OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2下创建helloworld包package/$mkdir helloworldpackage/helloworld/$创建Makefile 和 src目录Makefile

2015-05-04 18:20:06 6504

原创 Openwrt 3G拨号上网

一、添加VID、PID在linux_src/drivers/usb/serial/option.c 文件中的static const struct usb_device_id option_ids[]的id 列表中增加如下语句:{ USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_COLT) },openwrt-1407在如下位置:

2015-04-29 20:08:32 17422 2

原创 搭建内部Openwrt Git仓库

一、下载官网源码win@server:~/project/pmt7620$mkdir openwrt-1407win@server:~/project/pmt7620/openwrt-1407$git clone git://git.openwrt.org/14.07/openwrt.git .win@server:~/project/pmt7620/openwrt-1407$ls

2015-04-29 10:42:49 9928 1

原创 Ubuntu 12.04LTS Openwrt 入门准备

一、Ubuntu 12.04LTS环境准备:sudo apt-get install build-essential subversion git-core libncurses5-dev zlib1g-dev gawk flex quilt libssl-devxsltproc libxml-parser-perl mercurial bzr ecj cvs unzip二

2015-04-24 14:39:50 3920

原创 Ubuntu12.04LTS搭建MediaWiki

一、下载最新wiki软件包http://www.mediawiki.org/wiki/MediaWiki?setlang=zh-hansmediawiki-1.23.0.tar.gz解压到站点根目录:/home/win/web/ 并命名为wiki/home/win/web/wiki二、安装wiki并设置在浏览器中输入localhost/wiki即进入wiki安装

2015-03-30 11:14:39 2159

原创 Ubuntu12.04LTS搭建LAMP

Ubuntu12.04LTS搭建LAMP(Linux、Apache、Mysql、PHP)一、安装相关软件包①sudo apt-get install apache2 php5 mysql-server libapache2-mod-php5 libapache2-mod-auth-mysql安装过程中,会询问你是否安装,y继续,并出现让你设置root管理员密码,重复设置后继续。

2015-03-30 11:06:13 686

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除