|
| 1 | +########################### |
| 2 | +BeagleBadge Getting Started |
| 3 | +########################### |
| 4 | + |
| 5 | +Overview |
| 6 | +======== |
| 7 | + |
| 8 | +The BeagleBadge is a compact development platform from BeagleBoard.org powered by the TI AM62L SoC. |
| 9 | +Designed for portable and low-power applications, it features built-in Wi-Fi and Bluetooth, multiple |
| 10 | +low power modes, and an integrated fuel gauge for precise battery power monitoring. |
| 11 | + |
| 12 | +The board provides a rich interface including an e-paper connector, DSI connector, Grove expansion, |
| 13 | +seven-segment displays, and an RGB LED. Fully supported in TI releases, the BeagleBadge offers flexible |
| 14 | +boot options (OSPI, UART, SD, USB-DFU) and runs Zephyr OS or Linux via Debian, Arago, or Buildroot, |
| 15 | +making it an ideal open-source solution for modern IoT and HMI projects. |
| 16 | + |
| 17 | +Supported OS |
| 18 | +============ |
| 19 | + |
| 20 | +- Linux : https://github.com/TexasInstruments/ti-linux-kernel branch: ti-linux-6.12.y |
| 21 | +- Zephyr : https://github.com/glneo/zephyr branch: openamp-am62x-sk-m4 |
| 22 | + |
| 23 | +Supported Distributions |
| 24 | +======================= |
| 25 | + |
| 26 | +- Debian: https://github.com/TexasInstruments/armbian-build.git branch: beaglebadge |
| 27 | +- Arago: https://github.com/TexasInstruments/meta-tisdk branch: scarthgap |
| 28 | + |
| 29 | +What are the low level sources? |
| 30 | +=============================== |
| 31 | + |
| 32 | +- TI Linux: arch/arm64/boot/dts/til3-am62l3-beaglebadge.dts |
| 33 | +- TI U-boot: configs/am62lx_beaglebadge_defconfig |
| 34 | + |
| 35 | +How to build? |
| 36 | +============= |
| 37 | + |
| 38 | +Debian: |
| 39 | + |
| 40 | +.. code-block:: console |
| 41 | +
|
| 42 | + $ sudo apt-get install docker.io qemu-user-static binfmt-support |
| 43 | + $ git clone https://github.com/TexasInstruments/armbian-build.git |
| 44 | + $ cd armbian-build |
| 45 | + $ git checkout beaglebadge |
| 46 | + $ ./compile.sh build BOARD=beaglebadge BRANCH=vendor-edge BUILD_MINIMAL=yes KERNEL_CONFIGURE=no RELEASE=trixie GIT_SKIP_SUBMODULES=yes SKIP_ARMBIAN_REPO=yes |
| 47 | +
|
| 48 | +For more information go :ref:`here <debian-building-images-beaglebadge>` |
| 49 | + |
| 50 | +Arago: |
| 51 | + |
| 52 | +.. code-block:: console |
| 53 | +
|
| 54 | + $ git clone https://git.ti.com/git/arago-project/oe-layersetup.git tisdk |
| 55 | + $ cd tisdk |
| 56 | + $ ./oe-layertool-setup.sh -f configs/arago-scarthgap-config.txt |
| 57 | + $ cd build |
| 58 | + $ . conf/setenv |
| 59 | + $ export MACHINE=beaglebadge-ti |
| 60 | + $ ARAGO_SYSVINIT=1 bitbake -k tisdk-tiny-image |
| 61 | +
|
| 62 | +For more information go :ref:`here <building-the-sdk-with-yocto>` |
| 63 | + |
| 64 | +.. note:: |
| 65 | + |
| 66 | + Due to the limited 128MB size of LPDDR on BeagleBadge, only the *tisdk-tiny-image* can boot |
| 67 | + on BeagleBadge with SystemV for init system. SystemD based images will not boot or may cause |
| 68 | + kernel panics due to memory constraints. |
| 69 | + |
| 70 | +How to boot? |
| 71 | +============ |
| 72 | + |
| 73 | +In the following instructions, assume /dev/ttyUSB0 is the serial port enumerated |
| 74 | +on host machine from BeagleBadge USB C connection. |
| 75 | + |
| 76 | +SD boot: |
| 77 | + 1. Flash SD card with Debian or Arago image |
| 78 | + 2. Insert Micro SD card |
| 79 | + 3. Press & hold Select until step 4 |
| 80 | + 4. Connect USB C cable |
| 81 | + 5. Connect to /dev/ttyUSB0 on host machine |
| 82 | + |
| 83 | +OSPI boot: |
| 84 | + 1. Boot via SD boot and stop at u-boot prompt |
| 85 | + 2. Flash OSPI |
| 86 | + |
| 87 | + .. code-block:: console |
| 88 | +
|
| 89 | + => fatload mmc 1 ${loadaddr} tiboot3.bin |
| 90 | + 221296 bytes read in 11 ms (19.2 MiB/s) |
| 91 | + => print filesize |
| 92 | + filesize=36070 |
| 93 | + => sf probe |
| 94 | + SF: Detected is25wx256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB |
| 95 | + => sf erase 0 40000 |
| 96 | + SF: 262144 bytes @ 0x0 Erased: OK |
| 97 | + => sf write ${loadaddr} 0 36070 |
| 98 | + device 0 offset 0x0, size 0x36070 |
| 99 | + SF: 221296 bytes @ 0x0 Written: OK |
| 100 | + => fatload mmc 1 ${loadaddr} tispl.bin |
| 101 | + 1464080 bytes read in 62 ms (22.5 MiB/s) |
| 102 | + => print filesize |
| 103 | + filesize=165710 |
| 104 | + => sf probe |
| 105 | + SF: Detected is25wx256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB |
| 106 | + => sf erase 0x80000 180000 |
| 107 | + SF: 1572864 bytes @ 0x80000 Erased: OK |
| 108 | + => sf write ${loadaddr} 0x80000 165710 |
| 109 | + device 0 offset 0x80000, size 0x165710 |
| 110 | + SF: 1464080 bytes @ 0x80000 Written: OK |
| 111 | + => fatload mmc 1 ${loadaddr} u-boot.img |
| 112 | + 1314747 bytes read in 57 ms (22 MiB/s) |
| 113 | + => print filesize |
| 114 | + filesize=140fbb |
| 115 | + => sf probe |
| 116 | + SF: Detected is25wx256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB |
| 117 | + => sf erase 0x280000 180000 |
| 118 | + SF: 1572864 bytes @ 0x280000 Erased: OK |
| 119 | + => sf write ${loadaddr} 0x280000 140fbb |
| 120 | + device 0 offset 0x280000, size 0x140fbb |
| 121 | + SF: 1314747 bytes @ 0x280000 Written: OK |
| 122 | +
|
| 123 | + 3. Reset the board (S1 RST) |
| 124 | + |
| 125 | +UART boot: |
| 126 | + 1. Connect USB C cable |
| 127 | + 2. Connect to /dev/ttyUSB0 on host machine |
| 128 | + 3. Run the following instructions on host machine: |
| 129 | + |
| 130 | + .. code-block:: console |
| 131 | +
|
| 132 | + $ sb --xmodem tiboot3.bin > /dev/ttyUSB0 < /dev/ttyUSB0 |
| 133 | + $ sb --xmodem tispl.bin > /dev/ttyUSB0 < /dev/ttyUSB0 |
| 134 | + $ sb --ymodem u-boot.img > /dev/ttyUSB0 < /dev/ttyUSB0 |
| 135 | +
|
| 136 | +USB-DFU boot: |
| 137 | + 1. Press & hold Select until step 4 |
| 138 | + 2. Connect USB C cable |
| 139 | + 3. Connect to /dev/ttyUSB0 on host machine |
| 140 | + 4. Send bootloader binaries from host MACHINE |
| 141 | + |
| 142 | + .. code-block:: console |
| 143 | +
|
| 144 | + $ sudo -E -S dfu-util -R -a bootloader -D tiboot3.bin |
| 145 | + $ sudo -E -S dfu-util -R -a bootloader -D tispl.bin |
| 146 | + $ sudo -E -S dfu-util -R -a u-boot.img -D u-boot.img |
| 147 | +
|
| 148 | +Any of the above boot methods can be used to boot to u-boot prompt, |
| 149 | +from here, loading the rootfs is generic and can be loaded from SD |
| 150 | +card, OSPI flash, or USB DFU as is discussed in other sections of this |
| 151 | +documentation. |
0 commit comments