Problems after flashing the eMMC

Hi, good morning!

I’ve a problem with my BBAI64 after flashing the eMMC as described in the next page: AI-64 how to flash eMMC

Basically, the steps I did are the following:

1º Using the bb-imager I chosed the board: BeagleBone AI-64, then, I chosed the OS: BeagleBone AI-64 Debian XFCE (Recomended), then I chosed the microsd card (which has 32GB). (This step worked correctly).
2º Then I did the next steps in the BeagleBone AI64:

sudo cp -v /etc/beagle-flasher/bbai64-microsd-to-emmc /etc/default/beagle-flasher

debian@BeagleBone:/boot$ sudo enable-beagle-flasher
log: enable-beagle-flasher
log: media is now setup to flash other media
log: [cat /boot/firmware/extlinux/extlinux.conf]
------------------------------------------------
label Linux eMMC
    kernel /Image
    append root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait net.ifnames=0 quiet init=/usr/sbin/init-beagle-flasher
    fdtdir /
    #fdtoverlays /overlays/<file>.dtbo
    initrd /initrd.img
------------------------------------------------
log: Shutdown system and this flasher will run on next startup

3º Then I did shutdown -R now and then it started the flashing process (I think). Before this, I had the microsd card in the slot of the BBAI64. I say I think because the flashing proccess took about 30 seconds?? maybe less, maybe more but the point is it was so fast, really fast.

After that, I saw the network interfaces on my host system and I did the ssh as usual (after erasing the preivous entries)

guillermo@gbernaldo-port:~$ ssh debian@192.168.7.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ED25519 key sent by the remote host is
SHA256:raE3LFISGn7+v42qa8AcCmdtd+UCqRMHbV0OntSt430.
Please contact your system administrator.
Add correct host key in /home/guillermo/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/guillermo/.ssh/known_hosts:160
Host key for 192.168.7.2 has changed and you have requested strict checking.
Host key verification failed.
guillermo@gbernaldo-port:~$ vim /home/guillermo/.ssh/known_hosts +160
guillermo@gbernaldo-port:~$ ssh debian@192.168.7.2
The authenticity of host '192.168.7.2 (192.168.7.2)' can't be established.
ED25519 key fingerprint is SHA256:raE3LFISGn7+v42qa8AcCmdtd+UCqRMHbV0OntSt430.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? temppwd
Please type 'yes', 'no' or the fingerprint: yes
Warning: Permanently added '192.168.7.2' (ED25519) to the list of known hosts.
Debian GNU/Linux 12

BeagleBoard.org Debian Bookworm Xfce Image 2024-07-04
Support: https://bbb.io/debian
default username is [debian]

debian@192.168.7.2's password: 

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@beagle:~$ cat /etc/debian_version 
12.6
debian@beagle:~$ 

But after this I cannot do anything, I always get the next errors:

debian@beagle:~$ sudo apt update
Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]                                                                                    
Get:3 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]        
Get:6 http://deb.debian.org/debian bookworm/main arm64 Packages [8688 kB]                                                                    
Get:7 https://packages.mozilla.org/apt mozilla InRelease [1528 B]
Get:4 https://repos.rcn-ee.com/debian-arm64 bookworm InRelease [3074 B]
Get:8 http://security.debian.org/debian-security bookworm-security/main arm64 Packages [166 kB]                            
Ign:9 http://deb.debian.org/debian bookworm/main arm64 DEP-11 Metadata              
Ign:10 http://deb.debian.org/debian bookworm/main arm64 Contents (deb)
Ign:11 http://deb.debian.org/debian bookworm/main all Contents (deb)
Ign:12 http://deb.debian.org/debian bookworm/contrib arm64 Packages
Ign:13 http://deb.debian.org/debian bookworm/contrib arm64 DEP-11 Metadata
Ign:14 http://deb.debian.org/debian bookworm/contrib arm64 Contents (deb)
Ign:15 http://deb.debian.org/debian bookworm/contrib all Contents (deb)
Err:7 https://packages.mozilla.org/apt mozilla InRelease
  Unknown error executing apt-key
