UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor carl711
Visitor
913 Views
Registered: ‎05-29-2019

ZynqMP Not able to boot from SD card when eMMC is enabled

Jump to solution

Hi,

I am working on a custom board which boots fine with an SD card.

I was trying to boot the FPGA from SD card with eMMC enabled and landed up getting this error.

 

[    2.679155] mmc0: new HS200 MMC card at address 0001
[    2.679462] mmcblk0: mmc0:0001 00064G 58.3 GiB 
[    2.679526] mmcblk0boot0: mmc0:0001 00064G partition 1 4.00 MiB
[    2.679590] mmcblk0boot1: mmc0:0001 00064G partition 2 4.00 MiB
[    2.679646] mmcblk0rpmb: mmc0:0001 00064G partition 3 4.00 MiB
[    2.702068] mmc1: new high speed SDHC card at address aaaa
[    2.702194] mmcblk1: mmc1:aaaa SL08G 7.40 GiB 
[    2.703024]  mmcblk1: p1 p2 p3
[    2.720590] can: broadcast manager protocol (rev 20170425 t)
[    2.726223] can: netlink gateway (rev 20170425) max_hops=1
[    2.731728] Bluetooth: RFCOMM TTY layer initialized
[    2.736519] Bluetooth: RFCOMM socket layer initialized
[    2.741633] Bluetooth: RFCOMM ver 1.11
[    2.745338] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    2.750611] Bluetooth: BNEP filters: protocol multicast
[    2.755803] Bluetooth: BNEP socket layer initialized
[    2.760732] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    2.766615] Bluetooth: HIDP socket layer initialized
[    2.771663] 9pnet: Installing 9P2000 support
[    2.775795] Key type dns_resolver registered
[    2.780428] registered taskstats version 1
[    2.784363] Btrfs loaded, crc32c=crc32c-generic
�    2.793195] f�&0000.������������꽹�ͽ�������AM��ځ*������5R�ڒr�‚������꽹�ͽ�������AM��ځ*������5R�ڒr�‚�����ʽ��э���ͽ����ڍ�����́"��ͅ����5R�ڒr�‚�����ʽ��э���ͽ����ڍ�����́"��ͅ����5R�ڒr�Š��Š���ꑹ�͵O�Ɂ2)[    2.833006] clk: Not disabling unused clocks
[    2.837314] ALSA device list:
[    2.840269]   No soundcards found.
[    2.844164] VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2): error -6
[    2.852076] Please append a correct "root=" boot option; here are the available partitions:
[    2.860425] 0100           65536 ram0 
[    2.860427]  (driver?)
[    2.866526] 0101           65536 ram1 
[    2.866527]  (driver?)
[    2.872620] 0102           65536 ram2 
[    2.872621]  (driver?)
[    2.878719] 0103           65536 ram3 
[    2.878721]  (driver?)
[    2.884806] 0104           65536 ram4 
[    2.884807]  (driver?)
[    2.890906] 0105           65536 ram5 
[    2.890907]  (driver?)
[    2.896999] 0106           65536 ram6 
[    2.897000]  (driver?)
[    2.903084] 0107           65536 ram7 
[    2.903085]  (driver?)
[    2.909177] 0108           65536 ram8 
[    2.909178]  (driver?)
[    2.915264] 0109           65536 ram9 
[    2.915265]  (driver?)
[    2.921367] 010a           65536 ram10 
[    2.921368]  (driver?)
[    2.927546] 010b           65536 ram11 
[    2.927548]  (driver?)
[    2.933733] 010c           65536 ram12 
[    2.933735]  (driver?)
[    2.939907] 010d           65536 ram13 
[    2.939908]  (driver?)
[    2.946095] 010e           65536 ram14 
[    2.946096]  (driver?)
[    2.952276] 010f           65536 ram15 
[    2.952277]  (driver?)
[    2.958464] b300        61079552 mmcblk0 
[    2.958466]  driver: mmcblk
[    2.965259] b318            4096 mmcblk0rpmb 
[    2.965260]  (driver?)
[    2.971953] b310            4096 mmcblk0boot1 
[    2.971955]  (driver?)
[    2.978748] b308            4096 mmcblk0boot0 
[    2.978749]  (driver?)
[    2.985535] b320         7761920 mmcblk1 
[    2.985537]  driver: mmcblk
[    2.992317]   b321          524288 mmcblk1p1 00096174-01
[    2.992319] 
[    2.999105]   b322         6720512 mmcblk1p2 00096174-02
[    2.999106] 
[    3.005899]   b323            1024 mmcblk1p3 00096174-03
[    3.005900] 
[    3.012680] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[    3.021100] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.14.0 #1
[    3.027009] Hardware name: xlnx,zynqmp (DT)
[    3.031175] Call trace:
[    3.033613] [<ffffff8008088ae8>] dump_backtrace+0x0/0x360
[    3.038998] [<ffffff8008088e5c>] show_stack+0x14/0x20
[    3.044042] [<ffffff8008a54da0>] dump_stack+0x9c/0xbc
[    3.049084] [<ffffff800809af98>] panic+0x11c/0x274
[    3.053868] [<ffffff8008ee1124>] mount_block_root+0x1a8/0x27c
[    3.059604] [<ffffff8008ee1430>] mount_root+0x11c/0x134
[    3.064812] [<ffffff8008ee15b4>] prepare_namespace+0x16c/0x1b4
[    3.070628] [<ffffff8008ee0d44>] kernel_init_freeable+0x1b8/0x1d8
[    3.076713] [<ffffff8008a66cf0>] kernel_init+0x10/0x100
[    3.081929] [<ffffff8008084a60>] ret_from_fork+0x10/0x18
[    3.087224] SMP: stopping secondary CPUs
[    3.091132] Kernel Offset: disabled
[    3.094609] CPU features: 0x002004
[    3.097993] Memory Limit: none
[    3.101035] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)

 

