How can I bring my 'bone completely back to as-delivered status?

126 views
Skip to first unread message

blues man

unread,
Apr 18, 2016, 9:05:20 PM4/18/16
to BeagleBoard
My BBB's eMMC is apparently filled with useless junk after 2+ years of playing around with Ubuntu, Debian, Angstrom, Daphile, RuneAudio, JRiver etc etc etc. I tried to go back to the latest Debian image and reinstall JRiver Media Center but I'm getting multiple "no more room on device" error messages.  I know how to restore the defaults but I can't find any info on a complete reset that removes all files and data except the original content of the eMMC. I did have JRMC running fine last year, but like an idiot I decided to try Ubuntu and it's never been the same. I'm running MPD until I can fix this.

David

Robert Nelson

unread,
Apr 18, 2016, 9:23:54 PM4/18/16
to Beagle Board, drm...@gmail.com
On Mon, Apr 18, 2016 at 8:05 PM, blues man <drm...@gmail.com> wrote:
My BBB's eMMC is apparently filled with useless junk after 2+ years of playing around with Ubuntu, Debian, Angstrom, Daphile, RuneAudio, JRiver etc etc etc. I tried to go back to the latest Debian image and reinstall JRiver Media Center but I'm getting multiple "no more room on device" error messages.  I know how to restore the defaults but I can't find any info on a complete reset that removes all files and data except the original content of the eMMC. I did have JRMC running fine last year, but like an idiot I decided to try Ubuntu and it's never been the same. I'm running MPD until I can fix this.

Well, if it's a Rev C: (4gb eMMC)

it was shipped from the factory with:


If it's a Rev A/B:

Regards,

--
Robert Nelson
https://rcn-ee.com/

blues man

unread,
Apr 19, 2016, 9:20:18 AM4/19/16
to BeagleBoard
Thanks.  I'm happy with the currently released image - I don't want or need to go back to the original OS version. But just reflashing the eMMC doesn't seem to clear out all the cobwebs, as there's clearly less memory now than there was when I got it.  I need to restore the free space that was on the eMMC originally.  I was able to install JRiver Media Center on Debian and Ubuntu without difficulty a few times before.  But this time, I get many "cannot write to file - no room on device" messages, and the install fails.  Using clean, remove and autoremove do not seem to help.

There seem to be many files in many folders in many directories that weren't there when it was brand new.  If flashing the eMMC is supposed to delete everything, it's not - so maybe my 'bone is broken.  I've properly reformatted each uSD card I use before burning , so there's never anything on the card except the image I want to use.  Is there any way to reformat the entire eMMC?  I hesitate to delete things when I don't know what they are - is there a list of the core files I need to preserve so it will still reflash from a card?

Best -

David

Robert Nelson

unread,
Apr 19, 2016, 9:33:09 AM4/19/16
to Beagle Board

On Tue, Apr 19, 2016 at 8:20 AM, blues man <drm...@gmail.com> wrote:
Thanks.  I'm happy with the currently released image - I don't want or need to go back to the original OS version. But just reflashing the eMMC doesn't seem to clear out all the cobwebs, as there's clearly less memory now than there was when I got it.  I need to restore the free space that was on the eMMC originally.  I was able to install JRiver Media Center on Debian and Ubuntu without difficulty a few times before.  But this time, I get many "cannot write to file - no room on device" messages, and the install fails.  Using clean, remove and autoremove do not seem to help.

There seem to be many files in many folders in many directories that weren't there when it was brand new.  If flashing the eMMC is supposed to delete everything, it's not - so maybe my 'bone is broken.  I've properly reformatted each uSD card I use before burning , so there's never anything on the card except the image I want to use.  Is there any way to reformat the entire eMMC?  I hesitate to delete things when I don't know what they are - is there a list of the core files I need to preserve so it will still reflash from a card?

The first step in the "flashing" script on the "flashing" image is to re-format the eMMC.. So yes it'll delete everything on the eMMC..

blues man

