2008-01-17 18:04:37     burning the uClinux image onto FLASH

Document created by Aaronwu Employee on Aug 5, 2013
Version 1Show Document
  • View in full screen mode

2008-01-17 18:04:37     burning the uClinux image onto FLASH

Bill Fassler (UNITED STATES)

Message: 49762    I'm embarrassed to say that I don't know how to do this and couldn't find the page in the wiki either.  All my development on the STAMP and EZKITs were done by tftp because my images were way bigger than the FLASH.

 

Now I have 64Mb of FLASH and want to burn my image there. Can someone point me to the appropriate page, it wasn't easily located in the index.

 

Regards,

Bill

QuoteReplyEditDelete

 

 

2008-01-17 18:25:43     Re: burning the uClinux image onto FLASH

Graham Davies (UNITED STATES)

Message: 49763    You're using u-boot TFTP to get the image to RAM and running from there with 'bootm'?

 

Really, all you have to do is copy the image from RAM to Flash using the u-boot 'cp.b' command and then 'bootm' specifiying the address at which you started the copy.

 

For example, my image lives from 0x20040000 to 0x2037FFFF in Flash.

So, I get rid of the old image:

u-boot> erase 0x20040000 0x2037FFFF

Bring the new image into RAM:

u-boot> tftp 0x00800000 uImage

Copy it from there to Flash:

u-boot> cp.b 0x00800000 0x20040000 $(filesize)

Make darned sure:

u-boot> cmp.b 0x00800000 0x20040000 $(filesize)

And off I go:

u-boot> bootm 0x20040000

 

My environment variable 'bootcmd' is set to 'bootm 0x20040000' so that the Flash image starts unless I interrupt the boot.

 

If you have problems with protected sectors, use the 'flinfo' command to see how u-boot thinks your Flash is laid out.  The 'protect' command will let you temporarily alter protection, but I had to modify u-boot to get things set up the right way by default.

 

Graham.

QuoteReplyEditDelete

 

 

2008-01-17 19:42:22     Re: burning the uClinux image onto FLASH

Mike Frysinger (UNITED STATES)

Message: 49764    Graham's directions are correct, but it should be in the docs wiki already ...

 

we ask ourselves the question "how do i burn an image into parallel flash while running in u-boot" ...

 

f we start from the front page:

http://docs.blackfin.uclinux.org/

 

we follow the topic link for Bootloaders (or U-Boot) and get to:

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot

 

then we see the link about "Parallel NOR Flash" and get to:

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:parallel-flash

 

and there we see all the information about reading/erasing/writing parallel flash

 

where did you get hung up ?

QuoteReplyEditDelete

 

 

2008-01-18 11:13:23     Re: burning the uClinux image onto FLASH

Bill Fassler (UNITED STATES)

Message: 49806    Mike - Perhaps I was simply a little burned out and tired because I just used the procedure Graham described to get u-boot onto FLASH and obviously should have realized it would work to get the uClinux kernel onto FLASH as well.

 

But to answer your question, I looked in your (new) extention on the left hand side of the main page and went down to "uClinux on Blackfin" and then to the sub-category "downloading the kernel to the target".  Intuitively I thought there should be a section here that would explain how to "burn the kernel into FLASH".  When I couldn't find what I was looking for I then tried the index and looked at all sections/pages that said 'uClinux', 'linux', and/or 'kernel' and looked at them all trying to find anything about FLASHING your board with the kernel.

 

I suppose it might be helpful to put a cross-reference link to the page you pointed out into the page I looked at, I.E.  "downloading the kernel to the target".

 

But in all honestly, I should have already known this. I've done it before.

 

Bill

Attachments

    Outcomes