2008-10-03 05:29:41 Not able to boot the BF537 (Stamp board).
Aravinda SH (INDIA)
Message: 63090
Hi All,
I have STAMP BF537 board. The problem is I am not able to boot the board. I need to load latest linux image onto the board and boot it. Presently I have the folloiwng settings on my board.
Bmode is set to 0, how do I load the latest linux image onto the memory.
After loading what are the steps I need to follow to boot the board automatically on POR.
bfin> printenv
bootargs=root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 console=ttyBF0,57600
bootcmd=run ramboot
baudrate=57600
loads_echo=1
ipaddr=192.168.0.15
serverip=192.168.0.2
rootpath=/romfs
gatewayip=192.168.0.1
netmask=255.255.255.0
hostname=bf537-stamp
loadaddr=0x1000000
ubootfile=u-boot.ldr
update=tftp $(loadaddr) $(ubootfile);protect off 0x20000000 0x2003FFFF;erase 0x20000000 0x2003FFFF;cp.b $(loadaddr) 0x20000000 $(filesize)
addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):eth0:off
ramargs=set bootargs root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 console=ttyBF0,57600
ramboot=tftp $(loadaddr) uImage;run ramargs;run addip;bootm
nfsargs=set bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath),tcp,nfsvers=3
nfsboot=tftp $(loadaddr) vmImage;run nfsargs;run addip;bootm
flashboot=bootm 0x20100000
ethaddr=8A:94:9D:21:23:10
stdin=serial
stdout=serial
stderr=serial
ethact=Blackfin EMAC
Environment size: 950/8188 bytes
I am unable to boot the board using boot/reset commands or even by reset (SW9) switch. What is wrong with the board?
Thaks
Aravinda
QuoteReplyEditDelete
2008-10-03 11:07:09 Re: Not able to boot the BF537 (Stamp board).
Mike Frysinger (UNITED STATES)
Message: 63093
reset is used to *reset* the system, not boot it. and that will only load u-boot, not linux.
if you dont know how to load files, then read the u-boot documentation on the topic:
http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:tftp_loading_files
http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:serial_port_loading_files
QuoteReplyEditDelete
2008-10-06 00:38:05 Re: Not able to boot the BF537 (Stamp board).
Aravinda SH (INDIA)
Message: 63144
Mike,
Thank you, I am able to load uImage/linux images using loadb command. After which I executed reboot/reset command. With this system enetred infinite loop and did not boot back.
FYI, I could able to do reboot using reset button or POR earlier. Board is in mode 0 of BMODE.
Thanks
Aravinda
QuoteReplyEditDelete
2008-10-06 08:06:07 Re: Not able to boot the BF537 (Stamp board).
Robin Getz (UNITED STATES)
Message: 63158
Aravinda:
You need to go back and read the documentation - pay attention to the difference between reset and bootm and boote.
https://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:uimage
-Robin
QuoteReplyEditDelete
2008-10-07 03:18:38 Re: Not able to boot the BF537 (Stamp board).
Aravinda SH (INDIA)
Message: 63198
Robin,
Thanks, I could understand the difference. I will explain here the problem I faced.
Initially when I bhought the board, I just powered up and connected to hyperterminal. Then I saw board booting automatically and displaying the linux image and root prompt. Here if the reset (SW9) button is pressed, image used to boot automatically.
Later when I wanted to upgrade into the latest image, for which I loaded (linux-bf537-stamp-2008R1.5-RC3) into memory at 0x01000000. To load this I entered bfin> prompt and gave loadb command. Which downloaded the image into 0x01000000. Image used to boot using boote command.
Later accidentally I executed "protect off all and erase all". So board stopped working, for which I changed the BMODE to 7 and loaded ldr file. So I booted the board from UART, then changed the mode to BMODE 0. Here when ever I press reset (SW9) button, board used to boot automatically and I get bfin> prompt. Even boot/reset command also used to work similar way
Now I am not sure what happened RESET (SW9) switch and reset/boot command does not boot the board.
I am not able to fix the issues with the documentation on web or documentations suggested in forum. Please help me to boot back the board autoamtially and if at I have to load the image which address I should load.
I want the borad to be booted automatically when I do reset/boot and by pressing SW9. Please help me with the steps as I do not know what caused the board to put in this state, I will provide more and specific details if required.
Thank,
Aravinda
QuoteReplyEditDelete
2008-10-07 03:24:51 Re: Not able to boot the BF537 (Stamp board).
Mike Frysinger (UNITED STATES)
Message: 63200
you did not read the documentation completely. please read this:
http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:loading#boot_via_the_uart
QuoteReplyEditDelete
2008-10-13 03:07:25 Re: Not able to boot the BF537 (Stamp board).
Aravinda SH (INDIA)
Message: 63516
Mike,
Thank you very much. Going through this document had helped me a lot. Sorry for bothering.
I loaded ldr using ldr viewer and then loaded "u-boot-bf537-stamp-bypass-2008R1.5.bin" in bypass mode at address 0x1000000.
Then I copied this bin file to location 0x20000000 using "cp.b 0x1000000 0x20000000 $(filesize)", which copied the boot image to the 0x20000000. Now my board works as I expected. Means reset, reboot, boot and SW9 works as expected.
But here again I am seeing a issue, when I press SW9 or execute reset,reboot,boot command frim bfin> prompt.
I am getting the following message, the board always tries to load the image using tftp which fails.
bfin> reset
U-Boot 1.1.6-svn1273 (ADI-2008R1.5) (Jul 21 2008 - 00:33:04)
CPU: ADSP bf537-0.2 (Detected Rev: 0.2)
Board: ADI BF537 stamp board
Support: http://blackfin.uclinux.org/
Clock: VCO: 500 MHz, Core: 500 MHz, System: 100 MHz
RAM: 64 MB
Flash: 4 MB
In: serial
Out: serial
Err: serial
Net: Blackfin EMAC
MAC: D6:DA:D3:EF:ED:DE
Hit any key to stop autoboot: 0
Using Blackfin EMAC device
TFTP from server 192.160.110.210; our IP address is 192.168.110.204; sending thr
ough gateway 192.168.0.1
Filename 'uImage'.
Load address: 0x1000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
Using Blackfin EMAC device
TFTP from server 192.160.110.210; our IP address is 192.168.110.204; sending thr
ough gateway 192.168.0.1
Filename 'uImage'.
Load address: 0x1000000
Loading: T T T
I have set tftp server on my pc which is 192.168.110.210, but tftp seems to be failing. Is there any other methods of booting the image.
I know one methond is loading uImage manually to address 0x1000000 using loadb command and boot using 'bootm' command.
But what I want is booting automatically when the reset button or reset command is given. This is my very highly needed requirement for my application.
Thank you very much
Aravinda SH
QuoteReplyEditDelete
2008-10-13 03:11:52 Re: Not able to boot the BF537 (Stamp board).
Mike Frysinger (UNITED STATES)
Message: 63517
please read the output you posted and see if you can spot the typo ... hint: it's the serverip
QuoteReplyEditDelete
2008-10-13 12:34:45 Re: Not able to boot the BF537 (Stamp board).
Robin Getz (UNITED STATES)
Message: 63566
Aravinda:
>Is there any other methods of booting the image.
Store the image in flash:
https://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:parallel-flash
and then boot it:
https://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:uimage#bootm
-Robin
QuoteReplyEditDelete
2008-10-14 05:33:55 Re: Not able to boot the BF537 (Stamp board).
Aravinda SH (INDIA)
Message: 63635
Thanks Robin and Mike,
Robin I had earlier looked into these locations and I am able to boot if I load the image using serial, i.e., using 'loadb' command. But to boot his everytime I need to come to bfin> prompt and type bootm/boote based what image is loaded.
But I do not want to do this, for this rerason I tried copying the image to location 0x2000000 (after u-boot.bin, which has taken 146KB starting from 0x20000000). Whan I executed the command cp.b 0x200023C30 0x1000000 0x0047d9a, I got the following message.
"Copy to Flash... Outside available Flash".
I am sure making some mistake here.
Mike I did not make what typo I did, I erased serverip and wrote it freshly. There was one with 'sserverip' which I deleted. Even after doing this I am not able to get it.
Please guide me to boot automatically.
Thanks
Aravinda SH
QuoteReplyEditDelete
2008-10-14 06:09:40 Re: Not able to boot the BF537 (Stamp board).
Mike Frysinger (UNITED STATES)
Message: 63638
the commands you quote dont make sense. address 0x2000000 is external memory, not flash. copying *from* flash to external memory would not result in a "copy to flash" error.
if you're doing development, then loading images into flash or over serial doesnt make any sense either. just configure your network properly and save those settings, and use the default autoboot code to load images over the network.
QuoteReplyEditDelete
2008-10-14 08:58:33 Re: Not able to boot the BF537 (Stamp board).
Aravinda SH (INDIA)
Message: 63649
Thanks Mike,
I am not using it for development purpose, but for training purpose. I need readily availabe built image, I do not have development tools. It will help me if I can boot the image loaded at 0x1000000 automatically also.
I have copied the u-boot.bin to 0x20000000 which helped me to this level. Now u-boot has to execute the application which I load at 0x1000000 using loadb command. At this point I am struggling.
The uImage I downloaded from blackfin web is 4.6 MB.
Once I give reset command, it always tries to boot using tftp command. The documents suggested by Robin helped in booting using bootm or boote command. What I am looking out is that u-boot should boot my aplication or image once the reset command is issued.
I am stuck at this point and sorry if my thread fails to communicate. I will provide more details if required.
Thanks
Aravinda
QuoteReplyEditDelete
2008-10-14 13:31:41 Re: Not able to boot the BF537 (Stamp board).
Robin Getz (UNITED STATES)
Message: 63664
Aravinda:
The uImages which are in the frs section are too large to be programmed into the flash - they are 4.6 Meg, and you only have 4Meg on the board.
You need to install the tools, and build up an image that only has the stuff that you want on the board.
-Robin
QuoteReplyEditDelete
2008-10-15 00:43:50 Re: Not able to boot the BF537 (Stamp board).
Aravinda SH (INDIA)
Message: 63675
Thanks Robin,
I am downloading linux kernel distribution. I hope I can build the image and load it to the address after the u-boot image. Which should execute the kernel.
I still have a question is it the u-boot which is executing tftp load always when reset or reboot command is issued? If so how can I change it?
Thanks
Aravinda
QuoteReplyEditDelete
2008-10-15 21:19:51 Re: Not able to boot the BF537 (Stamp board).
Mike Frysinger (UNITED STATES)
Message: 63732
please elaborate. i dont really understand what you're asking.
QuoteReplyEditDelete
2008-10-16 01:01:53 Re: Not able to boot the BF537 (Stamp board).
Aravinda SH (INDIA)
Message: 63749
Mike,
Sorry for the confusion. I have loaded the u-boot.bin at address 0x20000000. When I issue a reset command this always tries to boot usinf tftp protocol. Can I change this to use some other booting command?
Thanks
Aravinda
QuoteReplyEditDelete
2008-10-17 00:40:49 Re: Not able to boot the BF537 (Stamp board).
Mike Frysinger (UNITED STATES)
Message: 63831
u-boot executes whatever is in the "bootcmd" variable. set it to do whatever you want.
QuoteReplyEditDelete
2008-10-20 05:00:05 Re: Not able to boot the BF537 (Stamp board).
Aravinda SH (INDIA)
Message: 63935
Thanks mike,
I tried to automate the uboot command using the following commands
1. setenv tftpl "tftp 0x1000000 linux ; bootelf 0x1000000"
2. saveenv
3. run tftpl
4. setenv bootcmd run tftpl
But the problem is as soon as I execute command#1, image gets booted instead of string the environment variable. So this environment variable does not get stored. I must store tftl, but which is not happening.
Thanks
Aravinda
QuoteReplyEditDelete
2008-10-20 05:39:41 Re: Not able to boot the BF537 (Stamp board).
Mike Frysinger (UNITED STATES)
Message: 63940
are you actually quoting it properly ? otherwise you can try using the alternative syntax:
set far command one \; command two \; command three ......
QuoteReplyEditDelete
2008-10-21 04:13:03 Re: Not able to boot the BF537 (Stamp board).
Aravinda SH (INDIA)
Message: 63967
Thanks a lot Mike, this solution works fine.
QuoteReplyEditDelete
2009-05-22 14:14:19 Re: Not able to boot the BF537 (Stamp board).
Daniel Hartman (UNITED STATES)
Message: 74459
Hi all. The double quotes from the documentation on automating u-boot are a bit misleading:
http://docs.blackfin.uclinux.org/doku.php?id=downloading_to_the_target
The whole phrase should be enclosed in apstrophes ('). Or maybe this is a formatting issue with HTML and my browser.
QuoteReplyEditDelete
2009-05-22 15:26:04 Re: Not able to boot the BF537 (Stamp board).
Robin Getz (UNITED STATES)
Message: 74460
Dan - new issue - new thread.
I don't see any " (double quotes) on the page.
-Robin