2008-11-28 03:59:08     netflash on uClinux-dist2008R1.5

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

2008-11-28 03:59:08     netflash on uClinux-dist2008R1.5

Patrick Hotz (GERMANY)

Message: 65944   

 

Hi,

 

i try to create a programm which is able to update the uClinux on my cm-bf537e modul.

 

I want to copy the uImage.ext2 into my SD-Card and afterwards run netflash to update my flash.

The problem is that netflash is not running correctly....

 

root:/> cat /proc/mtd

dev:    size   erasesize  name

mtd0: 00040000 00020000 "U-Boot"

mtd1: 003c0000 00020000 "uClinux"

mtd2: 00500000 00001000 "ROMfs"

 

root:/> netflash -k -r /dev/mtd1 /media/uimage.ext

netflash: offset is greater than device size (0)

root:/>

 

I also try mtdlock2 instead of mtd2 but there is the same problem.

 

When i try to use netflash without -r there is another problem.

 

root:/> netflash -k /media/uimage.ext

netflash: open(/dev/flash/image) failed: No such file or directory

root:/>

 

Is there anyone who can give me an example how i can update my uClinux-dist under uClinux?

 

thanks a lot,

Patrick

TranslateQuoteReplyEditDelete

 

 

2008-12-04 06:12:21     Re: netflash on uClinux-dist2008R1.5

Yi Li (CHINA)

Message: 66347   

 

Patrick,

 

I would think using "flashcp" in mtd-utils would be better? (But it looks the flashcp does not get built by default in our release). I will have a check.

 

-Yi

QuoteReplyEditDelete

 

 

2008-12-09 02:05:59     Re: netflash on uClinux-dist2008R1.5

Patrick Hotz (GERMANY)

Message: 66539   

 

Hi Yi,

 

is there meanwhile a resolution of my problem?

I think there is no way to get netflash running.....

 

Patrick

TranslateQuoteReplyEditDelete

 

 

2008-12-09 09:46:41     Re: netflash on uClinux-dist2008R1.5

Yi Li (CHINA)

Message: 66566   

 

Patrick,

 

I haven't tried to build "flashcp" yet, could you pleaes have a try on your side?

 

-Yi

QuoteReplyEditDelete

 

 

2008-12-09 11:19:11     Re: netflash on uClinux-dist2008R1.5

Patrick Hotz (GERMANY)

Message: 66574   

 

ok, but there is only one problem,

i can´t find the "flashcp" in "mtd utils" in my uClinux-distro.

 

Is there any trick to find it?

 

 

 

Kernel/Library/Defaults Selection

   -> Flash Tools

        -> MTD-utils

                (y) mtd-utils

                (y) erase

                (y) eraseall

                (n) ftl_check

                (n) ftl_format

                (n) mkfs.jffs

                (n) mkfs.jffs2

                (n) nftldump

                (n) nftl_format

                (n) nanddump

                (n) nandtest

                (n) nandwrite

                (n) doc_loadbios

                (n) doc_loadipl

 

Patrick

 

 

TranslateQuoteReplyEditDelete

 

 

2008-12-09 13:29:53     Re: netflash on uClinux-dist2008R1.5

Matt Gilg (UNITED STATES)

Message: 66576   

 

Hi Patrick, I'm having exactly the same problem with netflash.  I've been using the 'dd' command to get the job done. 

 

dd if=/image of=/dev/mtdblock3

 

You must use this on a block write device in order for it to work properly.

 

DD is NOT the best way to do this, and it has caused me many headaches due to lack of error checking/handling ability.

 

 

 

Mike? Robin? Can anybody shed some light on what might be going on with netflash?  I assume we must be overlooking something...

 

Thanks!

 

-Matt Gilg

QuoteReplyEditDelete

 

 

2008-12-09 13:32:37     Re: netflash on uClinux-dist2008R1.5

Matt Gilg (UNITED STATES)

Message: 66577   

 

Robin...Oops.   Thanks again.

QuoteReplyEditDelete

 

 

2009-02-24 10:35:41     Re: netflash on uClinux-dist2008R1.5

Matt Gilg (UNITED STATES)

Message: 69819   

 

Hi Patrick, I'm having exactly the same problem with netflash.  I've been using the 'dd' command to get the job done. 

 

dd if=/image of=/dev/mtdblock3

 

You must use this on a block write device in order for it to work properly.

 

DD is NOT the best way to do this, and it has caused me many headaches due to lack of error checking/handling ability.

 

Mike? Robin? Can anybody shed some light on what might be going on with netflash?  I assume we must be overlooking something...

 

Thanks!

 

-Matt Gilg

 

 

QuoteReplyEditDelete

 

 

2009-02-24 11:17:03     Re: netflash on uClinux-dist2008R1.5

Mike Frysinger (UNITED STATES)

Message: 69828   

 

dont post the same issue 3 times

Attachments

    Outcomes