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/