Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
[qsd8250]: Enable daisy chain flashing and fix nandwrite compiling is…
Browse files Browse the repository at this point in the history
…sue.

Update makefile to fix nandwrite compiling issues.
Add ENABLE_NANDWRITE in list of defines for nandwrite makefiles.
Reduce the size of cache partition to 5MB from 76MB.
Disable keypad initialization for nandwrite.
Add recovery partition for surf and ffa.
  • Loading branch information
Chandan Uddaraju committed Dec 17, 2009
1 parent 19012bc commit aeb979e
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 8 deletions.
2 changes: 2 additions & 0 deletions platform/qsd8k/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ void platform_early_init(void)
void platform_init(void)
{
dprintf(INFO, "platform_init()\n");
#if (!ENABLE_NANDWRITE)
acpu_clock_init();
#endif
}

void display_init(void)
Expand Down
1 change: 1 addition & 0 deletions project/qsd8250_ffa_nandwrite.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ TARGET := qsd8250_ffa
MODULES += app/nandwrite

DEFINES += WITH_DEBUG_JTAG=1
DEFINES += ENABLE_NANDWRITE=1
#DEFINES += WITH_DEBUG_DCC=1
#DEFINES += WITH_DEBUG_UART=1
#DEFINES += WITH_DEBUG_FBCON=1
Expand Down
1 change: 1 addition & 0 deletions project/qsd8250_surf_nandwrite.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ TARGET := qsd8250_surf
MODULES += app/nandwrite

DEFINES += WITH_DEBUG_JTAG=1
DEFINES += ENABLE_NANDWRITE=1
#DEFINES += WITH_DEBUG_DCC=1
#DEFINES += WITH_DEBUG_UART=1
#DEFINES += WITH_DEBUG_FBCON=1
Expand Down
13 changes: 10 additions & 3 deletions target/qsd8250_ffa/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,17 @@ static struct ptentry board_part_list[] = {
},
{
.start = 664,
.length = 608 /* 76MB */,
.length = 40 /* 5MB */,
.name = "cache",
},
{
.start = 1272,
.length = 304 /* 38MB */,
.start = 704,
.length = 40 /* 5MB */,
.name = "recovery",
},
{
.start = 744,
.length = 720 /* 90MB */,
.name = "userdata",
},
};
Expand All @@ -85,8 +90,10 @@ void target_init(void)

dprintf(INFO, "target_init()\n");

#if (!ENABLE_NANDWRITE)
keys_init();
keypad_init();
#endif

ptable_init(&flash_ptable);
smem_ptable_init();
Expand Down
6 changes: 6 additions & 0 deletions target/qsd8250_ffa/tools/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ endif
SRC_DIR := target/$(TARGET)/tools
COMPILER := gcc

ifeq ($(BUILD_NANDWRITE), 1)
APPSBOOTHDR_FILES :=
else
APPSBOOTHDR_FILES := appsboot.mbn
endif

APPSBOOTHEADER: appsboot.mbn


Expand Down
14 changes: 10 additions & 4 deletions target/qsd8250_surf/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,17 @@ static struct ptentry board_part_list[] = {
},
{
.start = 664,
.length = 608 /* 76MB */,
.length = 40 /* 5MB */,
.name = "cache",
},
{
.start = 1272,
.length = 608 /* 76MB */,
.start = 704,
.length = 40 /* 5MB */,
.name = "recovery",
},
{
.start = 744,
.length = 720 /* 90MB */,
.name = "userdata",
},
};
Expand All @@ -85,9 +90,10 @@ void target_init(void)

dprintf(INFO, "target_init()\n");

#if (!ENABLE_NANDWRITE)
keys_init();
keypad_init();

#endif
ptable_init(&flash_ptable);
smem_ptable_init();

Expand Down
8 changes: 7 additions & 1 deletion target/qsd8250_surf/tools/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ endif
SRC_DIR := target/$(TARGET)/tools
COMPILER := gcc

APPSBOOTHEADER: appsboot.mbn
ifeq ($(BUILD_NANDWRITE), 1)
APPSBOOTHDR_FILES :=
else
APPSBOOTHDR_FILES := appsboot.mbn
endif

APPSBOOTHEADER: $(APPSBOOTHDR_FILES)


appsboot.mbn: appsboothd.mbn $(OUTBIN)
Expand Down

0 comments on commit aeb979e

Please sign in to comment.