From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by mx.groups.io with SMTP id smtpd.web10.2979.1584472061118128720 for ; Tue, 17 Mar 2020 12:07:41 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jJthQZNM; spf=pass (domain: gmail.com, ip: 209.85.221.52, mailfrom: max.oss.09@gmail.com) Received: by mail-wr1-f52.google.com with SMTP id f3so20199921wrw.7 for ; Tue, 17 Mar 2020 12:07:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:in-reply-to:references:mime-version :content-transfer-encoding; bh=CgtC11rasHBtByOGWdDqXgBXTewH2F2mM/Brf3z8QTg=; b=jJthQZNMURV3ZDFS25xT/kharY1FgZ733C8ujACGwI2Pq3SzHZ4m2DFuKfUJRyJllK ifEAUG7TAm6wFUbGqXsWfuna8DiqZLXE1riMfXmlJP3gpYXUQqIOweGdxa5vQjierb/Z jTvVPks2qJvztPBeZMbuiAGOEMp2tfb+b338yVhK5+XrNfrV0de6DMhBQmqCVI3IFKn/ 7kBtjDgrGMnpe0IUa/KjOCTyU85v9b9gGKjjabKwsbfL+CmQmsCVfcBcswHoJr76ffv6 y+qPveR706zcyd7qa32qvKQpsC8dSOrERinq0jlHzOIjOwc8Biqf/xxqoz1vhajAN72B 1oyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=CgtC11rasHBtByOGWdDqXgBXTewH2F2mM/Brf3z8QTg=; b=CDNVnCxWgkFYZqcIb2G+sh+I3ymOC+pbFwqn4Iz0MdLUdM2UGyoH8eS6amCXtx9MeB BdarZrQ35ABvQtXWU0CFa/1Caau4j/7zcjRJ+ocWF6oVYQDfDfzvjczBwJFQtLgwDvAr eul9pMxKDdyqZs1E2uJj3Yidj+N+MNySewX+p6oSpUgejuisjU1mzsasoi0j61k5Bky9 mE6l7ZCMFfGJG9G0ZVVikLv3Qtc9FFmN5WHDfT1L7GLek4ho6vBATVLKxiiYXlebhuHA 5EbiNk4ByTQkUkMyyHrWnDQhQ4d96FLyuyEKwyrtX7WSgNI4sqm7J74FqUYNilKc1tc6 kw/Q== X-Gm-Message-State: ANhLgQ06syTKfcQ/yulbw4KeOKIgRvrIDc/NEXFCePlPjBLofQLf8d2i uMPZe6yGg49Zr4VL8/8EkOI= X-Google-Smtp-Source: ADFU+vuKB2GC6Mj8wwTFyws6bnhFVGXd02eH/l2Q2zhJh9ITQFcnzNJWy8TxhvnOq1iY3i1fQ8zEWw== X-Received: by 2002:a5d:4cc6:: with SMTP id c6mr527018wrt.30.1584472059647; Tue, 17 Mar 2020 12:07:39 -0700 (PDT) Return-Path: Received: from Saturn.local.all ([81.221.215.196]) by smtp.gmail.com with ESMTPSA id c124sm465496wma.10.2020.03.17.12.07.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Mar 2020 12:07:38 -0700 (PDT) Message-ID: <1584472057.25358.3.camel@gmail.com> Subject: Re: [meta-freescale] data abort compiling u-boot with GCC != 6.4 From: "Max Krummenacher" To: Federico Giovanardi , meta-freescale@lists.yoctoproject.org Date: Tue, 17 Mar 2020 20:07:37 +0100 In-Reply-To: References: X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Hi Have a look here: https://www.yoctoproject.org/pipermail/yocto/2018-March/040486.html So either update your U-Boot to something newer, cherry-pick the mentioned commit from upstream U- Boot or pin the compiler to gcc 6.4. Max Am Dienstag, den 17.03.2020, 10:28 -0700 schrieb Federico Giovanardi: > I'm getting a data-abort exception every time i access the FEC ethernet device from u-boot; it > happens using tftp or just ping. > > > > > => ping 172.31.4.2 > > Using FEC device > > data abort > > pc : [<4ffd769c>] lr : [<4ffd8960>] > > reloc pc : [<1782d69c>] lr : [<1782e960>] > > sp : 4f5a7d00 ip : 0000006a fp : 4ffb427c > > r10: 00000000 r9 : 4f5a7eb8 r8 : 4ffee74c > > r7 : 00000001 r6 : 00000000 r5 : 0000002a r4 : 4ffec94e > > r3 : 14000045 r2 : 01041fac r1 : 02041fac r0 : 4ffec94e > > Flags: nZCv IRQs off FIQs off Mode SVC_32 > > Resetting CPU ... > > With the same source everything works fine just switching the compiler. > > I'm using u-boot 2016-07, almost not customized except for a pin used to keep the board up. > For now I've tested with: > > arm-poky-linux-gnueabi-gcc 9.2 -> FAIL > arm-poky-linux-gnueabi-gcc 7.3 -> FAIL > arm-poky-linux-gnueabi-gcc 6.4 -> OK > > all the toolchain are generated using yocto and are know to be working correctly. > U-boot is compiled with: > > > > > CROSS_COMPILE=/opt/poky-arag/2.2.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux- > > gnueabi/arm-poky-linux-gnueabi- > > > > make mrproper > > make ARCH=arm CROSS_COMPILE=$CROSS_COMPILE delta70_defconfig > > make ARCH=arm CROSS_COMPILE=$CROSS_COMPILE > > without environment variables affecting compilation, build host is arch linux just updated, I've > tried also in an ubuntu 16.04 chroot > but with the same result. > > Any clue? > > Regards. > Federico Giovanardi >