Bad device MMC causing boot failure

Hardware related problems and workarounds

Bad device MMC causing boot failure

Postby mchampigny » Sun Dec 18, 2016 4:07 pm

The serial cable arrived today and I tried to boot with the headless 15.04 image for the Z7010 (Desktop board).

Here is output to the console. Notice the ** Bad device mmc 0 ** messages.

I retried several times, each with the same result. Does this indicate I've got a bad board?
The SD I'm using is brand new and I verified the image by mounting it and looking around.

U-Boot 2012.10-00003-g792c31c (Jan 03 2014 - 12:24:08)

I2C: ready
DRAM: 992 MiB
WARNING: Caches not enabled
MMC: SDHCI: 0
SF: Detected N25Q128 with page size 64 KiB, total 16 MiB
In: serial
Out: serial
Err: serial
Net: zynq_gem
Hit any key to stop autoboot: 0
Configuring PL and Booting Linux...
Device: SDHCI
Manufacturer ID: 74
OEM: 4a45
Name: SDU1
Tran Speed: 25000000
Rd Block Len: 512
SD version 2.0
High Capacity: Yes
Capacity: 29.5 GiB
Bus Width: 1-bit
** Bad device mmc 0 **
Error: Timeout waiting for FPGA to config.
fpga - loadable FPGA image support

Usage:
fpga [operation type] [device number] [image address] [image size]
fpga operations:
dump [dev] Load device to memory buffer
info [dev] list known device information
load [dev] [address] [size] Load device from memory buffer
loadb [dev] [address] [size] Load device from bitstream buffer (Xilinx only)
loadmk [dev] [address] Load device generated with mkimage
For loadmk operating on FIT format uImage address must include
subimage unit name in the form of addr:<subimg_uname>
** Bad device mmc 0 **
** Bad device mmc 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
zynq-uboot>

Please help if you can. This is the first time I've used the board since I bought it in 2014 and I guess I was unlucky.
mchampigny
 
Posts: 27
Joined: Fri Dec 02, 2016 2:56 am

Re: Bad device MMC causing boot failure

Postby mchampigny » Mon Dec 19, 2016 3:07 am

The mystery is solved...

I was reading through some older posts on the board here and someone mentioned having a "Kickstarter" desktop Parallella with a Z7020.
I recalled that I did receive my Parallella through Kickstarter and that possibly I have the 7020 and not the 7010.

I could not read my Zynq die as it's now covered with a thermal pad and I didn't feel like taking it apart. Long story short, I downloaded
the Z7020 headless image and attached the serial cable. It booted without issue. :o

So I should be all set now. I had forgotten that the older boards were actually 7020 but are still the desktop addition (with USB and HDMI).

Problem solved. I expect the HDMI image should now work and I'll try that next.

Anyway, if anyone is seeing the messages about the FPGA bitstream not loading, check the Zynq package and ensure you've got the chip you think you have.
mchampigny
 
Posts: 27
Joined: Fri Dec 02, 2016 2:56 am

Re: Bad device MMC causing boot failure

Postby aolofsson » Mon Dec 19, 2016 12:20 pm

Good to hear! I meant to respond to this post suggesting you check the model number, but must have forgotten to hit send.
User avatar
aolofsson
 
Posts: 1005
Joined: Tue Dec 11, 2012 6:59 pm
Location: Lexington, Massachusetts,USA

Re: [SOLVED] Bad device MMC causing boot failure

Postby mchampigny » Mon Dec 19, 2016 12:38 pm

Andreas,

Do you know if there is a way to check the model number from /proc/cpuinfo or dmesg? I'd like to know without having to check the die package whether it's a 7010 or 7020.

The reason I ask is that even though the 15.04 headless image for 7020 booted (and 7010 would not), I seem to not be able to use the Epiphany. In particular, the eLink seems to be down.
Not a single test in the examples directories passes (most segfaulting) and the tests in /test directory return EXIT_FAIL.

If the eLink is not working, would that not suggest the bitstream is wrong for the board? In other words, is it possible the 7020 images work even on 7010 but only to support the ARM host, not the FPGA fabric?

