diff --git a/SOFTWARE/A64-TERES/blobs/boot.cmd b/SOFTWARE/A64-TERES/blobs/boot.cmd index 2dd3735c..fc687037 100644 --- a/SOFTWARE/A64-TERES/blobs/boot.cmd +++ b/SOFTWARE/A64-TERES/blobs/boot.cmd @@ -5,6 +5,8 @@ # set_cmdline setenv bootargs "console=${console} enforcing=${enforcing} cma=${cma} ${optargs} androidboot.serialno=${sunxi_serial} androidboot.hardware=${hardware} androidboot.selinux=${selinux} earlyprintk=sunxi-uart,0x01c28000 loglevel=8 root=${root} eth0_speed=${eth0_speed}" +env_set_debug + run load_dtb # set display resolution from uEnv.txt or other environment file diff --git a/SOFTWARE/A64-TERES/blobs/boot.scr b/SOFTWARE/A64-TERES/blobs/boot.scr index 52e1e39c..14714db1 100644 Binary files a/SOFTWARE/A64-TERES/blobs/boot.scr and b/SOFTWARE/A64-TERES/blobs/boot.scr differ diff --git a/SOFTWARE/A64-TERES/scripts/install_kernel.sh b/SOFTWARE/A64-TERES/scripts/install_kernel.sh index e252dab2..e72c8ea8 100755 --- a/SOFTWARE/A64-TERES/scripts/install_kernel.sh +++ b/SOFTWARE/A64-TERES/scripts/install_kernel.sh @@ -94,7 +94,7 @@ kernel_filename=a64/Image initrd_filename=initrd.img recovery_initrd_filename=ramdisk-recovery.img hardware=sun50iw1p1 - +debug=off # INFO: # To enable one of below options, # uncomment them by removing # in front of name diff --git a/SOFTWARE/A64-TERES/u-boot_new/board/sunxi/common/olimex_model.c b/SOFTWARE/A64-TERES/u-boot_new/board/sunxi/common/olimex_model.c index 2badf87d..515c91cc 100644 --- a/SOFTWARE/A64-TERES/u-boot_new/board/sunxi/common/olimex_model.c +++ b/SOFTWARE/A64-TERES/u-boot_new/board/sunxi/common/olimex_model.c @@ -122,8 +122,9 @@ int do_env_set_debug(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) // nodeoffset = fdt_path_offset(working_fdt,FDT_PATH_HDEBUG); strcpy(debug_flag,getenv("debug")); printf("Test %s \n",debug_flag); - if (strcmp(debug_flag,"on") == 0) { - enabled = 1; + if (strcmp(debug_flag,"off") == 0) { + enabled = 0; + printf("Enabled %s \n",debug_flag); } @@ -145,16 +146,17 @@ int do_env_set_debug(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) return 1; } else { - if (enabled == 0 ) { - ret1 = gpio_write_one_pin_value(gpio_hd, 1, "debug_en_gpio"); - } - if (enabled == 1 ) { - ret1 = gpio_write_one_pin_value(gpio_hd, 0, "debug_en_gpio"); - // sprite_debug(); - } + if (enabled ==0){ + ret1 = gpio_write_one_pin_value(gpio_hd, 1, "debug_en_gpio"); + if(!ret1) { + + + printf("reuqest gpio for headphone debug set to 1\n"); + } + } + } - } }