1.1.git配置:
git config --global user.email "meng.xue@rockemb.com" 换成你的邮箱
git config --global user.name "xuemeng" 换成你的名字
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global core.editor vim
git config --list
1.2.查看本地仓库的改动:
git status
git diff
git diff --cached
1.3.查看某笔commit的改动内容:
git log找到那笔改动
git show xxxxx(commit id)
1.4.上传代码:
git add xxx.h xxx.java (git add .是添加全部代码)
git commit -m "改动的说明"
git push origin HEAD:refs/for/xxx (xxx 为分支名称)
2.1.下载代码:
请确认自己需要的代码分支,选择合适的一个
repo init -u ssh://xuemeng@192.168.1.168:29418/platform/manifest -b $分支名称 --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable
之后输入repo sync就可以下载了
2.2.编译:
{
i.mx6系列
source build/envsetup.sh
lunch 选择对应的板子 一般只选user build给客户发货
make -j8 && make otapackage
}
1.source build/envsetup.sh
2.lunch (选择编译的版本)
3.新down下的代码设置
【编译imx6_android_4.4 时候遇到的】
3.1.先编译内核 make -C kernel_imx -j48 uImage ARCH=arm CROSS_COMPILE=`pwd`/prebuilts/gcc/linux-x86/arm/arm-eabi- 4.6/bin/arm-eabi-
3.2.修改代码vi kernel_imx/kernel/timeconst.pl +373
$hz += 0; # Force to number
if ($hz < 1) {
die "Usage: $0 HZ\n";
}
@val = @{$canned_values{$hz}};
if (!(@val)) {
@val = compute_values($hz);
}
output($hz, @val);
3.3.修改配置文件 vim art/build/Android.common_build.mk
ART_TARGET_CLANG := false
(错误情况:
1.Ubuntu16 编译源码出错 unsupported reloc 43
https://www.cnblogs.com/blowing-in-the-wind/p/6518076.html)
4.make -j12 (| tee build.log存储编译log) ( 数字代表线程数)
{
rk系列
./build_3288.sh mtb8xx [uboot|kernel|all|ota|update] [user|userdebug]
./build-image.sh mtb9xx [uboot|kernel|all|ota|update] [user|userdebug]
}
【编译rk3288_android_6.0 时候遇到的】
1.执行./build_3288.sh mtb802 ota
3.修改系统默认分辨率,默认输出设备(hdmi/lvds/vga)
vim device\fsl\rocktech_rsc320_rsc322_root\BoardConfig.mk
#HDMI+VGA ==> 1080P
BOARD_KERNEL_CMDLINE := console=ttymxc0,115200 vmalloc=400M init=/init video_mode=extension video=mxcfb0:dev=lcd,1024x600,if=RGB24,bpp=32 video=mxcfb1:dev=hdmi,1920x1080@60M,if=RGB24,bpp=32 video=mxcfb2:off video=mxcfb3:off fbmem=32M,32M androidboot.console=ttymxc0 androidboot.hardware=freescale
修改成功后单编
make bootimage -j8
在out目录下找到新的boot.img fastboot烧进去
adb reboot bootloader;
fastboot flash boot D:\xxx\boot.img;
fastboot reboot
4.修改默认旋转度数
vim device\fsl\rocktech_rsc320_rsc322_root\init.rc
# Set rotation to 270 to cofigure as portrait mode
setprop ro.sf.hwrotation 90
https://www.cnblogs.com/lexuele/p/5133601.html