Debian on BBB

I just got my BBB today. I wanted to use a Debian on my BBB so I copied the image from the below location

https://rcn-ee.net/deb/flasher…

Then I wrote this image to a 2GB Micro SD card using Image Write in Windows 7. Then I followed the steps to flash the eMMC.

I held the boot button until all the LED’s start flashing and only then I release it. After 2 minutes all the LED’s turn off including the Power LED. I am using a 5V 2 Amp power supply. Then if I remove the SD card and connect to the board using SSH I can see the default Angstrom flavor. If I insert the SD card and reboot I can see the Debian flavor, I am confused. How can I flash the eMMC with Debian ?

Some wiki page mentions the flashing takes 4-5 minutes and some say 45 minutes which is correct ?

Am I missing something ?

I have read couple of posts on this topic but couldn’t find the solution to my problem.

I just got my BBB today. I wanted to use a Debian on my BBB so I copied the
image from the below location

https://rcn-ee.net/deb/flasher

9-27 image right?
.

Then I wrote this image to a 2GB Micro SD card using Image Write in Windows
7. Then I followed the steps to flash the eMMC.

I held the boot button until all the LED's start flashing and only then I
release it. After 2 minutes all the LED's turn off including the Power LED.
I am using a 5V 2 Amp power supply. Then if I remove the SD card and connect
to the board using SSH I can see the default Angstrom flavor. If I insert
the SD card and reboot I can see the Debian flavor, I am confused. How can I
flash the eMMC with Debian ?

"OFF"... That's not right... It'll take a good 5-6 minutes, the LED's
should be flashing the whole time, before they ALL turn ON to give you
a hint that it is done..

Just try again...

Regards,

I’m also having trouble with the 09-27 image. It boots ok (and I can log in as user “debian”), but doesn’t start writing to the eMMC. The 07-22 and 08-26 images both work as expected. Am I missing something?

It's hard to say exactly without more info, but the flashing procedure
is logged on the microSD at:

/boot/uboot/debug/flash-eMMC.log

Regards,

Thanks for the reply. After booting the 09-27 image from the uSD, the file flash-eMMC.log doesn’t seem to get changed. The user LEDs don’t show any disk activity and the heartbeat just keeps going.
I can run /boot/uboot/tools/scripts/beaglebone-black-copy-microSD-to-eMMC.sh by hand – is that sufficient to write everything to the eMMC?

After booting from uSD:

`
sudo mount /dev/mmcblk1p1 /mnt/tmp
cat /mnt/tmp/debug/flash-eMMC.log

I seem now to have a functioning installation of your latest image on the eMMC:

`
debian@arm:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk0boot0 179:8 0 1M 1 disk
mmcblk0boot1 179:16 0 1M 1 disk
mmcblk0 179:0 0 1.8G 0 disk
ââmmcblk0p1 179:1 0 64M 0 part /boot/uboot
ââmmcblk0p2 179:2 0 1.7G 0 part /
debian@arm:~$ uname -a
Linux arm 3.8.13-bone28 #1 SMP Thu Sep 12 23:22:35 UTC 2013 armv7l GNU/Linux

`

How are the copy scripts triggered, normally?

Wrong file...

run: tail -f /boot/uboot/debug/flash-eMMC.log

When it starts up..

BTW: did you physically unpower the board between runs.. Software
reset will not work..

It's called from an init script... Looking for a specific file on the
fat partition..

https://github.com/RobertCNelson/boot-scripts/blob/master/am335x_evm.sh#L63

Regards,

Okay, the scripts
/opt/boot-scripts/am335x_evm.sh
and
/bin/bash /boot/uboot/tools/scripts/beaglebone-black-copy-microSD-to-eMMC.sh
are both being triggered correctly.

The problem is that beaglebone-black-copy-microSD-to-eMMC.sh is failing to find initramfs-tools inside check_host_pkgs (), even though the same script does not fail when run later by hand.
That to me sounds like something in the shell environment is affecting the formatting of dpkg’s output.

Anyway I changed check_dpkg () to
dpkg -l $pkg &>/dev/null || deb_pkgs="${deb_pkgs}${pkg} "
and everything appears to run normally.

Strange, it just did it to me this morning... Anywho, i'm now
bypassing the dpkg check for "flasher" images..
https://github.com/RobertCNelson/tools/commit/0bbbfd9b53d3230f43698b048e4a83323d4cab2c

Now just to regenerate/re-upload..

Regards,

10-08 images with that fix are now uploaded and out..

both tested fine with a lack of network connection...

Regards,

Cool. BTW, thanks for making these Debian images available – and for making them so easy to use (glitches notwithstanding). Not to knock the Angstrom distribution, but Debian runs pretty well on the BBB and has a lot more documentation.

Thanks Robert, my problem is resolved now. I had got the complete image from


[https://rcn-ee.net/deb/flasher/wheezy/BBB-eMMC-flasher-debian-7.1-2013-10-08.img.xz](https://rcn-ee.net/deb/flasher/wheezy/BBB-eMMC-flasher-debian-7.1-2013-10-08.img.xz)

So does this also include the start-up script which you just updated ? If its part of the image, when will the new script be
part of the image officially ?