[PATCH 1/1] Add mmc_set_env_dev to TI AM33xx, using the scratch reg of UART port

2022-05-08 Thread Da Shi Cao
Signed-off-by: Dashi Cao --- board/ti/am335x/board.c | 40 common/spl/spl.c| 6 ++ drivers/mmc/mmc.c | 4 include/mmc.h | 1 + 4 files changed, 51 insertions(+) diff --git a/board/ti/am335x/board.c b/board/ti/am335x/boa

Passing the index of booting MMC interface from SPL to u-boot.bin

2022-04-29 Thread Da Shi Cao
On beaglebone black, which are based on TI AM3358, the booting of U-Boot is split into two phrases, MLO and u-boot.bin/img. There should be a way to pass the index of the booting MMC interface from MLO to u-boot, so that the uboot.env in the FAT file system on the booting card could be read from

[U-Boot] Patches for boot using FAT file system for beaglebone black

2015-11-06 Thread Da Shi Cao
Hi all,I have been using u-boot 2014.10 for a while on my beaglebone black with two features I added.1. boot from a FAT file system on mmc partition.2. output the MMC interface (0 or 1) just booted from. Today I downloaded the version 2015.10 and modified it with the same features, and it works.

Re: [U-Boot] printf and R9 in ARM architecture

2015-01-20 Thread Da Shi Cao
No, I didn't use that option. This option should fix it. Thanks a lot. Thomas On Tue, Jan 20, 2015 at 5:37 PM, Albert ARIBAUD wrote: > Hello Dashi Cao, > > On Tue, 20 Jan 2015 14:12:35 +0800, Da Shi Cao > wrote: >> In standalone applications, it seems that the executio

[U-Boot] printf and R9 in ARM architecture

2015-01-19 Thread Da Shi Cao
In standalone applications, it seems that the execution of printf function in U-Boot is dependent on the value of register R9, which is setup in app_startup. But r9 can be used by your program at the decision of gcc compilation which is not aware of this dependence. This is especially the case if +