[U-Boot] [PATCH v2 0/2] SiFive UART support

Anup Patel anup at brainfault.org
Tue Dec 11 16:07:45 UTC 2018


On Tue, Dec 11, 2018 at 9:03 PM Bin Meng <bmeng.cn at gmail.com> wrote:
>
> Hi Anup,
>
> On Tue, Dec 11, 2018 at 11:02 PM Anup Patel <anup at brainfault.org> wrote:
> >
> > This patchset adds SiFive UART driver for SiFive UART
> > found on SiFive boards.
> >
> > The driver is tested on QEMU sifive_u machine. In fact,
> > with this patchset same U-Boot binary boots on QEMU virt
> > machine and QEMU sifive_u machine in both M-mode and
> > S-mode.
> >
>
> Could you please specify how to test this? I tried your v1 patch but
> U-Boot did not boot. I must have missed something ...

To try this patches in M-mode do the following (in u-boot source directory):
# ARCH=riscv
# CROSS_COMPILE=riscv64-unknown-linux-gnu-
# make qemu-riscv64_defconfig
# make
# qemu-system-riscv64 -M sifive_u -m 256M -display none -serial stdio
-kernel ./u-boot
OR
# qemu-system-riscv64 -M virt -m 256M -display none -serial stdio
-kernel ./u-boot

Regards,
Anup


More information about the U-Boot mailing list