public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Michael Walle <michael@walle.cc>
To: u-boot@lists.denx.de
Subject: [U-Boot] bootm does not work if netconsole is enabled
Date: Wed, 10 Apr 2013 00:21:42 +0200	[thread overview]
Message-ID: <201304100021.42979.michael@walle.cc> (raw)


Hi Joe, Hi Tom,

If i have the netconsole enabled i cannot boot linux using the bootm command. 
This bug exists at least in 2013.01.01 and 2013.04-rc2 :/


Here is the output of the serial console of a successful startup:

## Booting kernel from Legacy Image at 00100000 ...
   Image Name:   Linux-3.8.0-rc1-00004-g270c0a0-d
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2799632 Bytes = 2.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 00800000 ...
   Image Name:   
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    636966 Bytes = 622 KiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 00700000
   Booting using the fdt blob at 0x00700000
   Loading Kernel Image ... OK
OK
   Loading Ramdisk to 03aad000, end 03b48826 ... OK
   Loading Device Tree to 03aa8000, end 03aacedd ... OK

Starting kernel ...

[.. more linux kernel output ..]


If the netconsole is enabled, eg. "stdin = stdout = stderr = nc", i see only 
the following output on the netconsole and then nothing more happens:

## Booting kernel from Legacy Image at 00100000 ...
   Image Name:   Linux-3.8.0-rc1-00004-g270c0a0-d
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2799632 Bytes = 2.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 00800000 ...
   Image Name:   
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    636966 Bytes = 622 KiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 00700000
   Booting using the fdt blob at 0x00700000


I've tracked this down to the eth_halt() call in cmd_bootm.c:647. What is the 
purpose of this call? I guess the NIC should be shut down prior to booting 
linux. OTOH, there are still messages printed after this call, and i suppose 
the netconsole tries to bring the network back up. If i remove this call, 
everything works as expected.
Anyway, i can definitely say, that the linux kernel is not starting. Eg. it is 
not only the output that stops working.

FYI, i'm using the mvgbe driver.

Let me know if i can do some more debugging or provide more information. 
Hopefully this will be fixed in 2013.04 :)

-- 
Michael

             reply	other threads:[~2013-04-09 22:21 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-09 22:21 Michael Walle [this message]
2013-04-10  1:51 ` [U-Boot] bootm does not work if netconsole is enabled Joe Hershberger
2013-04-10 10:07   ` Michael Walle
2013-04-10 16:13     ` Joe Hershberger
2013-04-10 20:52       ` Michael Walle
2013-06-11  7:39       ` Michael Walle
2013-06-20 18:00       ` Michael Walle
2013-07-07 10:25         ` [U-Boot] [PATCH] Enable serial console only before booting Frédéric Leroy
2013-07-07 22:31           ` Wolfgang Denk
2013-09-05 13:43           ` Tom Rini
2013-09-08 12:22             ` [U-Boot] [PATCH] Fix loading freeze when netconsole is active Frédéric Leroy
2013-09-10 10:02             ` [U-Boot] [PATCH v2] " Frédéric Leroy
2013-09-21 12:06               ` [U-Boot] [U-Boot, " Tom Rini
2013-07-07 11:42         ` [U-Boot] [PATCH] Enable serial console only before booting Frédéric Leroy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201304100021.42979.michael@walle.cc \
    --to=michael@walle.cc \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox