U-boot from denx source not working on Beaglebone Black rev C

I have compiled uboot via denx i have two files , MLO and uboot.bin now i have to flash it into microsd card , i have done it but still its booting from EMMC Flash , I want my console through J1 header not from the microUSB cable through which we can access the console through /tty/ACMO i want in /tty/USB0 Where are am i going wrong ?

  1. commands for partitioning my SD Card .(you might think im not clicking the boot switch while booting im doing that to … but no use !!!)
  2. keeping both ACM0 and USB0 i mean connecting uart in j1 header and giving power through microusb which has a inbuilt console of ACM0 which is not required i mean i dont want ACM0

i found the exact commands if some one is in trouble execute this once….
1.sudo fdisk /dev/sda

  1. d ← delete the wrong partition
    n ← create new partition
    p ← primary
    1 ← partition number
    2048 ← first sector (press Enter)
    +100M ← last sector (this time 100MB, not 100)
    t ← change type
    c ← W95 FAT32 (LBA)
    a ← make bootable
    w ← write and exit

3.sudo fdisk -l /dev/sda
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 206847 204800 100M c W95 FAT32 (LBA)

4.sudo mkfs.vfat -F 32 /dev/sda1
5.sudo mkdir -p /mnt/boot
6.sudo mount /dev/sda1 /mnt/boot
7.sudo cp MLO /mnt/boot/
8.sudo cp u-boot.img /mnt/boot/
9.sudo umount /mnt/boot
10.sudo eject /dev/sda

HOLD S2 to boot from emmc flash

1 Like

Can u share build details? Cross compiler, make command, DEVICE_TREE, defconfig?

1.git clone GitHub - beagleboard/u-boot
2.make am335x_evm_defconfig

3..export CROSS_COMPILE=arm-linux-gnueabihf-
4. make -j1 V=sc
do the above u can build the uboot as per the defconfig

version (2025)

Can u add DEVICE_TREE=am335x-boneblack. And also check this tutorial

Also could you check the switch’s signal? Check for rust?

the procedure above which i wrote is exactly the same as the above pdf follow that the device boots. take a 5V adapter with 2.1mm jack and connect it to the board to the J1 header , remove the micro usb supply