Err:4 https://repos.rcn-ee.com/debian-arm64 bookworm InRelease
  Couldn't create temporary file /tmp/apt.conf.Uy2pdK for passing config to apt-key
Ign:16 http://deb.debian.org/debian bookworm/non-free arm64 Packages
Ign:17 http://deb.debian.org/debian bookworm/non-free arm64 DEP-11 Metadata
Ign:18 http://deb.debian.org/debian bookworm/non-free arm64 Contents (deb)
Ign:19 http://deb.debian.org/debian bookworm/non-free all Contents (deb)
Ign:20 http://deb.debian.org/debian bookworm/non-free-firmware arm64 Packages
Ign:21 http://deb.debian.org/debian bookworm/non-free-firmware arm64 DEP-11 Metadata
Ign:22 http://deb.debian.org/debian bookworm/non-free-firmware all Contents (deb)
Ign:23 http://deb.debian.org/debian bookworm/non-free-firmware arm64 Contents (deb)
Ign:24 http://deb.debian.org/debian bookworm-updates/main arm64 Packages
Ign:25 http://deb.debian.org/debian bookworm-updates/main arm64 Contents (deb)
Ign:26 http://deb.debian.org/debian bookworm-updates/main all Contents (deb)
Ign:27 http://deb.debian.org/debian bookworm-updates/contrib arm64 Packages
Ign:28 http://deb.debian.org/debian bookworm-updates/contrib arm64 Contents (deb)
Ign:29 http://deb.debian.org/debian bookworm-updates/non-free arm64 Packages
Ign:30 http://deb.debian.org/debian bookworm-updates/non-free arm64 Contents (deb)
Ign:31 http://deb.debian.org/debian bookworm-updates/non-free-firmware arm64 Packages
Ign:32 http://deb.debian.org/debian bookworm-updates/non-free-firmware arm64 Contents (deb)
Ign:9 http://deb.debian.org/debian bookworm/main arm64 DEP-11 Metadata
Ign:10 http://deb.debian.org/debian bookworm/main arm64 Contents (deb)
Ign:11 http://deb.debian.org/debian bookworm/main all Contents (deb)
Ign:12 http://deb.debian.org/debian bookworm/contrib arm64 Packages
Ign:5 https://debian.beagle.cc/arm64 bookworm InRelease
Ign:13 http://deb.debian.org/debian bookworm/contrib arm64 DEP-11 Metadata
Ign:14 http://deb.debian.org/debian bookworm/contrib arm64 Contents (deb)
Ign:15 http://deb.debian.org/debian bookworm/contrib all Contents (deb)
Ign:16 http://deb.debian.org/debian bookworm/non-free arm64 Packages
Ign:17 http://deb.debian.org/debian bookworm/non-free arm64 DEP-11 Metadata
Ign:18 http://deb.debian.org/debian bookworm/non-free arm64 Contents (deb)
Ign:33 https://debian.beagle.cc/arm64 bookworm Release
Ign:19 http://deb.debian.org/debian bookworm/non-free all Contents (deb)
Ign:20 http://deb.debian.org/debian bookworm/non-free-firmware arm64 Packages
Ign:21 http://deb.debian.org/debian bookworm/non-free-firmware arm64 DEP-11 Metadata
Ign:22 http://deb.debian.org/debian bookworm/non-free-firmware all Contents (deb)
Ign:23 http://deb.debian.org/debian bookworm/non-free-firmware arm64 Contents (deb)
Ign:24 http://deb.debian.org/debian bookworm-updates/main arm64 Packages
Ign:25 http://deb.debian.org/debian bookworm-updates/main arm64 Contents (deb)
Ign:26 http://deb.debian.org/debian bookworm-updates/main all Contents (deb)
Ign:27 http://deb.debian.org/debian bookworm-updates/contrib arm64 Packages
Ign:28 http://deb.debian.org/debian bookworm-updates/contrib arm64 Contents (deb)
Ign:29 http://deb.debian.org/debian bookworm-updates/non-free arm64 Packages
Ign:30 http://deb.debian.org/debian bookworm-updates/non-free arm64 Contents (deb)
Ign:31 http://deb.debian.org/debian bookworm-updates/non-free-firmware arm64 Packages
Ign:32 http://deb.debian.org/debian bookworm-updates/non-free-firmware arm64 Contents (deb)
Ign:9 http://deb.debian.org/debian bookworm/main arm64 DEP-11 Metadata
Ign:33 https://debian.beagle.cc/arm64 bookworm Release
Ign:10 http://deb.debian.org/debian bookworm/main arm64 Contents (deb)
Ign:11 http://deb.debian.org/debian bookworm/main all Contents (deb)
Ign:12 http://deb.debian.org/debian bookworm/contrib arm64 Packages
Ign:13 http://deb.debian.org/debian bookworm/contrib arm64 DEP-11 Metadata
Ign:14 http://deb.debian.org/debian bookworm/contrib arm64 Contents (deb)
Ign:15 http://deb.debian.org/debian bookworm/contrib all Contents (deb)
Ign:16 http://deb.debian.org/debian bookworm/non-free arm64 Packages
Ign:17 http://deb.debian.org/debian bookworm/non-free arm64 DEP-11 Metadata
Ign:18 http://deb.debian.org/debian bookworm/non-free arm64 Contents (deb)
Ign:19 http://deb.debian.org/debian bookworm/non-free all Contents (deb)
Ign:20 http://deb.debian.org/debian bookworm/non-free-firmware arm64 Packages
Ign:21 http://deb.debian.org/debian bookworm/non-free-firmware arm64 DEP-11 Metadata
Ign:22 http://deb.debian.org/debian bookworm/non-free-firmware all Contents (deb)
Ign:23 http://deb.debian.org/debian bookworm/non-free-firmware arm64 Contents (deb)
Ign:24 http://deb.debian.org/debian bookworm-updates/main arm64 Packages
Ign:25 http://deb.debian.org/debian bookworm-updates/main arm64 Contents (deb)
Ign:26 http://deb.debian.org/debian bookworm-updates/main all Contents (deb)
Ign:27 http://deb.debian.org/debian bookworm-updates/contrib arm64 Packages                                                                                
Ign:28 http://deb.debian.org/debian bookworm-updates/contrib arm64 Contents (deb)                                                                          
Ign:29 http://deb.debian.org/debian bookworm-updates/non-free arm64 Packages                                                                               
Ign:30 http://deb.debian.org/debian bookworm-updates/non-free arm64 Contents (deb)                                                                         
Ign:31 http://deb.debian.org/debian bookworm-updates/non-free-firmware arm64 Packages                                                                      
Ign:32 http://deb.debian.org/debian bookworm-updates/non-free-firmware arm64 Contents (deb)                                                                
Ign:9 http://deb.debian.org/debian bookworm/main arm64 DEP-11 Metadata                                                                                     
Err:10 http://deb.debian.org/debian bookworm/main arm64 Contents (deb)                                                                                     
  Could not open file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_main_Contents-arm64.gz - open (30: Read-only file system) [IP: 151.101.134.132 80]
Ign:11 http://deb.debian.org/debian bookworm/main all Contents (deb)                                                                                       
Ign:12 http://deb.debian.org/debian bookworm/contrib arm64 Packages                                                                                        
Ign:13 http://deb.debian.org/debian bookworm/contrib arm64 DEP-11 Metadata                                                                                 
Ign:14 http://deb.debian.org/debian bookworm/contrib arm64 Contents (deb)                                                                                  
Ign:33 https://debian.beagle.cc/arm64 bookworm Release                                                                                                     
Ign:15 http://deb.debian.org/debian bookworm/contrib all Contents (deb)                                                                                    
Ign:16 http://deb.debian.org/debian bookworm/non-free arm64 Packages                                                                                       
Ign:17 http://deb.debian.org/debian bookworm/non-free arm64 DEP-11 Metadata                                                                                
Ign:18 http://deb.debian.org/debian bookworm/non-free arm64 Contents (deb)                                                                                 
Ign:19 http://deb.debian.org/debian bookworm/non-free all Contents (deb)                                                                                   
Ign:20 http://deb.debian.org/debian bookworm/non-free-firmware arm64 Packages                                                                              
Err:24 http://deb.debian.org/debian bookworm-updates/main arm64 Packages                                                                                   
  Could not open file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_binary-arm64_Packages.xz - open (30: Read-only file system) [IP: 151.101.134.132 80]
Ign:25 http://deb.debian.org/debian bookworm-updates/main arm64 Contents (deb)                                                                             
Ign:26 http://deb.debian.org/debian bookworm-updates/main all Contents (deb)                                                                               
Ign:27 http://deb.debian.org/debian bookworm-updates/contrib arm64 Packages                                                                                
Ign:28 http://deb.debian.org/debian bookworm-updates/contrib arm64 Contents (deb)                                                                          
Ign:29 http://deb.debian.org/debian bookworm-updates/non-free arm64 Packages                                                                               
Ign:30 http://deb.debian.org/debian bookworm-updates/non-free arm64 Contents (deb)                                                                         
Ign:31 http://deb.debian.org/debian bookworm-updates/non-free-firmware arm64 Packages                                                                      
Ign:32 http://deb.debian.org/debian bookworm-updates/non-free-firmware arm64 Contents (deb)                                                                
Err:33 https://debian.beagle.cc/arm64 bookworm Release                                                                                                     
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 104.21.96.96 443]
E: Method store has died unexpectedly!                                                                                                                     
E: Sub-process store received a segmentation fault.
E: Method /usr/lib/apt/methods/store did not start correctly
W: chown to root:root of file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_main_binary-arm64_Packages.xz failed - 201::URIDone (30: Read-only file system)
W: chmod 0644 of file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_main_binary-arm64_Packages.xz failed - 201::URIDone (30: Read-only file system)
E: Method store has died unexpectedly!
E: Sub-process store received a segmentation fault.
E: Method /usr/lib/apt/methods/store did not start correctly
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_main_dep11_Components-arm64.yml.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_main_Contents-arm64.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_main_Contents-all.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_contrib_binary-arm64_Packages.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_contrib_dep11_Components-arm64.yml.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_contrib_Contents-arm64.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_contrib_Contents-all.gz - PrepareFiles (30: Read-only file system)
W: chown to root:root of file /var/lib/apt/lists/partial/packages.mozilla.org_apt_dists_mozilla_InRelease failed - 400::URIFailure (30: Read-only file system)
W: chmod 0644 of file /var/lib/apt/lists/partial/packages.mozilla.org_apt_dists_mozilla_InRelease failed - 400::URIFailure (30: Read-only file system)
W: chown to _apt:root of file /var/lib/apt/lists/partial/repos.rcn-ee.com_debian-arm64_dists_bookworm_InRelease failed - Item::QueueURI (30: Read-only file system)
W: chmod 0600 of file /var/lib/apt/lists/partial/repos.rcn-ee.com_debian-arm64_dists_bookworm_InRelease failed - Item::QueueURI (30: Read-only file system)
W: GPG error: https://packages.mozilla.org/apt mozilla InRelease: Unknown error executing apt-key
E: The repository 'https://packages.mozilla.org/apt mozilla InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: chown to root:root of file /var/lib/apt/lists/partial/repos.rcn-ee.com_debian-arm64_dists_bookworm_InRelease failed - 400::URIFailure (30: Read-only file system)
W: chmod 0644 of file /var/lib/apt/lists/partial/repos.rcn-ee.com_debian-arm64_dists_bookworm_InRelease failed - 400::URIFailure (30: Read-only file system)
W: GPG error: https://repos.rcn-ee.com/debian-arm64 bookworm InRelease: Couldn't create temporary file /tmp/apt.conf.Uy2pdK for passing config to apt-key
E: The repository 'http://repos.rcn-ee.com/debian-arm64 bookworm InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free_binary-arm64_Packages.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free_dep11_Components-arm64.yml.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free_Contents-arm64.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free_Contents-all.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free-firmware_binary-arm64_Packages.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free-firmware_dep11_Components-arm64.yml.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free-firmware_Contents-all.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free-firmware_Contents-arm64.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_binary-arm64_Packages.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_Contents-arm64.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_Contents-all.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_contrib_binary-arm64_Packages.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_contrib_Contents-arm64.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_non-free_binary-arm64_Packages.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_non-free_Contents-arm64.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_non-free-firmware_binary-arm64_Packages.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_non-free-firmware_Contents-arm64.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_main_dep11_Components-arm64.yml.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_main_Contents-arm64.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_main_Contents-all.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_contrib_binary-arm64_Packages.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/debian.beagleboard.org_arm64_dists_bookworm_InRelease - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_contrib_dep11_Components-arm64.yml.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_contrib_Contents-arm64.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_contrib_Contents-all.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free_binary-arm64_Packages.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free_dep11_Components-arm64.yml.xz - PrepareFiles (30: Read-only file system)
W: http://debian.beagleboard.org/arm64/dists/bookworm/Release: No system certificates available. Try installing ca-certificates.
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free_Contents-arm64.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/debian.beagleboard.org_arm64_dists_bookworm_Release - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free_Contents-all.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free-firmware_binary-arm64_Packages.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free-firmware_dep11_Components-arm64.yml.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free-firmware_Contents-all.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free-firmware_Contents-arm64.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_binary-arm64_Packages.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_Contents-arm64.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_Contents-all.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_contrib_binary-arm64_Packages.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_contrib_Contents-arm64.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_non-free_binary-arm64_Packages.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_non-free_Contents-arm64.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_non-free-firmware_binary-arm64_Packages.xz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_non-free-firmware_Contents-arm64.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_main_dep11_Components-arm64.yml.gz - PrepareFiles (30: Read-only file system)
W: http://debian.beagleboard.org/arm64/dists/bookworm/Release: No system certificates available. Try installing ca-certificates.
W: Problem unlinking the file /var/lib/apt/lists/partial/debian.beagleboard.org_arm64_dists_bookworm_Release - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_main_Contents-arm64 - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_main_Contents-all - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_contrib_binary-arm64_Packages.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_contrib_dep11_Components-arm64.yml.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_contrib_Contents-arm64 - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_contrib_Contents-all - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free_binary-arm64_Packages.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free_dep11_Components-arm64.yml.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free_Contents-arm64 - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free_Contents-all - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free-firmware_binary-arm64_Packages.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free-firmware_dep11_Components-arm64.yml.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free-firmware_Contents-all - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free-firmware_Contents-arm64 - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_binary-arm64_Packages - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_Contents-arm64 - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_Contents-all - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_contrib_binary-arm64_Packages - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_contrib_Contents-arm64 - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_non-free_binary-arm64_Packages - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_non-free_Contents-arm64 - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_non-free-firmware_binary-arm64_Packages - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_non-free-firmware_Contents-arm64 - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_main_dep11_Components-arm64.yml.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_main_Contents-arm64 - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_main_Contents-all - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_contrib_binary-arm64_Packages.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_contrib_dep11_Components-arm64.yml.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_contrib_Contents-arm64 - PrepareFiles (30: Read-only file system)
W: http://debian.beagleboard.org/arm64/dists/bookworm/Release: No system certificates available. Try installing ca-certificates.
W: Problem unlinking the file /var/lib/apt/lists/partial/debian.beagleboard.org_arm64_dists_bookworm_Release - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_contrib_Contents-all - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free_binary-arm64_Packages.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free_dep11_Components-arm64.yml.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free_Contents-arm64 - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free_Contents-all - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_non-free-firmware_binary-arm64_Packages.gz - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_binary-arm64_Packages - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_Contents-arm64 - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_Contents-all - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_contrib_binary-arm64_Packages - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_contrib_Contents-arm64 - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_non-free_binary-arm64_Packages - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_non-free_Contents-arm64 - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_non-free-firmware_binary-arm64_Packages - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_non-free-firmware_Contents-arm64 - PrepareFiles (30: Read-only file system)
W: http://debian.beagleboard.org/arm64/dists/bookworm/Release: No system certificates available. Try installing ca-certificates.
W: Problem unlinking the file /var/lib/apt/lists/partial/debian.beagleboard.org_arm64_dists_bookworm_Release - PrepareFiles (30: Read-only file system)
E: The repository 'http://debian.beagleboard.org/arm64 bookworm Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Problem executing scripts APT::Update::Post-Invoke-Success '/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null'
E: Sub-process returned an error code
E: flAbsPath on /var/lib/dpkg/status failed - realpath (5: Input/output error)
E: The package lists or status file could not be parsed or opened.
debian@beagle:~$ sudo apt install --only-upgrade bb-j721e-evm-firmware generic-sys-mods
sudo: error while loading shared libraries: libaudit.so.1: cannot open shared object file: Input/output error
debian@beagle:~$ sudo apt install --only-upgrade bb-j721e-evm-firmware generic-sys-mods
sudo: error while loading shared libraries: libaudit.so.1: cannot open shared object file: Input/output error
debian@beagle:~$ sudo apt upgrade
sudo: error while loading shared libraries: libaudit.so.1: cannot open shared object file: Input/output error
debian@beagle:~$ sudo apt update
sudo: error while loading shared libraries: libaudit.so.1: cannot open shared object file: Input/output error
debian@beagle:~$ df -h

