Hello.
I need help to load Linux kernel with rootfs via LAVA (2017.2) job.
My job definition fails with kernel panic "provide correct 'root=' option": === device_type: x86 job_name: x86-pipeline
timeouts: job: minutes: 15 action: minutes: 5 actions: bootloader-action: minutes: 5 bootloader-retry: minutes: 5 bootloader-interrupt: minutes: 5 extract-nfsrootfs: seconds: 90 priority: medium visibility: public
metadata: source: https://git.linaro.org/lava-team/refactoring.git path: ipxe.yaml
actions: - deploy: timeout: minutes: 2 modules_compression: xz to: tftp kernel: url: http://192.168.0.1:8000/x86-64/bzImage ramdisk: url: http://192.168.0.1:8000/x86-64/rootfs.cpio.gz compression: gz os: debian
- boot: method: ipxe commands: ramdisk prompts: - 'root@debian:~#' - '/ #'
- test: timeout: minutes: 5 definitions: - repository: git://git.linaro.org/qa/test-definitions.git from: git path: ubuntu/smoke-tests-basic.yaml name: smoke-tests - repository: http://git.linaro.org/lava-team/lava-functional-tests.git from: git path: lava-test-shell/single-node/singlenode03.yaml name: singlenode-advanced ===
After then I have added kernel boot options (after metadata section) which lead to "Failed to load file: rootfs.cpio.gz" from iPXE: === context: extra_kernel_args: initrd=/rootfs.cpio.gz root=/dev/ram0 ===
But at the same time I could successfully load it manual from iPXE console: === iPXE> dhcp net0 Configuring (net0 7c:05:07:0d:37:c9)...... ok
iPXE> set console console=ttyS0,115200n8 lava_mac={LAVA_MAC}
iPXE> set extraargs initrd=/rootfs.cpio root=/dev/ram0 ip=dhcp
iPXE> kernel http://192.168.0.1:8000/x86-64/bzImage ${extraargs} ${console} http://192.168.0.1:8000/x86-64/bzImage... ok
iPXE> initrd http://192.168.0.1:8000/x86-64/rootfs.cpio http://192.168.0.1:8000/x86-64/rootfs.cpio... ok
iPXE> imgstat bzImage : 6762544 bytes [EFI] [SELECTED] "initrd=/rootfs.cpio root=/dev/ram0 ip=dhcp console=ttyS0,115200n8 lava_mac={LAVA_MAC}" rootfs.cpio : 43977216 bytes
iPXE> boot ===
Best regards Sergey Kovalev.
On 27 March 2017 at 13:50, Ковалёв Сергей SKovalev@ptsecurity.com wrote:
Hello.
I need help to load Linux kernel with rootfs via LAVA (2017.2) job.
My job definition fails with kernel panic “provide correct ‘root=’ option”:
That could actually be a problem with the supplied kernel and/or initramfs if you get a kernel panic without any job context variables being set.
Compare with: https://staging.validation.linaro.org/scheduler/job/168802
Parsed boot commands: dhcp net0; set console console=ttyS0,115200n8 lava_mac={LAVA_MAC}; set extraargs ip=dhcp; kernel tftp://10.3.2.1/168802/tftp-deploy-WglOvx/kernel/vmlinuz-3.10-rc7-amd64 ${extraargs} ${console}; initrd tftp://10.3.2.1/168802/tftp-deploy-WglOvx/ramdisk/ramdisk.cpio.gz; boot
https://staging.validation.linaro.org/scheduler/job/168802/definition
You can also try these images for Debian Stretch:
https://staging.validation.linaro.org/scheduler/job/168680
kernel: url: http://192.168.0.1:8000/x86-64/bzImage ramdisk: url: http://192.168.0.1:8000/x86-64/rootfs.cpio.gz compression: gz
First step is to replace these files with images which work on the x86 DUT on staging.validation.linaro.org
After then I have added kernel boot options (after metadata section) which lead to “Failed to load file: rootfs.cpio.gz” from iPXE:
===
context:
extra_kernel_args: initrd=/rootfs.cpio.gz root=/dev/ram0
===
That just isn't going to work. The initrd needs to come via TFTP but this is an absolute path.
On 27 March 2017 at 14:17, Neil Williams neil.williams@linaro.org wrote:
On 27 March 2017 at 13:50, Ковалёв Сергей SKovalev@ptsecurity.com wrote:
Hello.
I need help to load Linux kernel with rootfs via LAVA (2017.2) job.
My job definition fails with kernel panic “provide correct ‘root=’ option”:
That could actually be a problem with the supplied kernel and/or initramfs if you get a kernel panic without any job context variables being set.
Compare with: https://staging.validation.linaro.org/scheduler/job/168802
Parsed boot commands: dhcp net0; set console console=ttyS0,115200n8 lava_mac={LAVA_MAC}; set extraargs ip=dhcp; kernel tftp://10.3.2.1/168802/tftp-deploy-WglOvx/kernel/vmlinuz-3.10-rc7-amd64 ${extraargs} ${console}; initrd tftp://10.3.2.1/168802/tftp-deploy-WglOvx/ramdisk/ramdisk.cpio.gz; boot
https://staging.validation.linaro.org/scheduler/job/168802/definition
You can also try these images for Debian Stretch:
Example job just as a ramdisk: https://staging.validation.linaro.org/scheduler/job/168807
kernel: url: http://192.168.0.1:8000/x86-64/bzImage ramdisk: url: http://192.168.0.1:8000/x86-64/rootfs.cpio.gz compression: gz
First step is to replace these files with images which work on the x86 DUT on staging.validation.linaro.org
After then I have added kernel boot options (after metadata section) which lead to “Failed to load file: rootfs.cpio.gz” from iPXE:
===
context:
extra_kernel_args: initrd=/rootfs.cpio.gz root=/dev/ram0
===
That just isn't going to work. The initrd needs to come via TFTP but this is an absolute path.
--
Neil Williams
neil.williams@linaro.org http://www.linux.codehelp.co.uk/