lowRISC / lowRISC/lowrisc-chip
Compile the RISC-V Linux and the ramdisk `root.bin`
Nobody has claimed this yet.
- Dominant language
- SystemVerilog
- Stars
- 601
- Forks
- 147
- PR merge metrics
- No merged PRs in 30d
Description
at http://www.lowrisc.org/docs/untether-v0.2/linux_compile/
I tried to compile linux along this page, but I run the
$ make ARCH = riscv -j vmlinux
command in the first script block The following message
------------------------------------------------------------------------------------
CHK include / config / kernel.release
CHK include / generated / uapi / linux / version.h
CC scripts / mod / devicetable-offsets.s
CC scripts / mod / empty.o
riscv64-unknown-linux-gnu-gcc: error: unrecognized command line option '-m64'
riscv64-unknown-linux-gnu-gcc: error: unrecognized command line option '-msoft-float'
scripts / Makefile.build: 204: recipe for target 'scripts / mod / devicetable-offsets.s' failed
make [2]: *** [scripts / mod / devicetable-offsets.sys] Error 1
make [2]: *** Waiting for unfinished jobs ....
riscv64-unknown-linux-gnu-gcc: error: unrecognized command line option '-m64'
riscv64-unknown-linux-gnu-gcc: error: unrecognized command line option '-msoft-float'
scripts / Makefile.build: 308: recipe for target 'scripts / mod / empty.o' failed
make [2]: *** [scripts / mod / empty.o] Error 1
scripts / Makefile.build: 455: recipe for target 'scripts / mod' failed
make [1]: *** [scripts / mod] Error 2
Makefile: 527: recipe for target 'scripts' failed
make: *** [scripts] Error 2
------------------------------------------------------------------------------------
I did not progress anymore as the phrase came up.
Maybe you should modify $ TOP / riscv-tools / linux-3.14.41 / arch / riscv / Makefile. Is there a way?
For reference,
on this page http://www.lowrisc.org/docs/untether-v0.2/
I ran 'Compile and install RISC-V cross-compiler' under '2. The development enviromnet' and
I was following 'Compile the RISC-V Linux and the ramdisk root.bin'.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Compile the RISC-V Linux and the ramdisk root.bin page and inspect TOP/riscv-tools/linux-3.14.41/arch/riscv/Makefile. Re-run the documented make ARCH = riscv -j vmlinux command and compare the compiler options with the reported errors; done means the Linux and root.bin compilation steps complete successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, shell
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100