cmd: usbdown: support the usbdown from usb storage to mmc 23/87623/2
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 16 Aug 2016 07:17:06 +0000 (16:17 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 21 Sep 2016 09:38:12 +0000 (18:38 +0900)
commit0b0af4ac5bce2e013258fcc7928212c0a56e3d2a
treebcfbb3c36dd0fe2f9d712a1326c272328545dc50
parent198e942d90553173611c158fdf5da6b7168882e1
cmd: usbdown: support the usbdown from usb storage to mmc

This command is to support the download mode from usb storage to mmc
block device. XU4 didn't support the thor download, so this solution
might be replaced to thor download.

* How to use this command
1. Assume that  Block number of eMMC block device is "0"
2. If you want to flash the rootfs.img,
$update 0:0 mmc rootfs.img
- 0:0 -> usb block 0 devices and partitioin 0
  if you just enter "0" instead of "0:0", that check the
  partition 1 by default.
- mmc -> interface to flash the image
- rootfs.img -> filename to flash (directory is "/" by default.)
  If you want to use the directory, can use likes "/tizen/rootfs.img".
  (There is rootfs.img under "tizen" directory.)
3. Use "update all" command
$usbdown all
- directory is "/updateTizen/ by default.
*Recommendation
- Use "usbdown all"

Change-Id: I267c9b871741e9e1f6aef29965f1f846e19864f1
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
cmd/Makefile
cmd/usbdown.c [new file with mode: 0644]