Here is the dmesg output:

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.6.0+ (esim@adapteva-dev) (gcc version 4.9.3 20141031 (prerelease) (Linaro GCC 2014.11) ) #1 SMP PREEMPT Wed Dec 7 13:27:40 CET 2016
[ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: Adapteva Parallella Board with headless bitstream
[ 0.000000] cma: Reserved 128 MiB at 0x36000000
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] On node 0 totalpages: 253952
[ 0.000000] free_area_init_node: node 0, pgdat c0829000, node_mem_map ef838000
[ 0.000000] Normal zone: 1536 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 196608 pages, LIFO batch:31
[ 0.000000] HighMem zone: 57344 pages, LIFO batch:15
[ 0.000000] percpu: Embedded 12 pages/cpu @ef810000 s19392 r8192 d21568 u49152
[ 0.000000] pcpu-alloc: s19392 r8192 d21568 u49152 alloc=12*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 252416
[ 0.000000] Kernel command line: console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 867280K/1015808K available (5652K kernel code, 279K rwdata, 2132K rodata, 260K init, 159K bss, 17456K reserved, 131072K cma-reserved, 98304K highmem)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc07a25f0 (7786 kB)
.init : 0xc07a3000 - 0xc07e4000 ( 260 kB)
.data : 0xc07e4000 - 0xc0829fa0 ( 280 kB)
.bss : 0xc0829fa0 - 0xc0851c44 ( 160 kB)
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] slcr mapped to f0800000
[ 0.000000] L2C: platform modifies aux control register: 0x72360000 -> 0x72760000
[ 0.000000] L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000
[ 0.000000] L2C-310 erratum 769419 enabled
[ 0.000000] L2C-310 enabling early BRESP for Cortex-A9
[ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[ 0.000000] L2C-310 ID prefetch enabled, offset 1 lines
[ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[ 0.000000] L2C-310 cache controller enabled, 8 ways, 512 kB
[ 0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001
[ 0.000000] zynq_clock_init: clkc starts at f0800100
[ 0.000000] Zynq clock init
[ 0.000000] clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns
[ 0.000018] sched_clock: 16 bits at 54kHz, resolution 18432ns, wraps every 603975816ns
[ 0.000055] timer #0 at f0808000, irq=16
[ 0.000387] Console: colour dummy device 80x30
[ 0.000405] Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096)
[ 0.090188] pid_max: default: 32768 minimum: 301
[ 0.090336] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.090354] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.090999] CPU: Testing write buffer coherency: ok
[ 0.091220] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.091294] Setting up static identity map for 0x8280 - 0x82d8
[ 0.280187] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.280297] Brought up 2 CPUs
[ 0.280297] SMP: Total of 2 processors activated (2664.03 BogoMIPS).
[ 0.280316] CPU: All CPU(s) started in SVC mode.
[ 0.281385] devtmpfs: initialized
[ 0.285329] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 0.285716] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.293716] pinctrl core: initialized pinctrl subsystem
[ 0.295135] NET: Registered protocol family 16
[ 0.297163] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.320627] cpuidle: using governor ladder
[ 0.322028] zynq-gpio e000a000.gpio: could not find pctldev for node /amba/slcr@f8000000/pinctrl@700/gpio0-default, deferring probe
[ 0.327336] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.327336] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.327484] zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xf0880000
[ 0.327889] zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
[ 0.372219] SCSI subsystem initialized
[ 0.372624] usbcore: registered new interface driver usbfs
[ 0.372716] usbcore: registered new interface driver hub
[ 0.372790] usbcore: registered new device driver usb
[ 0.373214] media: Linux media interface: v0.10
[ 0.373306] Linux video capture interface: v2.00
[ 0.373380] pps_core: LinuxPPS API ver. 1 registered
[ 0.373380] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.373435] PTP clock support registered
[ 0.373509] EDAC MC: Ver: 3.0.0
[ 0.380697] Advanced Linux Sound Architecture Driver Initialized.
[ 0.381490] Bluetooth: Core ver 2.21
[ 0.381545] NET: Registered protocol family 31
[ 0.381564] Bluetooth: HCI device and connection manager initialized
[ 0.381582] Bluetooth: HCI socket layer initialized
[ 0.381582] Bluetooth: L2CAP socket layer initialized
[ 0.381619] Bluetooth: SCO socket layer initialized
[ 0.382319] clocksource: Switched to clocksource ttc_clocksource
[ 0.394669] NET: Registered protocol family 2
[ 0.395443] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.395554] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.395701] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.395793] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.395849] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.396125] NET: Registered protocol family 1
[ 0.396770] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 0.398171] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.399111] workingset: timestamp_bits=28 max_order=18 bucket_order=0
[ 0.399941] fuse init (API version 7.24)
[ 0.401415] bounce: pool size: 64 pages
[ 0.401434] io scheduler noop registered
[ 0.401452] io scheduler deadline registered
[ 0.401489] io scheduler cfq registered (default)
[ 0.401692] Error: Driver 'mwipcore' is already registered, aborting...
[ 0.403774] dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
[ 0.403793] dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
[ 0.404770] e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 25, base_baud = 3125000) is a xuartps
[ 0.897664] console [ttyPS0] enabled
[ 0.900521] xdevcfg f8007000.devcfg: ioremap 0xf8007000 to f085e000
[ 0.906051] [drm] Initialized drm 1.1.0 20060810
[ 0.920926] brd: module loaded
[ 0.929441] loop: module loaded
[ 0.942030] zram: Added device: zram0
[ 0.946657] zynq-qspi e000d000.spi: couldn't determine configuration info about dual memories. defaulting to single memory
[ 0.957606] m25p80 spi32766.0: SPI-NOR-UniqueID 100000233353781300290033031013c8b1
[ 0.965144] m25p80 spi32766.0: n25q128a13 (16384 Kbytes)
[ 0.969089] 3 ofpart partitions found on MTD device spi32766.0
[ 0.973605] Creating 3 MTD partitions on "spi32766.0":
[ 0.977402] 0x000000000000-0x0000004e0000 : "boot"
[ 0.982102] 0x0000004e0000-0x000000500000 : "bootenv"
[ 0.986950] 0x000000ff0000-0x000001000000 : "version"
[ 0.993511] gpiod_set_value: invalid GPIO
[ 0.997179] libphy: MACB_mii_bus: probed
[ 1.072604] macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 27 (04:4f:8b:00:2c:df)
[ 1.081046] Marvell 88E1318S e000b000.etherne:00: attached PHY driver [Marvell 88E1318S] (mii_bus:phy_addr=e000b000.etherne:00, irq=-1)
[ 1.092381] usbcore: registered new interface driver asix
[ 1.096492] usbcore: registered new interface driver ax88179_178a
[ 1.101247] usbcore: registered new interface driver cdc_ether
[ 1.105800] usbcore: registered new interface driver net1080
[ 1.110132] usbcore: registered new interface driver cdc_subset
[ 1.114758] usbcore: registered new interface driver zaurus
[ 1.119053] usbcore: registered new interface driver cdc_ncm
[ 1.124398] aoe: AoE v85 initialised.
[ 1.126702] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.131992] usbcore: registered new interface driver usb-storage
[ 1.136840] usbcore: registered new interface driver usbserial
[ 1.141337] usbcore: registered new interface driver usbserial_generic
[ 1.146572] usbserial: USB Serial support registered for generic
[ 1.151254] usbcore: registered new interface driver ftdi_sio
[ 1.155696] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 1.162166] e0002000.usb supply vbus not found, using dummy regulator
[ 1.170110] ci_hdrc ci_hdrc.0: unable to init phy: -110
[ 1.174036] ci_hdrc: probe of ci_hdrc.0 failed with error -110
[ 1.178828] e0003000.usb supply vbus not found, using dummy regulator
[ 1.186717] ci_hdrc ci_hdrc.1: unable to init phy: -110
[ 1.190570] ci_hdrc: probe of ci_hdrc.1 failed with error -110
[ 1.196339] mousedev: PS/2 mouse device common for all mice
[ 1.210974] i2c /dev entries driver
[ 2.212338] cdns-i2c e0004000.i2c: timeout waiting on completion
[ 3.212338] cdns-i2c e0004000.i2c: timeout waiting on completion
[ 4.212338] cdns-i2c e0004000.i2c: timeout waiting on completion
[ 5.212338] cdns-i2c e0004000.i2c: timeout waiting on completion
[ 5.216964] 1P35V: failed to enable
[ 5.219250] isl9305 0-0068: Failed to register DCD2: -110
[ 5.223508] isl9305: probe of 0-0068 failed with error -110
[ 5.227766] cdns-i2c e0004000.i2c: 100 kHz mmio e0004000 irq 22
[ 5.234346] Xilinx Zynq CpuIdle Driver started
[ 5.237719] sdhci: Secure Digital Host Controller Interface driver
[ 5.242530] sdhci: Copyright(c) Pierre Ossman
[ 5.245553] sdhci-pltfm: SDHCI platform and OF driver helper
[ 5.282380] mmc0: SDHCI controller on e0101000.sdhci [e0101000.sdhci] using ADMA
[ 5.293919] ledtrig-cpu: registered to indicate activity on CPUs
[ 5.300702] hidraw: raw HID events driver (C) Jiri Kosina
[ 5.320387] usbcore: registered new interface driver usbhid
[ 5.324608] usbhid: USB HID core driver
[ 5.336221] usbcore: registered new interface driver snd-usb-audio
[ 5.343004] NET: Registered protocol family 10
[ 5.347225] sit: IPv6 over IPv4 tunneling driver
[ 5.348238] mmc0: new high speed SDHC card at address 59b4
[ 5.356072] NET: Registered protocol family 17
[ 5.358929] mmcblk0: mmc0:59b4 SDU1 29.5 GiB
[ 5.360348] mmcblk0: p1 p2
[ 5.364182] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 5.375592] Bluetooth: RFCOMM TTY layer initialized
[ 5.379094] Bluetooth: RFCOMM socket layer initialized
[ 5.382946] Bluetooth: RFCOMM ver 1.11
[ 5.385342] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 5.389324] Bluetooth: BNEP filters: protocol multicast
[ 5.393268] Bluetooth: BNEP socket layer initialized
[ 5.396881] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 5.401489] Bluetooth: HIDP socket layer initialized
[ 5.405470] Registering SWP/SWPB emulation handler
[ 5.412290] hctosys: unable to open rtc device (rtc0)
[ 5.420474] ALSA device list:
[ 5.422041] No soundcards found.
[ 6.072751] random: nonblocking pool is initialized
[ 6.114426] EXT4-fs (mmcblk0p2): recovery complete
[ 6.123218] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 6.129983] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 6.144121] devtmpfs: mounted
[ 6.146019] Freeing unused kernel memory: 260K (c07a3000 - c07e4000)
[ 6.150977] This architecture does not have kernel memory protection.
[ 7.927690] systemd-journald[1493]: Received request to flush runtime journal from PID 1
[ 8.154737] elink 81000000.elink0: elink: vdd regulator not ready, retry
[ 8.154756] elink 81000000.elink0: Could not get power supplies
[ 8.159309] elink 81000000.elink0: Deferring probe.
[ 8.988221] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 12.072585] macb e000b000.ethernet eth0: link up (1000/Full)
[ 12.072622] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
mchampigny
 
Posts: 27
Joined: Fri Dec 02, 2016 2:56 am

Re: [SOLVED] Bad device MMC causing boot failure

Postby olajep » Mon Dec 19, 2016 2:03 pm

mchampigny wrote:Do you know if there is a way to check the model number from /proc/cpuinfo or dmesg? I'd like to know without having to check the die package whether it's a 7010 or 7020.

You can use the getfpga tool from parallella-utils
https://github.com/parallella/parallella-utils

mchampigny wrote:
Code: Select all
[    8.154737] elink 81000000.elink0: elink: vdd regulator not ready, retry
[    8.154756] elink 81000000.elink0: Could not get power supplies
[    8.159309] elink 81000000.elink0: Deferring probe.


If the eLink is not working, would that not suggest the bitstream is wrong for the board? In other words, is it possible the 7020 images work even on 7010 but only to support the ARM host, not the FPGA fabric?

That's the most plausible explanation. If your sd card has the wrong bitstream uboot will refuse to load it so you should see it in the complete boot log from power-on (w/ serial cable).
As can be seen your boot log the elink doesn't come up because the ISL9305 voltage regulator never comes up. The ISL9305 is connected to the I2C bus, which will not work w/o a FPGA bitstream.

You can use i2cdetect to probe the I2C bus. The ISL9305 has address 0x68.
This is what it looks like on a normal board (w/ HDMI).

