microSD card format & Image installing issue

Hi guys,

I am having very hard time with my microSD card (4GB, Transcend, Class 2) for the past several days. I am using Windows 7 and I formatted this card using FAT and also FAT32. Then using Win32 disk image installer, I installed Debian 7.7 eMMC flasher for BBB (Jan 6, 2015 release) in the card.

After successful writing, I safely removed the card and inserted it again in the PC (using card reader) to check the files, immediately an pop up flashed asking to format
the card. Also, I could not see the card size in ‘My computer’.I have done this process earlier and it worked well (display of files) but I dont know why it doesnot work well.

Moreover, instead of win32 disk image installer, I used cygwin to write the debian image in the card after formating it with the below syntax and it was successful. But when I
remove and insert the card again to check the files, the pop up says ‘You need to format the card’

$ dd bs=1M if=BBB-eMMC-flasher-debian-7.7-console-armhf-2015-01-06-2gb.img of=/dev/sdb
1700+0 records in
1700+0 records out
1782579200 bytes (1.8 GB) copied, 548.304 s, 3.3 MB/s

Moreover, I used this card in BBB to flash the eMMC but it did not work. It initially started to show that the flash process was on but all LED’s glowed within 5 minutes. Then I removed the card and supplied the power again and I was not able to connect at all through Putty like before.

I tried formatting the microSD card using DISKPART in Windows 7, HP USB Disk Storage Format Tool 2.2.3 (for FAT32) and also HP USB Disk Storage Format Tool 0.0.6 (for FAT) as suggested in this forum and made sure there are no partitions in the card using cygwin. But it is of no use. Please help me out!!

Thanks!!

Regards,
Raj

Hi Raj;

While others may disagree, I use ONLY class 10 uSD cards.

However your real problem is that you are trying to use a Windows machine to read a Linux

for matted memory device! Only the boot partition is FAT formatted.

Just put the uSD card in your BBB and it should work fine ……

Bill

“No one could make a greater mistake than he who did nothing because he could do only a little.”

“All that is necessary for the triumph of evil is that good men do nothing” Edmond Burke (1729 - 1797)

http://www.packtpub.com/building-a-home-security-system-with-beaglebone/book

http://ca.linkedin.com/pub/bill-pretty/2b/b07/602

Bill is correct and I second the advice to only use class 10 or faster cards. I have tried to run a class 4 card and it was painful.

Hi guys,

I am having very hard time with my microSD card (4GB, Transcend, Class 2)
for the past several days. I am using Windows 7 and I formatted this card
using FAT and also FAT32. Then using Win32 disk image installer, I installed
Debian 7.7 eMMC flasher for BBB (Jan 6, 2015 release) in the card.

After successful writing, I safely removed the card and inserted it again in
the PC (using card reader) to check the files, immediately an pop up flashed
asking to format
the card. Also, I could not see the card size in 'My computer'.I have done
this process earlier and it worked well (display of files) but I dont know
why it doesnot work well.

Moreover, instead of win32 disk image installer, I used cygwin to write the
debian image in the card after formating it with the below syntax and it was
successful. But when I
remove and insert the card again to check the files, the pop up says 'You
need to format the card'

"Microsoft" doesn't support linux file systems.

$ dd bs=1M if=BBB-eMMC-flasher-debian-7.7-console-armhf-2015-01-06-2gb.img
of=/dev/sdb
1700+0 records in
1700+0 records out
1782579200 bytes (1.8 GB) copied, 548.304 s, 3.3 MB/s

Moreover, I used this card in BBB to flash the eMMC but it did not work. It
initially started to show that the flash process was on but all LED's glowed
within 5 minutes. Then I removed the card and supplied the power again and I
was not able to connect at all through Putty like before.

If it was blinking a cylon pattern and then 5 minutes later went full
on, it's fine..

I'm guessing you have putty setup for ssh over usb?

The "console" image on "http://elinux.org/BeagleBoardDebian" does not
fully implement "every" communication interface like the images on
"Beagleboard:BeagleBoneBlack Debian - eLinux.org;

Due to issues with g_multi on a single partition setup, and g_ether
not working the way i wanted, that console only enables g_serial

With the "console" here are the interfaces enabled vs the factory image:

debug connector - serial
eth - ssh
usb - flash drive
usb - ssh
usb - serial

Regards,

While others may disagree, I use ONLY class 10 uSD cards.

However your real problem is that you are trying to use a Windows machine

to read a Linux

for matted memory device! Only the boot partition is FAT formatted.

Just put the uSD card in your BBB and it should work fine …..

Thanks a lot for your reply Bill and Philip. I will buy a new Class 10
microSD card soon. But actually,
previously, I had used the same class 2 card earlier and it worked in BBB
after flashing for 50 minutes with the image
(BBB-eMMC-flasher-debian-7.5-2014-05-14-2gb.img). But this time, it was
flashing for more than 1 hour and 30 minutes and even after that all the
LED's did not glow finally.

Only after many unsuccessful attempts of flashing BBB eMMC by formatting
the microSD card using Windows 7 (FAT/FAT32) and using Win32 image
installer, I tried the cygwin to write the image (using dd command).

Also, previously, I used HP USB Disk Storage Format Tool to format my card
and then used Win32 image installer. After this process, I removed my card
and inserted to check the files inside, but Windows 7 popped up to say 'The
card needs to be formatted to be used'. I am puzzled why this happened!.

>
> I am having very hard time with my microSD card (4GB, Transcend, Class 2)
> for the past several days. I am using Windows 7 and I formatted this card
> using FAT and also FAT32. Then using Win32 disk image installer, I
installed
> Debian 7.7 eMMC flasher for BBB (Jan 6, 2015 release) in the card.
>
> After successful writing, I safely removed the card and inserted it
again in
> the PC (using card reader) to check the files, immediately an pop up
flashed
> asking to format
> the card. Also, I could not see the card size in 'My computer'.I have
done
> this process earlier and it worked well (display of files) but I dont
know
> why it doesnot work well.
>
> Moreover, instead of win32 disk image installer, I used cygwin to write
the
> debian image in the card after formating it with the below syntax and it
was
> successful. But when I
> remove and insert the card again to check the files, the pop up says 'You
> need to format the card'

"Microsoft" doesn't support linux file systems.

>
> $ dd bs=1M
if=BBB-eMMC-flasher-debian-7.7-console-armhf-2015-01-06-2gb.img
> of=/dev/sdb
> 1700+0 records in
> 1700+0 records out
> 1782579200 bytes (1.8 GB) copied, 548.304 s, 3.3 MB/s
>
> Moreover, I used this card in BBB to flash the eMMC but it did not work.
It
> initially started to show that the flash process was on but all LED's
glowed
> within 5 minutes. Then I removed the card and supplied the power again
and I
> was not able to connect at all through Putty like before.

If it was blinking a cylon pattern and then 5 minutes later went full
on, it's fine..

Thanks Robert for your detailed reply. Actually, I installed the image (
eMMC flasher : BeagleBone Black: v3.14.26-ti-r43 kernel with updated image
2015-01-06) from the link
BeagleBoardDebian - eLinux.org. Actually, all
the LEDs glowed in cyclon
pattern after 5 minutes of the flashing process.

I'm guessing you have putty setup for ssh over usb?

Yes exactly. Actually, I have already posted a question in this link few
days earlier:
https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!searchin/beagleboard/Raj_RB/beagleboard/9PWK96YLkzA/xvLpPewQSbUJ

I have followed exactly all the steps in the youtube link (
https://www.youtube.com/watch?v=D-NEPiZDSx8) and it worked earlier with the
(2014-05-14 release) Debian but not now with the same release also. Please
let me know what I miss!

The "console" image on "http://elinux.org/BeagleBoardDebian" does not
fully implement "every" communication interface like the images on
"
Beagleboard:BeagleBoneBlack Debian - eLinux.org
"

Due to issues with g_multi on a single partition setup, and g_ether
not working the way i wanted, that console only enables g_serial

With the "console" here are the interfaces enabled vs the factory
image:

debug connector - serial
eth - ssh
usb - flash drive
usb - ssh
usb - serial

Actually, I am a newbie. Do you mean that I should use the image dated
*2014-12-31,
BBB Rev C (4GB eMMC) *in the link "
Beagleboard:BeagleBoneBlack Debian - eLinux.org;
instead of "BBB-eMMC-flasher-debian-7.7-console-armhf-2015-01-06-2gb.img"
as 'usb - ssh '
is not enabled?

Thanks a lot for your support!

Yes.. if all you want is an upgrade to the factory default: 2014-05-14
release with all the bb.org customizations, pick either the 4gb or 2gb
flasher images from here:

http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#2014-12-31

The images on "http://elinux.org/BeagleBoardDebian" serve an entire
different purpose.

Regards,

Thanks a lot Robert!

Hi Robert,

Actually, as said by you, I downloaded the image BBB Rev C (4GB eMMC) (Flasher: lxde: (1.7GB Free on 4GB eMMC)) in the link http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#2014-12-31 as I use BBB Rev C. I verified the Md5 to be the same.

Then I installed the image in 4GB card using Win32 image installer and found everything normal. I also removed the card and inserted in my PC and found the files with total size of the card to be 95.7 MB and free space to be 34MB. I think until this point, everything is ok.

Next is I inserted the card in BBB, and then supplied power (only through adapter) while pressing the boot button until a moment after all the LEDs glowed. Then it seemed that all LEDs glowed randomly but within 10 seconds, only the 3rd LED (D4) from RESET button is lit throught (many minutes) and not the other LEDs.
I again pressed the power button till the BBB shuts down and removed the power and did the same process again. But the same thing happened.

I waited for ten minutes of flashingand then I shut down BBB and removed the card and connected the BBB with my PC through USB and tried to so SSH with putty. But it displayed the error stating the connection timed out.

Please help me find a solution for this! Thank you.

Connect either the HDMI or usb-serial ftdi cable, it'll report what's
wrong on both screens'..

Regards,

Thanks Robert! Have to get a cable now.

Hi Robert,

In order to see the BBB booting debug process with the help of usb-serial ftdi cable in my laptop, I need to have Ubuntu installed in my laptop right as I am using Windows 7 now?

Basically, I will be needing to use serial connection in putty in Ubuntu?

Many thanks!

You just need any serial terminal program that will run under Windows 7

I’m not sure if Putty will, but Windows 7 should have a “compatibility” mode …

“No one could make a greater mistake than he who did nothing because he could do only a little.”

“All that is necessary for the triumph of evil is that good men do nothing” Edmond Burke (1729 - 1797)

http://www.packtpub.com/building-a-home-security-system-with-beaglebone/book

http://ca.linkedin.com/pub/bill-pretty/2b/b07/602

Hi William,

I have been using SSH of putty in Windows 7 for BBB. But this will work only if the image is properly flashed
in eMMC or in microSD card so that I can login in and connect.

But in this case, I am facing issue in flashing the Debian image from microSD to eMMC and I want to debug
during this process using FTDI serial cable. Will I be able to debug it using serial program of putty during the this process?

Thanks!!

putty supports access over the serial port.

Regards,

Hi guys,
I appreciate your support. Sorry for the delay as I had to format my PC and get my FTDI cable to debug BBB. Once again, I installed Debian (bone-debian-7.5-2014-05-14-2gb’- BBB eMMC flasher) on BBB. I followed the flashing procedures properly (since it worked for the 1st time), but now all the user LED go black after around 20 minutes of flashing process and it does not become ON again. Also, I used the serial debug cable during flashing process. Below is the serial console output and I am not sure what the problem is.

U-Boot SPL 2014.04-00014-g47880f5 (Apr 22 2014 - 13:23:54)
reading args
spl_load_image_fat_os: error reading image args, err - -1
reading u-boot.img
reading u-boot.img

U-Boot 2014.04-00014-g47880f5 (Apr 22 2014 - 13:23:54)
I2C: ready
DRAM: 512 MiB
NAND: 0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - readenv() failed, using default environment

Net: not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot: 0
gpio: pin 53 (gpio 53) value is 1
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
SD/MMC found on device 0
reading uEnv.txt
1672 bytes read in 7 ms (232.4 KiB/s)
gpio: pin 55 (gpio 55) value is 1
Loaded environment from uEnv.txt
Importing environment from mmc …
Checking if uenvcmd is set …
gpio: pin 56 (gpio 56) value is 1
Running uenvcmd …
reading zImage
4103240 bytes read in 641 ms (6.1 MiB/s)
reading initrd.img
2952634 bytes read in 270 ms (10.4 MiB/s)
reading /dtbs/am335x-boneblack.dtb
25926 bytes read in 14 ms (1.8 MiB/s)
Kernel image @ 0x82000000 [ 0x000000 - 0x3e9c48 ]

Flattened Device Tree blob at 88000000

Booting using the fdt blob at 0x88000000
Using Device Tree in place at 88000000, end 88009545

Starting kernel …

Uncompressing Linux… done, booting the kernel.
[ 0.378647] omap2_mbox_probe: platform not supported
[ 0.533261] tps65217-bl tps65217-bl: no platform data provided
[ 0.596968] bone-capemgr bone_capemgr.9: slot #0: No cape found
[ 0.634078] bone-capemgr bone_capemgr.9: slot #1: No cape found
[ 0.671185] bone-capemgr bone_capemgr.9: slot #2: No cape found
[ 0.708293] bone-capemgr bone_capemgr.9: slot #3: No cape found
[ 0.722947] bone-capemgr bone_capemgr.9: slot #6: BB-BONELT-HDMIN conflict P8.45 (#5:BB-BONELT-HDMI)
[ 0.732573] bone-capemgr bone_capemgr.9: slot #6: Failed verification
[ 0.739329] bone-capemgr bone_capemgr.9: loader: failed to load slot-6 BB-BONELT-HDMIN:00A0 (prio 2)
[ 0.756886] omap_hsmmc mmc.5: of_parse_phandle_with_args of ‘reset’ failed
[ 0.819905] pinctrl-single 44e10800.pinmux: pin 44e10854 already requested by 44e10800.pinmux; cannot claim for
gpio-leds.8
[ 0.831594] pinctrl-single 44e10800.pinmux: pin-21 (gpio-leds.8) status -22
[ 0.838874] pinctrl-single 44e10800.pinmux: could not request pin 21 on device pinctrl-single
Loading, please wait…
Scanning for Btrfs filesystems
systemd-fsck[211]: eMMC-Flasher: clean, 78783/102752 files, 390214/410368 blocks

Debian GNU/Linux 7 beaglebone ttyO0
default username:password is [debian:temppwd]
Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian

The IP Address for usb0 is: 192.168.7.2
beaglebone login: [ 29.136538] libphy: PHY 4a101000.mdio:01 not found
[ 29.141713] net eth0: phy 4a101000.mdio:01 not found on slave 1
Sending SIGTERM to remaining processes…
Sending SIGKILL to remaining processes.
Unmounting file systems.
Unmounted /sys/fs/fuse/connections.
Unmounted /sys/kernel/debug.
Unmounted /dev/mqueue.
Unmounted /sys/kernel/security.
Disabling swaps.
Detaching loop devices.
Detaching DM devices.

[ 930.522071] (NULL device *): gadget not registered.
[ 930.536657] Power down.
[ 930.541957] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000
[ 930.541957]
[ 930.551748] [] (unwind_backtrace+0x1/0x9c) from [] (panic +0x59/0x158)
[ 930.560473] [] (panic+0x59/0x158) from [] (do_exit+0x5ff/0x68c)
[ 930.568648] [] (do_exit+0x5ff/0x68c) from [] (sys_reboot+0x105/0x15c)
[ 930.577372] [] (sys_reboot+0x105/0x15c) from [] (ret_fast_syscall+0x1/0x46)
[ 930.586637] drm_kms_helper: panic occurred, switching back to text console

Even though all the LED’s did not light up after flashing, I removed the power and microSD card to check whether eMMC has flashed properly. It seemed to work but I am not able to ping google or access internet in BBB.

SSH - output
root@beaglebone:/home/debian# route add default gw 192.168.7.1
root@beaglebone:/home/debian# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.7.1 0.0.0.0 UG 0 0 0 usb0
192.168.7.0 0.0.0.0 255.255.255.252 U 0 0 0 usb0
root@beaglebone:/home/debian# cat /etc/resolv.conf
domain localdomain
search localdomain
nameserver 192.168.1.1
root@beaglebone:/home/debian# vim /etc/resolv.conf
root@beaglebone:/home/debian# cat /etc/resolv.conf
domain localdomain
search localdomain
nameserver 8.8.8.8
root@beaglebone:/home/debian# ping http://www.google.com
ping: unknown host http://www.google.com
root@beaglebone:/home/debian#

Tests done as in this post (“Cannot ping google in BBB even after sharing internet”)

Q2)Can you ping the ip address assigned to the usb0 interface (192.168.7.2)? If not then there is something not configured properly on your usb0 interface. Check the /etc/network/interfaces file to make sure the entry for usb0 is correct.
Yes, it pings with 192.168.7.2 ( pings in SSH of putty)

Q3) Can you ping the ip address of the PC’s link interface (192.168.7.1)? If you can not ping the PC link interface address then there is something incorrectly configured on that interface - double check the interface settings to make sure the assigned IP address & netmask address is set correctly.
From BBB, I cannot ping 192.168.7.1 but I can ping the same from PC command line.

Q4) From the PC can you ping the link interface (192.168.7.1)? If not there is something wrong with the link interface configuration.
Yes, I can. ( in Cmd line of windows 7)

Q5) From the PC can you ping the BeagleBone usb0 interface (192.168.7.2)? If not double-check the usb0 interface config
Yes, I can. ( in Cmd line of windows 7)

Q6) Can you ping the PC’s network bridged IP address (the interface you have bridged over to the usb link interface on the PC)? If not make sure you have the bridging setup properly on the PC interfaces.
Do I need to bridge the connections of my Wifi LAN adapter and BBB USB ethernet ? (as I only shared it as the previous youtube video). If I bridge it, I am not able to set any IP address for BBB in PC network settings.

Q7) Can you ping the PC’s default gateway IP address?
I am able to ping the ipv4 address 192.168.1.36 (which is my PC’s Wifi LAN adapter) from BBB. I am also able to ping 192.168.1.254 ( which is PC Wifi LAN’s default gateway) fromm BBB

My Wireless LAN adapter Wireless Network Connection details in command line:

Connection-specific DNS Suffix . :
IPv6 Address. . . . . . . . . . . : 2a01:e35:2eb7:8e10:24be:1ca6:da86:591b
Temporary IPv6 Address. . . . . . : 2a01:e35:2eb7:8e10:5950:bc3c:4a70:4ffd
Link-local IPv6 Address . . . . . : fe80::24be:1ca6:da86:591b%13
IPv4 Address. . . . . . . . . . . : 192.168.1.36
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : fe80::224:d4ff:fea6:5c0d%13
192.168.1.254

In above, subnet Mask is 255.255.255.0. But in BBB, its 255.255.255.252 as below. Will this be a problem for BBB not able to access internet? Do I need to set 255.255.255.0 as GenMask in BBB for gateway 192.168.7.1 ?

Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.7.1 0.0.0.0 UG 0 0 0 usb0
192.168.7.0 0.0.0.0 255.255.255.252 U 0 0 0 usb0

Whatever I do, BBB LAN shows 'No internet access’in Network connections settings of Windows 7. Please help me as I have stuck in this for a very long time.

Thanks in advance!!