cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
5,571 Views
Registered: ‎02-18-2014

How to disable the boot log

Petalinux 2016.3

 

I want to disable everything after the u-boot console from appearing on my console. Whats the right way to go about this?

 

I've found the following post which gives greater details to the problem im trying to solve:

http://unix.stackexchange.com/questions/119453/how-to-disable-the-boot-log-daemon-by-editing-the-init-script

 

Thanks!

 

As a side note: My current implementation of removing the login prompt all together was to comment out the following line from my inittab:


#PS1:2345:respawn:/sbin/getty -L 57600 ttyPS1 vt100

0 Kudos
7 Replies
Highlighted
Explorer
Explorer
5,563 Views
Registered: ‎02-18-2014

After some testing it looks like it doesn't like me commenting out that inittab line either. The bootlog reports:

INIT: no more processes left in this runlevel

 

So on top of removing the kernel boot log being displayed on the console - also want to remove any login prompt. Next test will be something along the lines of pointing the login prompt to /dev/null and we'll see what happens

0 Kudos
Highlighted
Moderator
Moderator
5,527 Views
Registered: ‎12-04-2016

  1. Make the change "CONFIG_SERIAL_XILINX_PS_UART_CONSOLE = n" in plnx_kernel.cfg (./project-spec/meta-plnx-generated/recipes-kernel/linux/configs/plnx_kernel.cfg)
  2. Run $ petalinux-config
  3. Set the kernel autoconfig to disabled

 kernel_autoconf.png

 

This is under Auto Config Settings in the Petalinux-config menu.

 

4. Re-run Petalinux-config –c kernel and let it complete

5. Re-check and the setting would be help intact.

 

Regards,
Shabbir
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

 

0 Kudos
Highlighted
Explorer
Explorer
5,505 Views
Registered: ‎02-18-2014

I don't understand how configuring petalinux to manual kernel configuration affects my boot log?

 

Because I'm literally in the process of reconfiguring everything in the kernel as I want it, based off of what it used to be. (IE: before setting autoconfig off for the kernel). Shouldn't there just be a single setting somewhere that would do this? Does that setting not become available but after autoconfig is turned off?

0 Kudos
Highlighted
Explorer
Explorer
5,503 Views
Registered: ‎02-18-2014

Another side note: Im running petalinux 2016.3 not petalinux 2016.4.

 

I'm not aware of (./project-spec/meta-plnx-generated/recipes-kernel/linux/configs/plnx_kernel.cfg) existing in my current version of petalinux.

0 Kudos
Highlighted
Explorer
Explorer
5,493 Views
Registered: ‎02-18-2014

As an update:

 

I was able to find in the kernel config file, CONFIG_SERIAL_XILINX_PS_UART_CONSOLE. I couldn't find it under petalinux-config c kernel but I was able to deselect it manually. Everything built just fine but when I attempted to boot I get the following hangup:

 

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
jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
bounce: pool size: 64 pages
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
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
Serial: 8250/16550 driver, 12 ports, IRQ sharing disabled
42c00000.serial: ttyS0 at MMIO 0x42c01000 (irq = 162, base_baud = 6250000) is a 16550A
42c10000.serial: ttyS1 at MMIO 0x42c11000 (irq = 163, base_baud = 6250000) is a 16550A
42c20000.serial: ttyS2 at MMIO 0x42c21000 (irq = 164, base_baud = 6250000) is a 16550A
42c30000.serial: ttyS3 at MMIO 0x42c31000 (irq = 165, base_baud = 6250000) is a 16550A
42c40000.serial: ttyS4 at MMIO 0x42c41000 (irq = 166, base_baud = 6250000) is a 16550A
42c50000.serial: ttyS5 at MMIO 0x42c51000 (irq = 167, base_baud = 6250000) is a 16550A
42c60000.serial: ttyS6 at MMIO 0x42c61000 (irq = 168, base_baud = 6250000) is a 16550A
42c70000.serial: ttyS7 at MMIO 0x42c71000 (irq = 169, base_baud = 6250000) is a 16550A
42c80000.serial: ttyS8 at MMIO 0x42c81000 (irq = 170, base_baud = 6250000) is a 16550A
42c90000.serial: ttyS9 at MMIO 0x42c91000 (irq = 171, base_baud = 6250000) is a 16550A
42ca0000.serial: ttyS10 at MMIO 0x42ca1000 (irq = 172, base_baud = 6250000) is a 16550A
42cb0000.serial: ttyS11 at MMIO 0x42cb1000 (irq = 173, base_baud = 6250000) is a 16550A
e0000000.serial: ttyPS0 at MMIO 0xe0000000 (irq = 143, base_baud = 6249999) is a xuartps
e0001000.serial: ttyPS1 at MMIO 0xe0001000 (irq = 144, base_baud = 6249999) is a xuartps

 

 

 

It just stops there, no error message or anything. Not sure exactly whats happening but the boot script that I placed in my active run level never launches.

0 Kudos
Highlighted
Moderator
Moderator
5,436 Views
Registered: ‎04-17-2011

May be you can try adding the following defines in U-boot:

CONFIG_SILENT_CONSOLE
CONFIG_SYS_DEVICE_NULLDEV
CONFIG_SILENT_CONSOLE_UPDATE_ON_RELOC

or a easy one to check would be

# setenv console null
# saveenv
Regards,
Debraj
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
Highlighted
Adventurer
Adventurer
5,429 Views
Registered: ‎06-08-2015

If nothing else works, try enabling netconsole (bootargs = "netconsole=@192.168.0.x/eth0,6666@192.168.0.y/ earlyprintk" where x is your PC and y is your Zynq-based target). I was never able to boot headless without that. If you want to view the output, you'll need to use netcat or similar because it is UDP.