2009-07-24 07:45:56     disable debug console in kernel

Document created by Aaronwu Employee on Aug 16, 2013
Version 1Show Document
  • View in full screen mode

2009-07-24 07:45:56     disable debug console in kernel

Ivan Kuten (BELARUS)

Message: 78002   

 

Hello,

 

I'm debugging kernel and serial console gets stuck overloaded with debug messages.

 

I enabled netconsole to avoid this problem

 

However I still get debug messages: with CONFIG_CMDLINE="mem=32M netconsole=@192.168.5.1/eth0,@192.168.5.2/"

 

Bytes transferred = 3700346 (38767a hex)                                                                                                     

## Booting image at 01000000 ...                                                                                                             

   Image Name:   Linux-2.6.28-ADI-2009R1-pre-svn5                                                                                            

   Created:      2009-07-24  11:35:48 UTC                                                                                                    

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)                                                                               

   Data Size:    3700282 Bytes =  3.5 MB                                                                                                     

   Load Address: 00001000                                                                                                                    

   Entry Point:  001fb0a8                                                                                                                    

   Verifying Checksum ... OK                                                                                                                 

   Uncompressing Kernel Image ... OK                                                                                                         

Starting Kernel at = 1fb0a8                                                                                                                  

Linux version 2.6.28-ADI-2009R1-pre-svn5858 (vano@vano) (gcc version 4.1.2 (ADI svn)) #114 Fri Jul 24 14:35:37 EEST 2009                     

Warning: limiting memory to 30MB due to hardware anomaly 05000263                                                                            

Board Memory: 32MB                                                                                                                           

Kernel Managed Memory: 32MB                                                                                                                  

Memory map:                                                                                                                                  

  fixedcode = 0x00000400-0x00000490                                                                                                          

  text      = 0x00001000-0x00155fc0                                                                                                          

  rodata    = 0x00155fc0-0x001c6938                                                                                                          

  bss       = 0x001c6940-0x001d9774                                                                                                          

  data      = 0x001d9774-0x001f4000                                                                                                          

    stack   = 0x001f2000-0x001f4000                                                                                                          

  init      = 0x001f4000-0x0047d000                                                                                                          

  available = 0x0047d000-0x01dff000                                                                                                          

  DMA Zone  = 0x01e00000-0x02000000                                                                                                          

Hardware Trace Active and Enabled                                                                                                            

Boot Mode: 3                                                                                                                                 

Reset caused by Software reset                                                                                                               

Blackfin support (C) 2004-2009 Analog Devices, Inc.                                                                                          

Compiled for ADSP-BF537 Rev 0.2                                                                                                              

Warning: Compiled for Rev 2, but running on Rev 3                                                                                            

Blackfin Linux support by http://blackfin.uclinux.org/                                                                                       

Processor Speed: 500 MHz core clock and 100 MHz System Clock                                                                                 

NOMPU: setting up cplb tables                                                                                                                

Instruction Cache Enabled for CPU0                                                                                                           

Data Cache Enabled for CPU0 (write-back)                                                                                                     

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 7619                                                                   

Kernel command line: mem=32M netconsole=@192.168.5.1/eth0,@192.168.5.2/                                                                      

Configuring Blackfin Priority Driven Interrupts                                                                                              

PID hash table entries: 128 (order: 7, 512 bytes)                                                                                            

console [ttyBF0] enabled                                                                                                                     

Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)                                                                                

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)                                                                                  

Memory available: 25820k/32768k RAM, (2596k init code, 1363k kernel code, 633k data, 2048k dma, 308k reserved)                               

Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)                                                                                      

Mount-cache hash table entries: 512                                                                                                          

Blackfin Scratchpad data SRAM: 4 KB                                                                                                          

Blackfin L1 Data A SRAM: 16 KB (15 KB free)                                                                                                  

Blackfin L1 Data B SRAM: 16 KB (16 KB free)                                                                                                  

Blackfin L1 Instruction SRAM: 48 KB (41 KB free)                                                                                             

PDA for CPU0 reserved at 001c796c                                                                                                            

net_namespace: 288 bytes                                                                                                                     

NET: Registered protocol family 16                                                                                                           

Blackfin GPIO Controller                                                                                                                     

Blackfin DMA Controller                                                                                                                      

stamp_init(): registering device resources                                                                                                   

bfin_isp1761_init(): registering device resources                                                                                            

SCSI subsystem initialized                                                                                                                   

usbcore: registered new interface driver usbfs                                                                                               

usbcore: registered new interface driver hub                                                                                                 

usbcore: registered new device driver usb                                                                                                    

NET: Registered protocol family 2                                                                                                            

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)                                                                               

