From patchwork Mon Feb 1 21:30:40 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jurij Smakov X-Patchwork-Id: 44228 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id C0688B7D4C for ; Tue, 2 Feb 2010 08:31:37 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754730Ab0BAVbf (ORCPT ); Mon, 1 Feb 2010 16:31:35 -0500 Received: from hapkido.dreamhost.com ([66.33.216.122]:34935 "EHLO hapkido.dreamhost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752993Ab0BAVbf (ORCPT ); Mon, 1 Feb 2010 16:31:35 -0500 Received: from homiemail-a30.g.dreamhost.com (caiajhbdcaib.dreamhost.com [208.97.132.81]) by hapkido.dreamhost.com (Postfix) with ESMTP id E0EB5178909 for ; Mon, 1 Feb 2010 13:31:34 -0800 (PST) Received: from wooyd.org (unknown [89.100.52.87]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a30.g.dreamhost.com (Postfix) with ESMTPSA id C670521DE6F for ; Mon, 1 Feb 2010 13:30:42 -0800 (PST) Received: by wooyd.org (Postfix, from userid 1000) id BE1CFE6B3C; Mon, 1 Feb 2010 21:30:40 +0000 (GMT) Date: Mon, 1 Feb 2010 21:30:40 +0000 From: Jurij Smakov To: sparclinux@vger.kernel.org Subject: SILO problems Message-ID: <20100201213040.GA3361@droopy.oc.cox.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: sparclinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: sparclinux@vger.kernel.org Hi, While preparing an update for Debian's SILO package, I ran into a problem: the version built from the current git tree [0] fails to boot on my SunBlade 1000 box with the following messages: SUNW,Sun-Blade-1000 (2 X UltraSPARC-III) , No Keyboard Copyright 1998-2004 Sun Microsystems, Inc. All rights reserved. OpenBoot 4.16.4, 2048 MB memory installed, Serial #51831895. Ethernet address 0:3:ba:16:e4:57, Host ID: 8316e457. Rebooting with command: boot Boot device: disk File and args: SILO Version 1.4.14 boot: Allocated 64 Megs of memory at 0x40000000 for kernel Uncompressing image... ERROR: Last Trap: Fast Data Access MMU Miss Error -256 {0} ok I have confirmed that the "silo: move second to make room for larger kernel" commit [1] is causing the breakage, excluding this commit makes the system boot normally: Rebooting with command: boot Boot device: disk File and args: SILO Version 1.4.14 boot: Allocated 64 Megs of memory at 0x40000000 for kernel Uncompressing image... Loaded kernel version 2.6.32 Loading initial ramdisk (7746912 bytes at 0x7F000000 phys, 0x40C00000 virt)... \ [ 0.000000] PROMLIB: Sun IEEE Boot Prom 'OBP 4.16.4 2004/12/18 05:18' [...] For now I just plan to exclude this patch from Debian package. On a related note, I had to apply the attached patch (Signed-off-by: Jurij Smakov ) to make SILO build with 2.6.32 kernel headers (which, apparently, are defining _LINUX_TYPES_H again). [0] http://git.kernel.org/?p=linux/kernel/git/davem/silo.git;a=summary [1] http://git.kernel.org/?p=linux/kernel/git/davem/silo.git;a=commit;h=71816c5699b32bab03e57be6768a562d9568e33b Best regards, diff -aur a/include/ext2fs/ext2fs.h b/include/ext2fs/ext2fs.h --- a/include/ext2fs/ext2fs.h 2010-01-30 13:40:56.000000000 +0000 +++ b/include/ext2fs/ext2fs.h 2010-01-30 13:47:54.000000000 +0000 @@ -39,7 +39,7 @@ */ #define EXT2_LIB_CURRENT_REV 0 -#if defined(HAVE_SYS_TYPES_H) && !defined(_LINUX_TYPES_H) +#if defined(HAVE_SYS_TYPES_H) #include #endif diff -aur a/include/stringops.h b/include/stringops.h --- a/include/stringops.h 2010-01-30 13:40:56.000000000 +0000 +++ b/include/stringops.h 2010-01-30 13:47:25.000000000 +0000 @@ -7,9 +7,7 @@ #ifndef __SIZE_TYPE__ #define __SIZE_TYPE__ long unsigned int #endif -#ifndef _LINUX_TYPES_H typedef __SIZE_TYPE__ size_t; -#endif /* stringops1.c */ char *strcpy(char *, const char *);