From owner-freebsd-ppc@FreeBSD.ORG Fri Apr 5 06:35:38 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 B9E0E7D for ; Fri, 5 Apr 2013 06:35:38 +0000 (UTC) (envelope-from adutkowski@gmail.com) Received: from mail-ob0-x22d.google.com (mail-ob0-x22d.google.com [IPv6:2607:f8b0:4003:c01::22d]) by mx1.freebsd.org (Postfix) with ESMTP id 884AE326 for ; Fri, 5 Apr 2013 06:35:38 +0000 (UTC) Received: by mail-ob0-f173.google.com with SMTP id wn14so2356229obc.4 for ; Thu, 04 Apr 2013 23:35:37 -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=fh3EURZfOU6fNPJaAeLLndPRwV43fXSFJ0okdJBrxSo=; b=mGLMeZ/B5xxjUh7I9msMgM9OzdFSVADMN/eIjhfgU4R3j5TaXJPTAru+6uIcRunXnY SHVRzoIzRIpaC+De4tXYW5VQKqmMfQXb5vqCW4d0GEJJM5XCa4ZyKabrd8ln8HKbn/dn kT/mcP8FV+Hw7eaKkIoluv6wjrG04EEMJrTYOHms6Pu+Gdx9vSLNqkmuJUPggHm9qqCs QoCUEhl6rXAGEcTBvB0DwcoEAs13Ru7Yk2DnGrRcOM5c83ht7yPtgMjOLVBW9M233ZLi Ke8ZxvFJPKZHvRc/bUGFiGwFfvSQ8gm1zxwt8tB1StZtSB+lF6Vr0AUiWZtU7Xd+vjSx S3ng== MIME-Version: 1.0 X-Received: by 10.182.56.134 with SMTP id a6mr7120143obq.29.1365143737261; Thu, 04 Apr 2013 23:35:37 -0700 (PDT) Sender: adutkowski@gmail.com Received: by 10.76.95.194 with HTTP; Thu, 4 Apr 2013 23:35:37 -0700 (PDT) In-Reply-To: <52A23090-2C0C-413C-81CA-17ED250616C8@aim.com> References: <9C09C6C4-EBF5-4CC2-9684-8B33932579BE@aim.com> <52A23090-2C0C-413C-81CA-17ED250616C8@aim.com> Date: Fri, 5 Apr 2013 08:35:37 +0200 X-Google-Sender-Auth: 31IzXMT86pYOZ5qdoCk-VvQyylk 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 06:35:38 -0000 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