diff --git a/firmware/export/imx31l.h b/firmware/export/imx31l.h index 5299799861..9ac0bc84a1 100755 --- a/firmware/export/imx31l.h +++ b/firmware/export/imx31l.h @@ -30,7 +30,7 @@ #define TTB_SIZE (0x4000) #define IRAM_SIZE (0x4000) #define TTB_BASE ((unsigned int *)TTB_BASE_ADDR) -#define FRAME ((void*)0x80100000) +#define FRAME ((void*)0x03f00000) #define FRAME_SIZE (240*320*2) #define DEVBSS_ATTR __attribute__((section(".devbss"),nocommon)) diff --git a/firmware/target/arm/imx31/crt0.S b/firmware/target/arm/imx31/crt0.S index 55cd74180f..101c9799e2 100644 --- a/firmware/target/arm/imx31/crt0.S +++ b/firmware/target/arm/imx31/crt0.S @@ -172,6 +172,13 @@ remap_start: cmp r2, r3 blo 1b + /* Map device section 0x80100000 to 0x03f00000 - buffered, not cached */ + bic r1, r1, #0x0ff00000 + orr r1, r1, #0x00100000 + bic r1, r1, #(1 << 3) + add r2, r5, #63*4 + str r1, [r2] + /* Enable MMU */ mov r0, #0