Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot read boot.elf : File not found #229

Open
wudehua2016 opened this issue May 31, 2024 · 1 comment
Open

cannot read boot.elf : File not found #229

wudehua2016 opened this issue May 31, 2024 · 1 comment

Comments

@wudehua2016
Copy link

I used this repo to flash the bin into the kintex-7, following the instructions on the repo. But fails after I flash the img into the sdcard. It say "RISC-V 64, BOOTROM V3.8: cannot read boot.elf: File not found " from the Serial port.
I used the kintex-7 fpga, ubuntu 20.04.
the mk-sd-card scripts was encountered a error:
This disk is currently in use - repartitioning is probably a bad idea. Umount all file systems, and swapoff all swap partitions on this disk. Use the --no-reread flag to suppress this check.
to deal with this error, I added a new flag of "--no-reread" in the sfdisk like that:

case "$response" in
[yY][eE][sS]|[yY])
sudo dd if=$SD_IMG of=$DEVICE bs=64K status=progress
sudo sync
sudo partprobe ${DEVICE}
sleep 3
echo ", +" | sudo sfdisk -N 2 ${DEVICE} --no-reread
sudo partprobe ${DEVICE}
sudo fsck -f ${DEVICE}2
sudo resize2fs ${DEVICE}2
sudo sync
break
;;
*)

and then I got the error of "cannot read boot.elf : File not found", and how can I get rid of it? Thank you

@wudehua2016
Copy link
Author

it is my fault, i find the reason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant