> For the complete documentation index, see [llms.txt](https://bananapi.gitbook.io/bpi-m3/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bananapi.gitbook.io/bpi-m3/en/bpi-bootselcommond.md).

# bpi-bootsel commond

How to use bpi-bootsel command (Multi-use SD card supported)

**From now on, just download either M2 or M3, then you can switch to any of them as you wish!**

bpi-bootsel v1.0.5

```
usage: bpi-bootsel
           bpi-bootsel IMGFILE
           bpi-bootsel IMGFILE DEVICE
```

![](/files/-M2HXIF_nROJ1RlfrcFC)

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>
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-bootsel commnad

   6-1: M3 imgae is switchable to M2\_Plus

   > sudo bpi-bootsel /usr/lib/u-boot/bananapi/bpi-m2p/BPI\_M2P\_720P.img.gz

   6-2 : M2\_Plus imgae is switchable to M3imgae

   > sudo bpi-bootsel /usr/lib/u-boot/bananapi/bpi-m3/BPI\_M3\_720P.img.gz

Video Demo

<https://www.youtube.com/watch?v=HdBNcrOKngM&feature=youtu.be>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://bananapi.gitbook.io/bpi-m3/en/bpi-bootselcommond.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
