From owner-freebsd-stable@FreeBSD.ORG Sat Mar 28 18:37:26 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 490A71065672; Sat, 28 Mar 2009 18:37:26 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-ew0-f171.google.com (mail-ew0-f171.google.com [209.85.219.171]) by mx1.freebsd.org (Postfix) with ESMTP id 7AB1A8FC14; Sat, 28 Mar 2009 18:37:25 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by ewy19 with SMTP id 19so1370760ewy.43 for ; Sat, 28 Mar 2009 11:37:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=+HH4ridWQOMYmkwZWEq9UknRwNMUi0Oy6f6J7JOX3wk=; b=iPBDFIygCVBaInjtyMKf9n/cvGSulNXmWGD0UEnJCfw1Sz7P8uklT0+s22cVW2Axaa oMfWLk9P4SCdW3xPFiUYdmrWQeNaeZQVNwyAhsgjhtv/zjspuadZGgljH6X8nB1syav9 +FBMcOYkHOAxM6t/BpebLbIlEWTgKhZXqceYQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=N11g5Rcv8WU5Y+RZoXJJ/BeY7KH7ZNNT+EmDz+YwpB5p+CysHnW7ZzXsjHfj2ppaXp A/XtOOMiMKoNsO4QaZmK3di/Zt+hh+prKq0n4SSC+bxQwJVCuE6YGluQsDgUfWBRh98X 5+1ocVRabRNIvQmesOV4lbQ525Cw94DdntGdQ= MIME-Version: 1.0 Received: by 10.210.137.17 with SMTP id k17mr1220820ebd.6.1238265443142; Sat, 28 Mar 2009 11:37:23 -0700 (PDT) In-Reply-To: <49CE4733.4080306@reiteration.net> References: <49CAA7AB.8030506@reiteration.net> <20090326025431.GC14916@weongyo.cdnetworks.kr> <49CB659D.2000108@reiteration.net> <20090327063245.GD19512@weongyo.cdnetworks.kr> <49CDCE8A.70906@reiteration.net> <3a142e750903280745u5c8b3ad7ne779d03c44c6fcb@mail.gmail.com> <49CE4733.4080306@reiteration.net> Date: Sat, 28 Mar 2009 19:37:23 +0100 Message-ID: <3a142e750903281137h797fd181mb379c031780a1ab1@mail.gmail.com> From: "Paul B. Mahol" To: John Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Stable , Weongyo Jeong Subject: Re: malo causes sig 12 error and panic on Freebsd 7.2-PRERELEASE (7-STABLE) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 18:37:26 -0000 On 3/28/09, John wrote: > Paul B. Mahol wrote: >> On 3/28/09, John wrote: >>> Weongyo Jeong wrote: >>> >>>> It looks something goes wrong so could you please patch if_malo_pci.c >>>> manually it's a very simple patch and test? Sorry for inconvenience. >>> Hello, >>> >>> Now I get: >>> >>> sudo kldload /boot/kernel/if_malo.ko >>> kldload: can't load /boot/kernel/if_malo.ko: Exec format error >>> >>> [john@potato ~]$ kldstat >>> Id Refs Address Size Name >>> 1 8 0xffffffff80100000 7c26c0 kernel >>> 2 1 0xffffffff80a22000 95a pflog.ko >>> 3 1 0xffffffff80a23000 2ae44 pf.ko >>> 4 1 0xffffffff80a4e000 189ac linux.ko >>> 5 1 0xffffffff80a67000 aa7a fuse.ko >> >> How you compiled new kernel/module? >> This can mean only one thing: you messed something up or >> you are using wrong sources. >> > > It's because the other module wasn't loaded - I didn't see the console > as I was logged in remotely. > > The console showed this: > > KLD if_malo.ko: depends on malofw_fw - not available. > > So I went back into where the openbsd firmware was and kldloaded You should use this version of firmware: http://weongyo.org/project/malo/malo-firmware-1.4.tar.gz > malofw.ko which succeeded. Then I tried with the (now modified) > if_malo.ko and got this from the console: > > malo0: mem > 0xfddd0000-0xfddd > ffff,0xfdde0000-0xfddeffff irq 20 at device 6.0 on pci2 > malo0: [FILTER] > malo0: unable to allocate memory for cmd buffer, error 12 > malo0: unable to attach HAL > device_attach: malo0 attach returned 5 > > However, the modifications suggested by Weongyo Jeong have made a > difference in the right direction because the error no longer causes a > panic. > > Now, kldstat gives: > > [john@potato ~]$ kldstat > Id Refs Address Size Name > 1 22 0xffffffff80100000 7c26c0 kernel > 2 1 0xffffffff80a22000 95a pflog.ko > 3 1 0xffffffff80a23000 2ae44 pf.ko > 4 2 0xffffffff80a4e000 189ac linux.ko > 5 1 0xffffffff80a67000 aa7a fuse.ko > 6 1 0xffffffff80a72000 359b linprocfs.ko > 7 2 0xffffffff80a76000 1e1ce malofw.ko > 8 1 0xffffffff80a95000 63c4 if_malo.ko > 9 1 0xffffffff80a9c000 551b5 radeon.ko > 10 1 0xffffffff80af2000 113d0 drm.ko > > but I can't see it in ifconfig -a. > > I haven't got a source problem - of that I'm quite sure. World was made > only a few days ago, cvsup runs every night, the sources got are those > I'd expect from following RELENG_7. There is a file in the source tree > that has this information but right now I'm at a loss as to what it's > called. > -- > John > -- Paul