diff --git a/SOFTWARE/A64-TERES/blobs/boot.scr b/SOFTWARE/A64-TERES/blobs/boot.scr index 14714db1..12bbcc1f 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 e72c8ea8..014e38fc 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 +debug=on # 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 515c91cc..018f18c9 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 @@ -124,11 +124,14 @@ int do_env_set_debug(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) printf("Test %s \n",debug_flag); if (strcmp(debug_flag,"off") == 0) { enabled = 0; - printf("Enabled %s \n",debug_flag); } + if (strcmp(debug_flag,"on") == 0) { + enabled = 1; + } + printf("Debug State: %d \n",enabled); @@ -151,9 +154,18 @@ int do_env_set_debug(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) if(!ret1) { - printf("reuqest gpio for headphone debug set to 1\n"); + printf("Gpio state: 0\n"); } } + if (enabled ==1){ + ret1 = gpio_write_one_pin_value(gpio_hd, 0, "debug_en_gpio"); + if(!ret1) { + + + printf("GPIO State:\n"); + } + } + }