unread,
Apr 19, 2016, 9:41:57 AM4/19/16
to BeagleBoard
That answers one big question - thanks!  Then there must be something wrong with my 'bone, because it's not removing everything now when I reflash. I didn't have this problem through multiple installations and reinstallations of JRiver and other similarly sized packages, so something has changed.  If I can't figure out what it is and fix it, I'll just have to buy a new board to use as a JRiver zone.

I got over 2 years of great fun and education from this one, and I believe the new version has a better processor anyway - so I'll just bite the bullet and buyr a replacement.  Any last ditch effort tips that might help me fix this one are greatly appreciated - otherwise, I'll leave MPD on it (since it still works) and use it as a music player on the patio. It doesn't owe me anything, and it deserves a peaceful retirement. :)

Robert Nelson

unread,
Apr 19, 2016, 9:47:00 AM4/19/16
to Beagle Board
On Tue, Apr 19, 2016 at 8:41 AM, blues man <drm...@gmail.com> wrote:
That answers one big question - thanks!  Then there must be something wrong with my 'bone, because it's not removing everything now when I reflash. I didn't have this problem through multiple installations and reinstallations of JRiver and other similarly sized packages, so something has changed.  If I can't figure out what it is and fix it, I'll just have to buy a new board to use as a JRiver zone.

There's a 99.99% change that nothing is wrong with your bone...

The error is in what every 'image' you are using to 'reflash'..  Since you never specified what image you are using to reflash, i can't currently answer that..

Regards,

blues man

unread,
Apr 19, 2016, 10:04:00 AM4/19/16
to BeagleBoard
I'm using this one from https://beagleboard.org/latest-images:

Jessie for BeagleBone, BeagleBone Black, SeeedStudio BeagleBone Green, element14 BeagleBone Black Industrial and Arrow BeagleBone Black Industrial via microSD card

It installs and runs fine - I just can't then install JRiver Media Center, apparently because of the "no more space on device" problem.

D

Graham

unread,
Apr 19, 2016, 4:27:32 PM4/19/16
to BeagleBoard


1.) That package is not an "eMMC Flasher" unless you edit the uEnv.txt file as instructed at

Did you do that?

2.) That file pretty much fills up a 4 G memory space.  There may not be enough space to add much on the 4G eMMC or a 4G uSD card.

3.) Is there a reason that you would not want to buy a larger uSD card , like 16 G or 32 G or ... and run from that card ?

4.) If that is acceptable, then understand that the installation image only uses 4 G on a card, no matter how much larger the card is, until you follow the instructions to expand the file system to use the entire card, at

If you buy a quality uSD card, the speed difference for running from a uSD card versus eMMC is negligible.

--- Graham

==

blues man

unread,
Apr 19, 2016, 6:16:48 PM4/19/16
to BeagleBoard
Thanks, Graham. I thought that holding the boot button down until the leds light does flash the MMC and that the flasher image was instead of holding the button while powering up. I'm using 32 & 64 cards, but I didn't expand the memory partition on either one. I'll just do that and run from the 64.

Thanks & best regards-

David

Graham Haddock

unread,
Apr 19, 2016, 7:00:45 PM4/19/16
to BeagleBoard
David:

The whole button press thing is old information.  
Even then, you needed to have either a "flasher" or a uSD card resident package.
The software installation process has evolved a lot. (for the better.)

The good news is that the Beaglebone and embedded Linux are rapidly evolving.
The bad news is that there is a lot of old/obsolete information available on the internet.

Good luck,
--- Graham

==




--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/Sfpg7Ohg_Z4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/5b0d7a76-e174-4db4-9e5d-21b53ab1bb37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

blues man

unread,
Apr 20, 2016, 9:27:27 AM4/20/16
to BeagleBoard
Thanks, Graham!  I'll just use my 64G uSD card, expand the file system, and go back to JRMC on Debian.  I guess the older images didn't fill the eMMC, so I still had room for JRMC - but the latest one tipped the scale too far.  I've been viewing having to run from the card as a sign of defeat, for some odd reason! :)

