My client wants the ability to upload a new image, and write it into
boot NOR flash.  We have uBoot, but in many deployments, neither the
serial port nor Ethernet will be available, so we can't use uBoot to
do this.  We have the basic idea of uploading (over USB Gadget serial)
a new image, storing it into RAM, then writing over the old uClinux
image (yeah, the inherent danger with power loss is an acceptable
risk).  I think I (might) have the configuration options right, but
I'm not able to figure out how to do the flash write.  Here are what I
_think_ are the relevant options:

  MTD=y
  MTD_CFI=y
  MTD_PHYSMAP=y
  MTD_UCLINUX=y   (Not sure if this is relevant or not...)

I also have the memory map options set correctly.

Now I would think I could use flashw to do the dirty work, right?

But, I don't know how to set up the required <rom-device> argument for
flashw.  I suspect I need to define a "device node" in the /dev
directory, but this is where my knowledge ends.  I really don't
understand how that is done - can anyone help?

TIA
=Bob
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to