-
Notifications
You must be signed in to change notification settings - Fork 179
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
Stuck on sfdisk step of mk-sd-image script #34
Comments
EDIT: thread updated |
The script fails to match working directory path to /dev/loopX device. |
Good catch!
I will search why I get an unrecognized partition table type about my /dev/loop0 and try to solve it. Thank you very much again. Kind regards, |
I'll make changes in the repo.
The error, "sfdisk: trailing junk after number", is about these two lines:
I see nothing wrong with the lines.
|
Hmmm the
didn't work. But I just tried
and the script was able to proceed. So apparently there is a problem with the M characters?
EDIT:
|
And from what I see the 1M and 400M must be the partitions(?) because when I reach the tar step, I get messages about not having enough space on the device:
|
No, each line is a partition: start, size, type and flags,
It is possible that older versions of sfdisk don't recognize M suffix.
By default, the numbers are in cylinders, so 400000000 * 8225280 bytes - way too much. |
Yeap, your command did the trick. Now the last remaining problem is the use of the 2nd
If I completely omit the + the script seems to finish and I get the following output:
Does the output seem OK to you? Kind regards, |
The output is somewhat OK, the script has copied data to SD card and the card should be usable, but the script failed to extend Linux partition to occupy whole SD card. So, you got SD card with only 1.5GB of usable space regardless of actual card size. The "+" in the command tells sfdisk to extend partition. It looks like it is not supported by your version of sfdisk. There are other ways to do the same, but I don't know what is supported in Centos 7. |
Hi Eugene,
first of all congratulations on the massive work done in this repository. I was really glad when you posted this repo in the thread I had opened inside Xilinx's forum about RISC-V implementations.
I have a Genesys II board and I finally have time to start working with the designs provided in this repo too.
Unfortunately my current set-up is on a Centos 7 machine.
I believe I have solved all of the dependencies with respect to successfully generating a memory configuration file (
genesys2-riscv.mcs
) and a bitstream (riscv_wrapper.bit
) for my board.But I am having problems with generating and copying the Linux image on the SD card. I am running the
./mk-sd-card
command to create the image on the SD card. I am facing a problem with the following lines in the mk-sd-image file:The script aborts with the following output:
Searching about this, it has to do with fdisk being an older version than the one you are using to build inside Ubuntu.
The version inside Centos 7 doesn't support the
--no-tell-kernel
option.If I try to omit the
--no-tell-kernel
option from the command, the script aborts with the following:I have seen in #23 , that I should be getting at this point probably something like the following:
SD image device: /dev/loop#
So for whatever reason, the lines 38-64 do not seem to work in Centos, in terms of creating (?) the /dev/loop# :
When I am running the command
losetup -a
, I get the following output:I am using CentOS Linux release 7.9.2009 (Core).
Any ideas on how to overcome this issue and be able to create the image in the SD card, would be really helpful!
Thank you in advance for your response and time!
Feel free to ask if more information are needed.
Kind regards,
Nassos
P.S. I tried installing a newer version of the fdisk in Centos, but with no success due to several dependency issues.
The text was updated successfully, but these errors were encountered: