07-16-2018 06:57 PM
I am yet another guy trying to debug Linux boot on ZynqMP, ZCU104. I have always had good luck running Linux on 32 bit Zynq but this new 64 bit processor won't cooperate.
I need a non-volatile root file system and the full Linux command set so I am trying to mount rootfs from the SD card. I compiled u-boot, kernel, ATF and device tree following the instructions on the Xilinx OSL Wiki. U-boot runs great and I can launch the kernel running I just never receive the Linux command prompt.
I am using the "run sdboot" command and bootargs that are configured into u-boot-xlnx. They look right.
Below is the tail of the boot message. I'm hoping someone will recognize some of those last few messages and point me in the right direction. The last three messages seem to be trying to tell me something. Is there a way to get more information?
[ 4.123071] dwc3: probe of fe200000.dwc3 failed with error -22
[ 4.129637] rtc_zynqmp ffa60000.rtc: setting system clock to 2018-01-27 22:46:52 UTC (1517093212)
[ 4.138395] clk: Not disabling unused clocks
[ 4.142584] ALSA device list:
[ 4.145484] #0: DisplayPort monitor
[ 4.149136] Warning: unable to open an initial console.
[ 4.154421] Waiting for root device /dev/mmcblk0p2...
[ 5.039264] [drm] Cannot find any crtc or sizes
07-16-2018 08:02 PM
Can you please share the complete log and are you trying to use the rootfs from mmcblk0p2 partition.
also run the printenv in u-boot console and share that log as well.
Thanks & Regards
07-16-2018 11:47 PM
07-18-2018 04:55 PM
Yes, I am trying to use the mmcblk0p2 partition as my rootfs.
I attach the putty.log from release of reset. Then I do printenv in u-boot and finally run sdboot to start the kernel.
07-18-2018 05:46 PM
I tried running those pre-built images by copying BOOT.BIN, image.ub and system.dtb to the BOOT partition of my sdcard. The "boot" command starts the kernel with a ram filesystem and all the busybox pseudo commands.
I guess this confirms my hardware is ok.
I'm not really familiar with the image.ub file. I'm guessing that is a container format that holds the kernel, rootfs and device tree blob.
Where should I go from here to boot a true linux filesystem from the sdcard?
07-18-2018 06:07 PM
You need to fix your boot args.
[ 0.000000] Kernel command line: earlycon clk_ignore_unused console=ttyO0,115200n8 root=/dev/mmcblk0p2 rw rootwait root=/dev/mmcblk0p2 rw rootwait
earlycon clk_ignore_unused console=ttyPS0,115200n8 root=/dev/mmcblk0p2 rw rootwait
07-22-2018 07:33 AM - edited 07-22-2018 07:34 AM
I changed the bootargs as you suggested but the linux boot fails in exactly the same way as before.
Is there a DEBUG option or something I can enable in the kernel to get more information about what is happening?