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

Riscv #1460

Merged
merged 4 commits into from
Oct 26, 2022
Merged

Riscv #1460

merged 4 commits into from
Oct 26, 2022

Conversation

montjoie
Copy link
Contributor

@montjoie montjoie commented Oct 4, 2022

This pull request add support for having a riscV debian rootfs.

Copy link
Contributor

@khilman khilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a duplicate of: https://github.com/kernelci/kernelci-core/pull/1401
Maybe you should rebase on my PR

Copy link
Contributor

@khilman khilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a duplicate of: #1398

montjoie and others added 4 commits October 7, 2022 07:32
Current version of systemd depends on libfdisk.
This imply that future debian version will be unusuable if built and
then cleaned of libfdisk.
I hit this problem while working on having a RISCV debian rootfs based
on sid.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
When running kci_rootfs from a freshly built kernelci/debos docker, I got:
/kci_rootfs --arch riscv64 -h
Traceback (most recent call last):
  File "/kernelci-core/./kci_rootfs", line 23, in <module>
    import kernelci.rootfs
  File "/kernelci-core/kernelci/rootfs.py", line 20, in <module>
    from kernelci.storage import upload_files
  File "/kernelci-core/kernelci/storage.py", line 19, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'

./kci_rootfs --arch riscv64
Traceback (most recent call last):
  File "/kernelci-core/./kci_rootfs", line 24, in <module>
    import kernelci.config.rootfs
  File "/kernelci-core/kernelci/config/__init__.py", line 20, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'

So lets adds missing python package.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
This reverts commit 496880b.

Debian support for riscv64 is not available in bullseye, but is in
sid/debian-ports.

Signed-off-by: Kevin Hilman <khilman@baylibre.com>
In newer versions of debian, the update-initramfs script checks the
kernel config (via /boot/config-<kernel version>) in order to
determine how to compress the initial ramdisk.  Without a valid kernel
config entry, update-initramfs will refuse to generate an initramfs.

KernelCI tooling is expecting gzip compressed ramdisk for the "min"
ramdisk, so convince update-initramfs to use gzip by creating dummy
kernel config for the "min" kernel before running update-initramfs.

Tested with a riscv64-sid rootfs, and it generates a working ramdisk
that can then pivot_root to a full debian rootfs.

Signed-off-by: Kevin Hilman <khilman@baylibre.com>
@khilman
Copy link
Contributor

khilman commented Oct 12, 2022

@mgalka can you have a look at this and let us know what else is needed to get sid-based rootfs generation going for riscv?

1 similar comment
@khilman
Copy link
Contributor

khilman commented Oct 12, 2022

@mgalka can you have a look at this and let us know what else is needed to get sid-based rootfs generation going for riscv?

@khilman
Copy link
Contributor

khilman commented Oct 12, 2022

FYI @atishp04

@mgalka
Copy link

mgalka commented Oct 26, 2022

Rootfs build OK on staging.
https://bot.staging.kernelci.org/job/rootfs-builder/465

@mgalka mgalka merged commit 560741f into kernelci:main Oct 26, 2022
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

Successfully merging this pull request may close these issues.

None yet

3 participants