From owner-freebsd-arm@FreeBSD.ORG Wed Apr 30 13:26:51 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A6EC1128; Wed, 30 Apr 2014 13:26:51 +0000 (UTC) Received: from mail-wi0-x22f.google.com (mail-wi0-x22f.google.com [IPv6:2a00:1450:400c:c05::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 114DF11D8; Wed, 30 Apr 2014 13:26:50 +0000 (UTC) Received: by mail-wi0-f175.google.com with SMTP id cc10so9127564wib.8 for ; Wed, 30 Apr 2014 06:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=/6GjCGuXrFQkGKmh+FsasMKKV41nY2f5xDIokt/yR+4=; b=boKnjvX8Rj++8GdphD+2Z3rPL6ujgZF3XnXhNQa7GqYipd1GHgrQGlrcfIlqYMzc4e qU5DKLLSMh9cSWrigas45vgwJ8Wi4COX3hGCZgUaXoDP56nmcEkz8G/jPoZk8Gx8E4ae DAOxs7X9aqnpOQv/eBsNsIJzmZtZ2ZRQRWAgKFO/c9VDezV+b07z66A2Gqh9gMO5khXU ws5j5ujVwKeHYpYyBvcVUs2jmAaVUWbJOdVoDt3FYDKhbSKyec5kNwtfo3+BanoL+joK 3I1R9lIgML4uZEFpjaS9MQBZaft7yOFsQeocmvbhpfI7N1lTfBbMstNLbeMJwNv1SzuA KPng== X-Received: by 10.180.91.1 with SMTP id ca1mr3764620wib.32.1398864409347; Wed, 30 Apr 2014 06:26:49 -0700 (PDT) Received: from [192.168.113.40] (142.Red-83-56-26.staticIP.rima-tde.net. [83.56.26.142]) by mx.google.com with ESMTPSA id be3sm36202265wjc.5.2014.04.30.06.26.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 30 Apr 2014 06:26:48 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: BBB 1GHz patches for u-boot 2014-01 From: fabiodive In-Reply-To: Date: Wed, 30 Apr 2014 14:26:46 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <7249A68B-E3D4-4795-BD51-4DF149B4104A@gmail.com> <746D7AE2-54D1-4758-816F-4954F3F01A5E@gmail.com> <535C7E1B.1090605@hot.ee> <535D1576.6040005@gmail.com> To: Winston Smith X-Mailer: Apple Mail (2.1510) Cc: FreeBSD ARM , Xuebing Wang X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2014 13:26:51 -0000 I also had the same problem during crochet building, in the end I solved it changing the crochet script, I disabled an u-boot checking block and I changed the=20 source path where to install from the u-boot forcing the absolute path of the port, that was a dirty fix because I wanted first to see if the patch set works. thank you f. On Apr 30, 2014, at 3:34 , Winston Smith = wrote: > On Sun, Apr 27, 2014 at 10:34 AM, Xuebing Wang = wrote: >> 1) We have 2 packages that concerning u-boot: >>=20 >> 1a) Crocket >> 1b) /usr/ports/sysutils/u-boot-beaglebone-eabi >>=20 >> Please note: the patches for u-boot in the above 2 packages are = different. >>=20 >> In my humble opinion, I'd think the u-boot patches for the above 2 = packages >> are better to be identical. >>=20 >> 2) My patches to the latest u-boot are against above 1b) >> /usr/ports/sysutils/u-boot-beaglebone-eabi >=20 > Now that I have 10-STABLE working from eMMC, I decided to take a look > at the 1Ghz patches. >=20 > I started out with uboot_beaglebone_eabi_port, but although I was able > to get it to build (after removing the 0 length patch files), I > couldn't seem to get crotchet-freebsd to pick it up. It seems that > the `uboot_eabi_port` tools is missing; I'm using pkgng, so maybe > that's the problem. >=20 > I noticed that uboot_beaglebone_eabi_port with the 1Ghz patches builds > against u-boot-2014.01 so I downloaded u-boot-2014.01.tar.bz2, > unpacked it in the crotchet-freebsd directory and replaced the patches > in crotchet-freebsd/boards/BeagleBone/files with the 1Ghz ones and > tried a crotchet build. This failed to link with: >=20 > armv6-freebsd-ld: region .sram is full (u-boot-spl section .data) > armv6-freebsd-ld: region .sram is full (u-boot-spl section .data) > armv6-freebsd-ld: section .u_boot_list [00000000402f0400 -> > 00000000402f0477] overlaps section .text [00000000402f0400 -> > 000000004030657b] > armv6-freebsd-ld: u-boot-spl: section .text lma 0x402f0400 overlaps > previous sections > armv6-freebsd-ld: u-boot-spl: section .rodata lma 0x4030657c overlaps > previous sections > armv6-freebsd-ld: u-boot-spl: section .data lma 0x4030aec8 overlaps > previous sections >=20 >=20 > So no luck there. I did try also building Patrick Kelsey's fork of > u-boot which failed with very similar errors: >=20 > armv6-freebsd-ld: region .sram is full (u-boot-spl section .rodata) > armv6-freebsd-ld: region .sram is full (u-boot-spl section .rodata) > armv6-freebsd-ld: section .data [00000000402f0400 -> 00000000402f1141] > overlaps section .text [00000000402f0400 -> 0000000040307257] > armv6-freebsd-ld: u-boot-spl: section .text lma 0x402f0400 overlaps > previous sections > armv6-freebsd-ld: u-boot-spl: section .u_boot_list lma 0x402f1144 > overlaps previous sections >=20 >=20 > I did notice that the *original* patches for > uboot_beaglebone_eabi_port seem to remove api_net.c from the build, > perhaps this was an effort to slim down the binary to avoid this issue > (however, the 1Ghz patches nuke the patches that removed api_net.c and > it's callers). >=20 > Finally, I took a look at the patches to see if I could rework them > for u-boot-2014.04 (since it was recently released), but it seems that > there have been significant changes since 2013.04 so I need to learn > more about u-boot before going near that! >=20 > Thanks, >=20 > -W.