From patchwork Thu Dec 6 01:11:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 204092 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id C5E782C014C for ; Thu, 6 Dec 2012 12:11:38 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 85E2A4A196; Thu, 6 Dec 2012 02:11:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YiC1JdIHU3MN; Thu, 6 Dec 2012 02:11:37 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 39D7D4A1C0; Thu, 6 Dec 2012 02:11:36 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 91AAE4A1C6 for ; Thu, 6 Dec 2012 02:11:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i41UgZeIFJcR for ; Thu, 6 Dec 2012 02:11:33 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-qc0-f202.google.com (mail-qc0-f202.google.com [209.85.216.202]) by theia.denx.de (Postfix) with ESMTPS id 9F90A4A1C0 for ; Thu, 6 Dec 2012 02:11:32 +0100 (CET) Received: by mail-qc0-f202.google.com with SMTP id s25so751067qcq.3 for ; Wed, 05 Dec 2012 17:11:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=/uYR5VcCBlNafVVJPLEXi3Pop0JQhGaA9qiK0siPomg=; b=KfP0/HO7oI/G+d4PWqJn0HNdWvPxBT7R/YD1exMY8Teetjpza67eYVXD2FJgkPFj7k HSI07lcodEYcstjt6uzU56KqrXDWpXzp0Po3aB+c0v57enKf9SN69hQs3Y7KA6K0ZYGg WrCuNQ74HRLPP1L9lAfL35SI9cNpsv6wPecJ99iokMXxldNxh1K/MnPOA9oZNXbiPk8m ajiMWBGV50FAzw6NLJVilYHwGp+/llZM8FBTk3azH4MCBf7v+aezWJDYLMccPKWqfu5l xV0Mdeauxg5zdSmultwH5ezeYIT5Es0aSq0EGKnxU1LJmckgJOy1IgBj4HmzDPgERZk5 xICA== Received: by 10.236.173.130 with SMTP id v2mr11771737yhl.41.1354756289841; Wed, 05 Dec 2012 17:11:29 -0800 (PST) Received: from wpzn3.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id i27si525589yhe.4.2012.12.05.17.11.29 (version=TLSv1/SSLv3 cipher=AES128-SHA); Wed, 05 Dec 2012 17:11:29 -0800 (PST) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by wpzn3.hot.corp.google.com (Postfix) with ESMTP id A9DAB100047; Wed, 5 Dec 2012 17:11:29 -0800 (PST) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 647E9160505; Wed, 5 Dec 2012 17:11:29 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Wed, 5 Dec 2012 17:11:27 -0800 Message-Id: <1354756288-32485-1-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 X-Gm-Message-State: ALoCoQkAGSfNEU9/STbf+PdJSSR0xXiq9CmX8AemZVZXurUHGXGtj7IiceaxOFZfskIonbA+MN8Mk9jIS2JI8iNVTuVH+TGObEXgO61LaiZTr7attXGHDufj93eJvwUWNKHauFH/me/XZiO0dvM9f3+mWUmE05XmqtkvP2G5XQohAqu0pwSjGCwBf8tWn4SJF7Y6P7bSV7gW Subject: [U-Boot] [PATCH] x86: Fix coreboot config to boot on Chromebook X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de The config is current broken. It compiles but does not boot because IDE is enabled. Remove all IDE options, and enable SCSI instead. Also add a working boot command and Linux bootargs, and enable command line editing to make it easier to work with. Signed-off-by: Simon Glass --- include/configs/coreboot.h | 26 ++++++++++++-------------- 1 files changed, 12 insertions(+), 14 deletions(-) diff --git a/include/configs/coreboot.h b/include/configs/coreboot.h index 06d2b2f..adeace0 100644 --- a/include/configs/coreboot.h +++ b/include/configs/coreboot.h @@ -39,7 +39,9 @@ #define CONFIG_LAST_STAGE_INIT #define CONFIG_X86_NO_RESET_VECTOR #define CONFIG_SYS_VSNPRINTF +#define CONFIG_INTEL_CORE_ARCH /* Sandy bridge and ivy bridge chipsets. */ #define CONFIG_ZBOOT_32 +#define CONFIG_PHYSMEM /*----------------------------------------------------------------------- * Watchdog Configuration @@ -104,18 +106,9 @@ #define CONFIG_SYS_STDIO_DEREGISTER #define CONFIG_CBMEM_CONSOLE -/* max. 1 IDE bus */ -#define CONFIG_SYS_IDE_MAXBUS 1 -/* max. 1 drive per IDE bus */ -#define CONFIG_SYS_IDE_MAXDEVICE (CONFIG_SYS_IDE_MAXBUS * 1) - -#define CONFIG_SYS_ATA_BASE_ADDR CONFIG_SYS_ISA_IO_BASE_ADDRESS -#define CONFIG_SYS_ATA_IDE0_OFFSET 0x01f0 -#define CONFIG_SYS_ATA_IDE1_OFFSET 0x0170 -#define CONFIG_SYS_ATA_DATA_OFFSET 0 -#define CONFIG_SYS_ATA_REG_OFFSET 0 -#define CONFIG_SYS_ATA_ALT_OFFSET 0x200 - +#define CONFIG_CMDLINE_EDITING +#define CONFIG_COMMAND_HISTORY +#define CONFIG_AUTOCOMPLETE #define CONFIG_SUPPORT_VFAT /************************************************************ @@ -181,14 +174,19 @@ #define CONFIG_CMD_SETGETDCR #define CONFIG_CMD_SOURCE #define CONFIG_CMD_XIMG -#define CONFIG_CMD_IDE +#define CONFIG_CMD_SCSI + #define CONFIG_CMD_FAT #define CONFIG_CMD_EXT2 #define CONFIG_CMD_ZBOOT #define CONFIG_BOOTDELAY 2 -#define CONFIG_BOOTARGS "root=/dev/mtdblock0 console=ttyS0,9600" +#define CONFIG_BOOTARGS \ + "root=/dev/sdb3 init=/sbin/init rootwait ro" +#define CONFIG_BOOTCOMMAND \ + "ext2load scsi 0:3 01000000 /boot/vmlinuz; zboot 01000000" + #if defined(CONFIG_CMD_KGDB) #define CONFIG_KGDB_BAUDRATE 115200