TCP established hash table entries: 1024 (order: 1, 8192 bytes)                                                                              

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)                                                                                     

TCP: Hash tables configured (established 1024 bind 1024)                                                                                     

TCP reno registered                                                                                                                          

NET: Registered protocol family 1                                                                                                            

JFFS2 version 2.2. (NAND) �� 2001-2006 Red Hat, Inc.                                                                                         

alg: No test for stdrng (krng)                                                                                                               

alg: No test for stdrng (ansi_cprng)                                                                                                         

io scheduler noop registered                                                                                                                 

io scheduler anticipatory registered (default)                                                                                               

mediabox2fb: initializing...done                                                                                                             

fb0: mediabox2fb frame buffer device                                                                                                         

timer_initialize: module loaded                                                                                                              

Serial: Blackfin serial driver                                                                                                               

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART                                                                             

bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) is a BFIN-UART                                                                             

brd: module loaded                                                                                                                           

bfin_mii_bus: probed                                                                                                                         

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)                       

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1                                                                       

netconsole: local port 6665                                                                                                                  

netconsole: local IP 192.168.5.1                                                                                                             

netconsole: interface eth0                                                                                                                   

netconsole: remote port 6666                                                                                                                 

netconsole: remote IP 192.168.5.2                                                                                                            

netconsole: remote ethernet address ff:ff:ff:ff:ff:ff                                                                                        

netconsole: device eth0 not up yet, forcing it                                                                                               

netconsole: carrier detect appears untrustworthy, waiting 4 seconds                                                                          

PHY: 0:01 - Link is Up - 100/Full                                                                                                            

console [netcon0] enabled                                                                                                                    

Linux version 2.6.28-ADI-2009R1-pre-svn5858 (vano@vano) (gcc version 4.1.2 (ADI svn)) #114 Fri Jul 24 14:35:37 EEST 2009                     

Warning: limiting memory to 30MB due to hardware anomaly 05000263                                                                            

Board Memory: 32MB                                                                                                                           

Kernel Managed Memory: 32MB                                                                                                                  

Memory map:                                                                                                                                  

  fixedcode = 0x00000400-0x00000490                                                                                                          

  text      = 0x00001000-0x00155fc0                                                                                                          

  rodata    = 0x00155fc0-0x001c6938                                                                                                          

  bss       = 0x001c6940-0x001d9774                                                                                                          

  data      = 0x001d9774-0x001f4000                                                                                                          

    stack   = 0x001f2000-0x001f4000                                                                                                          

  init      = 0x001f4000-0x0047d000                                                                                                          

  available = 0x0047d000-0x01dff000                                                                                                          

  DMA Zone  = 0x01e00000-0x02000000                                                                                                          

Hardware Trace Active and Enabled                                                                                                            

Boot Mode: 3                                                                                                                                 

Reset caused by Software reset                                                                                                               

Blackfin support (C) 2004-2009 Analog Devices, Inc.                                                                                          

Compiled for ADSP-BF537 Rev 0.2                                                                                                              

Warning: Compiled for Rev 2, but running on Rev 3                                                                                            

Blackfin Linux support by http://blackfin.uclinux.org/                                                                                       

Processor Speed: 500 MHz core clock and 100 MHz System Clock                                                                                 

NOMPU: setting up cplb tables                                                                                                                

Instruction Cache Enabled for CPU0                                                                                                           

Data Cache Enabled for CPU0 (write-back)                                                                                                     

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 7619                                                                   

Kernel command line: mem=32M netconsole=@192.168.5.1/eth0,@192.168.5.2/                                                                      

Configuring Blackfin Priority Driven Interrupts                                                                                              

PID hash table entries: 128 (order: 7, 512 bytes)                                                                                            

console [ttyBF0] enabled                                                                                                                     

Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)                                                                                

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)                                                                                  

Memory available: 25820k/32768k RAM, (2596k init code, 1363k kernel code, 633k data, 2048k dma, 308k reserved)                               

Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)                                                                                      

Mount-cache hash table entries: 512                                                                                                          

Blackfin Scratchpad data SRAM: 4 KB                                                                                                          

Blackfin L1 Data A SRAM: 16 KB (15 KB free)                                                                                                  

Blackfin L1 Data B SRAM: 16 KB (16 KB free)                                                                                                  

Blackfin L1 Instruction SRAM: 48 KB (41 KB free)                                                                                             

PDA for CPU0 reserved at 001c796c                                                                                                            

net_namespace: 288 bytes                                                                                                                     

NET: Registered protocol family 16                                                                                                           

Blackfin GPIO Controller                                                                                                                     

Blackfin DMA Controller                                                                                                                      

stamp_init(): registering device resources                                                                                                   

bfin_isp1761_init(): registering device resources                                                                                            

