I am using Beaglebone black Rev C with Debian OS.I have flashed eMMC using sdcard.
I am facing the issue that whenever I remove SD card and boot the board , it boots successfully first time but after next reboot cursor continuously blinking on screen and nothing is happening further.
Please help me now how to resolve it.
Related
I have a laptop and I use an extra USB cable keyboard for it but its lights don't work in ubuntu system, my laptop's keyboard doesn't have a light function so I use an extra keyboard but it doesn't work lights either
I am in the terminal
xset -led 3 xset led 3
I tried the command, it worked once at first, but after turning on my laptop, these commands didn't help either
I am working on Intel Galileo board(Linux running on board) and using arduino as development environment.
Now on getting a particular gpio pin(say digital pin 6) logic 1, I want to reset my code automatically.
I want reset done by running sketch on its own(i.e. I don't have press RESET button).
I am not using SD card Image.
I am unable to interpret how it should be done.
Just add the following line to reset the sketch, without the inconvenience of a board reboot:
system("./opt/cln/galileo/galileo_sketch_reset_script.sh");
I believe you'll be able to reboot your board by calling in your sketch the system command:
system("reboot");
But there might be a better solution for your main goal. Can you explain a bit more what are you trying to accomplish doing this?
I'm newbie on Beaglebone black and audio cape, could anyone kindly give me the idea how to install audio cape rev B board on kernel 3.18. Since on kernel 3.8, there is cape manager, while it has been removed since 3.13. For the moment, I really have no idea how to install the board on new kernel. Thank you in advance.
The cape manager is no longer needed. Simply write the name of your device overlay (eg, BB-BONE-AUDI-02) to
/sys/devices/bone*/slots
to add the device.
For example,
# echo BB-BONE-AUDI-02 > /sys/devices/bone*/slots
Then cat that file to make sure your device is listed. Make sure HDMI has been disabled as well.
I am a newbie in Beaglebone Black, I install Ubuntu on my Beaglebone Black which works fine, Now I am trying to install Angstrom on Beaglebone Black, for this I first of all download image of Angstrom "Angstrom-Cloud9-IDE-GNOME-eglibc-ipk-v2012.12-beaglebone-2013.08.21.img" , then extract it using "7Zip" , after that I use "Win32 Disk Imager" to copy it into a 16 GB SD card.Now insert my SD card in Beaglebone Black. Then I press boot button and after that I provide power supply using 5v and 1 Amp adapter. After making sure that all four LED's are glowing , I release boot button.
Now the problem is the installation should be completed in around 45 minute and all four LED's should become stable , but in my case LED's keeps blinking. I check it more than four times for around more than one and a half hour and after that I take out the power supply and check Beaglebone Board on my desktop monitor, surprisingly Ubuntu is Still there.So, please tell where is the problem.
Use this file "BBB-eMMC-flasher-2013.09.04" under BeagleBone Black (eMMC flasher) for flashing to eMMC
I had also installed Angstrom on BeagleBoard Black.
You should follow derek molloy tutorial. Here is the link to tutorial
It should boot up in 10 seconds. It will not take 45 minute to boot up if properly installed.
After having set-up and customized my "master" BeagleBone Black (BBB) with applications etc. on the on-board eMMC, I want to duplicate it on other BBB boards.
What is the best way to duplicate the BBB?
My understanding of options:
SD-Card: Programming each board by inserting a prepared SD card containing an image and pressing the "boot" switch while powering up.
How should I prepare that .img file or the SD card from my master BBB?
The image should copy to the on-board eMMC, so that the SD-card can be removed afterwards.
USB: Programming by connecting the board over USB to a (Win7) PC.
Is it possible to write the full on-board eMMC from the PC?
With which app to do the writing?
How to prepare the image which will be written, starting from the master BBB?
Ethernet: Programming over LAN after boot-up with default angstrom distro.
Is it even possible over LAN?
How to do the writing?
How to prepare the image which will be written, starting from the master BBB?
Which is possible/best?
Edit: My current solution is to flash with a standard image (from the BeagleBoe website) and then have a script do all modifications as expected. This includes disabling many services I don't need, installing applications and configuring stuff etc.
If there is an easier way for making a SD card with a full image on it, I'm still interested.
As noted at the bottom of the eLinux article, there is a much easier way if you are running the Debian distribution:
Boot master BBB with no SD card in
Insert SD card
Log in (e.g. with serial terminal, SSH etc.) and run sudo /opt/scripts/tools/eMMC/beaglebone-black-make-microSD-flasher-from-eMMC.sh. LEDs will flash in sequence whilst SD card is being written.
When the LEDs stop and the script terminates, remove the SD card.
Insert SD card into new BBB then power on.
eMMC will be flashed; LEDs on new BBB will flash in sequence until complete.
For anyone else that needs this, the best answer I've found to this is to do the following:
First setup your master Beaglebone Black the way you want it.
Backup the eMMC
FAT format a 4GB or larger SD card (must be a MBR/bootable formatted microSD card)
Download beagleboneblack-save-emmc.zip and extract the contents onto your SD card
Note: this is an image from Jason Krinder at his github https://github.com/jadonk/buildroot using the save-emmc-0.0.1 tag
Put the card into your powered off Beaglebone Black
Power on your Beaglebone Black while holding the S2 Button
The USR0 led will blink for about 10 minutes, when it's steady on you have an SD card with a copy of your eMMC in a .img file
Use the eMMC to flash a new Beaglebone Black
On the SD card edit autorun.sh
#!/bin/sh
echo timer > /sys/class/leds/beaglebone\:green\:usr0/trigger
dd if=/mnt/<image-file>.img of=/dev/mmcblk1 bs=10M
sync
echo default-on > /sys/class/leds/beaglebone\:green\:usr0/trigger
where <image-file> is the image file you got after copying backing up your eMMC
Insert the card into your powered off Beaglebone Black
Power on your Beaglebone Black while holding the S2 Button
The Beaglebone Black should go into rebuilding mode and within about 20 minutes you'll have a newly flashed Beaglebone Black (when all 4 USR LEDs are solid) with a copy of your original
eLinux reference used for this article - http://elinux.org/BeagleBone_Black_Extracting_eMMC_contents
I have the same need and am using dd and nc (NetCat) to save directly on my desktop without having to use an intermediary SD Card. You can do this over the USB connection, or ethernet connection, by changing the IP address in the steps below.
After setting up your BBB with the applications you want, the basic steps are:
On the desktop, run this command in a terminal:
nc -l 19000|bzip2 -d|dd bs=16M of=BBB.img
On the BeagleBone Black, run this command in a terminal (you can SSH into it, or do it directly from the BBB):
dd bs=16M if=/dev/mmcblk0|bzip2 -c|nc 192.168.7.1 19000
The 192.168.7.1 address is for the USB connection. (BBB is 192.168.7.2) If you're doing this over an ethernet connection, you should use your desktop's IP address.
This is taken from instructions here.
Finally, follow any method to install onto the next BBB. Here's an example of how to flash the emmc.
Copying your emmc Image back to a SD card is a bit tricky, since it will need to be formated in a certain way to get it to mount. Here are some tips to get that working: http://dev.gentoo.org/~armin76/arm/beagleboneblack/install_emmc.xml#expand
What might be easier is using an USB thumb drive, or USB SD card reader. Note, currently there are some issues hot-plugging USB devices, so boot with it plugged in.
You can copy your entire FS to the USB drive, then compress it. Create a new bootable linux sd image, and put your compressed FS on there and use one of the scripts Ottavio linked to to copy over the compressed image. you can make a systemd service to launch the script on startup.
We have noticed that on Beaglebones with the Jan 23rd 2015 release of Debian, the only way to successfully copy the image from SD is not to hold the boot button down when powering up.