All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nathan <naroyce@hotmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] "Writing to MMC(%d)... failed"
Date: Wed, 25 Feb 2015 18:30:59 -0600	[thread overview]
Message-ID: <BLU436-SMTP103FAEE11BEDD60CF8F599EA2140@phx.gbl> (raw)
In-Reply-To: <COL126-W26F1E92B1DE051E93227BA2170@phx.gbl>

Wow, that came out as a real mess.
I used Outlook.com to compose that message.
Anyone experience that and can recommend how I can clean it up?
I see that I composed using "Rich Text".

I'll try to redo it in my reply here using "Plain Text":

"saveenv" won't write the environment out to disk.

$ sudo dd if=/dev/zero of=/dev/sde seek=1 bs=512 count=3999
  //wiping out area just to make sure no garbage is picked up.
$ sudo dd if=bl1.HardKernel of=/dev/sde seek=1 iflag=dsync oflag=dsync
$ sudo dd if=bl2.HardKernel of=/dev/sde seek=31 iflag=dsync oflag=dsync
$ sudo dd if=u-boot-dtb.bin of=/dev/sde seek=63 iflag=dsync oflag=dsync
$ sudo dd if=tzsw.HardKernel of=/dev/sde seek=2111 iflag=dsync oflag=dsync

Fail:
git://git.denx.de/u-boot.git
commit 47d8ae4069b47ce966c0c5e0d8dd041e69ee1f86
*****
U-Boot 2015.04-rc2-00081-g47d8ae4 (Feb 25 2015 - 12:12:40)

CPU: Exynos4412 at 1000MHz
Model: Odroid based on Exynos4412
DRAM:  2 GiB
Board PMIC init
MMC:   SAMSUNG SDHCI: 0, EXYNOS DWMMC: 1
*** Warning - bad CRC, using default environment

DFU alt info setting: done
Net:   No ethernet found.
Hit any key to stop autoboot:  0
** Unrecognized filesystem type **
** Unrecognized filesystem type **
** Unrecognized filesystem type **
Bad Linux ARM zImage magic!
Odroid # saveenv
Saving Environment to MMC...
Writing to MMC(0)... failed
Odroid # mmc info
Device: SAMSUNG SDHCI
Manufacturer ID: 3
OEM: 5344
Name: SU08G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 7.4 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
Odroid # mmc list
SAMSUNG SDHCI: 0 (SD)
EXYNOS DWMMC: 1
Odroid # mmc part

Partition Map for MMC device 0  --   Partition Type: DOS

Part Start Sector  Num Sectors  UUID    Type
** Can't read partition table on 0:0 **
Odroid # mmc hwpartition check
Partition configuration:
  No enhanced user data area
  No GP1 partition
  No GP2 partition
  No GP3 partition
  No GP4 partition
eMMC >= 4.4 required for enhanced user data area
Failed!
Odroid # version

U-Boot 2015.04-rc2-00081-g47d8ae4 (Feb 25 2015 - 12:12:40)
armv7l-unknown-linux-gnueabihf-gcc (GCC) 5.0.0 20150221 (experimental)
GNU ld (GNU Binutils) 2.25.51.20150221
Odroid # fstype mmc 0:0
 ** ext4fs_devread read error - block
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Odroid # bdinfo
arch_number = 0x000010C1
boot_params = 0x40000100
DRAM bank   = 0x00000000
-> start    = 0x40000000
-> size     = 0x10000000
DRAM bank   = 0x00000001
-> start    = 0x50000000
-> size     = 0x10000000
DRAM bank   = 0x00000002
-> start    = 0x60000000
-> size     = 0x10000000
DRAM bank   = 0x00000003
-> start    = 0x70000000
-> size     = 0x10000000
DRAM bank   = 0x00000004
-> start    = 0x80000000
-> size     = 0x10000000
DRAM bank   = 0x00000005
-> start    = 0x90000000
-> size     = 0x10000000
DRAM bank   = 0x00000006
-> start    = 0xA0000000
-> size     = 0x10000000
DRAM bank   = 0x00000007
-> start    = 0xB0000000
-> size     = 0x0FF00000
current eth = unknown
ip_addr     = <NULL>
baudrate    = 115200 bps
TLB addr    = 0xBFEF0000
relocaddr   = 0xBDE43000
reloc off   = 0x7A043000
irq_sp      = 0xB8E3D860
sp start    = 0xB8E3D850
*****
Ignore the "unrecognized filesystem type" stuff. I'm using ext4.
mmc hwpartition only used for eMMC?

Success:
https://github.com/hardkernel/u-boot.git
commit 33e05ffb159141b640571e91470172d83a2a1273
*****
U-Boot 2010.12-svn (May 12 2014 - 15:05:46) for Exynox4412


CPU: S5PC220 [Samsung SOC on SMP Platform Base on ARM CortexA9]
APLL = 1000MHz, MPLL = 880MHz
DRAM:  2 GiB

PMIC VERSION : 0x00, CHIP REV : 3
TrustZone Enabled BSP
BL1 version: 20121128

Checking Boot Mode ... SDMMC
MMC Device 0: 7580 MB
MMC Device 1 not found
*** Warning - using default environment
USB3503 NINT = OUTPUT LOW!
ModeKey Check... run normal_boot
No ethernet found.
Hit any key to stop autoboot:  0
Exynos4412 # wipeenv  0
spot on!
0: wipeenv
1:0
MMC Device 1 not found
Wiping u-boot env at MMC: 0
Exynos4412 # mmcinfo
Device: S3C_HSMMC2
Manufacturer ID: 3
OEM: 5344
Name: SU08G
Tran Speed: 0
Rd Block Len: 512
SD version 2.0
High Capacity: Yes
Size: 0MB (block: 7580)
Bus Width: 4-bit
Boot Partition Size: 0 KB
Exynos4412 # saveenv
Saving Environment to SMDK bootable device...
done
*****

  reply	other threads:[~2015-02-26  0:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-25 19:14 [U-Boot] "Writing to MMC(%d)... failed" Nathan Royce
2015-02-26  0:30 ` Nathan [this message]
2015-02-26 23:59   ` Nathan
2015-02-27 13:16     ` Przemyslaw Marczak
2015-02-27 17:21       ` Nathan
2015-03-10 11:30         ` Nathan
     [not found]         ` <BLU437-SMTP105D4C7DA6754615DB4E45DA2180@phx.gbl>
2015-03-10 13:07           ` Przemyslaw Marczak
2015-03-10 13:14             ` Nathan
2015-03-10 15:12               ` Przemyslaw Marczak
2015-03-12 13:22                 ` Nathan
2015-02-27 13:08   ` Przemyslaw Marczak
2015-04-28  5:39 Nathan
     [not found] <BLU436-SMTP127C338DB532C3DF004593EA2E80@phx.gbl>
2015-04-28  8:07 ` Przemyslaw Marczak
     [not found]   ` <BLU437-SMTP496E077CBDBF75F343C04FA2E80@phx.gbl>
2015-04-29  9:15     ` Przemyslaw Marczak
2015-04-29 23:34       ` Nathan
2015-04-30  2:44       ` Nathan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BLU436-SMTP103FAEE11BEDD60CF8F599EA2140@phx.gbl \
    --to=naroyce@hotmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.