Tool/software:
Dear TI Support Team,
I am working on an AM335x-based custom board and need support with transitioning from a TFTP-based boot to a persistent eMMC boot solution. Here’s my current status and specific queries:
Current Setup & Progress
Serial Loading (X/Y-Modem):
Successfully loaded u-boot-spl.bin (SPL) and u-boot.img via serial.
Board boots to U-Boot prompt over UART.
TFTP Booting (Temporary):
Transferred the following files to RAM via TFTP:
MLO (SPL) → 0x80000000
zImage (kernel with embedded RAM-based rootfs) → 0x82000000
Device tree blob (am335x-custom.dtb) → 0x88000000
Verified boot using:
=> setenv bootargs console=ttyO0,115200n8 root=/dev/ram0 rw
=> bootz 0x82000000 - 0x88000000
Result: System boots successfully in RAM.
Goal: Persistent eMMC Boot
I now need to write these images to eMMC so the board boots autonomously after power cycles. My board has a 4GB eMMC (MTFC4GACAJCN-4M IT) and no SD card slot.
Key Questions:
Partitioning:
What is the recommended partition layout for eMMC?
Raw SPL/MLO area
FAT partition for kernel/DTB
(Optional) EXT4 for rootfs (though I use RAM FS for now).
Writing Images:
How to correctly use mmc write to flash:
MLO to the boot sector.
zImage and DTB to a FAT partition.
Example commands I’ve tried (but need validation):
=> mmc dev 1
=> mmc write 0x80000000 0x100 0x300 # MLO to boot area (384KB)
=> fatwrite mmc 1:1 0x82000000 zImage ${filesize} # Fails: "Bad device"
Environment Storage:
saveenv fails with ** Bad device mmc 0 **. How to configure environment to use eMMC?
Alternative Methods:
If FAT commands are unavailable, can I use raw mmc write for all images? What offsets/sizes?
Requested Guidance
Could you please provide:
A step-by-step sequence of U-Boot commands to:
Partition eMMC (GPT/MBR).
Write MLO, zImage, and DTB using mmc write or alternatives.
Configure bootcmd for eMMC boot.
Clarification on:
eMMC boot partition numbering (boot0/boot1/user).
Handling embedded RAM FS in zImage (no separate rootfs partition needed).
Debugging tips if fat commands are unavailable.
Board Details
Processor: AM3359
eMMC: 4GB (MTFC4GACAJCN-4M IT)
U-Boot Version: 2018.01
Current Boot Flow: Serial → TFTP → RAM (working).
Thank you for your time and expertise. I’ve attached my U-Boot environment and partition layout for reference. Please let me know if further details are needed.
Best regards,
Raj