From 84f1afd6d4fbd2643d9b71e40f7974ffcc5c208d Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 21 Sep 2021 13:37:25 +0200 Subject: [PATCH] tools/litex_json2dts_linux: Remove mem=/, init= and swiotlb= bootargs. Were not useful as pointed by @shenki and @stffrdhrn. --- litex/tools/litex_json2dts_linux.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/litex/tools/litex_json2dts_linux.py b/litex/tools/litex_json2dts_linux.py index 601208e7e..5c806627f 100755 --- a/litex/tools/litex_json2dts_linux.py +++ b/litex/tools/litex_json2dts_linux.py @@ -57,11 +57,9 @@ def generate_dts(d, initrd_start=None, initrd_size=None, initrd=None, root_devic dts += """ chosen {{ - bootargs = "mem={main_ram_size_mb}M@0x{main_ram_base:x} {console} {rootfs} init=/sbin/init swiotlb=32";""".format( - main_ram_base = d["memories"]["main_ram"]["base"], - main_ram_size_mb = d["memories"]["main_ram"]["size"] // mB, - console = "console=liteuart earlycon=liteuart,0x{:x}".format(d["csr_bases"]["uart"]), - rootfs = "rootwait root=/dev/{}".format(root_device)) + bootargs = "{console} {rootfs};""".format( + console = "console=liteuart earlycon=liteuart,0x{:x}".format(d["csr_bases"]["uart"]), + rootfs = "rootwait root=/dev/{}".format(root_device)) if initrd_enabled is True: dts += """