Beaglebone can't start OS after unplugging supply power - beagleboneblack

I'm using beaglebone black (Debian OS, MySQL are installed).
After unplugging supply power and not using 24 hours.
I can't start my beaglebone.
It's only birght LED D4 and power LED.
How can i start my OS?
I just try to use usb cable and access to beaglebone at 192.168.7.2. but request time out.

The most likely issue is that the operating system has become corrupted by the unexpected shutdown. The same thing can happen with a regular computer and has happened with my own beaglebone black when I pulled the power plug while testing some circuits. I would suggest trying to boot off of an SD card. If you have anything on there you want to save, you can use the live SD card OS to retrieve the data from the embedded flash. If the SD card also doesnt boot, then you may have a hardware issue and a serial to USB cable plugged into the debug header would probably be needed to try and get more information as to why it is not booting.

Related

Beaglebone defaults to WiFi AP mode?

I've been struggling to get wifi working on my BBB for the better part of a week now. I sort of succeeded at one point, but I couldn't tell how I did it. Anyway, long story short, I noticed this morning that when I start a fresh debian image with my Edimax usb wifi installed, it defaults to AP mode and is broadcasting a SSID called "Beaglebone-710C". This makes sense with my problems because I could see the wifi dongle and see it was recognized, but I couldn't scan or connect. Does anyone know why it would default to AP mode? I think it might have something to do with me accessing the beaglebone via command line over USB? Thoughts? thanks!
Try the following after logging in your BBB via SSH on the USB connection:
http://www.erdahl.io/2016/07/beaglebone-green-wifi-bluetooth-connect_18.html

USB connection trouble

I am currently running a robotic's project using an Hokuyo (URG-04LX-UG01 - http://www.hokuyo-aut.jp/02sensor/07scanner/urg_04lx_ug01.html). This one is plugged to my computer using USB. Although it creates the port "/dev/ttyACM0" when I plug it, I can't connect to it using the associated library (serial connection error). Until here, nothing's strange, bugs or misprogramming happens but here is my problem :
When I plug the hokuyo to an USB HUB, which is also plugged to my computer, I can connect to it and everything works perfectly.
My laptop is a samsung 900x3c running Linux Mint 15.
Do you know what an USB HUB changes in the USB communication ?
Is there a link with my laptop ? (I used to face the same problem using an ARM-Based embedded computer)
Is it possible to fix the issue without using any hardware solution ?
If it's not, is there anything more compact than an USB HUB which could fix it ?
Thanks !
Is your USB-HUB powered from external power adapter? URG-04LX-UG01 seems to consume 2,5W/5V=0,5A. This is limit for USB. Laptop USB ports are not so powerful and if device consumes a little bit more than max, then they just cut the power.
Update
The device is USB 2.0 Full Speed. I've seen USB controller, that had problems with USB 1.0 or USB 2.0 devices. Hub presents itself as USB 2.0 High Speed and handles USB 2.0 Full Speed transparently for the Laptops USB controller. Do you have another Laptop/PC to check this?
I'm kind of late on my feedback for that issue, but better late then never so :
I've been able to determine that the whole issue came from my USB cable. Somehow there was an electrical issue in that cable and the computer-or the hokuyo- was not able to properly communicate through it. I think that the USB HUB was somehow able to correct theses electrical issues.
Anyway, problem solved !

How to detect a usb host connection on a usb device system in C?

I am pretty new to Linux so I apologize if I will ask some really simple stuff.
I am working on a custom board with SAM9G25 and Angstrom distribution as operating system.
The board as to act as a USB Device (Mass storage device), when will be connected to a Host computer. Right now I am simply enabling and removing the g_mass_storage module and the things are working fine.
In the final version, I need to manage the g_mass_storage module according to the connection and disconnection of a USB cable. I tought to use VBUS as an interrupt (also polling will be fine).
Here it comes my problem.
Since the VBUS GPIO is handled by the USB driver i cannot read it's status from userspace. I only see an interrupt count in /proc/interrupt.
I am asking if there is a way to get an interrupt (from the Driver) or to be able to read the VBUS GPIO value when the usb cable is connected/disconnected from the system.
I apreciate any kind of help.
I know this is a bit old, but I found the same problem, and found from userspace you can view the connection status from the udc sys class device. For example, on my architecture the status of USB can be viewed from:
/sys/class/udc/ci_hdrc.0/status
PC connection: configured
Power adapter: powered
Disconnected: not attached
I've read the AM335x architecture can be observed from:
/sys/class/udc/musb-hdrc.0.auto/current_speed
Best of luck

Simulate a USB flash drive with PC

I have a peculiar question.
The case is that I have a TV that can use as source a USB flash drive for playing movies.
Do you think it would be possible to directly connect a PC and the TV USB to USB and using some software interface to determine the PC to act like a flash drive.
I think it can be done with a hardware driver, but I'm wondering if it can be done without that.
No, you can't, not even by writing a new driver.
A flash drive is a USB device, but your computer has only USB host ports. There's different circuitry needed in a device vs. a host (there are circuits that can do both, called USB on-the-go, but those are only found in peripherals).
Actually, you can - kind of.
http://www.eye.fi
This is a special adapter with a Wi-Fi adapter built in that allows you to connect to a computer (or the Internet).
Not quite what you asked but the effect is similar.

BlackBerry: “filesystem not ready” when using USB cable

As part of a BlackBerry project I'm working on I need the ability to store data. As per RIM's documentation, on handsets running v5 or later OS, we can use the SQLite database versus the more typical PersistenceStore methods.
What I noticed is when my handset (A Torch 2) is plugged-in via the USB cable - so that I can run code through the debugger - the "SDCard/" and the "store/" are no longer available (both of these are NO longer enumerated when calling FileSystemRegistry.listRoots). Only "system/" is available, but as it's a read-only file system this does me little good.
I need a read/write file system that will be available even if the handset is attached to a PC.
It's worth noting that when I plug my handset in I get a dialog that asks how I want this connected: Sync Media, Mass storage device, or Charge Only are the 3 options. It does not matter which I choose ... the effects are the same in that only "system/" is available for a file system.
Any advice or help is greatly appreciated.
-------------------------------------- UPDATE --------------------------------------
I spoke with RIM's developer tech support on this issue and was simply informed this is a FAD. Their advice was
"This is not a bug, it is how the device is meant to function. You can
listen for when the device is connected via USB and the data
unavailable using SystemListener2."
As such it appears all we can do is alert the user to the fact that by plugging their handsets into the USB cables whatever functionaltiy you might require in your application that would include the file system will temporarily be unavailable. It might be functions as designed but I hope at some point they'll improve the design.
I'm afraid to say I struggled briefly with this and then gave up.
In my experience RIM mounts the SD card on the pc filesystem when you connect it via USB no matter what you do.
If you "eject" your device from the machine you should be able to access the sd card.

Resources