# bpi-copy command

How to use bpi-copy command (Burning images to EMMC , Copying data from SD-Card/EMMC to be Images)

```
usage: bpi-copy
       bpi-copy IMGFILE
       bpi-copy IMGDIR
       bpi-copy IMGFILE DEVICE
       bpi-copy DEVICE IMGFILE
```

![](https://3925975408-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2HWtRJQoosYe3-dUmx%2F-M2HWuG855qPFbpCRkE5%2F-M2HXIFg40anwoKPFIRM%2Fbpi-copy.jpg?generation=1584080180967702\&alt=media)

1.  Download BPI-Tools , please run the following command

    > wget [https://github.com/BPI-SINOVOIP/BPI-files/raw/master/debs/bananapi-bpi-tools\_1.0.3\_armhf.deb](https://github.com/BPI-SINOVOIP/BPI-files/raw/master/debs/bananapi-bpi-tools_1.0.3_armhf.deb)
2.  Set up development environment

    2-1: On X86-PC (Ubunut 12.04)

    > sudo echo "foreign-architecture armhf" >> /etc/dpkg/dpkg.cfg.d/multiarch

    2-2 :On X86-PC (Ubunut 14.04)

    > sudo dpkg --add-architecture armhf

    2-3 :**On BananaPI M3/M2Plus do nothing**
3.  Install BPI-Tools

    > sudo dpkg -i bananapi-bpi-tools\*.deb
4.  Creat a folder of BPI-Tools

    > mkdir BPI-Tools cd BPI-Tools
5.  Update BPI-Tools

    > sudo bpi-tools --upgrade
6.  Use bpi-copy commnad

    6-1: To burn into EMMC, please run the following command

    > sudo bpi-copy < images file>

    6-2 :Copy data from SD-Card/EMMC to be Images

    > sudo bpi-copy < device path> < xxxxx.img.zip>

    6-3 :To burn into certain device,please run the following command

    > sudo bpi-copy < xxxxx.img.zip> < device path>

Video Demo (To burn into EMMC)

[https://www.youtube.com/watch?v=Arn7HC2urt4](https://www.youtube.com/watch?v=Arn7HC2urt4)

Video Demo ( Copy data from SD-Card/EMMC to be Images)

[https://www.youtube.com/watch?v=H1LjORwzO3E](https://www.youtube.com/watch?v=H1LjORwzO3E)
