Hi Ti,
I want to partition the emmc in uboot, and my machine boot from sdcard now.
I don't want to partition the emmc via fastboot, Is the 6ao1.1's uboot support partition the emmc?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Ti,
I want to partition the emmc in uboot, and my machine boot from sdcard now.
I don't want to partition the emmc via fastboot, Is the 6ao1.1's uboot support partition the emmc?
Hi Haili Zeng,
Which fastboot operation are you referring to?
I am assuming you are referring to 'fastboot oem format' command.
All the commands that fastboot does should be doable by u-boot.
Regards,
Vishal
Equivalent of 'fastboot oem format' in u-boot console is 'gpt write mmc 1 $partitions'
Snippet from u-boot source
static void cb_oem(struct usb_ep *ep, struct usb_request *req)
{
char *cmd = req->buf;
char cmdbuf[32];
reset_fastboot_cmd();
#ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV
if (strncmp("format", cmd + 4, 6) == 0) {
sprintf(cmdbuf, "gpt write mmc %x $partitions",
CONFIG_FASTBOOT_FLASH_MMC_DEV);
add_fastboot_cmd(0, cmdbuf);
} else
#endif