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: 
Highlighted
Explorer
Explorer
11,068 Views
Registered: ‎09-15-2011

bootconsole [earlycon0] disabled

Jump to solution

Hi, everybody

when I debug my board, the linux hangs at bootconsole [earlycon0] disabled

in the forum, i search the this topic, and can not solve my problem, so , i will describe the problem.

 

in the uboot, i define the uart1 for serial

20170216165539.png

 

in the kernel, i change the configuartion in the xilinx_zynq_defconfig

20170216165809.png

20170216165839.png

 

and , the dts is 

/dts-v1/;
 16 /include/ "zynq-pl-uio.dtsi"
 17 / {
 18     #address-cells = <1>;
 19     #size-cells = <1>;
 20     compatible = "xlnx,zynq-7000";
 21     model = "Xilinx Zynq";
 22     aliases {                                                                                                                                                      
 23         serial0 = &ps7_uart_1;
 24         spi0 = &ps7_qspi_0;
 25     } ;
 26 
 27     chosen {
 28         bootargs = "console=ttyPS1,115200 root=/dev/ram rw earlyprintk uio_pdrv_genirq.of_id=generic-uio";
 29         linux,stdout-path = "/amba@0/serial@e0001000";
 30     } ;

.....................

282         ps7_uart_0:serial@e0000000{
283             compatible = "xlnx,xuartps", "cdns,uart-r1p8";
284             status = "disabled";
285             clocks = <&clkc 23>, <&clkc 40>;
286             clock-names = "uart_clk", "pclk";
287             reg = <0xE0000000 0x1000>;
288             interrupts = <0 27 4>;
289         } ;        
290         ps7_uart_1: serial@e0001000 {
291             clock-names = "uart_clk", "pclk";
292             clocks = <&clkc 24>, <&clkc 41>;
293             compatible = "xlnx,xuartps", "cdns,uart-r1p8";
294             current-speed = <115200>;
295             device_type = "serial";
296             interrupt-parent = <&ps7_scugic_0>;
297             interrupts = <0 50 4>;
298             port-number = <0>;
299             reg = <0xe0001000 0x1000>;
300             xlnx,has-modem = <0x0>;
301         } ;

in the hardware, we used only UART1,the running log is :

 

 

U-Boot 2014.01 (Feb 13 2017 - 11:43:33)

I2C:   ready
Memory: ECC disabled
DRAM:  128 MiB
MMC:   zynq_sdhci: 0
SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   Gem.e000b000
Hit any key to stop autoboot:  0 
Copying Linux from QSPI flash to RAM...
SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
SF: 5242880 bytes @ 0x500000 Read: OK
SF: 131072 bytes @ 0x900000 Read: OK
Copying ramdisk...
SF: 7208960 bytes @ 0x920000 Read: OK
## Booting kernel from Legacy Image at 03000000 ...
   Image Name:   Linux-3.14.0-xilinx
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3846872 Bytes = 3.7 MiB
   Load Address: 00500000
   Entry Point:  00500000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02000000 ...
   Image Name:   
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6195606 Bytes = 5.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02a00000
   Booting using the fdt blob at 0x2a00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 07560000, end 07b48996 ... OK
   Loading Device Tree to 0755a000, end 0755fb13 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.14.0-xilinx (hsfpga2016@ubuntu) (gcc version 4.7.2 (Sourcery CodeBench Lite 2012.09-104) ) #6 SMP PREEMPT Thu Feb 16 14:36:35 CST 2017
[    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: Xilinx Zynq
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] cma: CMA: reserved 16 MiB at 06400000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] PERCPU: Embedded 8 pages/cpu @c7ed8000 s10752 r8192 d13824 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyPS1,115200 root=/dev/ram rw earlyprintk uio_pdrv_genirq.of_id=generic-uio
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 94360K/131072K available (5194K kernel code, 319K rwdata, 1888K rodata, 206K init, 5339K bss, 36712K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc06f2cd8   (7084 kB)
[    0.000000]       .init : 0xc06f3000 - 0xc0726a00   ( 207 kB)
[    0.000000]       .data : 0xc0728000 - 0xc0777d80   ( 320 kB)
[    0.000000]        .bss : 0xc0777d8c - 0xc0caebc8   (5340 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU lockdep checking is enabled.
[    0.000000]  Dump stacks of tasks blocking RCU-preempt GP.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] ps7-slcr mapped to c8802000
[    0.000000] zynq_clock_init: clkc starts at c8802100
[    0.000000] Zynq clock init
[    0.000013] sched_clock: 64 bits at 512MHz, resolution 1ns, wraps every 2145388593152ns
[    0.005565] ps7-ttc #0 at c8804000, irq=43
[    0.008938] Console: colour dummy device 80x30
[    0.011738] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[    0.016960] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.019523] ... MAX_LOCK_DEPTH:          48
[    0.022235] ... MAX_LOCKDEP_KEYS:        8191
[    0.025058] ... CLASSHASH_SIZE:          4096
[    0.027918] ... MAX_LOCKDEP_ENTRIES:     16384
[    0.030761] ... MAX_LOCKDEP_CHAINS:      32768
[    0.033639] ... CHAINHASH_SIZE:          16384
[    0.036547]  memory used by lock dependency info: 3695 kB
[    0.040007]  per task-struct memory footprint: 1152 bytes
[    0.043540] Calibrating delay loop... 2039.80 BogoMIPS (lpj=10199040)
[    0.107194] pid_max: default: 32768 minimum: 301
[    0.110731] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.114911] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.126395] CPU: Testing write buffer coherency: ok
[    0.130649] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.134257] Setting up static identity map for 0x4eb648 - 0x4eb6a0
[    0.138490] L310 cache controller enabled
[    0.141003] l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x72760000, Cache size: 512 kB
[    0.226902] CPU1: Booted secondary processor
[    0.285402] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286068] Brought up 2 CPUs
[    0.294330] SMP: Total of 2 processors activated.
[    0.297396] CPU: All CPU(s) started in SVC mode.
[    0.302613] devtmpfs: initialized
[    0.309586] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.318937] regulator-dummy: no parameters
[    0.323804] NET: Registered protocol family 16
[    0.329605] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.338640] cpuidle: using governor ladder
[    0.341207] cpuidle: using governor menu
[    0.364664] syscon f8000000.ps7-slcr: regmap [mem 0xf8000000-0xf8000fff] registered
[    0.371929] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.377331] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.381328] zynq-ocm f800c000.ps7-ocmc: ZYNQ OCM pool: 256 KiB @ 0xc8880000
[    0.429557] bio: create slab <bio-0> at 0
[    0.436141] vgaarb: loaded
[    0.439131] SCSI subsystem initialized
[    0.443182] usbcore: registered new interface driver usbfs
[    0.447057] usbcore: registered new interface driver hub
[    0.450786] usbcore: registered new device driver usb
[    0.454974] media: Linux media interface: v0.10
[    0.458160] Linux video capture interface: v2.00
[    0.461515] pps_core: LinuxPPS API ver. 1 registered
[    0.464629] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.470804] PTP clock support registered
[    0.473932] EDAC MC: Ver: 3.0.0
[    0.478129] Advanced Linux Sound Architecture Driver Initialized.
[    0.488459] DMA-API: preallocated 4096 debug entries
[    0.491578] DMA-API: debugging enabled by kernel config
[    0.495451] Switched to clocksource arm_global_timer
[    0.537741] NET: Registered protocol family 2
[    0.542249] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.547093] TCP bind hash table entries: 1024 (order: 3, 36864 bytes)
[    0.551401] TCP: Hash tables configured (established 1024 bind 1024)
[    0.555900] TCP: reno registered
[    0.557923] UDP hash table entries: 256 (order: 2, 20480 bytes)
[    0.561868] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[    0.566863] NET: Registered protocol family 1
[    0.570725] RPC: Registered named UNIX socket transport module.
[    0.574453] RPC: Registered udp transport module.
[    0.577574] RPC: Registered tcp transport module.
[    0.580542] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.585407] Trying to unpack rootfs image as initramfs...
[    0.589761] rootfs image is not initramfs (no cpio magic); looks like an initrd
[    0.627399] Freeing initrd memory: 6048K (c7560000 - c7b48000)
[    0.631409] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
[    0.640786] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.649862] jffs2: version 2.2. (NAND) (SUMMARY)  漏 2001-2006 Red Hat, Inc.
[    0.654725] msgmni has been set to 228
[    0.658234] io scheduler noop registered
[    0.660687] io scheduler deadline registered
[    0.663524] io scheduler cfq registered (default)
[    0.676633] dma-pl330 f8003000.ps7-dma: Loaded driver for PL330 DMAC-2364208
[    0.681081] dma-pl330 f8003000.ps7-dma:      DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
[    0.689238] e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 82, base_baud = 9765625) is a xuartps
[    0.696832] xdevcfg f8007000.ps7-dev-cfg: ioremap 0xf8007000 to c8866000
[    0.703247] [drm] Initialized drm 1.1.0 20060810
[    0.728623] brd: module loaded
[    0.743437] loop: module loaded
[    0.754343] m25p80 spi0.0: found s25fl256s1, expected n25q128
[    0.758488] m25p80 spi0.0: s25fl256s1 (32768 Kbytes)
[    0.761710] 5 ofpart partitions found on MTD device spi0.0
[    0.765156] Creating 5 MTD partitions on "spi0.0":
[    0.768333] 0x000000000000-0x000000100000 : "qspi-fsbl-uboot"
[    0.777504] 0x000000500000-0x000000a00000 : "qspi-linux"
[    0.784054] 0x000000900000-0x000000920000 : "qspi-device-tree"
[    0.790999] 0x000000920000-0x000001000000 : "qspi-rootfs"
[    0.797789] 0x000001000000-0x000001400000 : "qspi-bitstream"
[    0.811006] e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
[    0.814674] e1000e: Copyright(c) 1999 - 2013 Intel Corporation.
[    0.829756] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.834207] ehci-pci: EHCI PCI platform driver
[    0.838097] usbcore: registered new interface driver usb-storage
[    0.843925] mousedev: PS/2 mouse device common for all mice
[    0.848901] i2c /dev entries driver
[    0.858272] zynq-edac f8006000.ps7-ddrc: ecc not enabled
[    0.862261] cpufreq_cpu0: failed to get cpu0 regulator: -19
[    0.867871] Xilinx Zynq CpuIdle Driver started
[    0.870499] sdhci: Secure Digital Host Controller Interface driver
[    0.872454] sdhci: Copyright(c) Pierre Ossman
[    0.873859] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.876089] mmc0: no vqmmc regulator found
[    0.877381] mmc0: no vmmc regulator found
[    0.915397] mmc0: SDHCI controller on e0100000.ps7-sdio [e0100000.ps7-sdio] using ADMA
[    0.918079] mmc1: no vqmmc regulator found
[    0.919369] mmc1: no vmmc regulator found
[    0.955483] mmc1: SDHCI controller on e0101000.ps7-sdio [e0101000.ps7-sdio] using ADMA
[    0.960315] usbcore: registered new interface driver usbhid
[    0.962069] usbhid: USB HID core driver
[    0.970051] TCP: cubic registered
[    0.971103] NET: Registered protocol family 17
[    0.972796] Registering SWP/SWPB emulation handler
[    0.975879] bootconsole [earlycon0] disabled

