-
Notifications
You must be signed in to change notification settings - Fork 1
/
bootloader_ot2it_sop.txt
40 lines (30 loc) · 1.36 KB
/
bootloader_ot2it_sop.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
uf2-samdx1 bootloader build instructions
========================================
Host PC Environment
-------------------
- $ UBUNTU 22.04 LTS
cross-compiler setup
--------------------
- Download the arm-none-eabi-gcc from https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 into ~/Downloads
- $ cd /opt/
- $ sudo tar jxvf ~/Downloads/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2
- $ export PATH=/opt/gcc-arm-none-eabi-10.3-2021.10/bin/:$PATH
Download the uf2-samdx1 bootloader
----------------------------------
- $ cd ~
- $ git clone https://github.com/microsoft/uf2-samdx1
- $ cd ~/uf2-samdx1
Download & Apply the patches
-----------------------------
- $ cd ~
- $ git clone https://github.com/ADLINK/OT2IT
- $ cd ~/uf2-samdx1
- $ patch -p1 < ~/OT2IT/uf2_patches/001-ot2it-board-support.patch
- $ patch -p1 < ~/OT2IT/uf2_patches/002-clock-config-ethernet.patch
- $ patch -p1 < ../OT2IT/uf2_patches/003-USB-detect-issue-fixed.patch
Build the uf2-samdx1
--------------------
- $ export PATH=/opt/gcc-arm-none-eabi-10.3-2021.10/bin/:$PATH
- $ cd ~/uf2-samdx1
- $ make BOARD=ot2it
- $ after successful build, bootloader of ot2it will present at build/ot2it/bootloader-ot2it-<git revision>.bin (for ex: build/ot2it/bootloader-ot2it-v3.4.0-83-g4c90034-dirty.bin)