Skip to content

Missing target_core_iblock module #2956

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

Closed
BrandonStudio opened this issue May 21, 2025 · 15 comments · Fixed by #2968
Closed

Missing target_core_iblock module #2956

BrandonStudio opened this issue May 21, 2025 · 15 comments · Fixed by #2968

Comments

@BrandonStudio
Copy link
Contributor

BrandonStudio commented May 21, 2025

Device Information | 设备信息

  • SOC: s905

Armbian Version | 系统版本

  • Kernel Version: 5.15.182
  • Release: Noble

Describe the bug | 问题描述

Missing target_core_iblock module

❯ modprobe target_core_iblock
modprobe: FATAL: Module target_core_iblock not found in directory /lib/modules/5.15.182-ophub

How could I compile it?

@BrandonStudio
Copy link
Contributor Author

BrandonStudio commented May 22, 2025

Copilot suggests this:

# CONFIG_TCM_IBLOCK is not set

@ophub
Copy link
Owner

ophub commented May 22, 2025

# CONFIG_TCM_IBLOCK is not set
# CONFIG_TCM_FILEIO is not set
# CONFIG_TCM_PSCSI is not set

Maybe these items are related, you can customize and enable these options for compilation. If the test is normal, you can submit your modified config for merging.

@BrandonStudio
Copy link
Contributor Author

Is there a test CI? Do I need to run on my device to test?

@ophub
Copy link
Owner

ophub commented May 22, 2025

@BrandonStudio
Copy link
Contributor Author

I don't see anything related to "custom option" or "test" in the compile-kernel doc

Could you please give me a detailed instruction? For example, the specific argument name.
Also, could this be done in GitHub Action?

@ophub
Copy link
Owner

ophub commented May 22, 2025

@BrandonStudio
Copy link
Contributor Author

That page still doesn't mention anything about "test"

Image

What exactly do you mean by "test" in

If the test is normal, you can submit your modified config for merging.

? Do I just need to compile it?

@ophub
Copy link
Owner

ophub commented May 22, 2025

Image

you need to compile it

@BrandonStudio
Copy link
Contributor Author

@ophub
Copy link
Owner

ophub commented May 23, 2025

@BrandonStudio
Copy link
Contributor Author

Workflow had completed successfully, see https://github.com/BrandonStudio-CITest/amlogic-s9xxx-armbian/actions/runs/15181379238/job/42704923149

Compilatoin completed, see https://github.com/BrandonStudio-CITest/amlogic-s9xxx-armbian/actions/runs/15181379238/job/42691363043

The compilation had succeeded even in the first attempt. It just failed when creating release

@ophub
Copy link
Owner

ophub commented May 23, 2025

See the document I sent you to solve the problem of failure

@BrandonStudio
Copy link
Contributor Author

I can't see a failure

Image

@BrandonStudio
Copy link
Contributor Author

BrandonStudio commented May 23, 2025

I think I know what you mean now

❯ depmod -a
❯ modprobe target_core_iblock
❯ targetcli
targetcli shell version 2.1.53
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.

/backstores/fileio> /backstores/block create name=archive dev=/dev/disk/by-label/Archive
Created block storage object archive using /dev/disk/by-label/Archive.
❯ lsmod | grep target_core
target_core_iblock     24576  2
target_core_mod       307200  6 target_core_iblock,iscsi_target_mod

I'm still not sure whether target_core_file and target_core_pscsi are needed

@ophub
Copy link
Owner

ophub commented May 23, 2025

It can be used normally without adding

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 a pull request may close this issue.

2 participants