summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuriyan Ramasami <suriyan.r@gmail.com>2013-11-08 03:09:33 +0400
committerMauro Ribeiro <mauro.ribeiro@hardkernel.com>2013-11-08 03:10:53 +0400
commit4d0c1283c3a14cc935f90474843e69a8fa2f5965 (patch)
tree9ce512a6202570e3f750dd45704edb37735b8ada
parentac951025662d918d9168cd3bb29a3c72b2abb587 (diff)
downloadu-boot-4d0c1283c3a14cc935f90474843e69a8fa2f5965.tar.xz
Make buffer DMA aligned
Make the response buffer DMA aligned Signed-off-by: Mauro Ribeiro <mauro.ribeiro@hardkernel.com>
-rw-r--r--common/cmd_fastboot.c2
-rwxr-xr-xsd_fuse/emmc_fastboot_fusing.sh8
2 files changed, 5 insertions, 5 deletions
diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c
index 8b95f5ff27..b268485f4c 100644
--- a/common/cmd_fastboot.c
+++ b/common/cmd_fastboot.c
@@ -701,7 +701,7 @@ static int rx_handler (const unsigned char *buffer, unsigned int buffer_size)
/* Use 65 instead of 64
null gets dropped
strcpy's need the extra byte */
- char response[65];
+ ALLOC_CACHE_ALIGN_BUFFER(char, response, 65);
if (download_size)
{
diff --git a/sd_fuse/emmc_fastboot_fusing.sh b/sd_fuse/emmc_fastboot_fusing.sh
index ddb41c404d..f5ec3f3324 100755
--- a/sd_fuse/emmc_fastboot_fusing.sh
+++ b/sd_fuse/emmc_fastboot_fusing.sh
@@ -8,11 +8,11 @@
#
####################################
echo "BL1 fusing"
-fastboot flash fwbl1 bl1.HardKernel
+sudo fastboot flash fwbl1 bl1.HardKernel
echo "BL2 fusing"
-fastboot flash bl2 bl2.HardKernel
+sudo fastboot flash bl2 bl2.HardKernel
echo "u-boot fusing"
-fastboot flash bootloader ../u-boot.bin
+sudo fastboot flash bootloader ../u-boot.bin
echo "TrustZone S/W fusing"
-fastboot flash tzsw tzsw.HardKernel
+sudo fastboot flash tzsw tzsw.HardKernel
echo "U-boot image is fused successfully."