Code: Select all
$ sudo i2cdetect -y -r 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- UU UU -- -- 3c -- -- UU
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --                         


HTH,
Ola
_start = 266470723;
olajep
 
Posts: 138
Joined: Mon Dec 17, 2012 3:24 am
Location: Sweden

Re: Bad device MMC causing boot failure

Postby mchampigny » Mon Dec 19, 2016 3:42 pm

Thanks, that is helpful. I will try a few things:

1. Identify definitively what model Zynq I have with getfpga tool.
2. Capture the full boot log from the serial console for further debug.
3. Capture output of i2cdetect.

That begs the question (assuming I actually do have a 7010) why is it that the 7020 boot images work (at least to support the ARM host) but not the 7010 versions? For the 7010 images, I can't even boot.

It really does appear that I have a bad board at this point. I have since tried multiple brand new SD cards, verified the SD images, and verified all cables and equipment. The 7010 images simply will not boot.
mchampigny
 
Posts: 27
Joined: Fri Dec 02, 2016 2:56 am

Re: Bad device MMC causing boot failure

Postby mchampigny » Tue Dec 20, 2016 3:02 am

Here is a follow-up with some additional information.

I confirmed (with getfpga) that the chip is a 7010. That explains why the eLink support is broken. The bitstream is invalid since I am using a 7020 image. However, the 7020 image at least allows me to use the ARM host. I cannot even get to a boot prompt with any of the 7010 images.

