Bug 11337 - [ANCK] [6.6] [Dev] Kernel panic if no initrd with defconfig on LoongArch
Summary: [ANCK] [6.6] [Dev] Kernel panic if no initrd with defconfig on LoongArch
Status: RESOLVED FIXED
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: ARCH(unspecified) (show other bugs) ARCH(unspecified)
Version: unspecified
Hardware: loongarch Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: zhangjing
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-15 11:34 UTC by yangtiezhu
Modified: 2024-10-23 10:04 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yangtiezhu loongson_group 2024-10-15 11:34:48 UTC
Description of problem:

In the current code, if the rootfs is located on a SCSI (or NVME) device
and root=/dev/sda3 (or root=/dev/nvme0n1p3) is specified as boot option,
kernel boots failed with CONFIG_BLK_DEV_SD=m (or CONFIG_BLK_DEV_NVME=m)
when there is no initrd with defconfig.


Version-Release number of selected component (if applicable):

6.6.52


How reproducible:

use defconfig to build and update kernel, kernel boots failed if there is no initrd.


Steps to Reproduce:
1. build
2. update
3. boot

Actual results:

  /dev/root: Can't open blockdev
  VFS: Cannot open root device "/dev/sda3" or unknown-block(0,0): error -6

  /dev/root: Can't open blockdev
  VFS: Cannot open root device "/dev/nvme0n1p3" or unknown-block(0,0): error -6

Expected results:

boot normally

Additional info:

none
Comment 1 小龙 admin 2024-10-15 13:23:54 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3981
Comment 2 yangtiezhu loongson_group 2024-10-23 10:04:10 UTC
https://gitee.com/anolis/cloud-kernel/pulls/3981
has been merged.