|
| 1 | +Microchip SAMA7G54-EK |
| 2 | +===================== |
| 3 | + |
| 4 | +The [SAMA7G54-EK][1] is an evaluation kit for the Microchip SAMA7G5 series, |
| 5 | +featuring an ARM Cortex-A7 processor @ 800 MHz with 512 MB DDR3L RAM. |
| 6 | + |
| 7 | +The board features: |
| 8 | + |
| 9 | +- 2x MACB Gigabit Ethernet ports |
| 10 | +- 8 GB eMMC (SDMMC0) + microSD card slot (SDMMC1) |
| 11 | +- QSPI NOR flash |
| 12 | +- USB 2.0 host ports |
| 13 | +- CAN bus interfaces |
| 14 | +- Flexcom serial ports (UART, SPI, I2C) |
| 15 | + |
| 16 | +How to Build |
| 17 | +------------ |
| 18 | + |
| 19 | +Since there are no pre-built images for ARM 32-bit, you need to build |
| 20 | +both Infix and the bootloader from source. |
| 21 | + |
| 22 | +### SD Card |
| 23 | + |
| 24 | +1. Build the bootloader |
| 25 | + |
| 26 | + make O=x-boot-sama7g54 sama7g54_ek_sd_boot_defconfig |
| 27 | + make O=x-boot-sama7g54 |
| 28 | + |
| 29 | +2. Build Infix |
| 30 | + |
| 31 | + make O=x-arm arm_defconfig |
| 32 | + make O=x-arm |
| 33 | + |
| 34 | +3. Create the SD card image |
| 35 | + |
| 36 | + ./utils/mkimage.sh -b x-boot-sama7g54 -r x-arm microchip-sama7g54-ek |
| 37 | + |
| 38 | +### eMMC |
| 39 | + |
| 40 | +1. Build the bootloader |
| 41 | + |
| 42 | + make O=x-boot-sama7g54-emmc sama7g54_ek_emmc_boot_defconfig |
| 43 | + make O=x-boot-sama7g54-emmc |
| 44 | + |
| 45 | +2. Build Infix (same as above, skip if already built) |
| 46 | + |
| 47 | + make O=x-arm arm_defconfig |
| 48 | + make O=x-arm |
| 49 | + |
| 50 | +3. Create the eMMC image |
| 51 | + |
| 52 | + ./utils/mkimage.sh -b x-boot-sama7g54-emmc -r x-arm -t emmc microchip-sama7g54-ek |
| 53 | + |
| 54 | +Flashing to SD Card |
| 55 | +------------------- |
| 56 | + |
| 57 | +[Flash the image][0] to a microSD card (at least 2 GB): |
| 58 | + |
| 59 | +```bash |
| 60 | +sudo dd if=x-boot-sama7g54/images/infix-arm-sdcard.img of=/dev/sdX \ |
| 61 | + bs=1M status=progress oflag=direct |
| 62 | +``` |
| 63 | + |
| 64 | +You can also use `bmaptool` for faster writes: |
| 65 | + |
| 66 | +```bash |
| 67 | +sudo bmaptool copy x-boot-sama7g54/images/infix-arm-sdcard.img /dev/sdX |
| 68 | +``` |
| 69 | + |
| 70 | +> [!WARNING] |
| 71 | +> Ensure `/dev/sdX` is the correct device for your SD card and not used |
| 72 | +> by the host system! Use `lsblk` to verify. |
| 73 | +
|
| 74 | +Flashing to eMMC |
| 75 | +----------------- |
| 76 | + |
| 77 | +The SAMA7G5EK has an on-board 8 GB eMMC (SDMMC0/mmc0). Jumper J22 |
| 78 | +controls if booting from onboard storage is allowed or not; open means |
| 79 | +allowed. When open, the SW4 button can also prevent booting from eMMC |
| 80 | +if held at power on. |
| 81 | + |
| 82 | +The easiest method is to flash from a running SD card system: |
| 83 | + |
| 84 | +1. Boot the board from SD card |
| 85 | +2. Transfer the eMMC image to the board (USB drive, network, etc.) |
| 86 | +3. Flash the eMMC: |
| 87 | + |
| 88 | + sudo bmaptool copy emmc.img /dev/mmcblk0 |
| 89 | + |
| 90 | +4. Power off, remove SD card, and boot from eMMC |
| 91 | + |
| 92 | +Booting the Board |
| 93 | +----------------- |
| 94 | + |
| 95 | +1. Insert the flashed SD card (or ensure eMMC is flashed) |
| 96 | +2. Connect an Ethernet cable |
| 97 | +3. Power up the board |
| 98 | +4. Find the assigned IP and SSH in, default login: `admin` / `admin` |
| 99 | + |
| 100 | +Console Port |
| 101 | +------------ |
| 102 | + |
| 103 | +The debug console is on Flexcom3 (active by default): |
| 104 | + |
| 105 | +- Baud rate: 115200 |
| 106 | +- Data bits: 8 |
| 107 | +- Parity: None |
| 108 | +- Stop bits: 1 |
| 109 | + |
| 110 | +Connect a USB-to-serial adapter to the board's debug UART header. |
| 111 | + |
| 112 | +> [!WARNING] |
| 113 | +> Use only 3.3V serial adapters. |
| 114 | +
|
| 115 | +[0]: https://kernelkit.org/posts/flashing-sdcard/ |
| 116 | +[1]: https://www.microchip.com/en-us/development-tool/EV21H18A |
0 commit comments