Here is the output i2cdetect. It doesn't look good:

0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

And finally the serial console log:

U-Boot 2012.10-00003-g792c31c (Jan 03 2014 - 12:24:08)

I2C: ready
DRAM: 992 MiB
WARNING: Caches not enabled
MMC: SDHCI: 0
SF: Detected N25Q128 with page size 64 KiB, total 16 MiB
In: serial
Out: serial
Err: serial
Net: zynq_gem
Hit any key to stop autoboot: 0
Configuring PL and Booting Linux...
Device: SDHCI
Manufacturer ID: 74
OEM: 4a45
Name: SDU1
Tran Speed: 50000000
Rd Block Len: 512
SD version 2.0
High Capacity: Yes
Capacity: 29.5 GiB
Bus Width: 4-bit
reading parallella.bit.bin

4045568 bytes read
Error: Timeout waiting for FPGA to config.
fpga - loadable FPGA image support

Usage:
fpga [operation type] [device number] [image address] [image size]
fpga operations:
dump [dev] Load device to memory buffer
info [dev] list known device information
load [dev] [address] [size] Load device from memory buffer
loadb [dev] [address] [size] Load device from bitstream buffer (Xilinx only)
loadmk [dev] [address] Load device generated with mkimage
For loadmk operating on FIT format uImage address must include
subimage unit name in the form of addr:<subimg_uname>
reading uImage

4154824 bytes read
reading devicetree.dtb

13749 bytes read
## Booting kernel from Legacy Image at 03000000 ...
Image Name: Linux-4.6.0+
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4154760 Bytes = 4 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 02a00000
Booting using the fdt blob at 0x02a00000
Loading Kernel Image ... OK
OK
Loading Device Tree to 1fff9000, end 1ffff5b4 ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.6.0+ (esim@adapteva-dev) (gcc version 4.9.3 20141031 (prerelease) (Linaro GCC 2014.11) ) #1 SMP PREEMPT Wed Dec 7 13:27:40 CET 2016
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Adapteva Parallella Board with headless bitstream
cma: Reserved 128 MiB at 0x36000000
Memory policy: Data cache writealloc
percpu: Embedded 12 pages/cpu @ef810000 s19392 r8192 d21568 u49152
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 252416
Kernel command line: console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 867280K/1015808K available (5652K kernel code, 279K rwdata, 2132K rodata, 260K init, 159K bss, 17456K reserved, 131072K cma-reserved, 98304K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc07a25f0 (7786 kB)
.init : 0xc07a3000 - 0xc07e4000 ( 260 kB)
.data : 0xc07e4000 - 0xc0829fa0 ( 280 kB)
.bss : 0xc0829fa0 - 0xc0851c44 ( 160 kB)
Preemptible hierarchical RCU implementation.
Build-time adjustment of leaf fanout to 32.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
slcr mapped to f0800000
L2C: platform modifies aux control register: 0x72360000 -> 0x72760000
L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000
L2C-310 erratum 769419 enabled
L2C-310 enabling early BRESP for Cortex-A9
L2C-310 full line of zeros enabled for Cortex-A9
L2C-310 ID prefetch enabled, offset 1 lines
L2C-310 dynamic clock gating enabled, standby mode enabled
L2C-310 cache controller enabled, 8 ways, 512 kB
L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001
zynq_clock_init: clkc starts at f0800100
Zynq clock init
clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns
sched_clock: 16 bits at 54kHz, resolution 18432ns, wraps every 603975816ns
timer #0 at f0808000, irq=16
Console: colour dummy device 80x30
Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x8280 - 0x82d8
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (2664.03 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
zynq-gpio e000a000.gpio: could not find pctldev for node /amba/slcr@f8000000/pinctrl@700/gpio0-default, deferring probe
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xf0880000
zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
media: Linux media interface: v0.10
Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
EDAC MC: Ver: 3.0.0
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.21
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
clocksource: Switched to clocksource ttc_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
futex hash table entries: 512 (order: 3, 32768 bytes)
workingset: timestamp_bits=28 max_order=18 bucket_order=0
fuse init (API version 7.24)
bounce: pool size: 64 pages
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Error: Driver 'mwipcore' is already registered, aborting...
dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 25, base_baud = 3125000) is a xuartps
console [ttyPS0] enabled
xdevcfg f8007000.devcfg: ioremap 0xf8007000 to f085e000
[drm] Initialized drm 1.1.0 20060810
brd: module loaded
loop: module loaded
zram: Added device: zram0
zynq-qspi e000d000.spi: couldn't determine configuration info about dual memories. defaulting to single memory
m25p80 spi32766.0: SPI-NOR-UniqueID 100000233353781300290033031013c8b1
m25p80 spi32766.0: n25q128a13 (16384 Kbytes)
3 ofpart partitions found on MTD device spi32766.0
Creating 3 MTD partitions on "spi32766.0":
0x000000000000-0x0000004e0000 : "boot"
0x0000004e0000-0x000000500000 : "bootenv"
0x000000ff0000-0x000001000000 : "version"
gpiod_set_value: invalid GPIO
libphy: MACB_mii_bus: probed
macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 27 (04:4f:8b:00:2c:df)
Marvell 88E1318S e000b000.etherne:00: attached PHY driver [Marvell 88E1318S] (mii_bus:phy_addr=e000b000.etherne:00, irq=-1)
usbcore: registered new interface driver asix
usbcore: registered new interface driver ax88179_178a
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver net1080
usbcore: registered new interface driver cdc_subset
usbcore: registered new interface driver zaurus
usbcore: registered new interface driver cdc_ncm
aoe: AoE v85 initialised.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver ftdi_sio
usbserial: USB Serial support registered for FTDI USB Serial Device
e0002000.usb supply vbus not found, using dummy regulator
ci_hdrc ci_hdrc.0: unable to init phy: -110
ci_hdrc: probe of ci_hdrc.0 failed with error -110
e0003000.usb supply vbus not found, using dummy regulator
ci_hdrc ci_hdrc.1: unable to init phy: -110
ci_hdrc: probe of ci_hdrc.1 failed with error -110
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
cdns-i2c e0004000.i2c: timeout waiting on completion
cdns-i2c e0004000.i2c: timeout waiting on completion
cdns-i2c e0004000.i2c: timeout waiting on completion
cdns-i2c e0004000.i2c: timeout waiting on completion
1P35V: failed to enable
isl9305 0-0068: Failed to register DCD2: -110
isl9305: probe of 0-0068 failed with error -110
cdns-i2c e0004000.i2c: 100 kHz mmio e0004000 irq 22
Xilinx Zynq CpuIdle Driver started
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: SDHCI controller on e0101000.sdhci [e0101000.sdhci] using ADMA
ledtrig-cpu: registered to indicate activity on CPUs
hidraw: raw HID events driver (C) Jiri Kosina
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usbcore: registered new interface driver snd-usb-audio
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
mmc0: new high speed SDHC card at address 59b4
NET: Registered protocol family 17
mmcblk0: mmc0:59b4 SDU1 29.5 GiB
mmcblk0: p1 p2
bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: BNEP socket layer initialized
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
Bluetooth: HIDP socket layer initialized
Registering SWP/SWPB emulation handler
hctosys: unable to open rtc device (rtc0)
ALSA device list:
No soundcards found.
EXT4-fs (mmcblk0p2): recovery complete
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:2.
devtmpfs: mounted
Freeing unused kernel memory: 260K (c07a3000 - c07e4000)
This architecture does not have kernel memory protection.
random: systemd urandom read with 16 bits of entropy available^M^@
Welcome to ^[[1mUbuntu 15.04^[[0m!

At this point I have given up on the board. I've put in about as much time as I can afford to get the 7010 images to work.
I have to assume at this point there is a hardware issue of some kind.

I've ordered another Parallella Desktop...hopefully I'll have better luck with the new one.
mchampigny
 
Posts: 27
Joined: Fri Dec 02, 2016 2:56 am

Re: Bad device MMC causing boot failure

Postby aolofsson » Tue Dec 20, 2016 12:04 pm

The data is very confusing! To help us understand, can you post?:
1.) The exact model number on the board sticker
2.) The exact name of the image you are using. (in fact, if you could take a picture of the board without the heatsink it would be very hepful.)
User avatar
aolofsson
 
Posts: 1005
Joined: Tue Dec 11, 2012 6:59 pm
Location: Lexington, Massachusetts,USA

Re: Bad device MMC causing boot failure

Postby mchampigny » Tue Dec 20, 2016 2:57 pm

Andreas,

No problem, I'll take pictures of the board and box sticker tonight.

Thanks for looking into this.
mchampigny
 
Posts: 27
Joined: Fri Dec 02, 2016 2:56 am

Re: Bad device MMC causing boot failure

Postby mchampigny » Wed Dec 21, 2016 2:57 am

Andreas,

The attached pictures should give you all the information you need. The image I used is:

https://github.com/parallella/parabuntu ... 020.img.gz

This is found at the "Quick Start" link on parallella.org. Notice that even though the CPU on the board is a z7010 I could only boot into the ARM host with the z7020 image. I have never been able to boot the z7010 images on this board.

Thanks.
Attachments
IMG_20161220_213704.jpg
Board sticker
IMG_20161220_213704.jpg (964.45 KiB) Viewed 7852 times
IMG_20161220_212530.jpg
Box sticker 2
IMG_20161220_212530.jpg (22.85 KiB) Viewed 7852 times
IMG_20161220_212455.jpg
Box sticker 1
IMG_20161220_212455.jpg (19.43 KiB) Viewed 7852 times
mchampigny
 
Posts: 27
Joined: Fri Dec 02, 2016 2:56 am

Next

Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 3 guests