I made the following changes in the device tree source to enable eMMC.

&sdhci0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_emmc_default>;
non-removable;
xlnx,mio_bank = <0>;
};

..

..

..

pinctrl_emmc_default: emmc-default {
mux {
groups = "sdio0_0_grp";
function = "sdio0";
};

conf {
groups = "sdio0_0_grp";
slew-rate = <SLEW_RATE_SLOW>;
io-standard = <IO_STANDARD_LVCMOS18>;
};
mux-pc { /* power control */
groups = "sdio0_pc_0_grp"; /* 23 pin */
function = "sdio0_pc";
};

conf-pc {
groups = "sdio1_pc_0_grp";
slew-rate = <SLEW_RATE_SLOW>;
io-standard = <IO_STANDARD_LVCMOS18>;
};
};

 

 

uENV.txt

 

uenvcmd=run adi_sdboot
adi_sdboot=echo Copying Linux from SD to RAM... && fatload mmc 1 0x3000000 ${kernel_image} && fatload mmc 1 0x2A00000 ${devicetree_image} && if fatload mmc 1 0x2000000 ${ramdisk_image}; then bootm 0x3000000 0x2000000 0x2A00000; else bootm 0x3000000 - 0x2A00000; fi
bootargs=console=ttyPS0,115200 root=/dev/mmcblk1p1 rw earlycon rootfstype=ext4 rootwait uio_pdrv_genirq.of_id=generic-uio clk_ignore_unused cpuidle.off=1

What could be the problem?

0 Kudos
1 Solution

Accepted Solutions
Observer chopwood
Observer
751 Views
Registered: ‎05-03-2019

Re: ZynqMP Not able to boot from SD card when eMMC is enabled

Jump to solution

Sorry, accidentally hit send too soon.

Either remove 

run sdroot$sdbootdev

from sdboot or set sdbootdev=1

 

I suspect that will fix your problem finally.

0 Kudos
14 Replies
Observer chopwood
Observer
880 Views
Registered: ‎05-03-2019

Re: ZynqMP Not able to boot from SD card when eMMC is enabled

Jump to solution

To me it looks like the enumeration of the emmc caused your SD card's block device to change.

 

See, the emmc is coming up as mmcblk0, but your sd card is coming up as mmcblk1. You should set your root cmdline argument to mmcblk1p<whichever partition is the rootfs>

0 Kudos
Observer chopwood
Observer
879 Views
Registered: ‎05-03-2019

Re: ZynqMP Not able to boot from SD card when eMMC is enabled

Jump to solution

Sorry, didn't see your uEnv.txt before, where you have set the correct block device as root. 

 

In that case, check your device tree for a "chosen" section with the "bootargs". If that is there, it seems to override anything you put in bootargs through uboot's environment settings. I've even seen my bootargs from the u-boot environment variable show up in /proc/cmdline yet still the kernel used the bootargs in the dtb.

0 Kudos
Visitor carl711
Visitor
855 Views
Registered: ‎05-29-2019

Re: ZynqMP Not able to boot from SD card when eMMC is enabled

Jump to solution

Hi chopwood,

I tried removing the bootargs from the device tree.

But the problem is not solved.

0 Kudos
Observer chopwood
Observer
847 Views
Registered: ‎05-03-2019

Re: ZynqMP Not able to boot from SD card when eMMC is enabled

Jump to solution

Can I see the full bootlog with the changes?

0 Kudos
Visitor carl711
Visitor
830 Views
Registered: ‎05-29-2019

Re: ZynqMP Not able to boot from SD card when eMMC is enabled

Jump to solution

Bootlogs after doing the recommended changes.

 

Xilinx Zynq MP First Stage Boot Loader 
Release 2018.3   Jun  8 2019  -  22:54:47
NOTICE:  ATF running on XCZU19EG/silicon v4/RTL5.1 at 0xfffea000
NOTICE:  BL31: Secure code at 0x0
NOTICE:  BL31: Non secure code at 0x8000000
NOTICE:  BL31: v2.0(release):
NOTICE:  BL31: Built : 20:52:19, Jun 12 2019
PMUFW:  v1.1


U-Boot 2019.01 (Jun 14 2019 - 22:25:17 +0530)

Board: Xilinx ZynqMP
DRAM:  4 GiB
EL Level:       EL2
Chip ID:        zu19eg
MMC:   mmc@ff160000: 1, mmc@ff170000: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In:    serial@ff000000
Out:   serial@ff000000
Err:   serial@ff000000
Bootmode: SD_MODE1
Reset reason:   EXTERNAL 
Net:   eth-1: ethernet@ff0b0000
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
switch to partitions #0, OK
mmc1(part 0) is current device
** Unrecognized filesystem type **
Invalid bus 0 (err=-19)
Failed to initialize SPI flash at 0:0 (error -19)
SCRIPT FAILED: continuing...
starting USB...
No controllers found
USB is stopped. Please issue 'usb start' first.
starting USB...
No controllers found
USB is stopped. Please issue 'usb start' first.
scanning bus for devices...

Device 0: unknown device
starting USB...
No controllers found
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-zynqmp
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
starting USB...
No controllers found
No ethernet found.
No ethernet found.
!!!
!!! Booting cmd is deprecated (will be removed in 2020).
!!! Please move to distro bootcmd.
!!!
switch to partitions #0, OK
mmc0 is current device
Device: mmc@ff170000
Manufacturer ID: 3
OEM: 5344
Name: SL08G 
Bus Speed: 50000000
Mode : SD High Speed (50MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 7.4 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
442 bytes read in 10 ms (43 KiB/s)
Loaded environment from uEnv.txt
Importing environment from SD ...
Running uenvcmd ...
Copying Linux from SD to RAM...
** No boot file defined **
29802 bytes read in 15 ms (1.9 MiB/s)
16341504 bytes read in 1008 ms (15.5 MiB/s)
## Flattened Device Tree blob at 04000000
   Booting using the fdt blob at 0x4000000
   Loading Device Tree to 000000000fff5000, end 000000000ffff469 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.0 (dcarlton@client5) (gcc version 7.3.1 20180314 (Linaro GCC 7.3-2018.04-rc3)) #3 SMP Thu Jun 13 22:18:37 IST 2019
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] Machine model: xlnx,zynqmp
[    0.000000] Malformed early option 'earlycon'
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 256 MiB at 0x000000006fc00000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 21 pages/cpu @ffffffc87ff73000 s45080 r8192 d32744 u86016
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1033987
[    0.000000] Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk1p2 rw earlycon rootfstype=ext4 rootwait uio_pdrv_genirq.of_id=generic-uio clk_ignore_unused cpuidle.off=1 root=/dev/mmcblk0p2 rw t
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.000000] software IO TLB [mem 0x6bc00000-0x6fc00000] (64MB) mapped at [ffffffc06bc00000-ffffffc06fbfffff]
[    0.000000] Memory: 3782928K/4193280K available (10236K kernel code, 726K rwdata, 4432K rodata, 512K init, 2154K bss, 148208K reserved, 262144K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     modules : 0xffffff8000000000 - 0xffffff8008000000   (   128 MB)
[    0.000000]     vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000   (   250 GB)
[    0.000000]       .text : 0xffffff8008080000 - 0xffffff8008a80000   ( 10240 KB)
[    0.000000]     .rodata : 0xffffff8008a80000 - 0xffffff8008ee0000   (  4480 KB)
[    0.000000]       .init : 0xffffff8008ee0000 - 0xffffff8008f60000   (   512 KB)
[    0.000000]       .data : 0xffffff8008f60000 - 0xffffff8009015a00   (   727 KB)
[    0.000000]        .bss : 0xffffff8009015a00 - 0xffffff80092305b0   (  2155 KB)
[    0.000000]     fixed   : 0xffffffbefe7fd000 - 0xffffffbefec00000   (  4108 KB)
[    0.000000]     PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000   (    16 MB)
[    0.000000]     vmemmap : 0xffffffbf00000000 - 0xffffffc000000000   (     4 GB maximum)
[    0.000000]               0xffffffbf00000000 - 0xffffffbf1dc00000   (   476 MB actual)
[    0.000000]     memory  : 0xffffffc000000000 - 0xffffffc880000000   ( 34816 MB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Adjusting CPU interface base to 0x00000000f902f000
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 50.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb8812736b, max_idle_ns: 440795202655 ns
[    0.000003] sched_clock: 56 bits at 50MHz, resolution 20ns, wraps every 4398046511100ns
[    0.000240] Console: colour dummy device 80x25
[    0.000255] Calibrating delay loop (skipped), value calculated using timer frequency.. 100.00 BogoMIPS (lpj=200000)
[    0.000262] pid_max: default: 32768 minimum: 301
[    0.000346] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
[    0.000359] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
[    0.000839] ASID allocator initialised with 65536 entries
[    0.000874] Hierarchical SRCU implementation.
[    0.001116] EFI services will not be available.
[    0.001135] zynqmp_plat_init Platform Management API v1.1
[    0.001139] zynqmp_plat_init Trustzone version v1.0
[    0.001215] smp: Bringing up secondary CPUs ...
[    0.001418] Detected VIPT I-cache on CPU1
[    0.001442] CPU1: Booted secondary processor [410fd034]
[    0.001666] Detected VIPT I-cache on CPU2
[    0.001681] CPU2: Booted secondary processor [410fd034]
[    0.001892] Detected VIPT I-cache on CPU3
[    0.001906] CPU3: Booted secondary processor [410fd034]
[    0.001941] smp: Brought up 1 node, 4 CPUs
[    0.001953] SMP: Total of 4 processors activated.
[    0.001957] CPU features: detected feature: 32-bit EL0 Support
[    0.001963] CPU: All CPU(s) started at EL2
[    0.001974] alternatives: patching kernel code
[    0.002616] devtmpfs: initialized
[    0.005745] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.005757] futex hash table entries: 1024 (order: 5, 131072 bytes)
[    0.010118] xor: measuring software checksum speed
[    0.048028]    8regs     :  2879.000 MB/sec
[    0.088051]    8regs_prefetch:  2566.000 MB/sec
[    0.128080]    32regs    :  3539.000 MB/sec
[    0.168102]    32regs_prefetch:  2974.000 MB/sec
[    0.168105] xor: using function: 32regs (3539.000 MB/sec)
[    0.168164] pinctrl core: initialized pinctrl subsystem
[    0.168588] NET: Registered protocol family 16
[    0.169532] vdso: 2 pages (1 code @ ffffff8008a86000, 1 data @ ffffff8008f64000)
[    0.169540] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.169926] DMA: preallocated 256 KiB pool for atomic allocations
[    0.187370] zynqmp_clk_mux_get_parent() getparent failed for clock: lpd_wdt, ret = -22
[    0.188354] reset_zynqmp reset-controller: Xilinx zynqmp reset driver probed
[    0.188745] ARM CCI_400_r1 PMU driver probed
[    0.192418] zynqmp-pinctrl ff180000.pinctrl: zynqmp pinctrl initialized
[    0.197838] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.264277] raid6: int64x1  gen()   571 MB/s
[    0.332258] raid6: int64x1  xor()   553 MB/s
[    0.400297] raid6: int64x2  gen()   861 MB/s
[    0.468354] raid6: int64x2  xor()   757 MB/s
[    0.536420] raid6: int64x4  gen()  1305 MB/s
[    0.604444] raid6: int64x4  xor()   957 MB/s
[    0.672491] raid6: int64x8  gen()  1228 MB/s
[    0.740518] raid6: int64x8  xor()   939 MB/s
[    0.808560] raid6: neonx1   gen()   908 MB/s
[    0.876618] raid6: neonx1   xor()  1064 MB/s
[    0.944637] raid6: neonx2   gen()  1461 MB/s
[    1.012696] raid6: neonx2   xor()  1509 MB/s
[    1.080743] raid6: neonx4   gen()  1882 MB/s
[    1.148781] raid6: neonx4   xor()  1802 MB/s
[    1.216817] raid6: neonx8   gen()  2082 MB/s
[    1.284867] raid6: neonx8   xor()  1918 MB/s
[    1.284870] raid6: using algorithm neonx8 gen() 2082 MB/s
[    1.284873] raid6: .... xor() 1918 MB/s, rmw enabled
[    1.284876] raid6: using neon recovery algorithm
[    1.285509] SCSI subsystem initialized
[    1.285638] usbcore: registered new interface driver usbfs
[    1.285661] usbcore: registered new interface driver hub
[    1.285690] usbcore: registered new device driver usb
[    1.285743] media: Linux media interface: v0.10
[    1.285763] Linux video capture interface: v2.00
[    1.285796] pps_core: LinuxPPS API ver. 1 registered
[    1.285800] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.285812] PTP clock support registered
[    1.285991] zynqmp-ipi ff9905c0.mailbox: Probed ZynqMP IPI Mailbox driver.
[    1.286091] FPGA manager framework
[    1.286177] fpga-region fpga-full: FPGA Region probed
[    1.286243] Advanced Linux Sound Architecture Driver Initialized.
[    1.286460] Bluetooth: Core ver 2.22
[    1.286479] NET: Registered protocol family 31
[    1.286482] Bluetooth: HCI device and connection manager initialized
[    1.286488] Bluetooth: HCI socket layer initialized
[    1.286493] Bluetooth: L2CAP socket layer initialized
[    1.286510] Bluetooth: SCO socket layer initialized
[    1.287081] clocksource: Switched to clocksource arch_sys_counter
[    1.287142] VFS: Disk quotas dquot_6.6.0
[    1.287174] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.291979] NET: Registered protocol family 2
[    1.292216] TCP established hash table entries: 32768 (order: 6, 262144 bytes)
[    1.292380] TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
[    1.292697] TCP: Hash tables configured (established 32768 bind 32768)
[    1.292756] UDP hash table entries: 2048 (order: 4, 65536 bytes)
[    1.292814] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
[    1.292938] NET: Registered protocol family 1
[    1.293110] RPC: Registered named UNIX socket transport module.
[    1.293114] RPC: Registered udp transport module.
[    1.293117] RPC: Registered tcp transport module.
[    1.293119] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.293567] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[    1.293684] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[    1.294170] audit: initializing netlink subsys (disabled)
[    1.294703] workingset: timestamp_bits=62 max_order=20 bucket_order=0
[    1.294729] audit: type=2000 audit(1.284:1): state=initialized audit_enabled=0 res=1
[    1.295930] NFS: Registering the id_resolver key type
[    1.295944] Key type id_resolver registered
[    1.295947] Key type id_legacy registered
[    1.295954] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.295967] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.314994] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    1.315000] io scheduler noop registered
[    1.315004] io scheduler deadline registered
[    1.315016] io scheduler cfq registered (default)
[    1.315020] io scheduler mq-deadline registered
[    1.315023] io scheduler kyber registered
[    1.315979] xilinx-zynqmp-dma fd500000.dma: ZynqMP DMA driver Probe success
[    1.316102] xilinx-zynqmp-dma fd510000.dma: ZynqMP DMA driver Probe success
[    1.316221] xilinx-zynqmp-dma fd520000.dma: ZynqMP DMA driver Probe success
[    1.316335] xilinx-zynqmp-dma fd530000.dma: ZynqMP DMA driver Probe success
[    1.316456] xilinx-zynqmp-dma fd540000.dma: ZynqMP DMA driver Probe success
[    1.316572] xilinx-zynqmp-dma fd550000.dma: ZynqMP DMA driver Probe success
[    1.316690] xilinx-zynqmp-dma fd560000.dma: ZynqMP DMA driver Probe success
[    1.316805] xilinx-zynqmp-dma fd570000.dma: ZynqMP DMA driver Probe success
[    1.316982] xilinx-zynqmp-dma ffa80000.dma: ZynqMP DMA driver Probe success
[    1.317097] xilinx-zynqmp-dma ffa90000.dma: ZynqMP DMA driver Probe success
[    1.317210] xilinx-zynqmp-dma ffaa0000.dma: ZynqMP DMA driver Probe success
[    1.317325] xilinx-zynqmp-dma ffab0000.dma: ZynqMP DMA driver Probe success
[    1.317438] xilinx-zynqmp-dma ffac0000.dma: ZynqMP DMA driver Probe success
[    1.317551] xilinx-zynqmp-dma ffad0000.dma: ZynqMP DMA driver Probe success
[    1.317666] xilinx-zynqmp-dma ffae0000.dma: ZynqMP DMA driver Probe success
[    1.317781] xilinx-zynqmp-dma ffaf0000.dma: ZynqMP DMA driver Probe success
[    1.338441] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.340349] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.343756] brd: module loaded
[    1.346462] loop: module loaded
[    1.346966] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.347875] libphy: Fixed MDIO Bus: probed
[    1.348629] tun: Universal TUN/TAP device driver, 1.6
[    1.348801] CAN device driver interface
[    1.349598] zynqmp-pinctrl ff180000.pinctrl: set mux failed for pin 26
[    1.349614] macb ff0b0000.ethernet: Error applying setting, reverse things back
[    1.349995] macb ff0b0000.ethernet: Not enabling partial store and forward
[    1.350548] libphy: MACB_mii_bus: probed
[    1.350555] mdio_bus ff0b0000.ethernet-ffffffff: /amba/ethernet@ff0b0000/fixed-link has invalid PHY address
[    1.350561] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 0
[    1.350755] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 1
[    1.350977] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 2
[    1.351183] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 3
[    1.351364] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 4
[    1.351546] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 5
[    1.351726] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 6
[    1.351906] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 7
[    1.352088] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 8
[    1.352267] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 9
[    1.352448] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 10
[    1.352629] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 11
[    1.352807] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 12
[    1.352986] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 13
[    1.353167] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 14
[    1.353346] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 15
[    1.353526] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 16
[    1.353705] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 17
[    1.353885] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 18
[    1.354066] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 19
[    1.354246] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 20
[    1.354425] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 21
[    1.354606] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 22
[    1.354784] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 23
[    1.354965] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 24
[    1.355411] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 25
[    1.355595] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 26
[    1.355775] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 27
[    1.355960] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 28
[    1.356146] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 29
[    1.356332] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 30
[    1.356514] mdio_bus ff0b0000.ethernet-ffffffff: scan phy fixed-link at address 31
[    1.356758] macb ff0b0000.ethernet eth0: Cadence GEM rev 0x50070106 at 0xff0b0000 irq 30 (00:0a:35:00:02:90)
[    1.356764] Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=POLL)
[    1.357183] usbcore: registered new interface driver asix
[    1.357226] usbcore: registered new interface driver ax88179_178a
[    1.357247] usbcore: registered new interface driver cdc_ether
[    1.357267] usbcore: registered new interface driver net1080
[    1.357287] usbcore: registered new interface driver cdc_subset
[    1.357309] usbcore: registered new interface driver zaurus
[    1.357338] usbcore: registered new interface driver cdc_ncm
[    1.357593] xilinx-axipmon ffa00000.perf-monitor: Probed Xilinx APM
[    1.357919] usbcore: registered new interface driver uas
[    1.357946] usbcore: registered new interface driver usb-storage
[    1.358337] rtc_zynqmp ffa60000.rtc: rtc core: registered ffa60000.rtc as rtc0
[    1.358369] i2c /dev entries driver
[    1.358977] IR NEC protocol handler initialized
[    1.358981] IR RC5(x/sz) protocol handler initialized
[    1.358984] IR RC6 protocol handler initialized
[    1.358987] IR JVC protocol handler initialized
[    1.358990] IR Sony protocol handler initialized
[    1.358993] IR SANYO protocol handler initialized
[    1.358996] IR Sharp protocol handler initialized
[    1.358999] IR MCE Keyboard/mouse protocol handler initialized
[    1.359002] IR XMP protocol handler initialized
[    1.359526] usbcore: registered new interface driver uvcvideo
[    1.359529] USB Video Class driver (1.1.1)
[    1.359879] cdns-wdt fd4d0000.watchdog: Xilinx Watchdog Timer at ffffff800929d000 with timeout 10s
[    1.360001] Bluetooth: HCI UART driver ver 2.3
[    1.360006] Bluetooth: HCI UART protocol H4 registered
[    1.360010] Bluetooth: HCI UART protocol BCSP registered
[    1.360013] Bluetooth: HCI UART protocol ATH3K registered
[    1.360016] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    1.360045] Bluetooth: HCI UART protocol Intel registered
[    1.360048] Bluetooth: HCI UART protocol QCA registered
[    1.360074] usbcore: registered new interface driver bcm203x
[    1.360098] usbcore: registered new interface driver bpa10x
[    1.360123] usbcore: registered new interface driver bfusb
[    1.360150] usbcore: registered new interface driver btusb
[    1.360153] Bluetooth: Generic Bluetooth SDIO driver ver 0.1
[    1.360190] usbcore: registered new interface driver ath3k
[    1.360540] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 1500000 KHz
[    1.360553] cpu cpu0: dev_pm_opp_set_rate: failed to find current OPP for freq 1500000000 (-34)
[    1.360591] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 1199999 KHz
[    1.360610] cpu cpu0: dev_pm_opp_set_rate: failed to find current OPP for freq 1500000000 (-34)
[    1.360668] CPUidle arm: Failed to register cpuidle driver
[    1.360773] sdhci: Secure Digital Host Controller Interface driver
[    1.360775] sdhci: Copyright(c) Pierre Ossman
[    1.360778] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.407074] mmc0: SDHCI controller on ff160000.sdhci [ff160000.sdhci] using ADMA 64-bit
[    1.419203] PLL: shutdown
[    1.419218] zynqmp_pll_disable() clock disable failed for vpll_int, ret = -13
[    1.459071] mmc1: SDHCI controller on ff170000.sdhci [ff170000.sdhci] using ADMA 64-bit
[    1.468104] ledtrig-cpu: registered to indicate activity on CPUs
[    1.468221] usbcore: registered new interface driver usbhid
[    1.468224] usbhid: USB HID core driver
[    1.472037] zynqmp_fpga_manager pcap: failed to to get pcp ref_clk (-2)
[    1.472049] zynqmp_fpga_manager: probe of pcap failed with error -2
[    1.473272] pktgen: Packet Generator for packet performance testing. Version: 2.75
[    1.473578] Netfilter messages via NETLINK v0.30.
[    1.473676] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.473804] Initializing XFRM netlink socket
[    1.473856] NET: Registered protocol family 10
[    1.474196] Segment Routing with IPv6
[    1.474230] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    1.476354] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.476618] NET: Registered protocol family 17
[    1.476622] mmc0: new HS200 MMC card at address 0001
[    1.476632] NET: Registered protocol family 15
[    1.476644] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.476648] Ebtables v2.0 registered
[    1.476791] mmcblk0: mmc0:0001 00064G 58.3 GiB 
[    1.477015] mmcblk0boot0: mmc0:0001 00064G partition 1 4.00 MiB
[    1.477065] can: controller area network core (rev 20170425 abi 9)
[    1.477091] NET: Registered protocol family 29
[    1.477096] can: raw protocol (rev 20170425)
[    1.477099] can: broadcast manager protocol (rev 20170425 t)
[    1.477105] can: netlink gateway (rev 20170425) max_hops=1
[    1.477192] mmcblk0boot1: mmc0:0001 00064G partition 2 4.00 MiB
[    1.477208] Bluetooth: RFCOMM TTY layer initialized
[    1.477217] Bluetooth: RFCOMM socket layer initialized
[    1.477228] Bluetooth: RFCOMM ver 1.11
[    1.477233] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    1.477237] Bluetooth: BNEP filters: protocol multicast
[    1.477242] Bluetooth: BNEP socket layer initialized
[    1.477245] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    1.477250] Bluetooth: HIDP socket layer initialized
[    1.477356] 9pnet: Installing 9P2000 support
[    1.477370] Key type dns_resolver registered
[    1.477635] mmcblk0rpmb: mmc0:0001 00064G partition 3 4.00 MiB
[    1.478807] registered taskstats version 1
[    1.479081] Btrfs loaded, crc32c=crc32c-generic
[    1.482606]  mmcblk0: p1 p2
[    1.483087] ff000000.serial: ttyPS0 at MMIO 0xff000000 (irq = 39, base_baud = 6250000) is a xuartps
[    1.515575] mmc1: new high speed SDHC card at address aaaa
[    1.515712] mmcblk1: mmc1:aaaa SL08G 7.40 GiB 
[    1.516624]  mmcblk1: p1 p2 p3
[    3.318730] console [ttyPS0] enabled
[    3.323799] cdns-i2c ff020000.i2c: 100 kHz mmio ff020000 irq 32
[    3.330297] rtc_zynqmp ffa60000.rtc: setting system clock to 1970-01-01 00:00:04 UTC (4)
[    3.338379] of_cfs_init
[    3.340832] of_cfs_init: OK
[    3.343697] clk: Not disabling unused clocks
[    3.348168] ALSA device list:
[    3.351125]   No soundcards found.
[    3.357700] List of all partitions:
[    3.361193] 0100           65536 ram0 
[    3.361195]  (driver?)
[    3.367284] 0101           65536 ram1 
[    3.367285]  (driver?)
[    3.373368] 0102           65536 ram2 
[    3.373369]  (driver?)
[    3.379452] 0103           65536 ram3 
[    3.379454]  (driver?)
[    3.385534] 0104           65536 ram4 
[    3.385535]  (driver?)
[    3.391613] 0105           65536 ram5 
[    3.391614]  (driver?)
[    3.397694] 0106           65536 ram6 
[    3.397696]  (driver?)
[    3.403774] 0107           65536 ram7 
[    3.403775]  (driver?)
[    3.409855] 0108           65536 ram8 
[    3.409856]  (driver?)
[    3.415934] 0109           65536 ram9 
[    3.415936]  (driver?)
[    3.422016] 010a           65536 ram10 
[    3.422017]  (driver?)
[    3.428182] 010b           65536 ram11 
[    3.428183]  (driver?)
[    3.434350] 010c           65536 ram12 
[    3.434351]  (driver?)
[    3.440516] 010d           65536 ram13 
[    3.440517]  (driver?)
[    3.446684] 010e           65536 ram14 
[    3.446685]  (driver?)
[    3.452850] 010f           65536 ram15 
[    3.452851]  (driver?)
[    3.459020] b300        61079552 mmcblk0 
[    3.459022]  driver: mmcblk
[    3.465801]   b301         1024000 mmcblk0p1 77877125-add0-4374-9e60-02cb591c9737
[    3.465803] 
[    3.474747]   b302         5120000 mmcblk0p2 b4b84b8a-04e3-48ae-8536-aff5c9c495b1
[    3.474748] 
[    3.483691] b318            4096 mmcblk0rpmb 
[    3.483692]  (driver?)
[    3.490380] b310            4096 mmcblk0boot1 
[    3.490381]  (driver?)
[    3.497153] b308            4096 mmcblk0boot0 
[    3.497154]  (driver?)
[    3.503932] b320         7761920 mmcblk1 
[    3.503934]  driver: mmcblk
[    3.510708]   b321          524288 mmcblk1p1 00096174-01
[    3.510709] 
[    3.517479]   b322         6720512 mmcblk1p2 00096174-02
[    3.517480] 
[    3.524252]   b323            1024 mmcblk1p3 00096174-03
[    3.524253] 
[    3.531026] No filesystem could mount root, tried: 
[    3.531027]  ext4
[    3.535890] 
[    3.539278] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[    3.547703] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.0 #3
[    3.553603] Hardware name: xlnx,zynqmp (DT)
[    3.557769] Call trace:
[    3.560207] [<ffffff8008088ae8>] dump_backtrace+0x0/0x360
[    3.565592] [<ffffff8008088e5c>] show_stack+0x14/0x20
[    3.570628] [<ffffff8008a5a4a0>] dump_stack+0x9c/0xbc
[    3.575662] [<ffffff800809afb8>] panic+0x11c/0x274
[    3.580435] [<ffffff8008ee11a8>] mount_block_root+0x22c/0x27c
[    3.586163] [<ffffff8008ee1430>] mount_root+0x11c/0x134
[    3.591371] [<ffffff8008ee15b4>] prepare_namespace+0x16c/0x1b4
[    3.597187] [<ffffff8008ee0d44>] kernel_init_freeable+0x1b8/0x1d8
[    3.603263] [<ffffff8008a6c3f0>] kernel_init+0x10/0x100
[    3.608471] [<ffffff8008084a60>] ret_from_fork+0x10/0x18
[    3.613766] SMP: stopping secondary CPUs
[    3.617672] Kernel Offset: disabled
[    3.621143] CPU features: 0x002004
[    3.624527] Memory Limit: none
[    3.627568] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
0 Kudos
Observer chopwood
Observer
784 Views
Registered: ‎05-03-2019

