From owner-freebsd-ppc@FreeBSD.ORG Wed Apr 3 20:39:16 2013 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E400DA5D for ; Wed, 3 Apr 2013 20:39:16 +0000 (UTC) (envelope-from adutkowski@gmail.com) Received: from mail-oa0-f46.google.com (mail-oa0-f46.google.com [209.85.219.46]) by mx1.freebsd.org (Postfix) with ESMTP id B2ADEDBC for ; Wed, 3 Apr 2013 20:39:16 +0000 (UTC) Received: by mail-oa0-f46.google.com with SMTP id k1so2023906oag.33 for ; Wed, 03 Apr 2013 13:39:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=CqoVu56WFx1vNdGxHRsD4OYSnEqeloyLKj4oU4zFJtQ=; b=cjDQdB4opH1XIobqaFd9elYnsjCW2rWqvUVESqHrLo8VAWX+MsX4wEbgrCsNdcQRmj QoAY5D+RMurc/vbDGw3Msi+oKsFCKMp6Dy16aFwrFNoYytASyUkQ0SqWizHP8sesii+J 6p72RQocumzC2ybccevQ0cu1ju9AomWFXsQ10IUPRaYEiwFkiqDd/3PWBNKEaTjZshSe 2b9rkZ6yZmFUxCwTexB5hSBfE1+c/s3feifJ7FXGTmb48Q74pzOMuAMXWV/An4j0sI1S rYvYheodhSKZOR8v/gTQJAVTHOOL7CkZqHJC3KqhLG2p2MfMJS3SHcxwTuGZRQxQwlcm nmcw== MIME-Version: 1.0 X-Received: by 10.182.131.4 with SMTP id oi4mr2174435obb.64.1365021555797; Wed, 03 Apr 2013 13:39:15 -0700 (PDT) Sender: adutkowski@gmail.com Received: by 10.76.95.194 with HTTP; Wed, 3 Apr 2013 13:39:15 -0700 (PDT) In-Reply-To: References: <9C09C6C4-EBF5-4CC2-9684-8B33932579BE@aim.com> Date: Wed, 3 Apr 2013 22:39:15 +0200 X-Google-Sender-Auth: v16-hD4G3L2YOnffPIVsZBbIgCA Message-ID: Subject: Fwd: FreeBSD booting freescale P1020wlan eval board, via u-boot? From: Aleksander To: freebsd-ppc@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Apr 2013 20:39:16 -0000 On Wed, Apr 3, 2013 at 9:20 PM, John Clark wrote: > > On Apr 3, 2013, at 12:04 PM, Aleksander wrote: > > > please attach some output, maybe I could help. > > > > The booke_init() function has a bug, which is not yet fixed in HEAD. > > > > Anyway, you need to use kernel image (not ubldr) either binary or elf > (if elf, you need to jump with offset to __start function > > objdump lists the entry point for the ELF as, C0001000. > > So, I used the following u-boot command > > tftp 1000 kernel-freebsd.bin > > go 1000 > No no:) Elf formated binary contains (shortly) - elf header - the code So, you load binary at addres X, but you need to add some offset to the very first instruction of __start() function. Since powerpc's freebsd kernel likes to be loaded at address 0x1000000 (16th megabyte), load it at this addr: tftp 0x1000000 kernel.elf and start kernel at first instruction of __start() go 0x1001000 If you want to use raw binary, do the following: tftp 0x1000000 go 0x1000000 > > With the presumption that the init code uses PC relative jumps/calls until > the MMU is setup enough to resolve to the correct addresses of C0001000, > which is what NM reports as the entry point for __start. > > The result is 'nothing' on the serial console output... > > The thought there is that the kernel is not using my p1020wlan FDT file, > but I did use the following: > > options FDT_DTB_STATIC > Which I presume would statically link the FDT file into the kernel. > that correct > > The Linux that I use can use an external FDT 'file' which is save in Flash > memory. However, that requires the u-boot boot command to pass the FDT > location. > > Anyway, any clarifying notes would be helpful. > > Thanks, > John Clark. > > Please attach your fatal trap error message, so I could help you more :) -- regards aleek