From owner-freebsd-ppc@FreeBSD.ORG Fri Apr 5 10:06:16 2013 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C481D129 for ; Fri, 5 Apr 2013 10:06:16 +0000 (UTC) (envelope-from adutkowski@gmail.com) Received: from mail-oa0-f51.google.com (mail-oa0-f51.google.com [209.85.219.51]) by mx1.freebsd.org (Postfix) with ESMTP id 926C0CBB for ; Fri, 5 Apr 2013 10:06:16 +0000 (UTC) Received: by mail-oa0-f51.google.com with SMTP id g12so3837645oah.10 for ; Fri, 05 Apr 2013 03:06:10 -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=59jXaKsG6L/IHsOXj1X/TB6rT3d1ibFfX7lIC2fDhmw=; b=Q+9LR5JR6g80yE5jZJVIyxmEscC43q+3I4jfUytIPX6wIlqksi75N5Ft5Kg3J717KC 9FHlWTmLYf+QOC0PK000qswl6POTiGvOE6Ap1scRf8iejJYQjRdMJEpG/wliIie862Qn YV76cLTwrX4+PmLh/HSbnEap9vnGnZti4OPywlklKAvU+mtNVeVopLc2s1zaU3RjYRii 3/IkJZOhbz8iQJFoPL3x08jb341t4VbXx6SXp87Mqak/cF4nlkDXVULVGrIMXZOAMuXe ckoHUKkjhxQ4KgE6whyT/0lL1qdFOilnJCPWVSHoGmoy6U3cbcxK/loZ1/AO6fwfeXTs O3kw== MIME-Version: 1.0 X-Received: by 10.182.56.134 with SMTP id a6mr7586077obq.29.1365156370413; Fri, 05 Apr 2013 03:06:10 -0700 (PDT) Sender: adutkowski@gmail.com Received: by 10.76.95.194 with HTTP; Fri, 5 Apr 2013 03:06:10 -0700 (PDT) In-Reply-To: References: <9C09C6C4-EBF5-4CC2-9684-8B33932579BE@aim.com> <52A23090-2C0C-413C-81CA-17ED250616C8@aim.com> Date: Fri, 5 Apr 2013 12:06:10 +0200 X-Google-Sender-Auth: Q7CNg6R1hnr7U3Pa_n68JwP94_8 Message-ID: Subject: Re: FreeBSD booting freescale P1020wlan eval board, via u-boot? From: Aleksander To: John Clark , 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: Fri, 05 Apr 2013 10:06:16 -0000 and of course I forgot the patch:D http://pastebin.com/0TbxhPuv On Fri, Apr 5, 2013 at 8:35 AM, Aleksander wrote: > Hi! > > Try the patch attached to the message. It should fix the bug in > booke_init(). It also has p1010_printf() which is early printf that uses my > p1010 DUART registers. If you want to use it, check if cn_ptr and cn_lst > variables in p1010_putc have proper values. The main fixup is in lines > 375-396 of the original file (107 of patch). > Without this patch, my board (p1010rdb) hung without any message, so the > symptoms were similar to yours. > > > On Thu, Apr 4, 2013 at 9:56 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 >> >> I've been continuing to look into why things aren't working. >> >> I believe the diagnostic output was due to jumping into the 'wrong' >> places. >> >> When I objcopy out a binary image, load that, the use the u-boot 'go' >> command at 1000000, there is nothing that is output >> to the console. >> >> I've checked and believe a FDT file is statically linked into the code, >> and it seems to match up with the p1020rdb.dts, with a few >> differences due to the 'wlan' version. However, the serial ports are the >> same, as well as various memory and other devices. >> >> One thing that did occur to me was the default speed of the serial port >> as a console. My u-boot is setup for 115200, but I did try >> 9600 and 19200, just in case someone took the lowest speeds (these >> days...). But still no output. >> >> I did disassemble the kernel... verified that there's the some what >> expected startup code, which was setting up an initial translation table, >> then a call the 'booke_init'. >> >> You indicated a bug in 'head' for booke_init.c... what are the symptoms? >> And where to get a fixed version? >> >> If you have other ideas I'd appreciate them as well. >> >> Thanks, >> John Clark. >> >> >> > > > -- > regards > aleek > -- regards aleek