SCSI subsystem initialized                                                                                                                   

usbcore: registered new interface driver usbfs                                                                                               

usbcore: registered new interface driver hub                                                                                                 

usbcore: registered new device driver usb                                                                                                    

NET: Registered protocol family 2                                                                                                            

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)                                                                               

TCP established hash table entries: 1024 (order: 1, 8192 bytes)                                                                              

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)                                                                                     

TCP: Hash tables configured (established 1024 bind 1024)                                                                                     

TCP reno registered                                                                                                                          

NET: Registered protocol family 1                                                                                                            

JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.                                                                                         

alg: No test for stdrng (krng)                                                                                                               

alg: No test for stdrng (ansi_cprng)                                                                                                         

io scheduler noop registered                                                                                                                 

io scheduler anticipatory registered (default)                                                                                               

mediabox2fb: initializing...done                                                                                                             

fb0: mediabox2fb frame buffer device                                                                                                         

timer_initialize: module loaded                                                                                                              

Serial: Blackfin serial driver                                                                                                               

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART                                                                             

bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) is a BFIN-UART                                                                             

brd: module loaded                                                                                                                           

bfin_mii_bus: probed                                                                                                                         

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)                       

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1                                                                       

netconsole: local port 6665                                                                                                                  

netconsole: local IP 192.168.5.1                                                                                                             

netconsole: interface eth0                                                                                                                   

netconsole: remote port 6666                                                                                                                 

netconsole: remote IP 192.168.5.2                                                                                                            

netconsole: remote ethernet address ff:ff:ff:ff:ff:ff                                                                                        

netconsole: device eth0 not up yet, forcing it                                                                                               

netconsole: carrier detect appears untrustworthy, waiting 4 seconds                                                                          

PHY: 0:01 - Link is Up - 100/Full                                                                                                            

console [netcon0] enabled                                                                                                                    

netconsole: network logging started                                                                                                          

Driver 'sd' needs updating - please use bus_type methods                                                                                     

mtd_dataflash spi0.1: at45db642d (8192 KBytes) pagesize 1024 bytes, OTP                                                                      

Creating 3 MTD partitions on "mtd_dataflash":                                                                                                

0x00000000-0x00040000 : "u-boot-spi-master.ldr"                                                                                              

0x00040000-0x00440000 : "uImage"                                                                                                             

0x00440000-0x00800000 : "Home"                                                                                                               

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7                                  

Initializing USB Mass Storage driver...                                                                                                      

usbcore: registered new interface driver usb-storage                                                                                         

USB Mass Storage support registered.                                                                                                         

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0                                                                                     

bfin-wdt: initialized: timeout=20 sec (nowayout=0)                                                                                           

Advanced Linux Sound Architecture Driver Version 1.0.18rc3.                                                                                  

ASoC version 0.13.2                                                                                                                          

dma rx:3 tx:4, err irq:45, regs:ffc00800                                                                                                     

AD1980 SoC Audio Codec                                                                                                                       

dma_alloc_init: dma_page @ 0x0191f000 - 512 pages at 0x01e00000                                                                              

asoc: AC97 <-> bf5xx-ac97 mapping ok                                                                                                         

ALSA device list:                                                                                                                            

  #0: bf5xx-board (AD1980)                                                                                                                   

TCP cubic registered                                                                                                                         

NET: Registered protocol family 17                                                                                                           

rtc-bfin rtc-bfin: setting system clock to 2009-07-24 11:38:03 UTC (1248435483)                                                              

Freeing unused kernel memory: 2596k freed                                                                                                    

mount: mounting /dev/pts on JoneFfailFd                                                                                                      

S2 write-buffering enabled buffer (1024) erasesize (8192)                                                                                    

mount: mounting usbfs on /proc/bus/usb failed                                                                                                

JFFS2 notice: (209) check_node_data: wrong data CRC in data node at 0x003a5b74: read 0x68681805, calculated 0xbb0bdd53.                      

init: Missing PROCESS field in inittab                                                                                                       

                                                                                                                                             

BusyBox v1.4.1 (2009-07-23 16:27:25 EEST) Built-in shell (msh)                                                                               

Enter 'help' for a list of built-in commands.                                                                                                

 

 

 

and setting dmesg -n8 outputs to serial console instead of netconsole

 

Any suggestion how to direct kernel output to netconsole only?

 

Regards,

 

Ivan

QuoteReplyEditDelete

 

 

2009-07-24 09:13:35     Re: disable debug console in kernel

Robin Getz (UNITED STATES)

Message: 78003   

 

Ivan:

 

https://docs.blackfin.uclinux.org/doku.php?id=silent_booting#console

 

-Robin

Attachments

    Outcomes