Fwd: [U-Boot-Users] u-boot 1.1.2 and atoi in exports not working

John Davis davisjf at gmail.com
Thu Nov 24 15:52:44 CET 2005

---------- Forwarded message ----------
From: John Davis <davisjf at gmail.com>
Date: Nov 24, 2005 9:37 AM
Subject: Re: [U-Boot-Users] u-boot 1.1.2 and atoi in exports not working
To: Wolfgang Denk <wd at denx.de>

Hello Wolfgang,

On 11/24/05, Wolfgang Denk <wd at denx.de> wrote:
> In message <6a7ac2300511240623t31e9e96bp9b48e224527e2d2 at mail.gmail.com> you wrote:
> >
> > I am trying to use atoi in my code.  I can not get the image to link
> > properly when i try to add it.  Here is my setup.
> What makes you think atoi() is available in U-Boot?

I see all these other routines using it.  I figured I could use it as well. ie.

common/hush.c:104:#include <stdlib.h>    /* getenv, atoi */
common/hush.c:606:      exit (atoi(child->argv[1]));
common/hush.c:803:              n=atoi(child->argv[1]);
common/hush.c:2667:     num=atoi(o->data);
disk/part_amiga.c:153:  limit = atoi(s);
disk/part_amiga.c:194:  limit = atoi(s);
tools/mpc86x_clk.c:205: xin  = atoi(argv[1]);
tools/mpc86x_clk.c:206: want_gclk2 = atoi(argv[2]);
tools/mpc86x_clk.c:208:         ppm = atoi(argv[3]);
tools/ncb.c:14:         port = atoi (argv[1]);
board/MAI/AmigaOneG3SE/enet.c:450:          unsigned long base = atoi(s);
board/MAI/AmigaOneG3SE/enet.c:510:          ret =
pci_write_config_byte(devno, PCI_LATENCY_TIMER, (unsigned ch
board/MAI/AmigaOneG3SE/usb_uhci.c:607:      temp = atoi(s);
board/MAI/AmigaOneG3SE/usb_uhci.c:618:      temp2 = atoi(s);
board/MAI/AmigaOneG3SE/video.c:81:      attr = atoi(s);
board/MAI/AmigaOneG3SE/video.c:87:      attr |= atoi(s)<<4;
board/MAI/AmigaOneG3SE/video.c:505:         maxdev = atoi(s) * 2;
board/MAI/bios_emulator/x86interface.c:56:int atoi(char *string)
board/MAI/bios_emulator/x86interface.c:490:         more_strap[3] = atoi(m);
board/MAI/menu/menu.c:37:    if (s) normal_attr = atoi(s);
board/MAI/menu/menu.c:40:    if (s) select_attr = atoi(s);
board/MAI/menu/menu.c:43:    if (s) disabled_attr = atoi(s);
board/xilinx/xilinx_iic/iic_adapter.c:146:atoi(uchar * string)
board/xilinx/xilinx_iic/iic_adapter.c:300:              sprintf(temp,
"%02x", atoi(s));


> Best regards,
> Wolfgang Denk
> --
> Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> I don't see any direct evidence ...  but, then, my crystal ball is in
> dire need of an ectoplasmic upgrade. :-)              -- Howard Smith

More information about the U-Boot mailing list