Anyone knows what can I do to solve this problem? Because I don’t know what to do.

Thank you so much in advance

1 Like

That is an odd one…

First off, and I will admit it, I am not familiar with beagle-flasher and/or bb-imager.

So, 32 GB of micro SD Card to 16 GB of eMMC onboard the BBAI-64 may be a cause. Guess work here.

It would be interesting to some people mfg. the bb-imager if you would place a USB to TTL cable in the port and boot to see what is taking place.

Maybe try an eight gigabyte micro SD Card?

Seth

P.S. Maybe try Etcher and/or dd if possible and all while using Linux. I think the bb-imager is newly done and being developed still. I just read about it today.

Thank you so much @silver2row for your help

Tha BBAI64 works correctly from the sd card. I mean, I press BOOT btn , then I plug the USB Type-C to my laptop and the board boots correctly from the same SD card I used to flash the board.

Then, I did ssh@192.168.7.2 and mounted the root partition to see if anything is wrong, but everything seems to be correct at least in the file system.

debian@beagle:~$ sudo fdisk -l 
Disk /dev/mmcblk0: 14.6 GiB, 15678308352 bytes, 30621696 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x178ec3d3

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1 *      2048   264191   262144  128M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      264192 30621695 30357504 14.5G 83 Linux


Disk /dev/mmcblk0boot0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mmcblk0boot1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mmcblk1: 29.81 GiB, 32010928128 bytes, 62521344 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xe4999b4b

