BPI-tools
[bpi-tools]: v1.0.3: bpi-tools bpi-get cmd support update tools & download images
bpi-tools can install to X86 ubuntu and Banana Pi:
on x86 pc:
for ubuntu 14.04 (x86):
dpkg --add-architecture armhf
or for ubuntu 12.04 (x86):
echo "foreign-architecture armhf" >> /etc/dpkg/dpkg.cfg.d/multiarch
dpkg -i bananapi-bpi-tools*.deb
if you don't have pv cmd: apt-get install pv (for bpi-copy use)
download bpi-tools & install:
on ubuntu / raspbian / debian :
download file: bananapi-bpi-tools_1.0.3_armhf.deb
github:
google drive:
MD5: 0408a434003651001f0131e61cadc2fd
# sudo dpkg -i bananapi-bpi-tools_1.0.3_armhf.deb
on other system :
download file: bpi-tools.tgz
MD5: 82e35dba52bc3edb48e96c8a544ac216
# sudo tar xvf bpi-tools.tgz -C /
HOW TO USE:
1
[email protected]:~# bpi-tools
2
bpi-tools v1.0.6
3
usage: bpi-tools
4
bpi-tools FILE
5
bpi-tools --all | --update | --download | --version
6
7
8
bpi files:
9
bpi-tools v1.0.6
10
bpi-bootsel v1.0.4
11
bpi-copy v1.0.10a
12
bpi-get v1.0.3
13
[email protected]:~# bpi-tools --update
14
bpi-tools v1.0.6
15
usage: bpi-tools
16
bpi-tools FILE
17
bpi-tools --all | --update | --download | --version
18
19
BPIFILE=/root/.bpi-tools.lst
20
Wait for download index file ...
21
OK!!\n
22
23
bpi files:
24
bpi-tools v1.0.6
25
bpi-bootsel v1.0.4
26
bpi-copy v1.0.10a
27
bpi-get v1.0.3
28
[email protected]:~# bpi-tools --version
29
30
bpi files:
31
/usr/bin/bpi-tools v1.0.6
32
/usr/bin/bpi-bootsel v1.0.4
33
/usr/bin/bpi-copy v1.0.10a
34
/usr/bin/bpi-get v1.0.3
35
[email protected]:~# bpi-tools --download
36
37
download bpi files:
38
bpi-tools
39
bpi-tools: OK
40
bpi-tools: v1.0.6
41
bpi-bootsel
42
bpi-bootsel: OK
43
bpi-bootsel: v1.0.4
44
bpi-copy
45
bpi-copy: OK
46
bpi-copy: v1.0.10a
47
bpi-get
48
bpi-get: OK
49
bpi-get: v1.0.3
51
total 20
52
-rwxr-xr-x 1 root root 1493 5月 6 10:06 bpi-bootsel
53
-rwxr-xr-x 1 root root 6170 5月 6 10:06 bpi-copy
54
-rwxr-xr-x 1 root root 1391 5月 6 10:06 bpi-get
55
-rwxr-xr-x 1 root root 2898 5月 6 10:06 bpi-tools
56
57
bpi-get v1.0.3
58
usage: bpi-get
59
bpi-get FILE
60
61
BPIFILE=/root/.bpi-files.lst
Copied!
Wait for download index file ...
bpi files: 2016-05-05-u1510_gpu_vpu_camera_bt_bpi-m2p_beta.img.zip 2016-05-05-debian-8-jessie-lite-bpi-m2p_beta-sd-emmc.img.zip 2016-04-27-debian-8-jessie-mate_gpu_mpv_1080p-bpi-m3_beta-sd-emmc.img.zip 2016-04-25-ubuntu-mate-16.04_Xenial_gpu_mpv_1080p_bt-bpi-m3_beta-sd-emmc.img.zip u1510_gpu_vpu_camera_bpi-m2p-20160413_preview.img.zip 2016-04-11-Armbian_5.07_Bananapim2plus_Debian_jessie_3.4.111_desktop_preview.img.zip 2016-04-08-raspbian-jessie-bpi-m2.img.zip 2016-04-08-raspbian-jessie-bpi-m2p.img.zip 2016-04-08-raspbian-jessie-bpi-m3.img.zip
1
[email protected]:~# bpi-get 2016-05-05-debian-8-jessie-lite-bpi-m2p_beta-sd-emmc.img.zip
2
INFO: Try to get 2016-05-05-debian-8-jessie-lite-bpi-m2p_beta-sd-emmc.img.zip ...
3
BPIFILE=/root/.bpi-files.lst
4
IMGFILE=2016-05-05-debian-8-jessie-lite-bpi-m2p_beta-sd-emmc.img.zip
5
MD5TMP=/tmp/.md5.tmp.8322
6
% Total % Received % Xferd Average Speed Time Time Time Current
7
Dload Upload Total Spent Left Speed
8
100 280 0 280 0 0 430 0 --:--:-- --:--:-- --:--:-- 430
9
0 0 0 671M 0 0 3317k 0 --:--:-- 0:03:27 --:--:-- 3533k
10
2016-05-05-debian-8-jessie-lite-bpi-m2p_beta-sd-emmc.img.zip: OK
11
[email protected]:~# bpi-copy .
12
SRC=.
13
DST=
14
COPYMODE=usage
15
default
16
bpi-copy v1.0.10a
17
usage: bpi-copy
18
bpi-copy IMGFILE
19
bpi-copy IMGDIR
20
bpi-copy IMGFILE DEVICE
21
bpi-copy DEVICE IMGFILE
22
23
bpi images: (*.img.zip)
24
./2016-05-05-debian-8-jessie-lite-bpi-m2p_beta-sd-emmc.img.zip
25
bpi images: (*.img)
26
bpi images: (*.img.gz)
27
/usr/lib/u-boot/bananapi/bpi-m2/BPI_M2_720P.img.gz
28
/usr/lib/u-boot/bananapi/bpi-m2p/BPI_M2P_720P.img.gz
29
/usr/lib/u-boot/bananapi/bpi-m3/BPI_M3_720P.img.gz
30
/usr/lib/u-boot/bananapi/u-boot-2016.05-rc1/u-boot-2016.05-rc1-bpi-m1.img.gz
31
/usr/lib/u-boot/bananapi/u-boot-2016.05-rc1/u-boot-2016.05-rc1-bpi-m1p.img.gz
32
/usr/lib/u-boot/bananapi/u-boot-2016.05-rc1/u-boot-2016.05-rc1-bpi-m2.img.gz
33
/usr/lib/u-boot/bananapi/u-boot-2016.05-rc1/u-boot-2016.05-rc1-bpi-m2p.img.gz
34
/usr/lib/u-boot/bananapi/u-boot-2016.05-rc1/u-boot-2016.05-rc1-bpi-m3.img.gz
35
/usr/lib/u-boot/bananapi/u-boot-2016.05-rc1/u-boot-2016.05-rc1-bpi-r1.img.gz
36
xz images: (*.xz)
37
zip images: (*.zip)
38
./2016-05-05-debian-8-jessie-lite-bpi-m2p_beta-sd-emmc.img.zip
39
raw images: (*.raw)
40
41
Disks: (lsblk | grep disk)
42
sda 8:0 0 931.5G 0 disk
43
sdb 8:16 0 2.7T 0 disk
44
sdc 8:32 1 14.9G 0 disk
45
46
Disks: (fdisk -l | grep Disk | grep bytes)
47
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
48
Disk /dev/sdb: 3000.6 GB, 3000558944256 bytes
49
Disk /dev/sdc: 15.9 GB, 15931539456 bytes
50
[email protected]:~# bpi-copy ./2016-05-05-debian-8-jessie-lite-bpi-m2p_beta-sd-emmc.img.zip /dev/sdc
51
SRC=./2016-05-05-debian-8-jessie-lite-bpi-m2p_beta-sd-emmc.img.zip
52
DST=/dev/sdc
53
COPYMODE=imagetodisk
54
imagetodisk
55
bpi-copy v1.0.10a
56
usage: bpi-copy
57
bpi-copy IMGFILE
58
bpi-copy IMGDIR
59
bpi-copy IMGFILE DEVICE
60
bpi-copy DEVICE IMGFILE
61
62
Warning: Try to write ./2016-05-05-debian-8-jessie-lite-bpi-m2p_beta-sd-emmc.img.zip to BOOTDISK /dev/sdc
63
==============================================================
64
五 5月 6 10:21:13 CST 2016
65
*** start COPY (blue led on ) .....
66
umount device: /dev/sdc
67
umount /dev/sdc2
68
umount /dev/sdc1
69
==============================================================
70
IMGFILE=./2016-05-05-debian-8-jessie-lite-bpi-m2p_beta-sd-emmc.img.zip
71
==============================================================
72
zip
73
1.91GB 0:01:59 [16.3MB/s] [ <=> ]
74
0+20666 records in
75
0+20666 records out
76
*** end COPY (blue led off) .....
77
五 5月 6 10:23:40 CST 2016
78
==============================================================
79
RUNTIME 2:27
80
OK!! You can remove the BOOTDISK /dev/sdc now!!
Copied!
if you want to use bpi-m2p image for bpi-m3, you can re-insert SD card:
1
[email protected]:~# bpi-bootsel
2
bpi-bootsel v1.0.4
3
usage: bpi-bootsel
4
bpi-bootsel IMGFILE
5
bpi-bootsel IMGFILE DEVICE
6
7
bpi images:
8
/usr/lib/u-boot/bananapi/u-boot-2016.05-rc1/u-boot-2016.05-rc1-bpi-m1.img.gz
9
/usr/lib/u-boot/bananapi/u-boot-2016.05-rc1/u-boot-2016.05-rc1-bpi-m2.img.gz
10
/usr/lib/u-boot/bananapi/u-boot-2016.05-rc1/u-boot-2016.05-rc1-bpi-m1p.img.gz
11
/usr/lib/u-boot/bananapi/u-boot-2016.05-rc1/u-boot-2016.05-rc1-bpi-m2p.img.gz
12
/usr/lib/u-boot/bananapi/u-boot-2016.05-rc1/u-boot-2016.05-rc1-bpi-r1.img.gz
13
/usr/lib/u-boot/bananapi/u-boot-2016.05-rc1/u-boot-2016.05-rc1-bpi-m3.img.gz
14
/usr/lib/u-boot/bananapi/bpi-m2/BPI_M2_720P.img.gz
15
/usr/lib/u-boot/bananapi/bpi-m2p/BPI_M2P_720P.img.gz
16
/usr/lib/u-boot/bananapi/bpi-m3/BPI_M3_720P.img.gz
17
18
Disks: (lsblk | grep disk)
19
sda 8:0 0 931.5G 0 disk
20
sdb 8:16 0 2.7T 0 disk
21
sdc 8:32 1 14.9G 0 disk
22
23
Disks: (fdisk -l | grep Disk | grep bytes)
24
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
25
Disk /dev/sdb: 3000.6 GB, 3000558944256 bytes
26
Disk /dev/sdc: 15.9 GB, 15931539456 bytes
27
[email protected]:~# bpi-bootsel /usr/lib/u-boot/bananapi/bpi-m3/BPI_M3_720P.img.gz /dev/sdc
28
Warning: Try to write /usr/lib/u-boot/bananapi/bpi-m3/BPI_M3_720P.img.gz to BOOTDISK /dev/sdc
29
umount device: /dev/sdc
30
umount /dev/sdc2
31
umount /dev/sdc1
32
OK!! You can remove the BOOTDISK /dev/sdc now!!
Copied!
Last modified 1yr ago
Copy link