public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] EABI problem
@ 2007-07-05 17:11 Patrice Vilchez
  2007-07-06 13:29 ` Peter Pearse
  0 siblings, 1 reply; 16+ messages in thread
From: Patrice Vilchez @ 2007-07-05 17:11 UTC (permalink / raw)
  To: u-boot

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 <patrice.vilchez@rfo.atmel.com>

Remove 64 bits division into nand driver to compile with an EABI toolchain

Signed-off-by: Patrice Vilchez   <patrice.vilchez@rfo.atmel.com>
---

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
   

^ permalink raw reply	[flat|nested] 16+ messages in thread
* [U-Boot-Users] EABI Problem
@ 2007-11-01 16:02 Russ Ferriday
  2007-11-02 15:37 ` Johannes Stezenbach
  0 siblings, 1 reply; 16+ messages in thread
From: Russ Ferriday @ 2007-11-01 16:02 UTC (permalink / raw)
  To: u-boot

Hello all,

I'm new here.

In reference to this message:  http://sourceforge.net/mailarchive/ 
message.php?msg_name=468E52A8.2040604%40rfo.atmel.com

I've been down the same path as Philip and Patrice. Of course when I  
define 'CFG_NAND_LEGACY', U-Boot> mtdparts returns "support for NAND  
devices not present'.

Is there another flag that I need to define to get a newer version of  
NAND support working?

I'm building for KB9202B.

--r

Russ Ferriday - Topia Systems - Open Source content management with  
Plone and Zope
russf at topia.com - office: +44 2076 1777588 - mobile: +44 7789 338868  
- skype: ferriday
a member of
Zea Partners


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20071101/53619972/attachment.htm 

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2007-11-16 20:39 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-05 17:11 [U-Boot-Users] EABI problem Patrice Vilchez
2007-07-06 13:29 ` Peter Pearse
2007-07-06 13:45   ` Patrice Vilchez
2007-07-06 14:02     ` Philip Balister
2007-07-06 14:15       ` Patrice Vilchez
2007-07-06 14:22         ` Philip Balister
2007-07-06 14:33           ` Patrice Vilchez
  -- strict thread matches above, loose matches on Subject: below --
2007-11-01 16:02 [U-Boot-Users] EABI Problem Russ Ferriday
2007-11-02 15:37 ` Johannes Stezenbach
2007-11-05 16:18   ` Johannes Stezenbach
2007-11-05 19:26     ` Wolfgang Denk
2007-11-05 21:25       ` Johannes Stezenbach
2007-11-06  5:31         ` Stefan Roese
2007-11-06  7:33           ` Wolfgang Denk
2007-11-06 13:30             ` Philip Balister
2007-11-16 20:39         ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox