# BPI-M3 fix rootmydevice issue for Security Alert

BPI-M3: fix rootmydevice issue

![](/files/-M2HXHIcmXEi_qGwm2mh)

STEP 1. download update file & install STEP 2. update boot files

\=======================STEP 1:==========================

on ubuntu / raspbian / debian :

download file: linux-bananapi-bpi-m3-kernel3\_1.2.9\_armhf.deb

github: <https://github.com/BPI-SINOVOIP/BPI-files/raw/master/debs/linux-bananapi-bpi-m3-kernel3_1.2.9_armhf.deb>

google drive: <https://drive.google.com/file/d/0B_YnvHgh2rwjdHJ2T3d6b0xja0k/view?usp=sharing>

MD5: aeb90ff97a536c2c31fccfedd6d1c164

`# sudo dpkg -i linux-bananapi-bpi-m3-kernel3_1.2.9_armhf.deb`

on other system :

download file: 3.4.39-BPI-M3-Kernel.tgz

google drive: <https://drive.google.com/file/d/0B_YnvHgh2rwjMU01LTRyRXBpUHM/view?usp=sharing>

MD5: aef73f35266e78957066dd5be2bab3b2

`# sudo tar xvf 3.4.39-BPI-M3-Kernel.tgz -C /`

\=======================STEP 2:==========================

```
# sudo su
# ls -l /usr/lib/u-boot/bananapi/bpi-m3/linux/
total 5908
-rwxr-xr-x 1 root root   55408  4月 27 06:11 script.bin
-rwxr-xr-x 1 root root   55408  4月 30 05:01 script.bin.emmc
-rwxr-xr-x 1 root root   55408  2月 23 06:27 script.bin.otg
-rwxr-xr-x 1 root root   74463  4月 27 04:07 sys_config.fex
-rwxr-xr-x 1 root root   74529  4月 30 04:55 sys_config.fex.emmc
-rwxr-xr-x 1 root root    2254  5月  4 07:49 uEnv.txt
-rw-r--r-- 1 root root 5717352  5月  3 21:47 uImage

# mount /dev/mmcblk0p1 /boot
# cp -a /usr/lib/u-boot/bananapi/bpi-m3/linux/* /boot/bananapi/bpi-m3/linux
# bpi-bootsel /usr/lib/u-boot/bananapi/bpi-m3/BPI_M3_720P.img.gz
# reboot
```


---

# Agent Instructions: 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:

```
GET https://bananapi.gitbook.io/bpi-m3/zh/bpi-m3fixrootmydeviceissueforsecurityalert.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
