riscv-software-src / riscv-tools

RISC-V Tools (ISA Simulator and Tests)
1.13k stars 446 forks source link

Syntax error in kernel tutorial #222

Open benjaminou4412 opened 6 years ago

benjaminou4412 commented 6 years ago

find . | cpio --quiet -o -H newc > <riscv-linux>/rootfs.cpio

Executing this step in the root directory (or anywhere else) produces this error:

bash: syntax error near unexpected token `<'

I'm not familiar with the find command's syntax, so how can this be fixed?

jim-wilson commented 6 years ago
is meant to be the full or relative pathname to your checked out copy of the riscv-linux repo. This is something we don't know at this point, so we are using a variable to represent it. Same thing in the next two instances of this. By the way, the sifive/freedom-u-sdk repo is a much easier way to build and boot a linux+buildroot system. Just check it out and type "make qemu" and it will build and boot linux+buildroot on qemu. riscv-tools may be useful here if you want to learn all of the ugly details of how to get a system working from scratch. If you just want a working system, then freedom-u-sdk is much easier. There are also Fedora/Debian/OpenSuse builds available if you want to try a linux system with a full userspace.