The partition is now detected by my computer when the Bela is plugged in, but I can't connect via SSh or via Bela IDE
Communication between 2 Bela Mini
My bad, I can connect only using bela.local but not using 192.168.6.2 . I think I might have broke something in the DHCP server
Great now that you can connect you can take the opportunity to back up your projects for peace of mind.
Additionally, please post here the content of the two files you modified.
You can use cat /etc/dhcp/dhcpd.conf
and cat /etc/network/interfaces
to show them on the terminal and copy/paste them here.
Here you go!
In interfaces is OK, but in dhcpd.conf you have
subnet 192.169.8.0 netmask 255.255.255.0 {
but it should be
subnet 192.168.8.0 netmask 255.255.255.0 {
(i.e.: you are using 169 instead if 168)
Not sure how that would break things ...
Anyhow, uncomment the addr4 line in uEnv.txt again and give it another try.
It's still not detected. I'll try to flash it with a unmodified os to make sure it is not just mine, and I'll let you know if it worked.
Thank you for your time so far!
Is there no USB device at all showing up ? Not even the serial port or MIDI or storage?
- Edited
giuliomoro Is there no USB device at all showing up ? Not even the serial port or MIDI or storage?
When I plug it, I don't see any changes in device manager, and it doesn't show up in file explorer as a partition. It's only when I uncomment the line addr4 in uEnv. Any idea why?
I've flashed Bela OS on the SD card and did again the step. The only thing I've did differently is that I added the line addr4 in uEnv after adding/modifing the 3 files with SSH. I've did it that way because it wasn't showing up with the addr4 line. (It worked earlier because I made a typo in uEnv)
FelixDoyon When I plug it, I don't see any changes in device manager, and it doesn't show up in file explorer as a partition. It's only when I uncomment the line addr4 in uEnv. Any idea why?
Not sure I understand this , can you explain it better? When the addr4 line is commented out do you see devices or not? And we are still talking only about the USB micro cable, right?
giuliomoro And we are still talking only about the USB micro cable, right?
I'm only using micro usb to connect Bela to my computer.
giuliomoro Not sure I understand this , can you explain it better?
When uboot_overlay_addr4=/lib/firmware/PB-USB1-PERIPHERAL.dtbo
is not in the file uEnv. the Bela is visible from my computer (I can interact with Bela normaly), but whenever uboot_overlay_addr4=/lib/firmware/PB-USB1-PERIPHERAL.dtbo
is in uEnv, it is not visible from my computer (I don't see the partition, and SSH can't connect to root@Bela.local)
Oh ok that makes sense. Get on the board and make sure that file exists:
ls /lib/firmware/PB-USB1-PERIPHERAL.dtbo
Yes it is present!
Do the lights on the pocketbeagle blink when you power it on even if it doesn't show up on your computer?
Also: can you show the result of the following commands:
grep UDC /opt/Bela_gadget.sh
grep v0 /etc/motd
?
Hi Giuliomoro
The two next command are executed without the line uboot_overlay_addr4=/lib/firmware/PB-USB1-PERIPHERAL.dtbo
in uEnv.txt
giuliomoro grep UDC /opt/Bela_gadget.sh
The first file is not there
Here is the return of the second command
giuliomoro Do the lights on the pocketbeagle blink when you power it on even if it doesn't show up on your computer?
Yess it blinks. I can send you a video if you want to see how it blinks
FelixDoyon The first file is not there
Sorry, try grep UDC /opt/Bela/bela_gadget.sh
- Edited
Here is the result
Again, it was execute without the line addr4 in uEnv.txt
right, that's the issue. Edit that file and change that line to:
ls /sys/class/udc/ | head -n1 > UDC
Now it work! Let me try these steps and I'll let you know the outcome in few minutes
giuliomoro reboot Bela, connected only with the USB micro cable.
get back onto Bela and execute /opt/Bela/usb1_network.sh
run ifup usb2
run dmesg -w and leave it running in the terminal
moment of truth: connect the USB-A to USB-A cable to the same computer where you are currently connected over micro USB
does a new network show up on the host?
does anything appear in the terminal window where the process is running?
can you connect to the Bela IDE on 192.168.8.2?
Here are the result!
giuliomoro get back onto Bela and execute /opt/Bela/usb1_network.sh
giuliomoro run ifup usb2
it execute with no output
giuliomoro run dmesg -w and leave it running in the terminal
Seem to execute normally with a lot of output
giuliomoro moment of truth: connect the USB-A to USB-A cable to the same computer where you are currently connected over micro USB
It show those 2 lines in the middle when I plug it
giuliomoro does a new network show up on the host?
Yes! Here is when not plugged in
And when i plug it via Usb A, Ethernet 12 appear
giuliomoro does anything appear in the terminal window where the process is running?
Do you mean on the ssh session?
giuliomoro can you connect to the Bela IDE on 192.168.8.2?
Unfortunately no, only via 192.168.6.2