[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: no networking in riscv-qemu... use pppd?



Hi,

2017-04-18 12:48 GMT+02:00 Luke Kenneth Casson Leighton <lkcl@lkcl.net>:
> hi, sorry i'm not subscribed to the list so replying in-thread is a
> leetle tricky (apologies!), but this is a new thread-topic anyway.  in
> https://lists.debian.org/debian-riscv/2016/11/msg00005.html it's
> mentioned the following:
>
>
>> For Debian purposes the RISC-V qemu also has one big problem at
>> the moment: it doesn't have any kind of functional networking
>> support, so running a buildd in a qemu virtual machine doesn't
>
> if there exists at least support for serial devices (even if there is
> only one - the console) - could that be used to set up a pppd link?  i
> have frequently then set up dnsmasq and a local HTTP proxy or NAT from
> there.
>
> just a thought.

The support for the serial devices is ad-hoc and quite flaky, and
there are problems like e.g. locking when trying to read and write to
the device at the same time.  One can avoid these when using the
console by carefully attempting not to write when there's output being
printed... but that probably doesn't get you very far when you attempt
to use a bi-directional network connection on that device.

Also, at some point, support for the ad-hoc devices (block and
character0 was removed in the master branches or something to that
effect, without any alternative being added.

There were people working on virtio support for riscv-qemu, not sure
if it's merged yet, but that would be the way to go for a definitive
solution.


Cheers.
-- 
Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com>


Reply to: