A20-TVOBX-v2.0.tar.gz 编译问题
来源:互联网 发布:omnigraffle 网络模板 编辑:程序博客网 时间:2024/06/17 01:41
\\192.168.1.12\jiang_dou\a20\a20_sb_tf\lichee\brandy\u-boot-2011.09\drivers\power\axp.c
修改按键开机
*/
int axp_probe_factory_mode(void)
{
int buffer_value, status,next_mode;
int poweron_reason;
//buffer_value = sunxi_axp_dev[0]->probe_pre_sys_mode();
buffer_value = PMU_PRE_FACTORY_MODE;
if(buffer_value == PMU_PRE_FACTORY_MODE)//factory mode: need the power key and dc or vbus
{
printf("factory mode detect\n");
status = sunxi_axp_dev[0]->probe_power_status();
if(status > 0) //has the dc or vbus
{
//获取 开机原因,是按键触发,或者插入电压触发
poweron_reason = sunxi_axp_dev[0]->probe_this_poweron_cause();
if(poweron_reason == AXP_POWER_ON_BY_POWER_KEY)
{
//set the system next powerom status as 0x0e(the system mode)
printf("factory mode release\n");
sunxi_axp_dev[0]->set_next_sys_mode(PMU_PRE_SYS_MODE);
}
else
{
printf("factory mode: try to poweroff without power key\n");
axp_set_hardware_poweron_vol(); //poweroff
//axp_set_power_off();//modify by jiangdou
//for(;;);
}
}
else
{
printf("factory mode: try to poweroff without power in\n");
axp_set_hardware_poweroff_vol(); //poweroff
// axp_set_power_off();//modify by jiangdou
// for(;;);//modify by jiangdou
}
}
// next_mode = PMU_PRE_FACTORY_MOD;
// sunxi_axp_dev[0]->set_next_sys_mode(0x0d);
return 0;
}
tf_sb_sdk_a20_ok!!!!
v2.0_A20_android_source.tar.gz
这个源码包含cb2 和ct
进入lichee\linun3.4
$ make mrproper
$ cp arch/arm/configs/cubieboard2_config arch/arm/configs/cubieboard2_defconfig
$ $ make ARCH=arm cubieboard2_defconfig
进入lichee目录 $ ./build.sh -p sun7i_android
再回到android目录
$ source build/envsetup.sh
$ lunch
$ extract-bsp
$ make -j4
$ pack
如果切换CT
进入lichee\linun3.4
$ make mrproper
$ cp arch/arm/configs/cubietruck_config arch/arm/configs/cubietruck_defconfig
$ $ make ARCH=arm cubietruck_defconfig
进入lichee目录 $ ./build.sh -p sun7i_android
再回到android目录
$ source build/envsetup.sh
$ lunch
$ extract-bsp
$ make -j4
$ pack
错误问题是,直接在lichee目录下$ ./build.sh -p sun7i_android
结果是lichee/linux-3.4/arch/arm/configs/sun7ismp_android_defconfig默认配置文件,这个配置没有打开一些宏定义,导致cpu启动出错了
---<<<<问题1
sys_config_fex ///---->>>machine = "sugar-cubieboard2" //此处注意 卡在FEL
-----<<<<问题2
OTG adb死机
/*add by jiangdou start*/ --->>>>此方法OK
#ifdef CONFIG_UDC_ACTIVE
udc->udc_actived = 0;
INIT_WORK(&udc->udc_active_work, udc_powernow_switch);
init_timer(&udc->udc_active_timer);
udc->udc_active_timer.function = udc_timer_func;
#endif
/*add by jiangdou end*/
return 0;
err:
if(is_udc_support_dma()){
sw_udc_dma_remove(udc);
}
sw_udc_io_exit(usbd_port_no, pdev, &g_sw_udc_io);
修改按键开机
*/
int axp_probe_factory_mode(void)
{
int buffer_value, status,next_mode;
int poweron_reason;
//buffer_value = sunxi_axp_dev[0]->probe_pre_sys_mode();
buffer_value = PMU_PRE_FACTORY_MODE;
if(buffer_value == PMU_PRE_FACTORY_MODE)//factory mode: need the power key and dc or vbus
{
printf("factory mode detect\n");
status = sunxi_axp_dev[0]->probe_power_status();
if(status > 0) //has the dc or vbus
{
//获取 开机原因,是按键触发,或者插入电压触发
poweron_reason = sunxi_axp_dev[0]->probe_this_poweron_cause();
if(poweron_reason == AXP_POWER_ON_BY_POWER_KEY)
{
//set the system next powerom status as 0x0e(the system mode)
printf("factory mode release\n");
sunxi_axp_dev[0]->set_next_sys_mode(PMU_PRE_SYS_MODE);
}
else
{
printf("factory mode: try to poweroff without power key\n");
axp_set_hardware_poweron_vol(); //poweroff
//axp_set_power_off();//modify by jiangdou
//for(;;);
}
}
else
{
printf("factory mode: try to poweroff without power in\n");
axp_set_hardware_poweroff_vol(); //poweroff
// axp_set_power_off();//modify by jiangdou
// for(;;);//modify by jiangdou
}
}
// next_mode = PMU_PRE_FACTORY_MOD;
// sunxi_axp_dev[0]->set_next_sys_mode(0x0d);
return 0;
}
tf_sb_sdk_a20_ok!!!!
v2.0_A20_android_source.tar.gz
这个源码包含cb2 和ct
进入lichee\linun3.4
$ make mrproper
$ cp arch/arm/configs/cubieboard2_config arch/arm/configs/cubieboard2_defconfig
$ $ make ARCH=arm cubieboard2_defconfig
进入lichee目录 $ ./build.sh -p sun7i_android
再回到android目录
$ source build/envsetup.sh
$ lunch
$ extract-bsp
$ make -j4
$ pack
如果切换CT
进入lichee\linun3.4
$ make mrproper
$ cp arch/arm/configs/cubietruck_config arch/arm/configs/cubietruck_defconfig
$ $ make ARCH=arm cubietruck_defconfig
进入lichee目录 $ ./build.sh -p sun7i_android
再回到android目录
$ source build/envsetup.sh
$ lunch
$ extract-bsp
$ make -j4
$ pack
错误问题是,直接在lichee目录下$ ./build.sh -p sun7i_android
结果是lichee/linux-3.4/arch/arm/configs/sun7ismp_android_defconfig默认配置文件,这个配置没有打开一些宏定义,导致cpu启动出错了
---<<<<问题1
sys_config_fex ///---->>>machine = "sugar-cubieboard2" //此处注意 卡在FEL
-----<<<<问题2
OTG adb死机
/*add by jiangdou start*/ --->>>>此方法OK
#ifdef CONFIG_UDC_ACTIVE
udc->udc_actived = 0;
INIT_WORK(&udc->udc_active_work, udc_powernow_switch);
init_timer(&udc->udc_active_timer);
udc->udc_active_timer.function = udc_timer_func;
#endif
/*add by jiangdou end*/
return 0;
err:
if(is_udc_support_dma()){
sw_udc_dma_remove(udc);
}
sw_udc_io_exit(usbd_port_no, pdev, &g_sw_udc_io);
0 0
- A20-TVOBX-v2.0.tar.gz 编译问题
- MySQL5 tar.gz编译安装
- 龙芯电脑—编译 resiprocate-1.10.0.tar.gz
- libnl-3.2.14.tar.gz编译
- 编译安装php-5.6.30.tar.gz
- ubuntu 编译源码包 dsc diff.gz orig.tar.gz
- ubuntu 编译源码包 dsc diff.gz orig.tar.gz
- ubuntu 编译源码包(dsc diff.gz orig.tar.gz):
- ubuntu 编译源码包 dsc diff.gz orig.tar.gz
- A20 最小系统改造 为ubuntu-core-14.04-core-armhf.tar.gz
- 关于解压 tar.gz的问题
- 虚拟机解压.tar.gz出错问题
- 一个.tar.gz文件引发的问题
- cygwin解决tar.gz包乱码问题
- centos碰到的安装tar.gz问题
- tar.gz
- tar.gz
- tar.gz
- 学习小结20151014--小标签
- 本博简介
- hdu1018Big number(N!的位数-斯特林公式)
- python 生成测试数据点(带有标签的线性可分和线性不可分)
- 1043_输出PATest
- A20-TVOBX-v2.0.tar.gz 编译问题
- 求3-100之间的素数
- PostgreSQL json jsonb 支持的value数据类型,如何构造一个jsonb
- 基于Theano的深度学习(Deep Learning)框架Keras学习随笔-04-目标函数
- 九度OJ 1002:Grading
- System 类和日期类
- 关于字符串的判空问题
- PostgreSQL customize inet_aton, inet_ntoa function in text type like MySQL.
- springMVC配置文件解释(2)