Flashed wrong image, won't flash anymore

Hi @foxsquirrel , @RobertCNelson ,

I downloaded the latest image ARM64 - Debian 12.x (Bookworm) - Monthly Snapshots - 2023-08-05 and used PI imager for the SD card. Held RESET and BOOT, then released RESET.

It still doesn’t flash and goes through the same loop as before.

However, I figured out the keystroke issue (wrong flow control setting in PuTTY) so I can hit spacebar and go into uboot. But that’s not a terminal I’m used to, so I’m reading up on it. Here’s the log with a few commands I tried while poking around:

U-Boot SPL 2021.01-gea96725b (Aug 03 2023 - 15:43:32 +0000)
Model: BeagleBoard.org BeagleBone AI-64 R5
Board: BBONEAI-64-B0- rev B0
SYSFW ABI: 3.1 (firmware rev 0x0015 '21.9.1--v2021.09a (Terrific Lla')
Trying to boot from MMC2
Starting ATF on ARM64 core...

NOTICE:  BL31: v2.5(release):08.03.00.002-3-g577844a
NOTICE:  BL31: Built : 15:43:32, Aug  3 2023

U-Boot SPL 2021.01-gea96725b (Aug 03 2023 - 15:43:32 +0000)
Model: Texas Instruments K3 J721E SoC
Board: BBONEAI-64-B0- rev B0
SYSFW ABI: 3.1 (firmware rev 0x0015 '21.9.1--v2021.09a (Terrific Lla')
Trying to boot from MMC2


U-Boot 2021.01-gea96725b (Aug 03 2023 - 15:43:32 +0000)

SoC:   J721E SR1.1 GP
Model: Texas Instruments K3 J721E SoC
Board: BBONEAI-64-B0- rev B0
DRAM:  4 GiB
Flash: 0 Bytes
MMC:   sdhci@4f80000: 0, sdhci@4fb0000: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In:    serial@2800000
Out:   serial@2800000
Err:   serial@2800000
am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA00101 cpsw_ver: 0x6BA80100 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
Net:   eth0: ethernet@46000000port@1
Press SPACE to abort autoboot in 2 seconds
=> mmc list
sdhci@4f80000: 0 (eMMC)
sdhci@4fb0000: 1 (SD)
=> mmc dev 0
switch to partitions #0, OK
mmc0(part 0) is current device
=> mmc info
Device: sdhci@4f80000
Manufacturer ID: 70
OEM: 100
Name: TB291
Bus Speed: 200000000
Mode: HS200 (200MHz)
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 14.6 GiB
Bus Width: 8-bit
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 14.6 GiB
Boot Capacity: 4 MiB ENH
RPMB Capacity: 4 MiB ENH
Boot area 0 is not write protected
Boot area 1 is not write protected
=> mmc part

Partition Map for MMC device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            262144          447836e8-01     0c Boot
  2     264192          30357504        447836e8-02     83
=> mmc dev 1
i2c_write: error waiting for data ACK (status=0x116)
pca953x gpio@22: Error reading output register
switch to partitions #0, OK
mmc1 is current device
=> mmc info
Device: sdhci@4fb0000
Manufacturer ID: ad
OEM: 4c53
Name: USD00
Bus Speed: 50000000
Mode: SD High Speed (50MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 117.8 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
=> mmc part

Partition Map for MMC device 1  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            524288          616642e0-01     0c Boot
  2     526336          10532864        616642e0-02     83
=> ls mmc 0:1
            extlinux/
            overlays/
       54   ID.txt
 32715264   Image
 14943002   initrd.img
   104411   k3-j721e-proc-board-tps65917.dtb
   176972   k3-j721e-beagleboneai64.dtb
   103483   k3-j721e-common-proc-board.dtb
   100308   k3-j721e-sk.dtb
   268990   sysfw.itb
   280648   tiboot3.bin
   773488   tispl.bin
  1176352   u-boot.img

11 file(s), 2 dir(s)

=> ls mmc 0:2
<DIR>       4096 .
<DIR>       4096 ..
<DIR>      16384 lost+found
=> ls mmc 1:1
   269281   tiboot3.bin
   812856   tispl.bin
  1027544   u-boot.img
   269026   sysfw.itb
       57   ID.txt
            extlinux/
 29409792   Image
   226922   k3-j721e-beagleboneai64.dtb
   220291   k3-j721e-beagleboneai64-no-shared-mem.dtb
   111202   k3-j721e-common-proc-board.dtb
   112130   k3-j721e-proc-board-tps65917.dtb
   109069   k3-j721e-sk.dtb
            overlays/
  9585146   initrd.img
            System Volume Information/

12 file(s), 3 dir(s)

=> ls mmc 1:2
<DIR>       4096 .
<DIR>       4096 ..
<DIR>      16384 lost+found
<DIR>       4096 boot
<DIR>       4096 sys
<DIR>       4096 media
<SYM>          7 lib
<DIR>       4096 proc
<DIR>       4096 tmp
<DIR>       4096 etc
<DIR>       4096 dev
<DIR>       4096 home
<DIR>       4096 run
<DIR>       4096 var
<SYM>          8 sbin
<DIR>       4096 usr
<DIR>       4096 root
<DIR>       4096 opt
<SYM>          7 bin
<DIR>       4096 mnt
<DIR>       4096 srv

At this point I’m a bit over my head. Is that pca953x error significant? Is the eMMC partition type 0c DOS correct or should it be 83 for Linux bootable?

Anyway, I have some reading to do… please let me know if you can point me to a good resource, tutorial or if you have a step by step!

Thank you for getting me this far, I really appreciate the help!