2009-02-24 10:38:40     Reliable Network Flash Utility???

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

2009-02-24 10:38:40     Reliable Network Flash Utility???

Matt Gilg (UNITED STATES)

Message: 69820   

 

Does uClinux have any reliable network-based flash update utilities?  I've used 'dd' in the past, but it seems to be very inconsistent.

 

Netflash seems to be broken, not sure what else my options are.

 

 

 

Any help is greatly appreciated.

 

- Matt

QuoteReplyEditDelete

 

 

2009-03-10 17:00:32     Re: Reliable Network Flash Utility???

Dominic On (CANADA)

Message: 70724   

 

I have the same problem.  Look like nobody know about the netflash.

 

I have TFTP server running at IP 192.168.200.200, and a file uImage in this server.

 

root:/> netflash -k -b -n -r /dev/mtd2 192.168.200.200 uImage

 

netflash: offset is greater than device size (0).

 

 

 

Looklike it can not find the server and/or filename.  If you type anything after "-r /dev/mtd2", you will have the same error above.

 

I tried to investigate this problem, and in file: uclinux-dist/user/netflash/netflash.c, when getting info about the mtd.

 

ioctl(rd, MEMGETINFO, &mtd_info).  the mtd_info.size is ZERO.

 

 

 

I'll post more when I'm done the investigation.

 

Dominic On

 

 

QuoteReplyEditDelete

 

 

2009-03-10 17:08:37     Re: Reliable Network Flash Utility???

Mike Frysinger (UNITED STATES)

Message: 70725   

 

netflash has a lot of random config options that arent respected in the build system and generally falls apart

 

just use the simple script i already posted to you

QuoteReplyEditDelete

 

 

2009-03-10 19:00:36     Re: Reliable Network Flash Utility???

Dominic On (CANADA)

Message: 70728   

 

Your script below is working too, but other user want to solve the problem why the netflash is not working.

 

ftpget -uUserId -pPassword 192.168.200.200 /tmp/uImage uImage

 

eraseall /dev/mtd2

 

cat /tmp/uImage > /dev/mtd2

 

 

 

I found the problem in file uclinux-dist/user/netflash/netflash.c that the config macro define CONFIG_MTD is not recognize, so either include the file that containing the macro #define CONFIG_MTD, or define at the top of this file will solve the problem.

 

 

 

Dominic On.

QuoteReplyEditDelete

 

 

2009-03-10 19:28:42     Re: Reliable Network Flash Utility???

Mike Frysinger (UNITED STATES)

Message: 70729   

 

which is what i said -- the netflash build system is broken atm due to the nested #ifdef ****

Attachments

    Outcomes