Right, so I worked with one Bela, that I've upgraded to "Bela image, v0.3.6b, 23 October 2018"; had to do the https://github.com/BelaPlatform/Bela/wiki/Manage-your-SD-card#option-2 - and the procedure completed, it booted fine, no problem there.
Now, I'm trying to do the same on another Bela, and unfortunately, after completing the same process, this Bela does not want to boot anymore. I cannot recall what the working Bela was, -- but I'm pretty sure it's the same as this one, that doesn't boot, which is:
- 03/16 rev. B1 cape
- BeagleBoard.org - BeagleBone Black - cannot tell what the revision is, but the User Button is labeled "S2"
Anyways, this is the process I went through - using Ubuntu 18.04 as desktop/host OS:
First, I I removed SD card, booted as per https://github.com/BelaPlatform/Bela/wiki/Manage-your-SD-card#option-1 - got to this:
$ ssh root@192.168.7.2
...
Debian GNU/Linux 7
BeagleBoard.org Debian Image 2015-11-12
Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian
default username:password is [debian:temppwd]
Last login: Thu Nov 12 19:00:03 2015
root@beaglebone:~#
So, since "if the eMMC contains a beagleboard.org image, do ssh debian@beaglebone.local" - and it is a BeagleBoard.org Debian Image, I exited, and tried again (after removing keys with ssh-keygen -f
):
$ ssh debian@beaglebone.local
...
Debian GNU/Linux 7
BeagleBoard.org Debian Image 2015-11-12
Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian
default username:password is [debian:temppwd]
debian@beaglebone.local's password:
debian@beaglebone:~$
Also, I think at this point I got a /media/BEAGLEBONE
partition automounted in Ubuntu.
Ok, once that I confirmed this, I proceeded with https://github.com/BelaPlatform/Bela/wiki/Manage-your-SD-card#option-1 :
debian@beaglebone:~$ sudo dd if=/dev/zero of=/dev/mmcblk1p1 bs=1024k count=50
dd: writing `/dev/mmcblk1p1': No space left on device
11+0 records in
10+0 records out
10485760 bytes (10 MB) copied, 0.128818 s, 81.4 MB/s
Then, as per instructions "insert SD card and reboot. It will boot from the SD card" - did so, but it didn't boot. (Btw, the same thing happened on the first Bela, that ended up being flashed succesfully).
So, I proceed with https://github.com/BelaPlatform/Bela/wiki/Manage-your-SD-card#option-2
- remove the Bela cape (see here)
- insert the SD card in the slot
- press the "USER" button on the BeagleBone (at the back just above the SD card slot) and hold it while powering up the Beaglebone.
It booted; got /media/BELABOOT
partition automounted on PC. Opened a web browser on http://192.168.7.2 ; and from the Bela IDE, I ran /opt/Bela/bela_flash_emmc.sh
; process started, and after some minutes, completed with:
...
+ cp -a /opt/Bela/uEnv-emmc.txt /mnt/emmc_boot/uEnv.txt
+ cp -a /bin/ /boot/ /dev/ /etc/ /home/ /lib/ /opt/ /root/ /sbin/ /srv/ /usr/ /var/ /mnt/root # hangs here for a while
...
+ rm /mnt/root/etc/systemd/system/default.target.wants/bela_flash_emmc.service
rm:
cannot remove '/mnt/root/etc/systemd/system/default.target.wants/bela_flash_emmc.service': No such file or directory
+ true
+ rm /mnt/root/etc/cpsw_0_mac /mnt/root/etc/cpsw_1_mac /mnt/root/etc/cpsw_2_mac /mnt/root/etc/cpsw_3_mac /mnt/root/etc/cpsw_4_mac /mnt/root/etc/cpsw_5_mac
+ sync
+ umount /mnt/emmc_boot
+ umount /mnt/root
+ echo 'Done!'
+ echo mmc0
+ echo none
+ echo mmc1
Done!
+ SUCCESS=1
+ final_check
+ '[' 1 -eq 0 ']'
root@bela ~/Bela#
Then, as per the instructions:
- power off the board and put the Bela cape back on
- power on the board. It should now successfully boot from the SD card without need to press the USER button.
At this point, my first (working) Bela did reboot - but the current one did not.
So, I checked the SD card on the PC, it automounts two partitions:
/media/BELABOOT
/media/BELAROOTFS
... the same I got with the working Bela, too.
Then I removed the cape again, booted with S2/USER button again, it boots again, /media/BELABOOT
automounts on PC, and I did:
$ ssh debian@beaglebone.local
ssh: Could not resolve hostname beaglebone.local: Name or service not known
$ ssh root@192.168.7.2
The programs included with the Debian GNU/Linux system are free software;
...
Bela image, v0.3.6b, 23 October 2018
....
So, I did the following:
- Without cape, without SD card, no S2/USER: I just get
/media/BELABOOT
automounted on PC, and LEDs D2, D3 and D4 shine constantly, and there the boot process stops...
- Without cape, without SD card, S2/USER pressed: only PWR LED shines, no other - no LED blink activity...
- Cape, without SD card, no S2/USER: same thing: I just get
/media/BELABOOT
automounted on PC, and LEDs D2, D3 and D4 shine constantly, and there the boot process stops...
- Cape, without SD card, S2/USER pressed: only PWR LED shines, no other - no LED blink activity...
- Cape, with SD card, no S2/USER: same thing: I just get
/media/BELABOOT
automounted on PC, and LEDs D2, D3 and D4 shine constantly, and there the boot process stops...
- Cape, with SD card, S2/USER pressed: only PWR LED shines, no other - no LED blink activity...
I'm kind of puzzled that this happened - especially since I've already went through the same process, on likely the same type of Bela, and it worked. So, what can I do to troubleshoot this, and to get this Bela to boot again?