can help ?

Thanks

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
16,748 Views
Registered: ‎12-04-2016

Re: bootconsole [earlycon0] disabled

Jump to solution

Hi

 

Can you please check whether you have uart1 entry in aliases of system-conf.dtsi file?

 

Something like this for example, 

 

aliases { 
serial0 = &ps7_uart_1; /* Add this if you want console from uart1 */
ethernet0 = &gem0;
spi0 = &qspi;
};

 

&ps7_uart_1 {

 status = "okay";

}

View solution in original post

0 Kudos
11 Replies
Moderator
Moderator
16,749 Views
Registered: ‎12-04-2016

Re: bootconsole [earlycon0] disabled

Jump to solution

Hi

 

Can you please check whether you have uart1 entry in aliases of system-conf.dtsi file?

 

Something like this for example, 

 

aliases { 
serial0 = &ps7_uart_1; /* Add this if you want console from uart1 */
ethernet0 = &gem0;
spi0 = &qspi;
};

 

&ps7_uart_1 {

 status = "okay";

}

View solution in original post

0 Kudos
Adventurer
Adventurer
11,031 Views
Registered: ‎06-08-2015

Re: bootconsole [earlycon0] disabled

Jump to solution

How do you know the system is "hung"? Console logging normally ends with the message "bootconsole [earlycon0] disabled". Have you tried to log in via Ethernet?

