From: Andre Heider <a.heider@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH 4/5] arm: mvebu: Espressobin: Define console env
Date: Wed, 26 Aug 2020 16:00:05 +0200 [thread overview]
Message-ID: <c313e096-7d81-85f2-7d6d-faeb3729cf08@gmail.com> (raw)
In-Reply-To: <20200826133140.ih77mzeozyi2ua7o@pali>
On 26/08/2020 15:31, Pali Roh?r wrote:
> On Wednesday 26 August 2020 15:22:26 Andre Heider wrote:
>> Hi,
>>
>> On 24/08/2020 16:25, Pali Roh?r wrote:
>>> Some distribution bootscripts append console env into boot cmdline.
>>> So define console env correctly to have early console access.
>>>
>>> Signed-off-by: Pali Roh?r <pali@kernel.org>
>>> ---
>>> include/configs/mvebu_armada-37xx.h | 2 ++
>>> 1 file changed, 2 insertions(+)
>>>
>>> diff --git a/include/configs/mvebu_armada-37xx.h b/include/configs/mvebu_armada-37xx.h
>>> index 6feceda757..b473072976 100644
>>> --- a/include/configs/mvebu_armada-37xx.h
>>> +++ b/include/configs/mvebu_armada-37xx.h
>>> @@ -17,6 +17,7 @@
>>> #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, \
>>> 115200, 230400, 460800, 921600 }
>>> +#define CONFIG_DEFAULT_CONSOLE "console=ttyMV0,115200 earlycon=ar3700_uart,0xd0012000"
>>> /*
>>> * For booting Linux, the board info and command line data
>>> @@ -99,6 +100,7 @@
>>> "kernel_addr=0x7000000\0" \
>>> "kernel_addr_r=0x7000000\0" \
>>> "ramdisk_addr_r=0x8000000\0" \
>>> + "console=" CONFIG_DEFAULT_CONSOLE "\0" \
>>> BOOTENV
>>> #endif /* _CONFIG_MVEBU_ARMADA_37XX_H */
>>>
>>
>> this breaks booting debian with systemd for me:
>> [ 4.632197] systemd-udevd[90]: Starting version 241
>> [ 4.639324] systemd-udevd[91]: Failed to create udev control event
>> source: Operation not permitted
>>
>> "env delete console" and it works again.
>
> This is really suspicious. Why systemd has problems with control socket
> when console= parameter is specified on boot command line? And if
> console= parameter is problematic on command line, why console output is
> working fine? For me it looks like this variable controls something
> different, not (only) console output. Maybe some bootscript sets
> something more when it see u-boot env ${console} non-empty?
It sounds like a bug in systemd, this may be related:
https://github.com/systemd/systemd/issues/13332
With ugly workarounds like:
https://github.com/openembedded/openembedded-core/commit/dd6ee0b06cd8df6204cf600050516d15172302ea
This is easy for to me to work around, but note that this systemd
version is the one shipping with current debian stable.
next prev parent reply other threads:[~2020-08-26 14:00 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-24 14:24 [PATCH 1/5] arm: mvebu: Espressobin: Move env load addresses Pali Rohár
2020-08-24 14:24 ` [PATCH 2/5] arm: mvebu: Espressobin: Change default loadaddr Pali Rohár
2020-08-25 7:06 ` Stefan Roese
2020-08-24 14:25 ` [PATCH 3/5] arm: mvebu: Espressobin: Define fdt_addr and kernel_addr env aliases Pali Rohár
2020-08-25 7:07 ` Stefan Roese
2020-08-24 14:25 ` [PATCH 4/5] arm: mvebu: Espressobin: Define console env Pali Rohár
2020-08-25 7:08 ` Stefan Roese
2020-08-26 13:22 ` Andre Heider
2020-08-26 13:31 ` Pali Rohár
2020-08-26 14:00 ` Andre Heider [this message]
2020-08-26 14:10 ` Pali Rohár
2020-08-26 14:43 ` Andre Heider
2020-08-26 15:10 ` Pali Rohár
2020-08-26 15:29 ` Andre Heider
2020-08-27 4:51 ` Andre Heider
2020-08-27 10:29 ` Pali Rohár
2020-08-27 14:34 ` Andre Heider
2020-08-27 5:25 ` Andre Heider
2020-08-24 14:25 ` [PATCH 5/5] arm: mvebu: Espressobin: Update README.marvell file Pali Rohár
2020-08-25 7:08 ` Stefan Roese
2020-08-25 7:05 ` [PATCH 1/5] arm: mvebu: Espressobin: Move env load addresses Stefan Roese
2020-08-26 7:30 ` Andre Heider
2020-08-26 8:31 ` Espressobin booting (Was: Re: [PATCH 1/5] arm: mvebu: Espressobin: Move env load addresses) Pali Rohár
2020-08-26 9:57 ` Andre Heider
2020-08-26 10:51 ` Pali Rohár
2020-08-26 11:40 ` Pali Rohár
2020-08-26 13:22 ` Andre Heider
2020-08-27 13:14 ` Pali Rohár
2020-08-28 12:39 ` Pali Rohár
2020-08-28 14:35 ` Andre Heider
2020-08-28 14:53 ` Pali Rohár
2020-08-27 13:01 ` [PATCH v2 1/4] arm: mvebu: Espressobin: Move env load addresses Pali Rohár
2020-08-27 13:01 ` [PATCH v2 2/4] arm: mvebu: Espressobin: Change default loadaddr Pali Rohár
2020-08-27 15:31 ` Stefan Roese
2020-08-27 16:04 ` Andre Heider
2020-08-31 13:06 ` Stefan Roese
2020-08-27 13:01 ` [PATCH v2 3/4] arm: mvebu: Espressobin: Define fdt_addr and kernel_addr env aliases Pali Rohár
2020-08-27 15:31 ` Stefan Roese
2020-08-27 16:04 ` Andre Heider
2020-08-31 13:06 ` Stefan Roese
2020-08-27 13:01 ` [PATCH v2 4/4] arm: mvebu: Espressobin: Update README.marvell file Pali Rohár
2020-08-27 15:32 ` Stefan Roese
2020-08-31 13:06 ` Stefan Roese
2020-08-27 14:31 ` [PATCH v2 1/4] arm: mvebu: Espressobin: Move env load addresses Andre Heider
2020-08-27 15:37 ` Stefan Roese
2020-08-27 15:31 ` Stefan Roese
2020-08-31 13:06 ` Stefan Roese
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=c313e096-7d81-85f2-7d6d-faeb3729cf08@gmail.com \
--to=a.heider@gmail.com \
--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