All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] "Writing to MMC(%d)... failed"
@ 2015-02-25 19:14 Nathan Royce
  2015-02-26  0:30 ` Nathan
  0 siblings, 1 reply; 16+ messages in thread
From: Nathan Royce @ 2015-02-25 19:14 UTC (permalink / raw)
  To: u-boot

"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.gitcommit 47d8ae4069b47ce966c0c5e0d8dd041e69ee1f86*****U-Boot 2015.04-rc2-00081-g47d8ae4 (Feb 25 2015 - 12:12:40)
CPU: Exynos4412 at 1000MHzModel: Odroid based on Exynos4412DRAM:  2 GiBBoard PMIC initMMC:   SAMSUNG SDHCI: 0, EXYNOS DWMMC: 1*** Warning - bad CRC, using default environment
DFU alt info setting: doneNet:   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 # saveenvSaving Environment to MMC...Writing to MMC(0)... failedOdroid # mmc infoDevice: SAMSUNG SDHCIManufacturer ID: 3OEM: 5344Name: SU08GTran Speed: 50000000Rd Block Len: 512SD version 3.0High Capacity: YesCapacity: 7.4 GiBBus Width: 4-bitErase Group Size: 512 BytesOdroid # mmc listSAMSUNG SDHCI: 0 (SD)EXYNOS DWMMC: 1Odroid # 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 checkPartition configuration:  No enhanced user data area  No GP1 partition  No GP2 partition  No GP3 partition  No GP4 partitioneMMC >= 4.4 required for enhanced user data areaFailed!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.20150221Odroid # fstype mmc 0:0 ** ext4fs_devread read error - blockFailed to mount ext2 filesystem...** Unrecognized filesystem type **Odroid # bdinfoarch_number = 0x000010C1boot_params = 0x40000100DRAM bank   = 0x00000000-> start    = 0x40000000-> size     = 0x10000000DRAM bank   = 0x00000001-> start    = 0x50000000-> size     = 0x10000000DRAM bank   = 0x00000002-> start    = 0x60000000-> size     = 0x10000000DRAM bank   = 0x00000003-> start    = 0x70000000-> size     = 0x10000000DRAM bank   = 0x00000004-> start    = 0x80000000-> size     = 0x10000000DRAM bank   = 0x00000005-> start    = 0x90000000-> size     = 0x10000000DRAM bank   = 0x00000006-> start    = 0xA0000000-> size     = 0x10000000DRAM bank   = 0x00000007-> start    = 0xB0000000-> size     = 0x0FF00000current eth = unknownip_addr     = <NULL>baudrate    = 115200 bpsTLB addr    = 0xBFEF0000relocaddr   = 0xBDE43000reloc off   = 0x7A043000irq_sp      = 0xB8E3D860sp 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.gitcommit 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 = 880MHzDRAM:  2 GiB
PMIC VERSION : 0x00, CHIP REV : 3TrustZone Enabled BSPBL1 version: 20121128
Checking Boot Mode ... SDMMCMMC Device 0: 7580 MBMMC Device 1 not found*** Warning - using default environmentUSB3503 NINT = OUTPUT LOW!ModeKey Check... run normal_bootNo ethernet found.Hit any key to stop autoboot:  0Exynos4412 # wipeenv  0spot on!0: wipeenv1:0MMC Device 1 not foundWiping u-boot env at MMC: 0Exynos4412 # mmcinfoDevice: S3C_HSMMC2Manufacturer ID: 3OEM: 5344Name: SU08G Tran Speed: 0Rd Block Len: 512SD version 2.0High Capacity: YesSize: 0MB (block: 7580)Bus Width: 4-bitBoot Partition Size: 0 KBExynos4412 # saveenvSaving Environment to SMDK bootable device...done***** 		 	   		  

^ permalink raw reply	[flat|nested] 16+ messages in thread
* [U-Boot] "Writing to MMC(%d)... failed"
@ 2015-04-28  5:39 Nathan
  0 siblings, 0 replies; 16+ messages in thread
From: Nathan @ 2015-04-28  5:39 UTC (permalink / raw)
  To: u-boot

Still not sure where the problem lies. I thought I found an issue, but
it didn't fix anything and caused a different issue.

At first, after plugging in a bunch of printfs, I thought it was a
simple issue in the dts (it appears not to be the issue):
*****
Getting a little back into it, I find an issue in:
"./lib/libfdt/fdt_ro.c"
  "fdt_path_offset()" where "-FDT_ERR_BADPATH" is returned for "path"
= "sdhci at 12530000"
when:
"./lib/fdtdec.c"
  "fdtdec_add_aliases_for_id()" is examining "mmc2"

"fdt_path_offset()"
  "_fdt_nodename_eq()" finds "aliases"

But the issue comes from
"./lib/libfdt/fdt_ro.c"
  "_fdt_string_eq()"
where
"p" = "mmc2" <> "s" = "sdhci at 12530000"

What I'm noticing different in the "exynos4412-odroid.dts" (odroid u2)
and "exynos54xx.dtsi" is the "/" for the alias paths "mmc2" and
"mmc4".
*****

The problem with that "finding" was:
"fdtdec_add_aliases_for_id: warning: alias 'mmc2' points to a node
'sdhci at 12530000' that is missing or is not compatible  with
'samsung,exynos-dwmmc'"
Not sure why it would even mention dwmmc for mmc2 when it is specified
"exynos-mmc" in "exynos4.dtsi"

A common issue with or without the slash is:
"_gpio_request_by_name_nodev: Node 'sdhci at 12530000', property
'pwr-gpios', failed to request GPIO index 0: -2"

> I think the kicker is "No match for node 'sdhci at 12530000'".
> I even manually set/forced the "status=okay" in the dts, but it still
> says it's disabled.
>
> I shall continue to pursue this, working my way back from
> "lists_bind_fdt()" in "lists.c"

^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <BLU436-SMTP127C338DB532C3DF004593EA2E80@phx.gbl>]

end of thread, other threads:[~2015-04-30  2:44 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-25 19:14 [U-Boot] "Writing to MMC(%d)... failed" Nathan Royce
2015-02-26  0:30 ` Nathan
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

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.