Remove hardcoded mtdblock number and simplify the code.

With this change, we depend on a boot script setting up /dev/mtd/hnvram as a
symlink to the right mtd block device, but now it'll work even if the hnvram
isn't always partition mtdblock1.

Also simplify the code: it was doing a bunch of unnecessary junk to write to
the flash, when it can just simply write to the flash.

Change-Id: Ie7bf0b6b9be5cdbe065ae9965bd0df8a3ade17df
1 file changed
tree: d1c0a064d008f4a37081ae455a60345bd38119f8
  1. libupgrade/
  2. makehdf