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 ?
- commands for partitioning my SD Card .(you might think im not clicking the boot switch while booting im doing that to β¦ but no use !!!)
- 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
- 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