Graham

unread,
Apr 20, 2016, 10:18:44 AM4/20/16
to BeagleBoard
You never said how you are running the BBB.  
If you are running without a video display, local or remote, then you don't need about half of what is in the full package.
Then you could load a minimum "console" package, which will only fill 1.7G of your 4 G eMMC, then add in what else you need to run your application.
So, you would have about 2 GB of play space.

If you have a video display you are better off going with the full package..

--- Graham

==

blues man

unread,
Apr 20, 2016, 1:29:25 PM4/20/16
to BeagleBoard
Except when I'm experimenting with it for fun, my 'bone is used only to play music. I ran it headless when I was using MPD, but there are a lot of cautionary posts on the appropriate forums about having a monitor connected when booting JRiver Media Center - so I planned to leave an HDMI cable connected to one of the inputs on the nearest monitor but never use it (I access the program via JRemote on handhelds).  However.....I've not tried using JRMC headless myself, and there seem to be many people doing this without difficulty.

 I won't access my network via WiFi because USB is the only way for the music to get to the DAC, and sound quality can suffer when files are being brought in and out via the same USB.  So I use eth0 to access my FLACs on NAS and leave wlan0 disabled.

I think using the card with an expanded file system sounds like the best bet for me - I won't suffer serious emotional trauma from having to abandon my quest to use the MMC. :)

mdj...@gmail.com

unread,
Jul 4, 2016, 4:54:28 PM7/4/16
to BeagleBoard
Graham (or anyone who knows....):
I use my BBB as a VPN server running Softether. Right now, it is all running from a 16gb uSD card which means that I have to hold the button every time I power it up. Can you tell me how to get this all into the eMMC memory? I don't use any video or GUI but don't know how to eliminate those features from the Debian Jessie 8.4 that I am running so that there would be room for Softether as well in the eMMC.
Thanks in advance for help with this...Arnie

On Wednesday, April 20, 2016 at 10:18:44 AM UTC-4, Graham wrote:

William Hermans

unread,
Jul 4, 2016, 5:15:00 PM7/4/16
to beagl...@googlegroups.com
> Graham (or anyone who knows....):
> I use my BBB as a VPN server running Softether. Right now, it is all running from a 16gb uSD card which means that I >have to hold the button every time I power it up.
The reason for this is that you have an older bootloader on the emmc. You can change this behavior if you wish. BY two differnt method I personally am aware of.


>Can you tell me how to get this all into the eMMC memory? I don't use any >video or GUI but don't know how to eliminate >those features from the Debian Jessie 8.4 that I am running so that there >would be room for Softether as well in the eMMC.
> Thanks in advance for help with this...Arnie

You download and put a flasher image onto an sdcard. Instead of a standalone image.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/4cc6fa59-245f-4eae-bb87-60a14cbbd3de%40googlegroups.com.

Graham Haddock

unread,
Jul 4, 2016, 6:33:56 PM7/4/16
to BeagleBoard
It should automatically boot from the card without having to push the boot button.
On Debian 8 and later, this usually means that you do not have the "boot bit" set on the card.

If you created the card by installing the resident version of Debian, then expanding the partition, the "boot bit" should already be set.

If you created the card some other way, then put it in a Linux desktop, and run Gparted. Go into the option-menus and manually set the boot bit.  It should then automatically boot, whenever you apply power to the BBB.

There is probably some other way to manually edit the card and set the bit, but I find Gparted very easy to use.

I am running a BBG as a SoftEther VPN server and it works fine.  No need to push buttons to get it to boot.

--- Graham

==

You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/Sfpg7Ohg_Z4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORoqGr_xYzoVHiGbg2FCTpBbnBOeCy40%2BdQWF405ew2LbQ%40mail.gmail.com.

William Hermans

unread,
Jul 4, 2016, 6:59:28 PM7/4/16
to beagl...@googlegroups.com
On Debian 8 and later, this usually means that you do not have the "boot bit" set on the card.

