From owner-freebsd-arm@freebsd.org Tue Aug 4 22:04:04 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8A6B59B3999 for ; Tue, 4 Aug 2015 22:04:04 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-ig0-x22f.google.com (mail-ig0-x22f.google.com [IPv6:2607:f8b0:4001:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BB166ED; Tue, 4 Aug 2015 22:04:04 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by igbpg9 with SMTP id pg9so102712893igb.0; Tue, 04 Aug 2015 15:04:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:content-transfer-encoding:message-id:date :subject:from:in-reply-to:references:to:cc; bh=84lcPMj1h/bm7IgiqDr6L/4OEnexEcjvxRhHLSBzK7k=; b=eG3dIoj0r2U7ctQFusmxM6QNVzVnyCeHpqmutJ4OJOTbTFDRpAWJbtr+HTwRP3Gfxn 8xFQv5SSyvSult53OV77qNHlZHQaKhfBi9qd5CFnjuV3/RIuEqPhbSMN/lqks38/YKPK OuhlLcK8C8hxiTYeKqwYLuyEpTyUJenUdgkQ8h/NqqpwVZZ6XLySJTkxzi97CZMhDE1z a1RzERCQqMbVwjcGGGeb0+jBkFc5N9Q+JzfPJh70Mi2n6RhvmK4EyGu66YXypUHyn7yv yBNVUpaz2aa63I2Egr0WOu5G1VkZXKn8zvRyIDicsLCCSnfjPejUuk1/jVX7mWFhrmZh +geg== X-Received: by 10.50.72.6 with SMTP id z6mr7182329igu.65.1438725843508; Tue, 04 Aug 2015 15:04:03 -0700 (PDT) Received: from [127.0.0.1] ([209.52.88.19]) by smtp.gmail.com with ESMTPSA id m134sm517851ioe.42.2015.08.04.15.04.01 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Aug 2015 15:04:02 -0700 (PDT) Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: BlackBerry Email (10.3.2.2339) Message-ID: <20150804220401.4886608.77426.1917@gmail.com> Date: Tue, 04 Aug 2015 15:04:01 -0700 Subject: Re: Hummingboard u-boot not loading? From: Russell Haley In-Reply-To: References: <20150801182519.4886608.58781.1809@gmail.com> To: Svatopluk Kraus Cc: =?utf-8?q?Mika=C3=ABl_Urankar?= , Oleksandr Tymoshenko , Ian Lepore , freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Aug 2015 22:04:04 -0000 I'll check my load and starting addresses when I get home. I have seen two = different numbers around.=A0 Russ Sent=A0from=A0my=A0BlackBerry=A010=A0smartphone=A0on=A0the=A0Koodo=A0networ= k. =A0 Original Message =A0 From: Svatopluk Kraus Sent: Tuesday, August 4, 2015 2:52 AM To: Russell Haley Cc: Mika=EBl Urankar; Oleksandr Tymoshenko; Ian Lepore; freebsd-arm Subject: Re: Hummingboard u-boot not loading? On Tue, Aug 4, 2015 at 6:57 AM, Russell Haley wrote: > Hello, > > Recap: I'm trying to get a Hummingboard with dual core pro SOM to boot > using only HDMI output (I don't have a FTDI cable yet) . I am running a > binary u-boot from Oleksandr. Successfullly built head yesterday. > > My SD Card looks like this: > > - 1Mb free space with uboot at 1k > - 50Mb Fat32 partition with ubldr > - 3.6Gb ufs partition > > I applied the patch for HDMI output: > https://lists.freebsd.org/pipermail/freebsd-arm/2015-July/011912.html > (Oleksandr via Mikael). I then ran buildkernel with the -DNOCLEAN option > (thanks Ian!). I then mistakenly did a installkernel which takes hours on > an SD card and overwrote everything so I couldn't tell if the files I > wanted were actually installed (i.e. imx6_hdmi.o). I can't find any of the > files I think I should have been added, but that could be my feeble > understanding of file searching. > > Anyway, I ran it and nothing changed. I get a u-boot auto config counting > down, I get the message *20647 bytes read in 26 ms (9.6MiB/s) *which is t= he > size of ubldr, but nothing fires after that. It could the output is > happening on a serial out, or it could be nothing is happening??? I have > toyed with the idea of adding something to loarder.conf, but the defaults > all seem sufficient, again, unless someone can suggest something? > Well, this just reminds me of something I dealt with recently. I'm running FreeBSD kernel without ubldr, so u-boot loads kernel and then jumps to kernel starting address. It turns out that kernel starting address, which was always stable, was changed suddently and the result was same like in your case. Thus, maybe it's worth a try to find out how ubldr is run from u-boot and which is its starting address. Svata > I have no further actions I can think of until I get an FDTI cable. All > suggestions welcome. > > Russ > > On Mon, Aug 3, 2015 at 12:11 AM, Russell Haley wro= te: > >> Just an FYI, >> >> I'm rebuilding the kernel after applying the IMX6 HDMI patch provided >> by Mika=EBl (but incidentally written by Oleksandr!). Will know more in >> the morning >> >> Russ >> >> On Sun, Aug 2, 2015 at 9:53 PM, Russell Haley >> wrote: >> > Well I have seen what I think is ubldr get loaded by u-boot. I see the >> > following message: >> > >> > 20647 bytes read in 26 ms (9.6MiB/s) >> > >> > And then nothing. I am hoping this mean ubldr successfully loaded. The >> > lack of the rest of the output seems to make me think, well, I don't >> > know what to think. Is the output going to the serial console I don't >> > currently have? Just because it read the file doesn't mean that >> > bootelf worked? I don't have anything in a loader.conf file yet so >> > that may also be the problem. >> > >> > Ian, thanks for chiming in. I want to keep going with the binary that >> > Gonzo gave me but I will look back at the pkgng image once I get a >> > full boot happening. >> > >> > As usual, all suggestions welcome. >> > >> > Thanks, >> > Russ >> > >> > On Sun, Aug 2, 2015 at 10:26 AM, Russell Haley >> wrote: >> >> Hi guys, >> >> >> >> No, I don't have a serial cable yet. I have ordered an FDTI cable and >> >> should have it this week. Oleksandr gave me a binary that is working >> >> right now, I will try out the new patch as soon as I have the FDTI >> >> cable and can get debug output. >> >> >> >> okay, on to the next problem... >> >> >> >> Russ >> >> >> >> On Sun, Aug 2, 2015 at 9:02 AM, Mika=EBl Urankar < >> mikael.urankar@gmail.com> wrote: >> >>> 2015-08-02 5:57 GMT+02:00 Russell Haley : >> >>>> Thanks Mikael, >> >>>> >> >>>> I was able to build using the patches you provided and the binary >> >>>> u-boot.imx is the exact same size as the one from pkgng. However, >> >>>> nothing happens when I boot it: >> >>> >> >>> I've updated my patch, it works on my cubox. >> >>> >> http://mikael.urankar.free.fr/FreeBSD/arm/patches/sysutils_u-boot-cubox-= hummingboard_gcc-5.2.patch >> >>> >> >>> The patches come from here: >> >>> >> https://github.com/OpenELEC/OpenELEC.tv/tree/master/packages/tools/u-boo= t/patches >> >>> >> http://u-boot.denx.narkive.com/XoUw8ZsY/patch-arm-switch-to-mno-unaligne= d-access-when-supported-by-the-compiler >> > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"