On Thu, Dec 5, 2019 at 12:30 PM Billa Surendra billa.iitmadras@gmail.com wrote:
Dear David Abdurachmanov,
I have seen your presentation about fedora bootstrap on RV64, it was very nice presentation actually. I am planning to boot a RISC-V Fedora on QEMU Emulator, but I want to do some changes in fedora distro. Fedora distro without compressed instruction support require for me, for this I have written some steps where I can do changes. This steps completely I have taken from your presentation. Please correct my steps whether I am going in correct way or not ? I am new to fedora as well as bootstrap process.
Hi,
Did you have time to look into my previous email? It outlines the ideas/step how to do it.
Steps:
- Installing QEMU (In x86 fedora host PC)
- Installing GNU cross compiler tool chain (In this step I have installed tool chain https://github.com/riscv/riscv-gnu-toolchain (RV64IMAFD support) in fedora 86 host PC).
- Install Berkly bootloader (In this step I have installed bootloader https://github.com/riscv/riscv-pk in fedora x86 host pc).
- Linux kernel + basic rootfs (In this step taken Linux kernal from https://www.kernel.org/ and cross compiled with above tool chain, created basic rootfs).
You don't need to do this: - Don't use https://github.com/riscv/riscv-gnu-toolchain This is old and all development moved to a proper upstream location. - BBL was replaced by OpenSBI. I would highly advice to avoid BBL. Fedora/RISCV use OpenSBI and BBL is deprecated. - Fedora/RISCV supports RV64GC, but you can run (should be able) RV64G binaries. The latest time I checked glibc will missing DSO (RV64GC and RV64G). That does not affect the ABI.
Simply put you need to take Fedora/RISCV disk image and recompile toolchain to target RV64G. Then start rebuilding all the packages. Finally you assemble a new disk image using your built packages.
From Here I am not understanding the steps
- Cross compile and Install "RPM" packages and dependencies (where I can get RPMs and dependencies list, after cross compiling RPMs whare I have to install ?).
- Install pre build RPMS (no idea about this step).
- Rebuild RPMS from SRPMs natively (no idea about this step).
- Install the new RPMS (no idea about this step).
- Build stage4 image (no idea about this step).
Please correct my steps and give the solutions for step (5-9).
Thanks
Billa