Re: ZynqMP Not able to boot from SD card when eMMC is enabled

Jump to solution

I'm not sure what's wrong yet. Do you have a kernel cmdline hardcoded in the kernel config? Can you post your config here?

0 Kudos
Observer chopwood
Observer
780 Views
Registered: ‎05-03-2019

Re: ZynqMP Not able to boot from SD card when eMMC is enabled

Jump to solution

Woah, wait, I see the issue:

[    0.000000] Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk1p2 rw earlycon rootfstype=ext4 rootwait uio_pdrv_genirq.of_id=generic-uio clk_ignore_unused cpuidle.off=1 root=/dev/mmcblk0p2 rw t

Your root= is being overridden later in the cmdline bootargs. Now, why is that happening...

0 Kudos
Observer chopwood
Observer
779 Views
Registered: ‎05-03-2019

Re: ZynqMP Not able to boot from SD card when eMMC is enabled

Jump to solution

I think we need to see your default u-boot environment to debug this. Can you enter u-boot and post the output of "env print"

0 Kudos
Visitor carl711
Visitor
758 Views
Registered: ‎05-29-2019

Re: ZynqMP Not able to boot from SD card when eMMC is enabled

Jump to solution

This is the output of "env print".

 

ZynqMP> env print
android=setenv bootargs $bootargs init=/init androidboot.selinux=disabled androidboot.hardware=$board android_debug=run android && setenv bootargs $bootargs video=DP-1:1024x768@60 drm.debug=0xf arch=arm baudrate=115200 board=zynqmp board_name=zynqmp boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr} boot_efi_binary=if fdt addr ${fdt_addr_r}; then bootefi bootmgr ${fdt_addr_r};else bootefi bootmgr ${fdtcontroladdr};fi;load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootaa64.efi;i boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf} boot_net_usb_start=usb start boot_prefixes=/ /boot/ boot_script_dhcp=boot.scr.uimg boot_scripts=boot.scr.uimg boot.scr boot_syslinux_conf=extlinux/extlinux.conf boot_targets=mmc0 mmc0 mmc1 qspi0 usb0 usb1 scsi0 pxe dhcp xilinx bootcmd=run distro_bootcmd bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; setenv efi_old_vci ${bootp_vci};setenv efi_old_arch ${bootp_arc; bootcmd_mmc0=setenv devnum 0; run mmc_boot bootcmd_mmc1=setenv devnum 1; run mmc_boot bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi bootcmd_qspi0=sf probe 0 0 0 && sf read $scriptaddr $script_offset_f $script_size_f && source ${scriptaddr}; echo SCRIPT FAILED: continuing...; bootcmd_scsi0=setenv devnum 0; run scsi_boot bootcmd_usb0=setenv devnum 0; run usb_boot bootcmd_usb1=setenv devnum 1; run usb_boot bootcmd_xilinx=run $modeboot bootdelay=2 bootenv=uEnv.txt cpu=armv8 dfu_ram=run dfu_ram_info && dfu 0 ram 0 dfu_ram_info=setenv dfu_alt_info Image ram $kernel_addr $kernel_size\\;system.dtb ram $fdt_addr $fdt_size distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done efi_dtb_prefixes=/ /dtb/ /dtb/current/ emmcboot=run sdboot fdt_addr=4000000 fdt_addr_r=0x40000000 fdt_high=10000000 fdt_offset=0x200000 fdt_size=0x80000 fdtcontroladdr=7ddc3b28 fdtfile=xilinx/zynqmp.dtb importbootenv=echo Importing environment from SD ...; env import -t ${loadbootenv_addr} $filesize initrd_addr=0xa00000 initrd_high=10000000 initrd_size=0x2000000 jtagboot=run xilinxcmd && tftpboot 80000 Image && tftpboot $fdt_addr system.dtb && tftpboot 6000000 rootfs.cpio.ub && booti 80000 6000000 $fdt_addr kernel_addr=0x80000 kernel_addr_r=0x18000000 kernel_offset=0x280000 kernel_size=0x1e00000 load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile} loadbootenv=load mmc $sdbootdev:$partid ${loadbootenv_addr} ${bootenv} loadbootenv_addr=0x100000 mmc_boot=if mmc dev ${devnum}; then setenv devtype mmc; run scan_dev_for_boot_part; fi modeboot=sdboot nandboot=run xilinxcmd && nand info && nand read $fdt_addr $fdt_offset $fdt_size && nand read $kernel_addr $kernel_offset $kernel_size && booti $kernel_addr - $fdt_addr netboot=run xilinxcmd && tftpboot 10000000 image.ub && bootm nfsroot=setenv bootargs $bootargs root=/dev/nfs nfsroot=$serverip:/mnt/sata,tcp ip=$ipaddr:$serverip:$serverip:255.255.255.0:zynqmp:eth0:off rw nosmp=setenv bootargs $bootargs maxcpus=1 partid=auto partitions=uuid_disk=${uuid_gpt_disk};name=boot,size=16M,uuid=${uuid_gpt_boot};name=Linux,size=-M,uuid=${uuid_gpt_Linux} pxefile_addr_r=0x10000000 qspiboot=run xilinxcmd && sf probe 0 0 0 && sf read $fdt_addr $fdt_offset $fdt_size && sf read $kernel_addr $kernel_offset $kernel_size && booti $kernel_addr - $fdt_addr ramdisk_addr_r=0x02100000 reset_reason=EXTERNAL sata_root=if test $scsidevs -gt 0; then setenv bootargs $bootargs root=/dev/sda rw rootfstype=ext4; fi sataboot=run xilinxcmd && load scsi 0 80000 boot/Image && load scsi 0 $fdt_addr boot/system.dtb && booti 80000 - $fdt_addr scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;run scan_dev_for_efi; scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart}e scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; for prefix in ${efi_dtb_prefixes}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${efi_fdtfile}; then run load_efi_dtb; fi;done;if test -e e scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing..i scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIe script_offset_f=0x3e80000 script_size_f=0x80000 scriptaddr=0x02000000 scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run scan_dev_for_boot_part; fi scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi sd_uEnvtxt_existence_test=test -e mmc $sdbootdev:$partid /uEnv.txt sdboot=run xilinxcmd && mmc dev $sdbootdev && mmcinfo && run uenvboot || run sdroot$sdbootdev; load mmc $sdbootdev:$partid $fdt_addr system.dtb && load mmc $sdbootdev:$partid $kernel_addr Image && booti $r sdbootdev=0 sdroot0=setenv bootargs $bootargs root=/dev/mmcblk0p2 rw rootwait sdroot1=setenv bootargs $bootargs root=/dev/mmcblk1p2 rw rootwait soc=zynqmp stderr=serial@ff000000 stdin=serial@ff000000 stdout=serial@ff000000 thor_ram=run dfu_ram_info && thordown 0 ram 0 ubifs_boot=env exists bootubipart || env set bootubipart UBI; env exists bootubivol || env set bootubivol boot; if ubi part ${bootubipart} && ubifsmount ubi${devnum}:${bootubivol}; then setenv devtype ubii uenvboot=if run sd_uEnvtxt_existence_test; then run loadbootenv; echo Loaded environment from ${bootenv}; run importbootenv; fi; if test -n $uenvcmd; then echo Running uenvcmd ...; run uenvcmd; fi usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi usb_dfu_spl=booti $kernel_addr - $fdt_addr usbhostboot=usb start && load usb 0 $fdt_addr system.dtb && load usb 0 $kernel_addr Image && booti $kernel_addr - $fdt_addr vendor=xilinx xen=run xilinxcmd && tftpb $fdt_addr system.dtb && tftpb 0x80000 Image &&run xen_prepare_dt && tftpb 6000000 xen.ub && tftpb 0x1000000 image.ub && bootm 6000000 0x1000000 $fdt_addr xen_prepare_dt=fdt addr $fdt_addr && fdt resize 128 && fdt set /chosen \\#address-cells <1> && fdt set /chosen \\#size-cells <1> && fdt mknod /chosen dom0 && fdt set /chosen/dom0 compatible "xen,linux-zim" xen_prepare_dt_qemu=run xen_prepare_dt && fdt set /cpus/cpu@1 device_type "none" && fdt set /cpus/cpu@2 device_type "none" && fdt set /cpus/cpu@3 device_type "none" && fdt rm /cpus/cpu@1 compatible && fdte xen_qemu=run xilinxcmd && tftpb $fdt_addr system.dtb && tftpb 0x80000 Image && run xen_prepare_dt_qemu && tftpb 6000000 xen.ub && tftpb 0x1000000 image.ub && bootm 6000000 0x1000000 $fdt_addr xilinxcmd=echo !!! && echo !!! Booting cmd is deprecated (will be removed in 2020). && echo !!! Please move to distro bootcmd. && echo !!! Environment size: 8446/32764 bytes
0 Kudos
Observer chopwood
Observer
753 Views
Registered: ‎05-03-2019

