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

Bin Meng bmeng.cn at gmail.com
Wed Dec 12 06:20:21 UTC 2018


On Wed, Dec 12, 2018 at 12:20 AM Anup Patel <anup at brainfault.org> wrote:
>
> On Tue, Dec 11, 2018 at 9:45 PM Bin Meng <bmeng.cn at gmail.com> wrote:
> >
> > Hi Anup,
> >
> > On Wed, Dec 12, 2018 at 12:07 AM Anup Patel <anup at brainfault.org> wrote:
> > >
> > > 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
> >
> > I tried exactly the same, but no console output.
> >
>
> Ahh, understood your problem.
>
> There is a bug in QEMU FDT generation for sifive_u.
>
> Here's the QEMU fix (which I have send to QEMU mailing list):
>

With the new info, now I am able to boot U-Boot on QEMU sifive_u.

Regards,
Bin


More information about the U-Boot mailing list