Temporarily remove image RW.B due to code size.

To accomodate our growing code, image RW.B is removed so that RO and
RW.A can both have 60K space. This is just a temporary solution. Add
RW.B back when we have enough space for all three images.

Also add license header to firmware_image.lds.S so that repo does not
complain about it.

BUG=chrome-os-partner:8079
TEST=build image and run on proto-0.

Change-Id: I85b723f3e645c12fd89b189263ca44d58c4621eb
Signed-off-by: Vic Yang <victoryang@chromium.org>
This commit is contained in:
Vic Yang
2012-02-16 13:07:32 -08:00
parent b221c77b62
commit e75a32d2e3
3 changed files with 14 additions and 1 deletions

View File

@@ -10,8 +10,12 @@
#define CONFIG_RAM_BASE 0x20000000
#define CONFIG_RAM_SIZE 0x00008000
/* Disable RW.B firmware due to code size.
* TODO: Add it back when we can. */
#define CONFIG_NO_RW_B
/* Size of one firmware image in flash */
#define CONFIG_FW_IMAGE_SIZE (40 * 1024)
#define CONFIG_FW_IMAGE_SIZE (60 * 1024)
#define CONFIG_FW_RO_OFF 0
#define CONFIG_FW_A_OFF CONFIG_FW_IMAGE_SIZE
#define CONFIG_FW_B_OFF (2 * CONFIG_FW_IMAGE_SIZE)

View File

@@ -20,6 +20,8 @@
.section .image.A, "ax"
.incbin FW_IMAGE(A)
#ifndef CONFIG_NO_RW_B
/* Read Write firmware copy B */
.section .image.B, "ax"
.incbin FW_IMAGE(B)
#endif

View File

@@ -1,3 +1,8 @@
/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "config.h"
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
@@ -16,8 +21,10 @@ SECTIONS
.image.A : AT(CONFIG_FW_A_OFF) {
*(.image.A)
} > FLASH
#ifndef CONFIG_NO_RW_B
. = ALIGN(CONFIG_FLASH_BANK_SIZE);
.image.B : AT(CONFIG_FW_B_OFF) {
*(.image.B)
} > FLASH
#endif
}