No . ..as I said. It means there is an older bootloader on the emmc. If you remove the bootloader, said problem goes away.

mdj...@gmail.com

unread,
Jul 8, 2016, 11:28:20 AM7/8/16
to BeagleBoard
This question will reveal what a newbie I am:
I have seen several posts that say I have to un-comment out a particular line in uENV.txt on the SD card. My question is, how do I find that file? I don't even know how to get a listing of files and directories on the SD card. Help!!?
Thanks...Arnie

Arnold Podolsky M.D.,J.D.

unread,
Jul 8, 2016, 11:28:22 AM7/8/16
to beagl...@googlegroups.com
Thanks William. So I just want to make sure... all I need to do is flash the eMMC with Debian Jessie 8.4. Once I do that, it should boot up and automatically run my Softether VPN server located on the uSD card?
Yes?
Thanks...Arnie


For more options, visit https://groups.google.com/d/optout.



--
Arnold M. Podolsky M.D.,J.D.
Podolsky and Associates, P.C.
24725 W. TWELVE MILE RD. - STE 110
SOUTHFIELD, MI  48034

William Hermans

unread,
Jul 8, 2016, 12:08:44 PM7/8/16
to beagl...@googlegroups.com
Thanks William. So I just want to make sure... all I need to do is flash the eMMC with Debian Jessie 8.4. Once I do that, it should boot up and automatically run my Softether VPN server located on the uSD card?
Yes?
Thanks...Arnie

I have no idea what a Softether VPN server *is*. But no, a flasher image is used for only one purpose. Flashing a working image onto the eMMC. What's more, the flasher image will also very likely wipe the contents of the eMMC first.


Graham Haddock

unread,
Jul 8, 2016, 1:19:28 PM7/8/16
to BeagleBoard
Arnie:

Simple answer: No.

Although it is possible to have the OS running on the eMMC and an application located on the uSD card, I would highly recommend that you do not try to do it that way.  Life will be much easier if you have your application and the OS in the same location.

So, choose either the eMMC or the uSD card as the location for the OS and the (SoftEther VPN Server) application.

Install the OS and get it running.
I highly recommend you have a serial cable on the serial console port for all of this.

SoftEther VPN Server for the ARM is provided as source code, so you will need to make sure you have all the prerequisite tools and files installed, then use the "make" procedure provided with the source code to build the application on the target beaglebone.

It also includes some self tests to make sure the build works and is compatible with the target hardware.

Then you will need to use the command line to start the VPN server.

Then, you will need to use either the Windows or Linux console configuration tools to configure the Server.

It is possible to write a service.d script to automatically start the VPN server whenever the beaglebone boots, but these files are not provided as part of the Softether distribution.

So, I would say that this effort is not for Linux or Beaglebone beginners.  You need to have sort of medium Linux skills to pull it off.

It works real well once you get it going.  Both the Beaglebone and the SoftEther VPN Server are extremely stable

--- Graham

==

Arnold Podolsky M.D.,J.D.

unread,
Jul 12, 2016, 9:16:55 AM7/12/16
to beagl...@googlegroups.com
Thanks Graham and William. I am not sure what I did right, but it all seems to be working as I wish at the moment. I flashed the eMMC with Debian Jessie 8.5 and now when I power-up, my Softether VPN server automatically runs from my uSD card.
One newbie question: When I ssh into the BBB, how do I get a list the files that are on the uSD card?
Thanks...Arnie


For more options, visit https://groups.google.com/d/optout.



--

Graham Haddock

unread,
Jul 12, 2016, 6:42:27 PM7/12/16
to BeagleBoard
Arnold:

I know you think you asked a simple question, but I don't think things are actually working they way you think they are, and it could change the answer.

Where did you get the card? 

Is it a copy of something that ran on someone else's Beaglebone, that already had a compiled version of SoftEther VPN Server on it?

Or, did you actually build/make/compile the copy of SoftEther on the card?

What else is on the card?  A Debian OS?

--- Graham

==

Reply all
Reply to author
Forward
0 new messages