2008-06-23 05:20:56 Loading Image
kanal kannan (INDIA)
Message: 57717
Hi all,
Is there a way to load the image into BF561 ezkit without programming the flash memory (via the serial port using kermit /minicom).
I know that this may sound awkward but i need an idea or suggestion regarding this.
with regards
kanal kannan
QuoteReplyEditDelete
2008-06-23 08:04:16 Re: Loading Image
Robin Getz (UNITED STATES)
Message: 57722
Kanal:
https://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:serial_port_loading_files
QuoteReplyEditDelete
2008-06-23 08:24:16 Re: Loading Image
kanal kannan (INDIA)
Message: 57723
Hi robin,
Thanks for the reply, my problem is that i'm having a NAND flash. Without programming the flash how can i transfer my image from the host system to the target (ie.BF561 custom board). I've transferred the image using serial port in my BF561 ezkit lite board. But how can i achieve this in my custom made board.
My Nand Flash IC is MD8832 of M-systems (which falls under the DOC family, MTD technology).
Any help in this regard would be highly appreciated.
with regards
kanal
QuoteReplyEditDelete
2008-06-23 08:49:30 Re: Loading Image
Andrea Federico Grisotto (ITALY)
Message: 57726
Hi kanak,
I don't understand what is your problem and in particular what you want to do.
1) you write:Without programming the flash how can i transfer my image from the host system to the target ?
in uboot the image is loaded in memory (sdram) so you don't write to nand memory
2) you write: I've transferred the image using serial port in my BF561 ezkit lite board. But how can i achieve this in my custom made board.
I don't understand, but if you want to automate this procedure:
in uboot write "printenv" (without quotes) and study the environment variable.
Uboot execute the macro "bootcmd" , you can use this env. variable to do what you want.
give us more info to understand which info you need.
QuoteReplyEditDelete
2008-06-23 10:30:02 Re: Loading Image
Robin Getz (UNITED STATES)
Message: 57735
Kanal:
The board needs to boot somehow. Please read/understand:
https://docs.blackfin.uclinux.org/doku.php?id=bootloaders:bootrom
QuoteReplyEditDelete
2008-06-24 03:08:52 Re: Loading Image
kanal kannan (INDIA)
Message: 57751
Hi Robin,
Thanks for the reply I followed the link given by you. We have made a custom board with BF561 processor. I'm trying to connect the target via the serial port using kermit. But this is the response that we get:
[root@localhost uClinux-dist-2008R1-RC8]# kermit
C-Kermit 8.0.211, 10 Apr 2004, for Red Hat Linux 8.0
Copyright (C) 1985, 2004,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/work/uclinux_2008R1_RC8/2008R1-RC8_dist/uClinux-dist-2008R1-RC8/) C-Kermit>set line /dev/ttyS0
(/work/uclinux_2008R1_RC8/2008R1-RC8_dist/uClinux-dist-2008R1-RC8/) C-Kermit>set speed 57600
/dev/ttyS0, 57600 bps
(/work/uclinux_2008R1_RC8/2008R1-RC8_dist/uClinux-dist-2008R1-RC8/) C-Kermit>set carrier-watch off
(/work/uclinux_2008R1_RC8/2008R1-RC8_dist/uClinux-dist-2008R1-RC8/) C-Kermit>set handshake none
(/work/uclinux_2008R1_RC8/2008R1-RC8_dist/uClinux-dist-2008R1-RC8/) C-Kermit>set flow-control none
(/work/uclinux_2008R1_RC8/2008R1-RC8_dist/uClinux-dist-2008R1-RC8/) C-Kermit>set stop-bits 1
(/work/uclinux_2008R1_RC8/2008R1-RC8_dist/uClinux-dist-2008R1-RC8/) C-Kermit>robust
(/work/uclinux_2008R1_RC8/2008R1-RC8_dist/uClinux-dist-2008R1-RC8/) C-Kermit>connect
Connecting to /dev/ttyS0, speed 57600
Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
We tried the solution suggested by andrea but the response is the same. What we're trying to do is that we need to load the image via the serial port without programming the flash memory. And the uclinux docs suggest that after programming the flash memory we need to load the image and after which uclinux screen appears. This is happening fine if we use the BF561 ezkit lite. But in our custom board we're using a NAND flash MD8832 and the ICEBEAR JTAG adapter does not support programming the NAND flash MD8832. Hence, we need an idea of how to transfer the image to the target via the serial port without programming the flash memory. When connecting to the target (BF561 custom board) via the serial port we get the above ouput which i've posted. Once when we connect to the target then we can load the image but we are stuck at the linking stage itself wherein which the target is not connected with the host system via the serial port in kermit/minicom mode. We have even checked the boot mode switch.
This is the ouput that we get when trying to send the image file in the kermit mode
C-Kermit 8.0.211, 10 Apr 2004, localhost.localdomain [192.168.1.15]
Current Directory: /work/uclinux_2008R1_RC8/2008R1-RC8_dist/uClinux-dist-2008R1-RC8
Communication Device: /dev/ttyS0
Communication Speed: 57600
Parity: none
RTT/Timeout: 08 / 08
File Type:
File Size:
Bytes So Far:
...10...20...30...40...50...60...70...80...90..100
Estimated Time Left: (unknown)
Transfer Rate, CPS: 0
Window Slots: 1 of 1
Packet Type: %
Packet Count: 1
Packet Length: 28
Error Count: 8
Last Error: (resend)
Last Message:
X to cancel file, Z to cancel group, <CR> to resend last packet,
E to send Error packet, ^C to quit immediately, ^L to refresh screen.
uclinux dist: 2008R1-RC8
with regards
Kanal
QuoteReplyEditDelete
2008-06-24 03:46:35 Re: Loading Image
Andrea Federico Grisotto (ITALY)
Message: 57755
Hi Kanal,
1) are you trying to load u-boot? or uImage?
2) set binary file transfer mode ( set file type bin ) in kermit
take a look at the .kermrc file as example:
http://docs.blackfin.uclinux.org/doku.php?id=terminal_programs&s[]=kermrc#kermit
QuoteReplyEditDelete
2008-06-24 03:54:51 Re: Loading Image
Mike Frysinger (UNITED STATES)
Message: 57757
if you dont have u-boot already on the board, then there's no point in trying to load files over the serial port to it:
http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:loading
the BF561 cannot boot from NAND flash, so unless you have some other flash hooked up to your Blackfin, your board will never work
QuoteReplyEditDelete
2008-06-24 05:20:12 Re: Loading Image
kanal kannan (INDIA)
Message: 57803
Hi Andrea,
We're trying to load u-boot so that initially uclinux can boot, from which we can later load the image. If we send u-boot.bin file via the serial port. Will it boot properly.
with regards
Kanal
QuoteReplyEditDelete
2008-06-24 07:40:10 Re: Loading Image
Robin Getz (UNITED STATES)
Message: 57809
Kanal:
You are not understanding - as Mike said - the BF561 DOES NOT SUPPORT uart boot. You need to use a JTAG flash programmer to get the very first image into the board.
The ONLY types of flash that the BF561 can boot from are SPI flash, or NOR flash.
Nand flash WILL NOT WORK for booting.
On your board do you have SPI or NOR flash to boot from?
QuoteReplyEditDelete
2008-06-25 00:27:44 Re: Loading Image
kanal kannan (INDIA)
Message: 57824
Hi robin,
thanks for the reply. In our board we dont have SPI or Nor flash instead the NAND flash MD8832 used in our board has a boot sector. Hence i think this flash can be used for booting.
correct me if i am wrong. Also i am attaching the datasheet for your referrence. The JTAG flash programmer that we use for programming the flash memory is ICE BEAR jtag adapter. Guide me in this regards because we are totally stuck at this stage and if we want to change the flash memory we have to start from the root level and its a long process. Suggest any suitable remedy to solve this problem.
with regards,
kanal
MD8832-D1G-V18-X-P.pdf
QuoteReplyEditDelete
2008-06-25 07:59:39 Re: Loading Image
Mike Frysinger (UNITED STATES)
Message: 57856
"boot sector" does not mean what you think. the BF561 cannot boot from NAND. not going to happen. game over. end of story.
time for you to go redesign your board.
please read the BF561 datasheet for more information, or contact your local FAE for assistance.