A10调试笔记

gedit ~/androidCar/lichee/linux-3.0/Makefile
ARCH        ?= $(SUBARCH)
CROSS_COMPILE    ?= $(CONFIG_CROSS_COMPILE:"%"=%)
修改为:
ARCH        ?= arm
CROSS_COMPILE    ?= arm-none-linux-gnueabi-
 
拿到别人的kernel源码,先做个clean
cd ~/androidCar/lichee/linux-3.0
make clean
全志自己封装的脚本编译
cd ~/androidCar/lichee
./build.sh -p sun4i_crane -k 3.0
编译内核出错
///
test -r .//home/gang.wang/androidCar/lichee/linux-3.0/modules/wifi/bcm40183/5.90.125.95.3/open-src/src/dhd/linux/../../dhd/sys/dhd_linux.c
 || ln -s /home/gang.wang/androidCar/lichee/linux-3.0/modules/wifi/bcm40183/5.90.125.95.3/open-src/src/dhd/linux/../../dhd/sys/dhd_linux.c .
ln: 创建符号链接 "./dhd_linux.c": 文件已存在
make[2]: *** [dhd_linux.o] 错误 1
make[2]:正在离开目录 `/home/gang.wang/androidCar/lichee/linux-3.0/modules/wifi/bcm40183/5.90.125.95.3/open-src/src/dhd/linux/dhd-cdc-sdmmc-gpl-3.0.8'
make[1]: *** [objdir] 错误 2
make[1]:正在离开目录 `/home/gang.wang/androidCar/lichee/linux-3.0/modules/wifi/bcm40183/5.90.125.95.3/open-src/src/dhd/linux'
make: *** [dhd-cdc-sdmmc-gpl] 错误 2
make:离开目录“/home/gang.wang/androidCar/lichee/linux-3.0/modules/wifi/bcm40183/5.90.125.95.3/open-src/src/dhd/linux”
///
解决办法:
cd ~/androidCar/lichee/linux-3.0/modules/wifi/bcm40183/5.90.125.95.3/open-src/src/dhd/linux  //注意wifi目录下是bcm40183款,不要到其他款wifi目录下去操作错了
mv dhd-cdc-sdmmc-gpl-3.0.8/ dhd-cdc-sdmmc-gpl-3.0.8-bcm40183或rm -R dhd-cdc-sdmmc-gpl-3.0.8/  //dhd-cdc-sdmmc-gpl-3.0.8目录要么另外取个名字,要么删掉
cd ~/androidCar/lichee/linux-3.0
make clean
cd ..
./build.sh -p sun4i_crane -k 3.0
 
编译输出u-boot.bin
路径cd ~/androidCar/lichee/out
 
===============================================================
 
编译android
cd ~/androidCar/android4.0
. build/envsetup.sh

lunch 7  //crane-evb-v13

extract-bsp
make -j16
 
编译输出boot.img、recovery.img、system.img
路径cd ~/androidCar/android4.0/out/target/product/crane-evb-v13
 
烧录文件打包
pack
路径cd ~/androidCar/lichee/tools/pack
烧录文件名sun4i_crane_evb-v13.img


lsusb //常用以查看usb设备
adb devices //查看adb设备

导出dmesg信息
adb shell
dmesg > dmesg.txt
//退出adb shell或切换到一个新标签页后,将设备中的dmesg打印信息拉到当前目录
adb pull dmesg.txt


编译驱动测试程序
在android工程目录的external中添加自己的测试模块(eg:新建一个test目录中包含test.app、Android.mk),按照android环境初始化方式先初始化环境,mm编译这一个模块即可

make: ***警告: 文件""的修改时间在将来
从windows通过samba将代码拷到linux目录下再进行编译时会出现这样的警告,这是因为从windows拷贝文件到linux目录后,时间戳与linux系统时间不一到致导致的(文件时间戳的时间超出了linux系统时间,例如文件时间戳的时间为:2011-11-21,linux系统时间为:2011-11-15)。
解决办法1是更改文件的时间戳,用linux命令递归更改文件时间戳:
find ./* -exec touch {}\;
这样修改之后再编译就不会再报警告了,但这个命令提示:
find: 却少"-exec"参数

解决办法2是直接打开拷贝过去的文件,加一个换行或空格 -> 保存就可以了


A10烧录工具Livesuit是usb的,usb驱动在这个目录里面,而不是全志给出的单独的usb驱动


androidCar里面新建文件无权限,发现是组都不对,都不属于自己的组

必须以管理员身份修改,不然会提示所有者:不允许的操作

su <root用户的用户名>

密码:

chown -R gang.wang:xrdp androidCar/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值