2008-06-12 08:32:47 booting of elf file
Pranay Upadhyay (INDIA)
Message: 57123
Hello all,
I am trying to boot the LED blinking code. The code is successfully running in the VDSP. I compile the the code through the bfin-elf-gcc, and getting the elf file. Then after loading the elf file I am giving the command bootelf 0x1000000 then I am getting following things..
bootelf 0x1000000
Loading .init @ 0xffa08000 (18 bytes)
Loading .text @ 0xffa08014 (4024 bytes)
Loading .fini @ 0xffa08fcc (14 bytes)
Loading .rodata @ 0xff804000 (8 bytes)
code=[0x23], stack frame=0x3f9ba50, bad PC=0x3fc0130
Unhandled IRQ or exceptions!
Please reset the board
U-Boot 1.1.6-svn737 (ADI-2007R1) (Apr 4 2007 - 12:04:56)
CPU: ADSP BF561
Board: ADI BF561 EZ-Kit Lite board
Support: http://blackfin.uclinux.org/
Clock: VCO: 600 MHz, Core: 600 MHz, System: 120 MHz
SDRAM: 64 MB
FLASH: 8 MB
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: ERROR: Can't find SMC91111 at address 2c010300
Hit any key to stop autoboot: 0
What should be problem .Is it possible that program will run for BF-561 .i ALREADY TRY for the BF 537 ,there LED blinked successfully.Please help.
-Regards
Pranay
QuoteReplyEditDelete
2008-06-12 09:00:30 Re: booting of elf file
Mike Frysinger (UNITED STATES)
Message: 57124
you should upgrade your board to 2008R1 ... the crash message from older versions was pretty incomplete
you should also post the ELF file that you're attempting to boot as an attachment
QuoteReplyEditDelete
2008-06-12 09:18:56 Re: booting of elf file
Pranay Upadhyay (INDIA)
Message: 57130
Hello sir,
I am attatching you the elf file for led blinking. When I load the 2008R1 then after sending the file using kermit , the file is not transferring.I was giving the command (loadb 0x1000000 57600) So again I load the 2007R1 then file is transferring successfuly.And giving this error.Thanks for reply.
-Thanks & Regards
Pranay
LEDButton
QuoteReplyEditDelete
2008-06-12 10:55:16 Re: booting of elf file
Mike Frysinger (UNITED STATES)
Message: 57148
your ELF is wrong. you're attempting to load code into 0xffa08000 which is not valid on the BF561.
QuoteReplyEditDelete
2008-06-12 22:57:32 Re: booting of elf file
Pranay Upadhyay (INDIA)
Message: 57196
Hello sir,
Thanks. Is it any problem in the compilation? In which documentation we got the correct method for compilation of application code and getting coerrect elf file. Please reply.
-Thanks & Regards
Pranay
QuoteReplyEditDelete
2008-06-12 23:33:23 Re: booting of elf file
Mike Frysinger (UNITED STATES)
Message: 57198
i dont know where you're getting this code or building in it the first place
you probably didnt specify the correct -mcpu when building/linking things
QuoteReplyEditDelete
2008-06-13 02:38:43 Re: booting of elf file
Pranay Upadhyay (INDIA)
Message: 57201
Hello sir,
I specify the currect -mcpu by following command
root@PranayU ledblink]# bfin-elf-gcc -mcpu=bf561 LEDButton.c -o LED
cc1: warning: bf561 support is incomplete yet.
/opt/uClinux/bfin-elf/lib/gcc/bfin-elf/4.1.1/../../../../bfin-elf/bin/ld.real: warning: cannot find entry symbol __start; defaulting to 00000014
Then after loading the elf file I am getting these thing...
## Total Size = 0x00001e41 = 7745 Bytes
## Start Addr = 0x01000000
ezkit> bootelf 0x1000000
Loading .text @ 0x00000014 (416 bytes)
Loading .fini @ 0x000001b4 (14 bytes)
Loading .eh_frame @ 0x000001c4 (4 bytes)
Loading .ctors @ 0x000011c8 (8 bytes)
Loading .dtors @ 0x000011d0 (8 bytes)
Loading .jcr @ 0x000011d8 (4 bytes)
Loading .data @ 0x000011dc (8 bytes)
Clearing .bss @ 0x000011e4 (28 bytes)
## Starting application at 0x00000014 ...
## Application terminated, rc = 0x1
My thinking is that it is not taking correctly stert address.Please reply
-Thanks & Regards
Pranay
QuoteReplyEditDelete
2008-06-13 04:07:37 Re: booting of elf file
Yi Li (CHINA)
Message: 57206
please use 2008r1-rc8 toolchain:http://blackfin.uclinux.org/gf/project/toolchain/frs
QuoteReplyEditDelete
2008-06-13 15:14:45 Re: booting of elf file
Mike Frysinger (UNITED STATES)
Message: 57260
you ignored the clearly critical warning about missing __start
you need to implement the __start symbol yourself, or upgrade to 2008R1
QuoteReplyEditDelete
2008-06-13 23:53:40 Re: booting of elf file
Pranay Upadhyay (INDIA)
Message: 57284
Hello sir,
Thanks for help.When I install the 2008 version toolchain then I able to successfully loading and running the toggle program on BF 561 EZ-KIT. Actually 2007 not support for bf 561,Is it right. I load the elf file to the sdram , bootelf 0x1000000 ,t he code is running successfully, and I also checked from Flash memory, both are successful.Now I am trying to same thing for different application code, for BF 561 EZ-kit.Thanks for support.
-Thanks & Regards
Pranay