diff --git a/content/documentation/Ox64/Software/Flashing.adoc b/content/documentation/Ox64/Software/Flashing.adoc index a16e1a43..41485b6f 100644 --- a/content/documentation/Ox64/Software/Flashing.adoc +++ b/content/documentation/Ox64/Software/Flashing.adoc @@ -261,7 +261,7 @@ You have a choice of flashing software: === CLI packages installation -Install `bflb-iot-tool` using your preferred method of managing PIP packages. One option is to set up a Python virtual environment as follows: +Install `bflb-iot-tool` using your preferred method of managing PIP packages. One option is to set up a Python virtual environment as follows for Debian-based systems: [source,console] ---- @@ -271,7 +271,16 @@ $ . ~/ox64_venv/bin/activate $ pip install bflb-iot-tool # we are *not* using bflb-mcu-tool ---- -NOTE: Each time you open a new terminal window you will need to re-run `. ~/ox64_venv/bin/activate` to reactivate the virtual environment. +In case you're on a system with Arch Linux, slightly adapt the commands: + +[source,console] +---- +$ sudo pacman -S python-pipenv +$ pipenv install bflb-iot-tool # install CLI flash tool +$ pipenv shell # activate virtual enviroment +---- + +NOTE: Each time you open a new terminal window you will need to re-run `. ~/ox64_venv/bin/activate` on Debian-based or `pipenv shell` on Arch Linux systems to reactivate the virtual environment. === DevCube installation @@ -361,7 +370,6 @@ $ ./BLDevCube-ubuntu Select chip [BL808], press Finish, and configure BOTH the [MCU] and [IOT] tabs as follows. When you switch between tabs double check that they still match the settings below: - [cols="~,~"] |=== |Interface @@ -394,6 +402,24 @@ Then, switch to the [IOT] tab: * Click 'Create & Download' again and wait until it's done * Close DevCube +== Erasing the microSD card + +Make sure there are no signatures or partitions left, and overwrite the first sectors with zeroes. You can find the target device under `lsblk` command. + +[source,console] +---- +$ sudo wipefs /dev/[DEVICE] +$ sudo wipefs --all --force /dev/[DEVICE]* +$ sudo dd if=/dev/zero of=/dev/[DEVICE] status=progress bs=32768 count=1 +---- + +Optionally you can zeroes the whole device: + +[source,console] +---- +$ sudo dd if=/dev/zero of=/dev/[DEVICE] status=progress bs=32768 count=$(expr $(lsblk -bno SIZE /dev/[DEVICE] | head -1) \/ 32768) +---- + == Flashing the microSD card Insert the microSD card into your PC, locate its device under `lsblk` and write the image: