This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EMMC not visible after booting from SD card

Other Parts Discussed in Thread: WL1835MOD

HI,

  Working on Latest BBB+WL1835MOD cape. I am booting the latest pre-built image from Wiki and I am able to boot from SD card. After I booted from SD card I did some changes in the EMMC partition. I added a uEnv.txt file to /boot/uboot directory of EMMC partition. Now when I start booting from EMMC it goes in loops again and again. Seems like some thing went wrong. 

It gives the following message repetitively on the Serial port:

========================

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: <ethaddr> 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
** Unable to read file uEnv.txt **
Checking if uenvcmd is set ...

uenvcmd was not defined in uEnv.txt ...
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
mmc1(part 0) is current device
gpio: pin 54 (gpio 54) value is 1
SD/MMC found on device 1
reading uEnv.txt
1029 bytes read in 4 ms (251 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
data abort
pc : [<9f76b5a0>] lr : [<9f74bb2c>]
sp : 9f629d08 ip : 9f769d68 fp : 00000850
r10: 00000200 r9 : 9f62af28 r8 : 00000080
r7 : 00000000 r6 : 0038ba00 r5 : 00000020 r4 : 481d8100
r3 : 00000000 r2 : e1a00000 r1 : 00000850 r0 : 00000000
Flags: Nzcv IRQs off FIQs on Mode SVC_32
Resetting CPU ...

resetting ...

=======================================

When I press Ctrl+Citgoesto Uboot prompt. Can I do some thing here?

But Still I am able to boot from SD card. When I boot from SD card, the EMMC partition is not visible to be. I cannot modify the contents in the emmc. 

++++++++++++++++++

root@am335x-evm:~# fdisk -l 


Disk /dev/mmcblk0: 15.9 GB, 15931539456 bytes, 31116288 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 * 63 144584 72261 c W95 FAT32 (LBA)
/dev/mmcblk0p2 160650 31101839 15470595 83 Linux
root@am335x-evm:~# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 15096680 708868 13614284 5% /
devtmpfs 241644 4 241640 0% /dev
tmpfs 16384 556 15828 3% /var/volatile
tmpfs 254104 0 254104 0% /dev/shm
tmpfs 16384 0 16384 0% /media/ram
/dev/mmcblk0p1 71133 488 70646 1% /var/volatile/run/media/mmcblk0p1

++++++++++++++++++++++

Please advise on how can I revert back to the original form and delete the uEnv.txt from emmc partition.

Regrads

Puneet