- 博客(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 2227 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 478
原创 一些笔录
一、串口打印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 315
原创 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 3476
原创 自定义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 905
原创 ubuntu14.04 samba 无法访问。您可能没有权限使用网络资源
ubuntu14.04 samba 无法访问。您可能没有权限使用网络资源 。。。ubuntu自身文件夹底部,连接到服务器可以正常访问。windows可以访问其它samba服务器,偏偏我这个新安装的ubuntu14.04 samba不行。经过折腾终于搞定,记录关键点如下:一、学会搜索盲目搜索有时候也会浪费时间,查log才是程序员干的事:/var/log/samba/B
2016-11-10 14:57:05 13741
原创 关闭 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 4196 4
原创 充电状态三色指示灯
一、配置三种颜色frameworks/base/core/res/res/values/config.xml799 800 0xFFFF0000//红色 801 802 803 0xFF0000FF//蓝色 804 805 806
2016-10-09 16:55:38 5932
原创 VR 触摸板模拟上下左右按键
最后一个点和第一个点形成直角,判断直角边长,上报对应按键值(LEFT、RIGHT、UP、DOWN、ENTER)gslX680.c 实现。。。
2016-09-28 19:35:59 3414
原创 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 4040
原创 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 6030 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 1381
原创 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 3653
原创 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 3290 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 5249
原创 mt7620 双SSID
1、/etc/config/wireless2、/etc/config/network3、/etc/config/dhcp4、/etc/config/fireware
2015-11-19 15:38:15 2039
原创 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 9491
原创 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 4399
原创 Openwrt 无线中继
无线中继可以实现以路由自己为客户端远程连接另外一个无线路由器。主要是通过增加wifi-iface实现的,增加后系统就有两个匿名的wifi-iface配置,其中一个用来解决其他设别接入路由器,另外一个用来解决无线中继。一、增加wwan网络接口 vim /etc/config/network config interface 'wwan' option pro
2015-08-26 14:37:15 3255
原创 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 5559
原创 Openwrt 串口多用户访问
参考:http://wiki.openwrt.org/doc/howto/secure.access一、编译配置1、make menuconfigAdministration ---> sudo ... ...Utilities ---> shadow-groupadd ... ... shadow-useradd ... ...
2015-06-12 11:29:01 1831
原创 Openwrt 串口密码登入
为了安全性考虑,进行串口登入的时候也希望像ssh那样要求输入用户名和密码才能进入控制台。一、客制化busyboxmake menuconfigBase system ---> busybox ...... [*] Customize busybox option Login/Password Management Ut
2015-06-05 15:49:15 8623
原创 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 11237
原创 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 3555
原创 制作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 3571 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 6639
原创 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 17491 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 10009 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 4050
原创 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 2192
原创 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 700
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人