mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Antony Pavlov <antonynpavlov@gmail.com>
To: barebox@lists.infradead.org
Subject: [RFC 3/4] WIP: make it work on litex
Date: Sun,  2 Jun 2019 10:31:00 +0300	[thread overview]
Message-ID: <20190602073101.21352-4-antonynpavlov@gmail.com> (raw)
In-Reply-To: <20190602073101.21352-1-antonynpavlov@gmail.com>

  * litex platform does not use ns16550 at all
    so debug_ll_ns16550_init should be eliminated;

  * there is no IH_ARCH_RISCV definition in include/image.h
    at the moment, so the error stops compiling:
        common/bootm.c: In function 'bootm_open_os_uimage':
        common/bootm.c:491:34: error: 'IH_ARCH' undeclared (first use in this
        function)
        if (data->os->header.ih_arch != IH_ARCH) {
                                        ^~~~~~~

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 arch/riscv/boot/start.S | 2 --
 common/bootm.c          | 2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/riscv/boot/start.S b/arch/riscv/boot/start.S
index d1dbe48b7b..fab23e926f 100644
--- a/arch/riscv/boot/start.S
+++ b/arch/riscv/boot/start.S
@@ -28,8 +28,6 @@
 
 .globl _start
 _start:
-	debug_ll_ns16550_init
-
 	riscv_nmon
 
 	li	sp, STACK_BASE + STACK_SIZE
diff --git a/common/bootm.c b/common/bootm.c
index 36f6c41bbd..37379ef03f 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -487,11 +487,13 @@ static int bootm_open_os_uimage(struct image_data *data)
 
 	uimage_print_contents(data->os);
 
+#if 0
 	if (data->os->header.ih_arch != IH_ARCH) {
 		printf("Unsupported Architecture 0x%x\n",
 		       data->os->header.ih_arch);
 		return -EINVAL;
 	}
+#endif
 
 	if (data->os_address == UIMAGE_SOME_ADDRESS)
 		data->os_address = data->os->header.ih_load;
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2019-06-02  7:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-02  7:30 [RFC 0/4] riscv: add initial LiteX SoC support Antony Pavlov
2019-06-02  7:30 ` [RFC 1/4] " Antony Pavlov
2019-06-02  7:30 ` [RFC 2/4] serial: add litex UART driver Antony Pavlov
2019-06-03  5:10   ` Ahmad Fatoum
2019-06-03  5:13     ` Ahmad Fatoum
2019-06-02  7:31 ` Antony Pavlov [this message]
2019-06-07  7:11   ` [RFC 3/4] WIP: make it work on litex Sascha Hauer
2019-06-02  7:31 ` [RFC 4/4] riscv: add litex_defconfig Antony Pavlov
2019-06-02  9:08 ` [RFC 0/4] riscv: add initial LiteX SoC support Sam Ravnborg

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=20190602073101.21352-4-antonynpavlov@gmail.com \
    --to=antonynpavlov@gmail.com \
    --cc=barebox@lists.infradead.org \
    /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