Re: ZynqMP Not able to boot from SD card when eMMC is enabled

Jump to solution

There we go! Either remove 

run sdroot$sdbootdev

 

0 Kudos
Observer chopwood
Observer
752 Views
Registered: ‎05-03-2019

Re: ZynqMP Not able to boot from SD card when eMMC is enabled

Jump to solution

Sorry, accidentally hit send too soon.

Either remove 

run sdroot$sdbootdev

from sdboot or set sdbootdev=1

 

I suspect that will fix your problem finally.

0 Kudos
Visitor carl711
Visitor
735 Views
Registered: ‎05-29-2019

Re: ZynqMP Not able to boot from SD card when eMMC is enabled

Jump to solution

Hey chopwood,

Thanx a lot.

It worked.

0 Kudos
Observer chopwood
Observer
698 Views
Registered: ‎05-03-2019

Re: ZynqMP Not able to boot from SD card when eMMC is enabled

Jump to solution

No problem.

0 Kudos
Contributor
Contributor
239 Views
Registered: ‎07-03-2019

Re: ZynqMP Not able to boot from SD card when eMMC is enabled

Jump to solution

Hi,

just check which bank register your registered give that in dts. like below by using SDK tool you get the mio bank number.


&sdhci0 {
status = "okay";
 pinctrl-names = "default";
 xlnx,mio_bank = <0x1>;
};

Thank You

0 Kudos