0 Kudos
Explorer
Explorer
10,960 Views
Registered: ‎09-15-2011

Re: bootconsole [earlycon0] disabled

Jump to solution

In our project, the board has not Ethernet function

0 Kudos
Adventurer
Adventurer
10,953 Views
Registered: ‎06-08-2015

Re: bootconsole [earlycon0] disabled

Jump to solution

I don't see "console [ttyPS1] enabled" in your output, as I should if you want to log in via your serial port. If you do, your value of CONFIG_SERIAL_XILINX_PS_UART_CONSOLE should be enabled.

0 Kudos
Explorer
Explorer
10,899 Views
Registered: ‎11-09-2015

Re: bootconsole [earlycon0] disabled

Jump to solution

The log before "bootconsole[earlycon0]disable" was print by earlyprink. The earlyprink work fine.But after the tty driver (console)probe,the console was probe as "ttyPS0"(depend on the aliases  serial0, check the drivers/tty/serial/xilinx_uartps.c file,in function"cdns_uart_probe" id = of_alias_get_id(pdev->dev.of_node, "serial"); ). but your cmdline set was console=ttyPS1,so there is no more print. 

    To fix this,you just change your dts file, charge the bootargs “console=ttyPS0”,it way work.

 

If you can't login in shell.Just modify the file:/etc/inittab,