Device         Boot   Start      End  Sectors  Size Id Type
/dev/mmcblk1p1 *       2048   526335   524288  256M  c W95 FAT32 (LBA)
/dev/mmcblk1p2       526336  8914943  8388608    4G 82 Linux swap / Solaris
/dev/mmcblk1p3      8914944 62521310 53606367 25.6G 83 Linux
debian@beagle:~$ ls /mnt/
debian@beagle:~$ sudo mount /dev/mmcblk0p2 /mnt
mount: (hint) your fstab has been modified, but systemd still uses
       the old version; use 'systemctl daemon-reload' to reload.
debian@beagle:~$ ls /mnt/

Unfortunately, I don’t have a serial port right now to see whats going on in the boot process, but I’ll get one as soon as I can.

Thanks!

Just download one of the flasher images and copy that to an sd card, then holding down the boot button apply power wait a couple of seconds and release the button.

The emmc will then get reflashed and should boot.

1 Like

Thanks @benedict.hewson !

I downloaded the next image: https://files.beagle.cc/file/beagleboard-public-2021/images/bbai64-emmc-flasher-debian-12.6-xfce-arm64-2024-07-04-12gb.img.xz

From here: BBAI64 Debian 12.6 2024-07-04 XFCE Flasher - BeagleBoard

I did it and now there is just one led lighting (LED6). The SD Card is a new one of 64GB. How do I know when the process is finished? How much time does it take? I tried to find documentation about the process but I haven’t found anything!

Thank you so much!

Ok just flashed the same file to my board. From power up to shutdown it took about 17.5 minutes from a cheap 16Gb no name sd card.

So the board should boot up and you will get a few seconds of various leds flashing.
Once the board gets to flashing the emmc you should see the standard led chase pattern going left to right and back.

