Mistake on this page? Email us

Raspberry Pi 3 devices

  1. Check the current block storage devices on your PC:

    lsblk
    

    A list of devices displays. For example:

    NAME          MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sdb             8:16   0   1.8T  0 disk
    └─sdb1          8:17   0   1.8T  0 part /mnt/2tb-disk
    sr0            11:0    1  1024M  0 rom  
    sda             8:0    0 238.5G  0 disk
    ├─sda2          8:2    0   238G  0 part
    │ ├─vg00-swap 253:1    0   7.5G  0 lvm  [SWAP]
    │ └─vg00-root 253:0    0 230.6G  0 lvm  /
    └─sda1          8:1    0   476M  0 part
    

    You'll need to refer to this output in the following steps, so save it for reference.

  2. Connect a micro-SD card to your PC.

  3. On your PC, you can now see new storage devices:

    lsblk
    
    • The SD card device file in /dev, probably as /dev/sdX for some letter X (for example, /dev/sdd).
    • Device files for its partitions. /dev/sdXN for the same letter X and some numbers N (for example, /dev/sdd1 and /dev/sdd2).
    NAME          MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sdb             8:16   0   1.8T  0 disk
    └─sdb1          8:17   0   1.8T  0 part /mnt/2tb-disk
    sr0            11:0    1  1024M  0 rom  
    sdc             8:32   1  14.5G  0 disk
    └─sdc1          8:33   1  14.5G  0 part /media/user01/141E-8726
    sda             8:0    0 238.5G  0 disk
    ├─sda2          8:2    0   238G  0 part
    │ ├─vg00-swap 253:1    0   7.5G  0 lvm  [SWAP]
    │ └─vg00-root 253:0    0 230.6G  0 lvm  /
    └─sda1          8:1    0   476M  0 part
    

    In the commands below, replace /dev/sdX with the device file name for the SD card without a number at the end.

  4. Ensure none of the micro-SD card's partitions are mounted (replace /dev/sdX as explained above):

    sudo umount /dev/sdX*
    
  5. Write the disk image to the SD card device - not a partition on it (replace /dev/sdX as explained above):

    sudo bmaptool copy --nobmap /path/to/artifacts/machine/raspberrypi3-mbl/images/mbl-image-development/images/mbl-image-development-raspberrypi3-mbl.wic.gz /dev/sdX
    

    This action may take some time.

    Tip: Use --nobmap for the initial flashing, to ensure your flash is set up correctly. On all subsequent flashings, you can use the --bmap option with a bmap file to speed up the process: sudo bmaptool copy --bmap /path/to/artifacts/machine/raspberrypi3-mbl/images/mbl-image-development/images/mbl-image-development-raspberrypi3-mbl.wic.bmap /path/to/artifacts/machine/raspberrypi3-mbl/images/mbl-image-development/images/mbl-image-development-raspberrypi3-mbl.wic.gz /dev/sdX

  6. When bmaptool has finished, eject the device:

    sudo eject /dev/sdX
    
  7. Detach the micro-SD card from your PC, and plug it into the Raspberry Pi 3.

  8. You need access to the device's console, so before powering it on, either:

    • Connect it to a monitor and keyboard (using its HDMI and USB sockets).
    • Connect it to your PC. For example, if you're using a C232HD-DDHSP-0 cable, use this pin numbering reference and connect USB-UART colored wires:
      • Grounds wire (usually black) to pin 06.
      • Tx wire (usually yellow) to pin 08.
      • Rx wire (usually orange) to pin 10.

    Connect the other end of the C232HD-DDHSP-0 cable to the USB port on your PC.

    The cable's TX and RX are used to communicate with the board.

  9. If you are using a UART cable, after connecting the Raspberry Pi 3, from your PC, run the following command to connect to the device's serial console (otherwise, you will see output on your HDMI connected monitor):

    minicom -D /dev/ttyUSB0
    

    Use the following settings:

    • Baud rate: 115200.
    • Encoding: 8N1.
    • No hardware flow control (enabled by default).
  10. Connect the Raspberry Pi 3's micro-USB socket to a USB power supply.

    The device now boots into MBL.

  11. To log in to MBL, wait for a login prompt, and then enter the username root. You will not be prompted for a password.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.