console::respawn:/sbin/getty 115200 ttyPS0

 

 

0 Kudos
Explorer
Explorer
7,339 Views
Registered: ‎09-19-2010

Re: bootconsole [earlycon0] disabled

Jump to solution

PetaLinux 2017.4

Vivado 2017.4 

 

The issue mentioned in this post is still there. 

And the solution provided by Xilinx guy does not work!

It just results in PetaLinux to through out error messages while trying to compile the device tree. 

 

The interesting fact is how low is the quality of the software Xilinx releases! I think they dont test it even one time! After so many versions of PetaLinux they still have issues in the very basics!

Explorer
Explorer
7,296 Views
Registered: ‎09-19-2010

Re: bootconsole [earlycon0] disabled

Jump to solution

i have tracked down the issue, and i have ended up in xilinx iic driver as the source of this problem.

In fact, i think after

Re: bootconsole [earlycon0] disabled

message, a lot of tasks are being done by the kernel for which it is not printed any message.

When kernel crashes at

Re: bootconsole [earlycon0] disabled

there may be different reasons why it has happened.

 

For my case, I have 3 Xilinx iic cores at PL side,

I have found out that when the interrupt output of these IIC cores are not connected to the PS, everything runs fine. By that, i mean the kernel comes up fine.

 

Now as soon as I connect the interrupt lines of these iic units to the PS, the kernel crashes at

Re: bootconsole [earlycon0] disabled

 

 

0 Kudos
Moderator
Moderator
7,289 Views
Registered: ‎09-12-2007

Re: bootconsole [earlycon0] disabled

Jump to solution

Is the kernel hanged? Can you probe the axi iic devices in the kernel to see its status?

0 Kudos
Observer eazrael
Observer
6,980 Views
Registered: ‎05-19-2017

Re: bootconsole [earlycon0] disabled

Jump to solution

tl;dr: Program your FPGA!

 

Maybe this is helpful for others. I was stuck with the same problem (among many other problems...) 

When doing a JTAG network boot (tftpboot) the system hangs at this message. When putting the same image on a SD card it works:

 

[..]
zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xf0880000 zynq-pinctrl 700.pinctrl: zynq pinctrl initialized e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 25, base_baud = 3125000) is a xuartps `¬Ëk½±•[ttyPS0] enabled console [ttyPS0] enabled bootconsole [earlycon0] disabled bootconsole [earlycon0] disabled GPIO IRQ not connected XGpio: /amba_pl/gpio@41200000: registered, base is 1023 GPIO IRQ not connected
[..]

 Seems that petalinux-package --prebuilt is not putting the bitstream into the prebuilt directory

 

$ petalinux-package --prebuilt
$ 2$ petalinux-boot --jtag --fpga --prebuilt 3 --hw_server-url tcp:xxx:3121
WARNING: Will not program bitstream on the target. If you want to program bitstream,
WARNING: please run petalinux-package --prebuilt to put the bitstream to the prebuitl directory,
WARNING: or use --fpga --bitstream option to specify a bitstream.
INFO: Append dtb - /home/xxx/yyy/linux2/pre-built/linux/images/system.dtb and other options to boot zImage
INFO: Launching XSDB for file download and boot.
INFO: This may take a few minutes, depending on the size of your image.
INFO: Downloading ELF file to the target.
...
(Linux hang...)

But with the following boot command everything works as expected:

 

$ petalinux-boot --jtag --fpga --u-boot --hw_server-url tcp:xxx:3121
INFO: Use bitstream: "/home/xxx/yyy/linux2/images/linux/design_1_wrapper.bit.
INFO: Please use --fpga --bitstream <BITSTREAM> to specify a bitstream if you want to use other bitstream.
INFO: Launching XSDB for file download and boot.
INFO: This may take a few minutes, depending on the size of your image.
INFO: Configuring the FPGA...
INFO: Downloading bitstream to the target.
INFO: Downloading ELF file to the target.
[...]

 

 

 

0 Kudos
Observer royhsu
Observer
3,078 Views
Registered: ‎03-28-2019

Re: bootconsole [earlycon0] disabled

Jump to solution

I just encountered as you did. But After i try to build boot.bin like this way,

petalinux-package --boot --fsbl zynq_fsbl.elf --fpga system.bit --u-boot  

it will work well on my platform zc706. 

   

0 Kudos
638 Views
Registered: ‎11-26-2019

Re: bootconsole [earlycon0] disabled

Jump to solution

This problem occurs when I use the official bsp. If I use the hardware description file that I generated, there is no such problem. (Petalinux 2018, bsp2018, vivado 2018)

0 Kudos