Re: RISC-V struggle (for GMP porting)

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

 



On Tue, Oct 11, 2016 at 01:47:46AM +0200, Torbjörn Granlund wrote:
> The last few days, I have made a confused wandering around many current
> and obsolete(?)  fedora web pages wrt RISC-V.

All the pages under
https://fedoraproject.org/wiki/Architectures/RISC-V should be up to
date (except for the ones which are crossed out obviously).  If you
find some out of date information please let me know specifically
which information.

> I've tried to get a reasonable environment under qemu where I can
> compile GMP and then write some RISC-V assembly.  I've gotten close to
> both user-level stuff and full system emulation.

Easiest way is to follow the instructions here:

https://fedoraproject.org/wiki/Architectures/RISC-V/Disk_images

Don't compile your own qemu.  There are many forks of qemu, and only
the ones we compile will work sensibly and are compatible with the
disk image and kernel we also supply.

[...]

> Furthermore, stage4-disk.img.xz is a strange beast; it contains a
> compiler but no include files and no 'as' command.

Our rather hacked-up GCC is missing dependencies on glibc-headers &
binutils.  We're going to fix this, but compiling GCC is an extremely
slow and iterative process.  So temporarily you will need to:

  # dnf install binutils glibc-headers

inside the VM.

See instructions above for how to install further packages.

> I get a busybox going by using bblvmlinuxinitramfs_dynamic (which I
> found at https://github.com/riscv/riscv-qemu).  I've tried to coax this

I think the problem is here.  Don't use the riscv stuff.  There are
several versions of the architecture and mixing stuff from different
places will not work.  You need to use all the packages we supply (or
a consistent set of packages from some other source) and not a mix.

HTH, we have a #fedora-riscv channel if you get stuck.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux