Re: [tip:x86/boot] x86/boot: Early parse RSDP and save it in boot_params

From: Chao Fan
Date: Mon Feb 11 2019 - 08:03:22 EST


On Mon, Feb 11, 2019 at 11:08:00AM +0100, Borislav Petkov wrote:
>On Mon, Feb 11, 2019 at 05:30:33PM +0800, Chao Fan wrote:
>> Yes, I download your ovmf file in linux-build-test/rootfs/firmware/ from
>> your link. There are two files, efi32 and efi64. Then I try to run:
>
>You need both OVMF-pure-efi-32.fd and rootfs.squashfs from the repo. And
>then this works here. Just put the script below and the two files in a
>directory and point to the kernel where you're building with -kernel.
>
>---
>#!/bin/bash
>
>qemu-system-x86_64 -kernel ~/kernel/linux/arch/x86/boot/bzImage -M q35 -cpu SandyBridge \
> -no-reboot -snapshot -smp 1 \
> -gdb tcp::1235 \
> -bios OVMF-pure-efi-32.fd \
> -m 1G \
> -net nic,model=rtl8139,macaddr=12:34:56:78:12:34 \
> -usb -device usb-storage,drive=d0 \
> -drive file=rootfs.squashfs,if=none,id=d0,format=raw \
> --append 'earlycon=uart8250,io,0x3f8,9600n8 root=/dev/sda rootwait panic=-1 earlyprintk=ttyS0,115200,keep console=ttyS0,115200' \
> -monitor pty \
> -serial file:log
>
>I've added some options for debugging.

So many thanks!
Since I learn much about how to debug kernel code before
start_kernel(). I only tried to debug code after start_kernel().
Seems you can debug the code in compressed code.

Thanks,
Chao Fan
>
>--
>Regards/Gruss,
> Boris.
>
>SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
>
>