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.

PROCESSOR-SDK-AM335X: UBoot cant load Kernel after minor dts change

Part Number: PROCESSOR-SDK-AM335X
Other Parts Discussed in Thread: TPS65217

SDK 8.0 using Beagle Bone White 

I tried a very simple change to the /uboot/arch/dts/am335x-bone.dts

I  made one change

I changed Model in am335x-bone.dts to TI AM335x DogStar BeagleBone(see uboot banner below)  from what default was TI AM335x BeagleBone

My end goal is first modifying SPL then eventually  uboot and changing ,dts files for a custom board based on Beagle bone design

For now I am using Beagle Bone White as a dev board 

Very simple change I am off to  a bad start I could use jtag to debug this but this has to be something basic I am missing in my understanding

Serial Boot Log below 

U-Boot SPL 2021.01-00001-gc59bf25a38-dirty (Dec 04 2022 - 13:27:42 -0600)
Trying to boot from MMC1


U-Boot 2021.01-00001-gc59bf25a38-dirty (Dec 04 2022 - 13:27:42 -0600)

CPU : AM335X-GP rev 1.0
Model: TI AM335x DogStar BeagleBone
DRAM: 256 MiB
WDT: Started with servicing (60s timeout)
NAND: 0 MiB
MMC: OMAP SD/MMC: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net: eth2: ethernet@4a100000, eth3: usb_ether
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
Failed to load 'boot.scr'
574 bytes read in 3 ms (186.5 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc0 ...
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
177 bytes read in 4 ms (43 KiB/s)
1: Arago
Retrieving file: /extlinux/../zImage
4997632 bytes read in 422 ms (11.3 MiB/s)
append: root=PARTUUID=2ee67f08-02 rootwait rw console=ttyO0,115200n8,115200
Retrieving file: /extlinux/../am335x-bone.dtb
47951 bytes read in 8 ms (5.7 MiB/s)
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 8df31000, end 8df3fb4e ... OK

Starting kernel ...

Hangs FOREVER

Uboot ENV

=> bdinfo
boot_params = 0x80000100
DRAM bank = 0x00000000
-> start = 0x80000000
-> size = 0x10000000
flashstart = 0x00000000
flashsize = 0x00000000
flashoffset = 0x00000000
baudrate = 115200 bps
relocaddr = 0x8ff6e000
reloc off = 0x0f76e000
Build = 32-bit
current eth = ethernet@4a100000
ethaddr = bc:6a:29:d9:d2:60
IP addr = <NULL>
fdt_blob = 0x8df42350
new_fdt = 0x8df42350
fdt_size = 0x0000bb60
lmb_dump_all:
memory.cnt = 0x1
memory.size = 0x0
memory.reg[0x0].base = 0x80000000
.size = 0x10000000

reserved.cnt = 0x1
reserved.size = 0x0
reserved.reg[0x0].base = 0x8df41128
.size = 0x20beed8
arch_number = 0x00000e05
TLB addr = 0x8fff0000
irq_sp = 0x8df42340
sp start = 0x8df42330
Early malloc usage: 408 / 1000
=> printenv
addr_fit=0x90000000
arch=arm
args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=PARTUUI D=${uuid} rw rootfstype=${mmcrootfstype}
baudrate=115200
board=am335x
board_name=A335BONE
board_rev=00A6
board_serial=1313BB000847
boot=mmc
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefi x}${script}; source ${scriptaddr}
boot_efi_binary=load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} ef i/boot/bootarm.efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${f dt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi
boot_efi_bootmgr=if fdt addr ${fdt_addr_r}; then bootefi bootmgr ${fdt_addr_r};e lse bootefi bootmgr;fi
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
boot_fdt=try
boot_fit=0
boot_net_usb_start=usb start
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_syslinux_conf=extlinux/extlinux.conf
boot_targets=mmc0 legacy_mmc0 mmc1 legacy_mmc1 nand0 usb0 pxe dhcp
bootcmd=if test ${boot_fit} -eq 1; then run update_to_fit; fi; run findfdt; run init_console; run envboot; run finduuid; run distro_bootcmd
bootcmd_dhcp=setenv devtype dhcp; run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile} ; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile ${soc}-${board }${boardver}.dtb; fi; setenv efi_old_vci ${bootp_vci};setenv efi_old_arch ${boot p_arch};setenv bootp_vci PXEClient:Arch:00010:UNDI:003000;setenv bootp_arch 0xa; if dhcp ${kernel_addr_r}; then tftpboot ${fdt_addr_r} dtb/${efi_fdtfile};if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r}; else bootefi ${ kernel_addr_r} ${fdtcontroladdr};fi;fi;setenv bootp_vci ${efi_old_vci};setenv bo otp_arch ${efi_old_arch};setenv efi_fdtfile;setenv efi_old_arch;setenv efi_old_v ci;
bootcmd_legacy_mmc0=setenv mmcdev 0; setenv bootpart 0:2 ; run mmcboot
bootcmd_legacy_mmc1=setenv mmcdev 1; setenv bootpart 1:2 ; run mmcboot
bootcmd_mmc0=devnum=0; run mmc_boot
bootcmd_mmc1=devnum=1; run mmc_boot
bootcmd_nand=run nandboot
bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi
bootcmd_usb0=devnum=0; run usb_boot
bootcount=5
bootdelay=2
bootdir=/boot
bootenvfile=uEnv.txt
bootfile=zImage
bootm_size=0x10000000
bootpart=0:2
bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr}
console=ttyO0,115200n8
cpu=armv7
dfu_alt_info_emmc=rawemmc raw 0 3751936;boot part 1 1;rootfs part 1 2;MLO fat 1 1;MLO.raw raw 0x100 0x200;u-boot.img.raw raw 0x300 0x1000;u-env.raw raw 0x1300 0 x200;spl-os-args.raw raw 0x1500 0x200;spl-os-image.raw raw 0x1700 0x6900;spl-os- args fat 1 1;spl-os-image fat 1 1;u-boot.img fat 1 1;uEnv.txt fat 1 1
dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;MLO fat 0 1;MLO.raw raw 0x100 0x2 00;u-boot.img.raw raw 0x300 0x1000;u-env.raw raw 0x1300 0x200;spl-os-args.raw ra w 0x1500 0x200;spl-os-image.raw raw 0x1700 0x6900;spl-os-args fat 0 1;spl-os-ima ge fat 0 1;u-boot.img fat 0 1;uEnv.txt fat 0 1
dfu_alt_info_nand=SPL part 0 1;SPL.backup1 part 0 2;SPL.backup2 part 0 3;SPL.bac kup3 part 0 4;u-boot part 0 5;u-boot-spl-os part 0 6;kernel part 0 8;rootfs part 0 9
dfu_alt_info_ram=kernel ram 0x80200000 0x4000000;fdt ram 0x80f80000 0x80000;ramd isk ram 0x81000000 0x4000000
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
dtboaddr=0x89000000
efi_dtb_prefixes=/ /dtb/ /dtb/current/
envboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmc dev};if run loadbootscript; then run bootscript;else if run loadbootenv; then ec ho Loaded env from ${bootenvfile};run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;fi;fi;
eth1addr=bc:6a:29:d9:d2:61
eth2addr=bc:6a:29:d9:d2:60
eth3addr=de:ad:be:ef:00:01
ethaddr=bc:6a:29:d9:d2:60
fdt_addr_r=0x88000000
fdtaddr=0x88000000
fdtcontroladdr=8df42350
fdtfile=undefined
findfdt=if test $board_name = A335BONE; then setenv fdtfile am335x-bone.dtb; fi; if test $board_name = A335BNLT; then setenv fdtfile am335x-boneblack.dtb; fi; i f test $board_name = A335PBGL; then setenv fdtfile am335x-pocketbeagle.dtb; fi; if test $board_name = BBBW; then setenv fdtfile am335x-boneblack-wireless.dtb; f i; if test $board_name = BBG1; then setenv fdtfile am335x-bonegreen.dtb; fi; if test $board_name = BBGW; then setenv fdtfile am335x-bonegreen-wireless.dtb; fi; if test $board_name = BBBL; then setenv fdtfile am335x-boneblue.dtb; fi; if test $board_name = BBEN; then setenv fdtfile am335x-sancloud-bbe.dtb; fi; if test $b oard_name = A33515BB; then setenv fdtfile am335x-evm.dtb; fi; if test $board_nam e = A335X_SK; then setenv fdtfile am335x-evmsk.dtb; fi; if test $board_name = A3 35_ICE && test $ice_mii = rmii; then setenv fdtfile am335x-icev2.dtb; fi; if tes t $board_name = A335_ICE && test $ice_mii = mii; then setenv fdtfile am335x-icev 2-prueth.dtb; fi; if test $fdtfile = undefined; then echo WARNING: Could not det ermine device tree to use; fi;
finduuid=part uuid ${boot} ${bootpart} uuid
get_overlaystring=for overlay in $name_overlays;do;setenv overlaystring ${overla ystring}'#'${overlay};done;
ice_mii=mii
importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${ loadaddr} ${filesize}
init_console=if test $board_name = A335_ICE; then setenv console ttyO3,115200n8; else setenv console ttyO0,115200n8;fi;
kernel_addr_r=0x82000000
load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix }${efi_fdtfile}
loadaddr=0x82000000
loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile}
loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr
loadfdt=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz
mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi
mmcboot=mmc dev ${mmcdev}; devnum=${mmcdev}; devtype=mmc; if mmc rescan; then ec ho SD/MMC found on device ${mmcdev};if run loadimage; then run args_mmc; if test ${boot_fit} -eq 1; then run run_fit; else run mmcloados;fi;fi;fi;
mmcdev=0
mmcloados=if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadf dt; then bootz ${loadaddr} - ${fdtaddr}; else if test ${boot_fdt} = try; then bo otz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;
mmcrootfstype=ext4 rootwait
mtdids=nand0=nand.0
mtdparts=mtdparts=nand.0:128k(NAND.SPL),128k(NAND.SPL.backup1),128k(NAND.SPL.bac kup2),128k(NAND.SPL.backup3),256k(NAND.u-boot-spl-os),1m(NAND.u-boot),128k(NAND. u-boot-env),128k(NAND.u-boot-env.backup1),8m(NAND.kernel),-(NAND.file-system)
name_fit=fitImage
nandargs=setenv bootargs console=${console} ${optargs} root=${nandroot} rootfsty pe=${nandrootfstype}
nandboot=echo Booting from nand ...; run nandargs; nand read ${fdtaddr} NAND.u-b oot-spl-os; nand read ${loadaddr} NAND.kernel; bootz ${loadaddr} - ${fdtaddr}
nandroot=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048
nandrootfstype=ubifs rootwait=1
netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=${se rverip}:${rootpath},${nfsopts} rw ip=dhcp
netboot=echo Booting from network ...; setenv autoload no; dhcp; run netloadimag e; run netloadfdt; run netargs; bootz ${loadaddr} - ${fdtaddr}
netloadfdt=tftp ${fdtaddr} ${fdtfile}
netloadimage=tftp ${loadaddr} ${bootfile}
nfsopts=nolock
partitions=uuid_disk=${uuid_gpt_disk};name=bootloader,start=384K,size=1792K,uuid =${uuid_gpt_bootloader};name=rootfs,start=2688K,size=-,uuid=${uuid_gpt_rootfs}
pxefile_addr_r=0x80100000
ramargs=setenv bootargs console=${console} ${optargs} root=${ramroot} rootfstype =${ramrootfstype}
ramboot=echo Booting from ramdisk ...; run ramargs; bootz ${loadaddr} ${rdaddr} ${fdtaddr}
ramdisk_addr_r=0x88080000
ramroot=/dev/ram0 rw
ramrootfstype=ext2
rdaddr=0x88080000
rootpath=/export/rootfs
run_fit=bootm ${addr_fit}#${fdtfile}${overlaystring}
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scrip ts; done;run scan_dev_for_efi;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env ex ists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fs type ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_b oot; fi; done; setenv devplist
scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "$ {soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; fi; for prefix i n ${efi_dtb_prefixes}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${p refix}${efi_fdtfile}; then run load_efi_dtb; fi;done;run boot_efi_bootmgr;if tes t -e ${devtype} ${devnum}:${distro_bootpart} efi/boot/bootarm.efi; then echo Fou nd EFI removable media binary efi/boot/bootarm.efi; run boot_efi_binary; echo EF I LOAD FAILED: continuing...; fi; setenv efi_fdtfile
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefi x}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boo t_extlinux; echo SCRIPT FAILED: continuing...; fi
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${d evnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${pr efix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scriptaddr=0x80000000
serial#=1313BB000847
soc=am33xx
spiargs=setenv bootargs console=${console} ${optargs} root=${spiroot} rootfstype =${spirootfstype}
spiboot=echo Booting from spi ...; run spiargs; sf probe ${spibusno}:0; sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; bootz ${loadaddr}
spibusno=0
spiimgsize=0x362000
spiroot=/dev/mtdblock4 rw
spirootfstype=jffs2
spisrcaddr=0xe0000
static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
stderr=serial@44e09000
stdin=serial@44e09000
stdout=serial@44e09000
update_to_fit=setenv loadaddr ${addr_fit}; setenv bootfile ${name_fit}
usb_boot=usb start; if usb dev ${devnum}; then devtype=usb; run scan_dev_for_boo t_part; fi
usbnet_devaddr=de:ad:be:ef:00:01
vendor=ti
ver=U-Boot 2021.01-00001-gc59bf25a38-dirty (Dec 04 2022 - 13:27:42 -0600)

Environment size: 10214/131068 bytes

  • Hi,

    Beaglebone White uses AM335x rev1.0 which hasn't been supported since many years ago. Can you use other platform which has the latest rev2.1, such as Beaglebone Black?

  • Hello

    SDK 8,0 default images uses same evm335x_defconfig to Build Uboot for all boards this works fine 

    Uboot will run on any am335x board or black  white,or evm-sk OR EVM 

    This question is a Uboot DTS SOFTWARE Question 

    Same problem on Beagle Black I see changes in uboot banner correct but cannot load kernel its a Uboot or DTS issue

    I make one change below compile uboot and add new black.dts to SD Card on black SAME PROBLEM

    File am335x-boneblack.dts
    /dts-v1/;


    #include "am33xx.dtsi"
    #include "am335x-bone-common.dtsi"

    / {
    //    model = "TI AM335x BeagleBone Black";
        model = "TI AM335x Dogstar BeagleBone Black";
        compatible = "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx";
        chosen {
            stdout-path = &uart0;
            tick-timer = &timer2;
        };
    };  

    How can one change Model in ,dts root????

  • Sorry of course I add new ,dtb to SD

  • Hi Mark,

    Sorry for my late response.

    Not sure if you have solved the issue, but I made the similar change on my BBB and U-Boot still boots with the new model name.

    U-Boot SPL 2021.01-00006-gebe8c8e00d39-dirty (Jan 11 2023 - 14:43:55 -0600)
    Trying to boot from MMC1
    
    
    U-Boot 2021.01-00006-gebe8c8e00d39-dirty (Jan 11 2023 - 14:43:55 -0600)
    
    CPU  : AM335X-GP rev 2.1
    Model: TI AM335x BBB Test
    DRAM:  512 MiB
    WDT:   Started with servicing (60s timeout)
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Loading Environment from FAT... *** Warning - bad CRC, using default environment
    
    <ethaddr> not set. Validating first E-fuse MAC
    Net:   eth2: ethernet@4a100000, eth3: usb_ether
    Hit any key to stop autoboot:  0
    =>

    Here is uboot change I made:

    diff --git a/arch/arm/dts/am335x-boneblack.dts b/arch/arm/dts/am335x-boneblack.dts
    index 27ebe4a65df5..2f0b9f50d8af 100644
    --- a/arch/arm/dts/am335x-boneblack.dts
    +++ b/arch/arm/dts/am335x-boneblack.dts
    @@ -11,7 +11,7 @@
     #include "am335x-bone-common.dtsi"
    
     / {
    -       model = "TI AM335x BeagleBone Black";
    +       model = "TI AM335x BBB Test";
            compatible = "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx";
            chosen {
                    stdout-path = &uart0;

  • My BBB is very old its got Angstrom in the eMMC and for some reason always boots it not the SDK on the SD 

    Ive held the user button down I see flashing lights but no serial teminal output(I have FTDI USB serial cable )

    I know the cable works as Angstrom in Emmc  gives me uboot and linux serial booting

    I tried using DD to remove emcc version but I think I only removed one partition

    I need to get SD card SDK default images working to test your fix

    Any ideas?

  • I tried using DD to remove emcc version but I think I only removed one partition

    I need to get SD card SDK default images working to test your fix

    Any ideas?

    for getting the SDK default SD card or disabling the eMMC boot?

  • If I insert sd card I get zero  serial console using sdk default image. lights are flashing like its running 

    If I remove SD I get no activity and no serial port 

    I am guessing I damaged or corrupted something in eMMC Angstrom  

    I just want to  disabling the eMMC boot. But since I get no console I cant use linux or uboot

    I also checked for HDMI output nothing

    Is there something like Debian ie a SD EMMC flasher that flashes SDK uboot and linux in eMMC from SD 

    or

    Howto recover this board?

    Or I have plan B 

    I have 2nd BB Black with Debian in EMC its functional I see desktop on HDMI and the boot log messages on HDMI

    The problem I just tried it now with same SDK image SD card inserted  it boots Debian I dont see any uboot messages on HDMI to 

    I prefer to use the SDK Linux but dont want to bricked BB Blacks. If I recall correctly using the FTDI serial connector on header with debian I got zero serial console for uboot

    I want uboot serial stop key solution like on beagle white I just checked again now on 2nd board  I held the user button it boots Debian EMC not the SD Card.

    I guess for this board I could at least use Debian linux to remove or disable Emmc but dont know correct commands and as I mentioned I have one unusable board already

    Suggestions appreciated 

  • Update.

    Board 1 I am able to boot debian Buster(10,0) from SD card holding user switch 

    I tried an sdk sd card that came with my evm sk am335x from TI it wont boot and neither did the default images 

    I would like to rule out emc code is causing this problem and get rid of the Debian 9 in EMMC 

    Then I can make the change you made to .dts and load a sdk bb black image from SD card

    Please advise commands to clear out emc and remember  that with Debian and FTDI serial cable  I cant see any serial output until the linux login prompts so these command to clear emc will have to  be from within linux unless you know a better way

    Thanks

  • sorry board 1 has angstrom in emc I want it gone. The coomands will be from debian buster that I boot from SD

  • Hi Mark,

    I disabled the eMMC boot on my BBB many years ago, but I didn't write down what exactly I did. I guess I erased the eMMC boot0 partition.

    If this doesn't solve the problem for you, I think you would have to ask the Beagle community, I really don't know how the Debian was flashed to BBB in the Beagle community.

  • Hello

    I am unable to boot SDK linux from SD card. I am pressing correct switch because Debian boots from SD card 

    I have tried twice with new card . The last card is 32 G. 

    Thanks for link I did see that before

    I should be able to at least boot uboot and try that that would be ideal BUT that didnt work either

    Could the uboot in EMMC be over riding something ? Thats why I asked erasing from Debian booted  on SD Card that works OR if we can get 

    SDK uboot from sd card i prefer using uboot

    Still stuck thanks for reply

  • I think there are two steps:

    first you need to ensure the eMMC is fully erased and your BBB boot U-Boot and kernel from SD card - it doesn't matter the SD card has Debian, or TI Processor SDK, or any other OS;

    then work on booting BBB with TI Processor SDK on SD card.

    Are you able to complete the first step?

  • Hello Sir

    <<Are you able to complete the first step? 

    NO because 

    I tried 

    1)SDK Linux/Uboot on SD card gives zero serial output its unusable either its wrong or EMMC is interfering loading wrong stuff I dont know

    2)Using Debian SD card only gives serial output way to late 20 second later after uboot is done . I can login to linux

    If I use #2 and kernel is running in RAM there must be a way to erase EMMC.. Maybe DD ? I saw some command on internet but I dont trust it I only trust YOU and E2E

    Do you know this DDcommand or can you ask someone?(How to erase emmc in Linux)

    OR

    We can solve why my SDK Linux wont boot(I think thats more difficult but I am not you your choice)

    Thanks for patience

    Mark

  • Hi Mark,

    Yes, I think yo can erase eMMC when booting with Debian SD card, using dd command. But to ensure we pass the correct parameters to dd command, I need to see the full u-boot and kernel log.

    When you boot with Debian SD card, the console should at least show the u-boot log, right? Please capture the log and attach here.

    Then after it boots into Linux, please run 'dmesg' command then capture this log too.

  • Hold on Mark, you mentioned you have another BBB which eMMC is already "broken", it doesn't boot if no any SD card is in the SD card slot? but does it boot with the Debian SD card?

  • BBB #2

    I have another BBB it boots from EMMC Debian to HDMI no serial output I tried booting SD card with SDK didnt work

    Then

    BBB #1

    Booted Angstrom from EMMC 

    What I call The broken BBB it booted Angstrom from EMMC I tried to SD card boot SDK linux on SD card also not work

    Then I see some DD command  on internet I try to erase a partition from Angstrom using DD  it give error message Angstrom no longer boots 

    I flash 32 G SDS from am335x v8 sdk card No work

    I create Debian 10 buster SD card as I need python I finally get this to boot BUT 30 seconds later(no uboot no kernel messages just login 

    Here is login prompt 

  • beaglebone login: debian
    Password:
    Last login: Sat Jan 21 21:50:20 UTC 2023 from 192.168.1.73 on pts/0

    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    debian@beaglebone:~$

    debian@beaglebone:~$ dmsg
    -bash: dmsg: command not found
    debian@beaglebone:~$ dmesg
    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 4.19.94-ti-r73 (voodoo@rpi4b4g-13) (gcc version 8.3.0 (Debian 8.3.0-6)) #1buster SMP PREEMPT Fri Apr 15 21:38:30 UTC 2022
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] efi: Getting EFI parameters from FDT:
    [ 0.000000] efi: UEFI not found.
    [ 0.000000] cma: Reserved 48 MiB at 0x9c800000
    [ 0.000000] On node 0 totalpages: 130560
    [ 0.000000] Normal zone: 1148 pages used for memmap
    [ 0.000000] Normal zone: 0 pages reserved
    [ 0.000000] Normal zone: 130560 pages, LIFO batch:31
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES2.0 (sgx neon)
    [ 0.000000] random: get_random_bytes called from start_kernel+0xac/0x4c0 with crng_init=0
    [ 0.000000] percpu: Embedded 17 pages/cpu s38988 r8192 d22452 u69632
    [ 0.000000] pcpu-alloc: s38988 r8192 d22452 u69632 alloc=17*4096
    [ 0.000000] pcpu-alloc: [0] 0
    [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129412
    [ 0.000000] Kernel command line: console=ttyS0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet
    [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.000000] Memory: 433260K/522240K available (13312K kernel code, 1142K rwdata, 4344K rodata, 1024K init, 350K bss, 39828K reserved, 49152K cma-reserved, 0K highmem)
    [ 0.000000] Virtual kernel memory layout:
    vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
    vmalloc : 0xe0000000 - 0xff800000 ( 504 MB)
    lowmem : 0xc0000000 - 0xdfe00000 ( 510 MB)
    pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
    .text : 0x(ptrval) - 0x(ptrval) (14304 kB)
    .init : 0x(ptrval) - 0x(ptrval) (1024 kB)
    .data : 0x(ptrval) - 0x(ptrval) (1143 kB)
    .bss : 0x(ptrval) - 0x(ptrval) ( 351 kB)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] ftrace: allocating 42221 entries in 124 pages
    [ 0.000000] rcu: Preemptible hierarchical RCU implementation.
    [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
    [ 0.000000] Tasks RCU enabled.
    [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
    [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [ 0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
    [ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [ 0.000027] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [ 0.000047] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [ 0.000057] OMAP clocksource: timer1 at 24000000 Hz
    [ 0.002250] timer_probe: no matching timers found
    [ 0.002606] Console: colour dummy device 80x30
    [ 0.002691] Calibrating delay loop (skipped) preset value.. 995.32 BogoMIPS (lpj=1990656)
    [ 0.002709] pid_max: default: 32768 minimum: 301
    [ 0.002991] Security Framework initialized
    [ 0.003005] Yama: becoming mindful.
    [ 0.003153] AppArmor: AppArmor initialized
    [ 0.003267] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.003279] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.004365] CPU: Testing write buffer coherency: ok
    [ 0.004431] CPU0: Spectre v2: using BPIALL workaround
    [ 0.004924] CPU0: thread -1, cpu 0, socket -1, mpidr 0
    [ 0.029182] Setting up static identity map for 0x80100000 - 0x80100060
    [ 0.037090] rcu: Hierarchical SRCU implementation.
    [ 0.048332] EFI services will not be available.
    [ 0.053098] smp: Bringing up secondary CPUs ...
    [ 0.053111] smp: Brought up 1 node, 1 CPU
    [ 0.053124] SMP: Total of 1 processors activated (995.32 BogoMIPS).
    [ 0.053130] CPU: All CPU(s) started in SVC mode.
    [ 0.054864] devtmpfs: initialized
    [ 0.093452] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.094108] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [ 0.094135] futex hash table entries: 256 (order: 2, 16384 bytes)
    [ 0.098086] xor: automatically using best checksumming function neon
    [ 0.098105] pinctrl core: initialized pinctrl subsystem
    [ 0.099431] NET: Registered protocol family 16
    [ 0.104640] DMA: preallocated 1024 KiB pool for atomic coherent allocations
    [ 0.202005] l4_wkup_cm:clk:0010:0: failed to disable
    [ 0.242306] audit: initializing netlink subsys (disabled)
    [ 0.249175] audit: type=2000 audit(0.236:1): state=initialized audit_enabled=0 res=1
    [ 0.251646] OMAP GPIO hardware version 0.1
    [ 0.276179] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.305254] raid6: using algorithm neonx8 gen() 0 MB/s
    [ 0.305267] raid6: .... xor() 0 MB/s, rmw enabled
    [ 0.305274] raid6: using neon recovery algorithm
    [ 0.313458] edma 49000000.edma: TI EDMA DMA engine driver
    [ 0.320576] SCSI subsystem initialized
    [ 0.321252] libata version 3.00 loaded.
    [ 0.321590] usbcore: registered new interface driver usbfs
    [ 0.321651] usbcore: registered new interface driver hub
    [ 0.321776] usbcore: registered new device driver usb
    [ 0.323824] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [ 0.325407] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
    [ 0.325996] pps_core: LinuxPPS API ver. 1 registered
    [ 0.326006] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.326028] PTP clock support registered
    [ 0.326932] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [ 0.329463] Advanced Linux Sound Architecture Driver Initialized.
    [ 0.330314] NetLabel: Initializing
    [ 0.330324] NetLabel: domain hash size = 128
    [ 0.330330] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
    [ 0.330430] NetLabel: unlabeled traffic allowed by default
    [ 0.331509] clocksource: Switched to clocksource timer1
    [ 0.494063] VFS: Disk quotas dquot_6.6.0
    [ 0.494178] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.495053] AppArmor: AppArmor Filesystem Enabled
    [ 0.508282] NET: Registered protocol family 2
    [ 0.509326] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
    [ 0.509364] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.509406] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
    [ 0.509464] TCP: Hash tables configured (established 4096 bind 4096)
    [ 0.509599] UDP hash table entries: 256 (order: 1, 8192 bytes)
    [ 0.509622] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    [ 0.509975] NET: Registered protocol family 1
    [ 0.523156] RPC: Registered named UNIX socket transport module.
    [ 0.523167] RPC: Registered udp transport module.
    [ 0.523172] RPC: Registered tcp transport module.
    [ 0.523177] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.524106] Unpacking initramfs...
    [ 1.015582] random: fast init done
    [ 1.216763] Freeing initrd memory: 11552K
    [ 1.217628] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [ 1.220900] Initialise system trusted keyrings
    [ 1.221311] workingset: timestamp_bits=14 max_order=17 bucket_order=3
    [ 1.228807] zbud: loaded
    [ 1.236382] NFS: Registering the id_resolver key type
    [ 1.236427] Key type id_resolver registered
    [ 1.236433] Key type id_legacy registered
    [ 1.236451] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [ 1.236805] fuse init (API version 7.27)
    [ 1.247427] Key type asymmetric registered
    [ 1.247441] Asymmetric key parser 'x509' registered
    [ 1.247706] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
    [ 1.252137] io scheduler noop registered
    [ 1.252146] io scheduler deadline registered
    [ 1.252469] io scheduler cfq registered (default)
    [ 1.252479] io scheduler mq-deadline registered
    [ 1.256004] pinctrl-single 44e10800.pinmux: 142 pins, size 568
    [ 1.269560] gpio-of-helper ocp:cape-universal: ready
    [ 1.280802] gpio-clk: probe of ocp:clk_mcasp0 failed with error -17
    [ 1.283428] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
    [ 1.287061] console [ttyS0] disabled
    [ 1.287169] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250
    [ 1.297268] console [ttyS0] enabled
    [ 1.298460] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 31, base_baud = 3000000) is a 8250
    [ 1.299448] 48024000.serial: ttyS2 at MMIO 0x48024000 (irq = 32, base_baud = 3000000) is a 8250
    [ 1.300609] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 33, base_baud = 3000000) is a 8250
    [ 1.301586] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 34, base_baud = 3000000) is a 8250
    [ 1.302547] 481aa000.serial: ttyS5 at MMIO 0x481aa000 (irq = 35, base_baud = 3000000) is a 8250
    [ 1.306199] omap_rng 48310000.rng: Random Number Generator ver. 20
    [ 1.307201] sdhci: Secure Digital Host Controller Interface driver
    [ 1.307210] sdhci: Copyright(c) Pierre Ossman
    [ 1.307959] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
    [ 1.307970] omap_hsmmc 48060000.mmc: Got CD GPIO
    [ 1.308546] omap_hsmmc 48060000.mmc: Linked as a consumer to regulator.1
    [ 1.309226] random: crng init done
    [ 1.335730] omap_hsmmc 481d8000.mmc: Linked as a consumer to regulator.1
    [ 1.360656] sdhci-pltfm: SDHCI platform and OF driver helper
    [ 1.372112] mmc0: host does not support reading read-only switch, assuming write-enable
    [ 1.374044] mmc0: new high speed SDHC card at address 0001
    [ 1.379454] mmcblk0: mmc0:0001 00000 29.8 GiB
    [ 1.385532] mmcblk0: p1
    [ 1.406694] mmc1: new high speed MMC card at address 0001
    [ 1.412176] mmcblk1: mmc1:0001 MMC02G 1.79 GiB
    [ 1.413003] mmcblk1boot0: mmc1:0001 MMC02G partition 1 1.00 MiB
    [ 1.413615] mmcblk1boot1: mmc1:0001 MMC02G partition 2 1.00 MiB
    [ 1.413989] mmcblk1rpmb: mmc1:0001 MMC02G partition 3 128 KiB, chardev (245:0)
    [ 1.487392] eqep 48300180.eqep: ver. 1.0
    [ 1.487744] eqep 48300180.eqep: count_mode:0
    [ 1.487755] eqep 48300180.eqep: invert_qa:1
    [ 1.487764] eqep 48300180.eqep: invert_qb:1
    [ 1.487773] eqep 48300180.eqep: invert_qi:0
    [ 1.487781] eqep 48300180.eqep: invert_qs:0
    [ 1.487790] eqep 48300180.eqep: swap_inputs:0
    [ 1.487799] eqep 48300180.eqep: QDECCTL:0x0180
    [ 1.487808] eqep 48300180.eqep: QPOSINIT:0x00000000
    [ 1.487815] eqep 48300180.eqep: QPOSMAX:0xffffffff
    [ 1.487823] eqep 48300180.eqep: QPOSCNT:0x00000000
    [ 1.487831] eqep 48300180.eqep: omit_interrupt:0
    [ 1.487839] eqep 48300180.eqep: QEINT:0x0800
    [ 1.487846] eqep 48300180.eqep: QUPRD:0x05f5e100
    [ 1.487853] eqep 48300180.eqep: QEPCTL:0x009e write
    [ 1.487860] eqep 48300180.eqep: QEPCTL:0x009e read
    [ 1.487886] eqep 48300180.eqep: irq:137, clk_rate:100000000
    [ 1.488091] eqep 48302180.eqep: ver. 1.0
    [ 1.488244] eqep 48302180.eqep: count_mode:0
    [ 1.488254] eqep 48302180.eqep: invert_qa:1
    [ 1.488262] eqep 48302180.eqep: invert_qb:1
    [ 1.488270] eqep 48302180.eqep: invert_qi:0
    [ 1.488278] eqep 48302180.eqep: invert_qs:0
    [ 1.488287] eqep 48302180.eqep: swap_inputs:0
    [ 1.488295] eqep 48302180.eqep: QDECCTL:0x0180
    [ 1.488303] eqep 48302180.eqep: QPOSINIT:0x00000000
    [ 1.488310] eqep 48302180.eqep: QPOSMAX:0xffffffff
    [ 1.488318] eqep 48302180.eqep: QPOSCNT:0x00000000
    [ 1.488326] eqep 48302180.eqep: omit_interrupt:0
    [ 1.488333] eqep 48302180.eqep: QEINT:0x0800
    [ 1.488340] eqep 48302180.eqep: QUPRD:0x05f5e100
    [ 1.488347] eqep 48302180.eqep: QEPCTL:0x009e write
    [ 1.488354] eqep 48302180.eqep: QEPCTL:0x009e read
    [ 1.488374] eqep 48302180.eqep: irq:139, clk_rate:100000000
    [ 1.488524] eqep 48304180.eqep: ver. 1.0
    [ 1.488647] eqep 48304180.eqep: count_mode:0
    [ 1.488657] eqep 48304180.eqep: invert_qa:1
    [ 1.488665] eqep 48304180.eqep: invert_qb:1
    [ 1.488673] eqep 48304180.eqep: invert_qi:0
    [ 1.488681] eqep 48304180.eqep: invert_qs:0
    [ 1.488689] eqep 48304180.eqep: swap_inputs:0
    [ 1.488696] eqep 48304180.eqep: QDECCTL:0x0180
    [ 1.488704] eqep 48304180.eqep: QPOSINIT:0x00000000
    [ 1.488711] eqep 48304180.eqep: QPOSMAX:0xffffffff
    [ 1.488719] eqep 48304180.eqep: QPOSCNT:0x00000000
    [ 1.488726] eqep 48304180.eqep: omit_interrupt:0
    [ 1.488733] eqep 48304180.eqep: QEINT:0x0800
    [ 1.488740] eqep 48304180.eqep: QUPRD:0x05f5e100
    [ 1.488747] eqep 48304180.eqep: QEPCTL:0x009e write
    [ 1.488754] eqep 48304180.eqep: QEPCTL:0x009e read
    [ 1.488774] eqep 48304180.eqep: irq:141, clk_rate:100000000
    [ 1.529004] libphy: Fixed MDIO Bus: probed
    [ 1.530042] CAN device driver interface
    [ 1.531463] c_can_platform 481cc000.can: c_can_platform device registered (regs=3e611b9e, irq=42)
    [ 1.532772] c_can_platform 481d0000.can: c_can_platform device registered (regs=0528c968, irq=43)
    [ 1.587642] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [ 1.587658] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
    [ 1.588644] MDIO: davinci_mdio: dt: updated phy_id[0] from phy_mask[fffffffe]
    [ 1.607115] libphy: 4a101000.mdio: probed
    [ 1.607144] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
    [ 1.608575] cpsw 4a100000.ethernet: Detected MACID = 90:59:af:4d:eb:cf
    [ 1.608723] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
    [ 1.608732] cpsw 4a100000.ethernet: ALE Table size 1024
    [ 1.608772] cpsw 4a100000.ethernet: cpts: overflow check period 1250 (jiffies)
    [ 1.610983] usbcore: registered new interface driver smsc95xx
    [ 1.613082] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 1.613151] ehci-platform: EHCI generic platform driver
    [ 1.613526] ehci-omap: OMAP-EHCI Host Controller driver
    [ 1.614497] usbcore: registered new interface driver usb-storage
    [ 1.618230] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
    [ 1.618419] am335x-phy-driver 47401300.usb-phy: Linked as a consumer to regulator.0
    [ 1.622042] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator
    [ 1.622234] am335x-phy-driver 47401b00.usb-phy: Linked as a consumer to regulator.0
    [ 1.625898] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [ 1.625941] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [ 1.626301] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
    [ 1.626312] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 1.626320] usb usb1: Product: MUSB HDRC host driver
    [ 1.626327] usb usb1: Manufacturer: Linux 4.19.94-ti-r73 musb-hcd
    [ 1.626335] usb usb1: SerialNumber: musb-hdrc.1
    [ 1.627181] hub 1-0:1.0: USB hub found
    [ 1.627244] hub 1-0:1.0: 1 port detected
    [ 1.639304] omap_rtc 44e3e000.rtc: already running
    [ 1.640142] omap_rtc 44e3e000.rtc: registered as rtc0
    [ 1.641837] i2c /dev entries driver
    [ 1.646202] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 1.646840] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)
    [ 1.650984] ledtrig-cpu: registered to indicate activity on CPUs
    [ 1.651692] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [ 1.652032] omap-aes 53500000.aes: will run requests pump with realtime priority
    [ 1.654628] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [ 1.658641] hidraw: raw HID events driver (C) Jiri Kosina
    [ 1.666736] gnss: GNSS driver registered with major 242
    [ 1.676829] NET: Registered protocol family 10
    [ 1.747674] Segment Routing with IPv6
    [ 1.747827] mip6: Mobile IPv6
    [ 1.747984] NET: Registered protocol family 17
    [ 1.748016] can: controller area network core (rev 20170425 abi 9)
    [ 1.748116] NET: Registered protocol family 29
    [ 1.748214] 8021q: 802.1Q VLAN Support v1.8
    [ 1.748308] Key type dns_resolver registered
    [ 1.748315] mpls_gso: MPLS GSO support
    [ 1.748625] ThumbEE CPU extension supported.
    [ 1.748643] Registering SWP/SWPB emulation handler
    [ 1.748653] omap_voltage_late_init: Voltage driver support not added
    [ 1.756964] registered taskstats version 1
    [ 1.756976] Loading compiled-in X.509 certificates
    [ 1.757111] zswap: loaded using pool lzo/zbud
    [ 1.760661] Btrfs loaded, crc32c=crc32c-generic
    [ 1.760780] AppArmor: AppArmor sha1 policy hashing enabled
    [ 1.926430] tda998x 0-0070: found TDA19988
    [ 1.930830] tilcdc 4830e000.lcdc: bound 0-0070 (ops tda998x_ops)
    [ 1.930855] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [ 1.930861] [drm] No driver support for vblank timestamp query.
    [ 1.931384] [drm] Cannot find any crtc or sizes
    [ 1.932358] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0
    [ 1.946340] tps6521x_pwrbutton tps65217-pwrbutton: DMA mask not set
    [ 1.947198] input: tps65217_pwr_but as /devices/platform/ocp/44e0b000.i2c/i2c-0/0-0024/tps65217-pwrbutton/input/input0
    [ 1.948301] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [ 1.949215] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
    [ 1.949331] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [ 1.953944] cpu cpu0: Linked as a consumer to regulator.3
    [ 1.954054] cpu cpu0: Dropping the link to regulator.3
    [ 1.954574] cpu cpu0: Linked as a consumer to regulator.3
    [ 1.957751] asoc-simple-card sound: i2s-hifi <-> 48038000.mcasp mapping ok
    [ 1.960028] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:03:55 UTC (946685035)
    [ 1.961552] ALSA device list:
    [ 1.961566] #0: TI BeagleBone Black
    [ 1.968229] Freeing unused kernel memory: 1024K
    [ 1.968964] Run /init as init process
    [ 2.952356] [drm] Cannot find any crtc or sizes
    [ 11.046030] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
    [ 12.009422] systemd[1]: System time before build time, advancing clock.
    [ 12.054834] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
    [ 12.055954] systemd[1]: Detected architecture arm.
    [ 12.074257] systemd[1]: Set hostname to <beaglebone>.
    [ 13.632159] systemd[1]: Listening on Journal Socket (/dev/log).
    [ 13.633947] systemd[1]: Listening on Syslog Socket.
    [ 13.636221] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
    [ 13.636448] systemd[1]: Reached target Swap.
    [ 13.644080] systemd[1]: Created slice system-serial\x2dgetty.slice.
    [ 13.645427] systemd[1]: Listening on udev Control Socket.
    [ 13.646097] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [ 15.199769] EXT4-fs (mmcblk0p1): re-mounted. Opts: errors=remount-ro
    [ 15.954655] systemd-journald[546]: Received request to flush runtime journal from PID 1
    [ 15.961569] systemd-journald[546]: File /var/log/journal/3cea8f756185a3f5c06cbe0463b311e5/system.journal corrupted or uncleanly shut down, renaming and replacing.
    [ 24.232780] net eth0: initializing cpsw version 1.12 (0)
    [ 24.321401] SMSC LAN8710/LAN8720 4a101000.mdio:00: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=4a101000.mdio:00, irq=POLL)
    [ 24.431431] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 24.431452] 8021q: adding VLAN 0 to HW filter on device eth0
    [ 29.013747] using random self ethernet address
    [ 29.013765] using random host ethernet address
    [ 29.506923] Mass Storage Function, version: 2009/09/11
    [ 29.506946] LUN: removable file: (no medium)
    [ 30.014537] using random self ethernet address
    [ 30.014555] using random host ethernet address
    [ 30.316006] usb0: HOST MAC 90:59:af:4d:eb:d2
    [ 30.320602] usb0: MAC 90:59:af:4d:eb:d1
    [ 30.332050] usb1: HOST MAC 90:59:af:4d:eb:d4
    [ 30.336516] usb1: MAC 90:59:af:4d:eb:d5
    [ 30.582710] configfs-gadget gadget: high-speed config #1: c
    [ 30.635359] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
    [ 30.963858] IPv6: ADDRCONF(NETDEV_UP): usb1: link is not ready
    [ 31.336049] IPv6: ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready
    [ 66.738721] remoteproc remoteproc0: wkup_m3 is available
    [ 66.868157] remoteproc remoteproc0: powering up wkup_m3
    [ 66.868192] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
    [ 66.868484] remoteproc remoteproc0: remote processor wkup_m3 is now up
    [ 66.868515] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
    [ 67.205369] PM: bootloader does not support rtc-only!
    [ 72.111856] remoteproc remoteproc1: 4a334000.pru is available
    [ 72.112042] pru-rproc 4a334000.pru: PRU rproc node pru@4a334000 probed successfully
    [ 72.147826] remoteproc remoteproc2: 4a338000.pru is available
    [ 72.148018] pru-rproc 4a338000.pru: PRU rproc node pru@4a338000 probed successfully
    debian@beaglebone:~$

  • BBB #2  boots Debian 9 EMMC . SDK SD card did not provide serial output nor does Debian only partial late kernel msg on HDMI. I never tried Debian 10 SD card . I think on either board SDK flashes like it working but zero serial output using SDK. 

    BBB #1 after I tried  DD no flashing lights for EMMC boot. It used to boot Angstrom from EMMC. IT Boots Debian 10 from SD BUT NOT SDK. Both board no uboot early serial messages so no uboot access hitting key

  • BBB #1 better explained Damaged

    I tried some DD command in Angstrom it failed said out of memory after 20 minutes

    After this Angstrom no serial output which was working before I think its corrupted

    This board does boot SD card Debian 10 holding button but 30 seconds later all i get is linux login prompt on serial no uboot message like you requested

  • Not sure if this helps but I think I tried to DD one of these and these are SD card where is the EMC?

    debian@beaglebone:~$ ls /dev

    mmcblk0p1 tty tty35 tty62 vcsa
    bus

    mmcblk1 tty0 tty36 tty63 vcsa1
    char

    mmcblk1boot0 tty1 tty37 tty7 vcsa2
    console mmcblk1boot1

    tty10 tty38 tty8 vcsa3
    cpu_dma_latency

    mmcblk1rpmb tty11 tty39 tty9 vcsa4

  • Hi Mark,

    I haven't got a chance to review your recently update yet. but the nodes end with '*boot0' and '*boot1' are from eMMC. So mmcblk1* are eMMC, then mmcblk0p1 is the SD card.

  • Hello 

    I have the serial port working on BBB  it was not wired correct I have a 10 pin FTDI the instructions I followed were for Adafruit . I have  Arago booting from SD card and u-boot access BUT

    I would like to try your .dtb file  can you zip it and attach it please?

    Also explain exactly what and where you changed and how you compiled the .dts in the SDK pleASE

    Also did  the kernel report TI AM335x BBB Test as well?

    Mark

  • Hi Mark,

    Please check my response on Jan 11 above, it shows how the U-Boot dts is changed and the console log showing the machine name is updated.

    As you originally requested, the change was done in U-Boot.

    If you want the machine name to be updated in kernel too, you need do the similar change in kernel dts.

  • Hmm changing this on BBW in both places is what causes the kernel hang sound like you never tested that I inspected the kernel SW and found a place tin kernel sources hat looked like it could cause a hang if  it didnt like the ,dts

    I will modify BBB uboot and and kernel ,dts 

    I am a bit confused isnt the uboot dts passed to the kernel as part of uboot.img

    if so the pre uart kernel code would be reading the uboot ,dts or am I wrong.

    I see parsing of the args passed to kernel being parsed early on as well 

    CoMBINING ALL  that with the I2C Board ID and the parsing for a correct board in uboot I dont fully understand the process 

  • You also dont show the kernel loading just uboot. Did the kernel load correctly I guess was my original question

  • THIS Solution DID NOT WORK and had nothing to do with switching from a Beagle Bone White to Black 

    I modified uboot bone black .dts and rebuilt uboot.img in SDK 

    I first added ONLY new uboot,img ONLY this file  to the  SDCARD 

    It booted the kernel BUT did NOT display the correct board name when kernel booted

    I then added the bone black .dts file I got from bloard support/uboot 

    IT HANGS WHY???

    U-Boot SPL 2021.01-g44a87e3ab8 (May 14 2022 - 22:32:40 +0000)
    Trying to boot from MMC1


    U-Boot 2021.01-00001-gc59bf25a38-dirty (Feb 02 2023 - 10:41:34 -0600)

    CPU : AM335X-GP rev 2.0
    Model: TI Lazar Industries Board
    DRAM: 512 MiB
    WDT: Started with servicing (60s timeout)
    NAND: 0 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Loading Environment from FAT... *** Warning - bad CRC, using default environment

    <ethaddr> not set. Validating first E-fuse MAC
    Net: eth2: ethernet@4a100000, eth3: usb_ether
    Hit any key to stop autoboot: 0
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    Failed to load 'boot.scr'
    596 bytes read in 1 ms (582 KiB/s)
    Loaded env from uEnv.txt
    Importing environment from mmc0 ...
    switch to partitions #0, OK
    mmc0 is current device
    Scanning mmc 0:1...
    Found /extlinux/extlinux.conf
    Retrieving file: /extlinux/extlinux.conf
    177 bytes read in 3 ms (57.6 KiB/s)
    1: Arago
    Retrieving file: /extlinux/../zImage
    4997632 bytes read in 323 ms (14.8 MiB/s)
    append: root=PARTUUID=2ee67f08-02 rootwait rw console=ttyS0,115200n8,115200
    Retrieving file: /extlinux/../am335x-boneblack.dtb
    48713 bytes read in 6 ms (7.7 MiB/s)
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000
    Loading Device Tree to 8fff1000, end 8ffffe48 ... OK

    Starting kernel ...

  • Hello

    I need you to clarify something please 

    The SDK documents say that the kernel ,dts and uImage is loaded from rootfs/boot 

    1) Why are both files  on the media/boot as well please clarify where uboot get the .dtb file from

    I added the ,krenel dtb to rootfs/boot after editing the ,dts in kernel source and building all ,dtb in kernel directory 

    The kernel still say Beagle Bone Black not TI Lazar Industries Inc(my change to .dts) see below it looks like extlinux.conf is grabbing the /media/boot/ bone black ,dtb. This contradicts what the SDK documents say ie that kernel .dtb is loaded from roots/boot

    I am using the default kernel right now but rebuilt uboot ,dts Still wanting the kernel and uboot to display "TI Lazar Industries Board"

    PLEASE CLARIFY PLEASE Where to put the kernel .dtb file to achieve this

    U-Boot 2021.01-00001-gc59bf25a38-dirty (Feb 02 2023 - 10:41:34 -0600)

    CPU : AM335X-GP rev 2.0
    Model: TI Lazar Industries Board
    DRAM: 512 MiB

    Found /extlinux/extlinux.conf
    Retrieving file: /extlinux/extlinux.conf
    177 bytes read in 3 ms (57.6 KiB/s)
    1: Arago
    Retrieving file: /extlinux/../zImage
    4997632 bytes read in 322 ms (14.8 MiB/s)
    append: root=PARTUUID=2ee67f08-02 rootwait rw console=ttyS0,115200n8,115200
    Retrieving file: /extlinux/../am335x-boneblack.dtb

    Starting kernel ...

    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 5.10.100-g7a7a3af903 (oe-user@oe-host) (arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #1 PREEMPT Sat May 14 22:36:58 UTC 2022
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
    [ 0.000000] Memory policy: Data cache writeback

  • I have it working you can modify the source code(a hack) or Change the dts works to achieve my goals

    It works on Beagle Bone White as well

    The SDK documents I love so dearly concerning this problem are misleading 

    It looks like default images use open embedded

    I started with the default images and WAS NOT using the top level makefile I build following SDK Kernel and UBOOT sections 

    I researching the E2E forum I saw many broken links to processor  wiki that have valuable help as in

    1)Board porting (hopefully the videos by TI covering this are still releavent

    2) Using a board with no EEPROM(I have that working

    Lastly 

    In the E2E thfread https://e2e.ti.com/support/processors-group/processors/f/processors-forum/297989/am335x-eeprom-disable

     and Tim Haron say

    I recommend taking the board port u-boot instead of the main SDK u-boot and adding support for your board to that. As Miroslav has mentioned the main u-boot has a lot of code your board does not need. The board port u-boot is a stripped down version of the SDK version without a lot of the 'fluff.' This is based on the BeagleBone. 

    You can take this code and add support for individual features of your board. Note that you won't necessarily have to have u-boot support for everything except what is crucial to boot the kernel (e.g. if you are not mounting an NFS or using tftp to copy the kernel u-boot doesn't need Ethernet support). 

    The board port tree can be found inside board-support/board-port-labs. You can find some lecture material here which helps explain how to add new feature support.

    WHERE are these???? The board port tree can be found inside board-support/board-port-labs

    What a wonderul resource why would remove this , Even if out dated info like this keep people buying TI chips,