From owner-freebsd-arm@FreeBSD.ORG Fri Mar 1 01:24:16 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6E899289 for ; Fri, 1 Mar 2013 01:24:16 +0000 (UTC) (envelope-from ghw@7axu.com) Received: from mail-we0-x234.google.com (mail-we0-x234.google.com [IPv6:2a00:1450:400c:c03::234]) by mx1.freebsd.org (Postfix) with ESMTP id 0CEF5DCF for ; Fri, 1 Mar 2013 01:24:15 +0000 (UTC) Received: by mail-we0-f180.google.com with SMTP id k14so2013022wer.25 for ; Thu, 28 Feb 2013 17:24:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-originating-ip:in-reply-to:references :from:date:message-id:subject:to:cc:content-type:x-gm-message-state; bh=Hw0nqFnQyqjOKvfx+VFE79u48p18yhOFCgNeMaiecqU=; b=ouKLs4mkQYlsptjKVWyk0Q++OR0zyZOEfJuk+osobVQc/QLrBKKIGapHoVvJAA9Hl0 ikM3gEhwRaVyJODVgYagea5BE3NTq1i94ZZVdq9PK+pjc3pDWzI8s6KqdXgNGwh3Ofnv abhvRdUSZft48Zpr4qV1kfHkeMpNZDvPlcwqiSsew+fPrPtvwUcbs0y3MvUhuxZmY3xV hN8ZqE7KgJZoQGXAh1bOzTiKE2WyWrRDiUgGy95fOvNDgPFSzFNDawGMRtKACL5WHg+m 0SPLyoh+II8p3RpLLtizqvypdaAyxTNy0g8k8dxTZsd6RQ5WutGQYMCyPFjNNkd+I7sN ue/A== X-Received: by 10.180.14.233 with SMTP id s9mr935557wic.25.1362101053592; Thu, 28 Feb 2013 17:24:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.0.67 with HTTP; Thu, 28 Feb 2013 17:23:33 -0800 (PST) X-Originating-IP: [74.63.212.29] In-Reply-To: <512FFD42.4090304@bluezbox.com> References: <512FD685.8070009@bluezbox.com> <512FF7B9.4070700@bluezbox.com> <512FFD42.4090304@bluezbox.com> From: XiaoQI Ge Date: Fri, 1 Mar 2013 09:23:33 +0800 Message-ID: Subject: Re: I u-boot fails to compile To: Oleksandr Tymoshenko X-Gm-Message-State: ALoCoQlc2AkRJh30vr6b9I/FXv1sXw7tBkqp0JirG50agsqR8zszl6k8NnUjmWdZswE4m+Zwu2nA Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Mar 2013 01:24:16 -0000 sunxi-spl.bin u-boot.bin from http://people.freebsd.org/ ~ gonzo / arm / hackberry / Can not start from my own compiled u-boot 1, I is the kernel of the SD card fatload mmc 0 0x40200000 kernel go 0x40200000 So start (SD Carry only the kernel to a file) 2, outside a USB storage disk Inside it (da0s2, ufs, freebsd_base) === dmesg === https://www.7axu.com/dmesg.log.txt === Welcome to Ge, XiaoQI's Homepage! Gtalk/E-Mail :ghw@7axu.com 2013/3/1 Oleksandr Tymoshenko > On 2/28/2013 4:46 PM, XiaoQI Ge wrote: > >> === >> Command: >> sh >> gmake cubieboard SED=sed CROSS_COMPILE=arm-freebsd- >> === >> serial console echo >> >> Skip SD equipment >> Boot from NAND >> > > Looks like problem with toolchain, I'll try to reproduce it and see how it > goes. > Last question: how did you connect SD card to FreeBSD host system. AFAIR > I had more success using USB reader for dd'ing u-boot than when I used > SD card slot (seen as an mmcsd device) on laptop. Haven't looked further > though - device was quirky in general so I just wrote the stuff off to its > quirkiness. > > FWIW, if you're not adding specific options to the build you might want to > use pre-built binaries for time being and modify boot.scr/uEnv.txt to > your needs: > > http://people.freebsd.org/~**gonzo/arm/hackberry/ > > > >> === >> Welcome to Ge, XiaoQI's Homepage! >> Gtalk/E-Mail :ghw@**7axu.com > ghw@7axu.com> >> >> >> >> 2013/3/1 Oleksandr Tymoshenko > gonzo@bluezbox.com>> >> >> >> On 2/28/2013 4:28 PM, XiaoQI Ge wrote: >> >> I compiled the file size of 22,016 Byte / occupied space of >> 24,576 Byte is rather http://people.freebsd.org/ ~~ ganbold / >> cubieboard / sunxi-spl.bin size and space are 20,480 Byte is >> not where Iwrong ah? >> >> These files produced the SD card can not start >> === >> dd if = / dev / zero of = a10.img bs = 1m count = 1 >> dd if = sunxi-spl.bin conv = notrunc of = a10.img bs = 1024 >> seek = 8 >> dd if = u-boot.bin conv = notrunc of = a10.img bs = 1024 seek = 32 >> dd if = a10.img of = $ {DEVNAME} bs = 1m >> === >> >> >> Which commands did you use to compile u-boot? >> What's printed on serial console when you're trying to boot device? >> >> >> >> >