On Wed, Feb 21, 2018 at 6:41 AM, Pavel Dovgalyuk <dovga...@ispras.ru> wrote: >> From: Ciro Santilli [mailto:ciro.santi...@gmail.com] >> On Tue, Feb 20, 2018 at 9:46 AM, Pavel Dovgalyuk <dovga...@ispras.ru> wrote: >> > >> > Updated the branch on github. >> > You may try it. >> >> At 8a482834780a131e7747c1c3c1931379ed0beedc ARM initrd record runs, >> but replay is getting stuck at: >> >> [ 12.120424] scsi host0: sym-2.2.3 >> >> Neighboring lines on record: >> >> [ 11.346357] sym53c8xx 0000:00:0c.0: enabling device (0100 -> 0103) >> [ 11.536683] sym0: <895a> rev 0x0 at pci 0000:00:0c.0 irq 66 >> [ 11.731679] sym0: No NVRAM, ID 7, Fast-40, LVD, parity checking >> [ 11.930599] sym0: SCSI BUS has been reset. >> [ 12.120424] scsi host0: sym-2.2.3 >> [ 15.451809] scsi 0:0:2:0: CD-ROM QEMU QEMU CD-ROM >> 2.5+ PQ: 0 ANSI: 5 >> [ 15.847227] scsi target0:0:2: tagged command queuing enabled, >> command queue depth 16. >> [ 16.256585] scsi target0:0:2: Beginning Domain Validation >> [ 16.482189] scsi target0:0:2: Domain Validation skipping write tests >> [ 16.699445] scsi target0:0:2: Ending Domain Validation >> >> My QEMU command: >> >> time ./buildroot/output.arm~/host/usr/bin/qemu-system-arm -M >> versatilepb -append 'root=/dev/sda nokaslr norandmaps >> printk.devkmsg=on printk.time=y - lkmc_eval="/rand_check.out;wget -S >> google.com;/poweroff.out;"' >> -kernel ./buildroot/output.arm~/images/zImage -dtb >> ./buildroot/output.arm~/images/versatile-pb.dtb -nographic -initrd >> ./buildroot/output.arm~/images/rootfs.cpio -netdev user,id=net1 >> -device rtl8139,netdev=net1 >> -object filter-replay,id=replay,netdev=net1 >> >> What is your full QEMU command? > > I used your previous command and encountered kernel panic in guest. > What is rootfs.cpio file? Is it the renamed rootfs.ext2 from your images.zip? >
rootfs.cpio is the cpio version of rootfs.ext2, both should represent the same filesystem in different serialized formats. I've added it to this updated zip: https://github.com/cirosantilli/linux-kernel-module-cheat/releases/download/test-replay-arm/images2.zip The previous .zip didn't have the .cpio, then I later made Buildroot generate it as well to try out the -initrd method. I'm using this branch for my testing: https://github.com/cirosantilli/linux-kernel-module-cheat/tree/rr with "./build -a arm && ./recarm" >> Also I think the patch to fix qmeu-img was not included in the branch. > > Forgot about it. Now it should be ok. > > > Pavel Dovgalyuk >