On Sat, Mar 23, 2019 at 6:35 PM Rick Payne <ri...@rossfell.co.uk> wrote:

>
>
> So I'm not actually using hardware for now. I'm using qemu-system-
> aarch64 as shown on the wiki page:
>
>   qemu-system-aarch64 -S -s -nographic -machine virt -kernel
> build/release.aarch64/loader.img -cpu cortex-a57 -m 1024M -append "
> --nomount /tools/uush.so"
>

Would be nice if we had a script for that. Perhaps even an option to
scripts/run.py.

Why the "-S"? It causes the machine not really to start.

If I run the above without "-S" I get:

OSv v0.53.0-3-g8cd7d8aa
dtb_setup: failed to move dtb (dtb too large?)
Halting.
QEMU: Terminated

Which is a different problem than you reported.


> The problem I'm having is that the assignment of the pl011 serial
> driver to the early console port isn't working, and thus we end up with
> no method for console::arch_early_console.write. I made this quick
> hack:
>

I don't know anything about "pl011", but maybe qemu doesn't emulate it,
or our driver doesn't know how to recognize qemu's version of it?
(just a wild guess).


> diff --git a/arch/aarch64/arch-setup.cc b/arch/aarch64/arch-setup.cc
> index 4f4be836..24a4e6a8 100644
> --- a/arch/aarch64/arch-setup.cc
> +++ b/arch/aarch64/arch-setup.cc
> @@ -185,7 +185,9 @@ void arch_init_early_console()
>      }
>
>      new (&console::aarch64_console.pl011) console::PL011_Console();
> +    console::aarch64_console.pl011.write("a", 1);
>      console::arch_early_console = console::aarch64_console.pl011;
> +    console::arch_early_console.write("b", 1);
>      int irqid;
>      u64 addr = dtb_get_uart(&irqid);
>      if (!addr) {
>
> and I get 'a' printed, but the call to
> console::arch_early_console.write fails.
>
> Why can't we assign there?
>
> Rick
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "OSv Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to osv-dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to