本文主要是介绍A20-TVOBX-v2.0.tar.gz 编译问题,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
\\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);
这篇关于A20-TVOBX-v2.0.tar.gz 编译问题的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!