After the flashing is completed to board will power down and all leds turn off.

If you are not seeing this, you are going to need to connect a serial console cable to the UART connector. Unfortunately this is not the normal 0.1" connector that is used on the other boards so you will have to find a pre-crimped connector and hook it up to a normal TTL to USB converter.

Thanks again @benedict.hewson

I’ll buy a serial port wire like this: https://www.digikey.es/en/products/detail/digi-key-electronics/BBCAI/10187731

I saw this cable in other post in this forum, so I assume this will work perfectly. I have the USB wire I’m using for the BBB. So, when the wire is here I’ll see what’s going on.

In the meanwhile, I’ll try with a SD card of 16Gb just to see what’s going on.

Thank you so much.

PD: Anyway, the hardware boots correctly when using the bb-imager tool. So, I wonder if is it possible somehow to copy data from the SD card into the eMMC flash? Is there any guide for this?

Not seen those. Not much good for me as all the the serial to usb converters I have would not connect directly.

Given the fragilty of the connector I have bought some of these - YIXISI 50 Pairs Mini Micro JST-ZH but thats from the UK although I am sure you could also find them locally. Very good price.

The image you downloaded will flash the emmc. If it isn’t then you have a problem somewhere.

Thanks!

I think I’ll buy those wires too, so I can plug them to the USB2Serial port I had for the BBB.

One question it lacks me is, is it possible I’ve f***ed up the bootloader somehow? Cause I tried with a microsd card of 8GB formatted with Fat32 and it does the same thing as the SD of 32GB.

Thank you so much for your help!

As soon as I have the wires I’ll tell you sth.

The initial boot code is in ROM on the chip. You can’t erase or corrupt this.
That code should always run.

Holding the boot button down while applying power (don’t think just pressing the reset button counts) changes the order in which the internal ROM codes checks for the next stage of boot.

Either emmc and then sd card if the boot button is not pressed, or sd card then emmc if the boot button was pressed. If the primary boot device does not contain the correct boot code, the second device is tried.

Hi again @benedict.hewson and CO.

I have some news regarding this topic. Finally, I’ve been able to install a fresh image from sd card(SanDisk Ultra 32GB) using the previous method you told me. The good news are I could flash the emmc with the image of the next link:

The bad news I tried again with the image of this link

But in this case, the sd card didn’t boot.

The steps I did were the next:

1º Use bb-imager to flash the image into the sd card.
2º Power the AI64 with the boot button pushed.
3º After that, it started the flashing process into the emmc.

I did the same process for both images. First was the bbai64-11-8, then it was the bbai64-12-6.

Meanwhile, the wires arrived, and right now I have the wires plugged into the hardware.
The USB wire I’m using is this: Amazon.es

And the connection between my pc and the ai64 is shown in the next pictures. The wires in the ai64 side are connected to the J3 connector.

With the wires plugged and the minicom (minicom -D /dev/ttyUSB0 -b 115200), now I’m able to see whats going on in the boot process (see next pictures)


The thing is now I can see the uboot and the boot process of the ai64 without any problem, but, when I press any key in the uboot process or in the login process the ai64 does not respond to the key presses. It’s like the tx pin (in the USB side) is not working correctly.

Does anyone has idea about this problem and knows how to solve it?

Thank you so much in advance!

ok first thing is check you don’t have flow control turned on

In minicom do ctr-a o and select Serial port setup. Make sure hardware and software flow control are turned off.

If that doesn’t work and you have a DVM I would suggest checking continuity of the wires. Fortunately the uart connectors are not surface mount and you can get to the pins under the pcb
could be you have a bad crimp/connection somewhere.

Thanks @benedict.hewson again!

That was the problem, The setting HW Flow Control was enabled.

Thanks again men!

PD: Due to how I advanced is the software I’m writting for the BBAI64, I think I will keep the current operating system I have (Debian Bullseye 11.10) until I need more updated libraries. I just wanted to update the version of the operating system cause that version uses other libraries for AI more updated which comes with the package manager, but I’ve managed to build the libraries from source code and now I’m working with those libraries. Maybe I’ll give it another try when I have more devices (bbai64) like this one.