From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrice Vilchez Date: Thu, 05 Jul 2007 19:11:44 +0200 Subject: [U-Boot-Users] EABI problem Message-ID: <468D2650.10603@rfo.atmel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, I am quite new on this mailing list. I have tried to build u-boot with the last EABI toolchain from codesourcery (arm-2007q1-10 version). It seems that in the file "driver/nand/nand_util.c" there is some 64 bits division which causes a crash during the link process. bye, Patrice. -----8< From: Patrice Vilchez Remove 64 bits division into nand driver to compile with an EABI toolchain Signed-off-by: Patrice Vilchez --- driver/nand/nand_util.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff -Nru u-boot-1.2.0.orig/drivers/nand/nand_util.c u-boot-1.2.0.new/drivers/nand/nand_util.c --- u-boot-1.2.0.orig/drivers/nand/nand_util.c 2007-01-07 00:13:11.000000000 +0100 +++ u-boot-1.2.0.new/drivers/nand/nand_util.c 2007-07-05 19:03:03.000000000 +0200 @@ -209,9 +209,9 @@ if (!opts->quiet) { int percent = (int) - ((unsigned long long) + ((unsigned long) (erase.addr+meminfo->erasesize-opts->offset) - * 100 / erase_length); + / erase_length) * 100; /* output progress message only at whole percent * steps to reduce the number of messages printed @@ -476,9 +476,9 @@ if (!opts->quiet) { int percent = (int) - ((unsigned long long) - (opts->length-imglen) * 100 - / opts->length); + ((unsigned long) + (opts->length-imglen) + / opts->length) * 100; /* output progress message only at whole percent * steps to reduce the number of messages printed * on (slow) serial consoles @@ -652,9 +652,9 @@ if (!opts->quiet) { int percent = (int) - ((unsigned long long) - (opts->length-imglen) * 100 - / opts->length); + ((unsigned long) + (opts->length-imglen) + / opts->length) * 100; /* output progress message only at whole percent * steps to reduce the number of messages printed * on (slow) serial consoles