On Fri, Aug 24, 2018 at 6:38 PM 'Michael Clark' via RISC-V ISA Dev
<
isa...@groups.riscv.org> wrote:
>
>
>
> On 25/08/2018, at 12:21 AM, Bruce Hoult <
bruce...@sifive.com> wrote:
>
> Michael is the expert on that. Added cc
>
> On Fri, Aug 24, 2018 at 5:11 AM, Pintu Kumar <
pintu...@gmail.com> wrote:
>>
>> On Wed, Aug 8, 2018 at 7:30 AM Bruce Hoult <
bruce...@sifive.com> wrote:
>> >
>> > You could look at SiFive's freedom-u-sdk, "make qemu" will create a buildroot linux image and launch it in qemu.
>> >
>> >
https://github.com/sifive/freedom-u-sdk
>> >
>>
>> Thank you so much :)
>> With this we could able to successfully boot riscv64 with qemu
>> environment, and run some basic application.
>> Also we could able to boot directly with riscv-qemu command, and out
>> custom kernel 4.18 (without freedom-sdk environment).
>>
>> But, we observed that riscv-qemu works (console login), only with
>> machine type as "virt".
>> Can we also use the machine type as "sifive" and boot in qemu ?
>> We observed that if we use "sifive" then the qemu boots with some
>> logs, but there is no console.
>> How to solve this problem?
>
>
> It depends.
>
> There is no machine type “sifive” in current upstream QEMU. There is the “sifive_e” machine which emulates the SiFive E-Series cores. It cant’t boot Linux as the E-Series core have no MMU.
>
> There is the “sifive_u” machine which emulates the SiFive U-Series cores that can boot Linux, but it has several constraints on root device.
>
> We don’t currently emulate the HiFive Unleashed’s SD card peripheral in RISC-V QEMU, and depending on where you got QEMU from, it may or may not have Cadence GEM support (for network boot).
>
> What device are you trying to use as your root device?
>
We are trying to use either buildroot (part of freedom-sdk) or
busybear as the root device.
Further we wanted to use ubuntu debian based rootfs.
> Have you tried by appending an initramfs to your kernel image?
>
In freedom-sdk itself, we just tried changing machine type from 'virt'
to 'sifive_x', without changing the kernel configuration.
So, I guess, it should be using initramfs itself.
> Note: for console output you’ll need a kernel that is configured to use SBI or the SiFive UART vs the NS16550A in the “virt” machine.
>
We are trying to boot with the same kernel under freedom-sdk. We are
just changing the machine type.
> --
> You received this message because you are subscribed to the Google Groups "RISC-V ISA Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
isa-dev+u...@groups.riscv.org.
> To view this discussion on the web visit
https://groups.google.com/a/groups.riscv.org/d/msgid/isa-dev/84039779-5CE6-47F0-8666-94DD2F5A2F05%40mac.com.