Changing start address of kernel protected mode image

From: Alexander Simon (al.simon_at_t-online.de)
Date: 03/25/04


Date: Thu, 25 Mar 2004 09:34:27 +0100

I have bought an old Toshiba Laptop with broken RAM onboard.
First memory errors occur at about 2,3M.
When kernel starts, the system reboots after "Ok, now starting", so i
supposed the kernel is uncompressed in that area.
Thus I've been looking at the sources and found that the protected mode
image is uncompressed to 1M.
I changed the address 0x100000 in arch/i386/boot/compressed/misc.c:309,
arch/i386/boot/compressed/head.S:77, arch/i386/vmlinux.lds:9 to 0x200000
for testing.
Now the uncompress routine should uncompress a low loaded kernel to
0x200000 and jump to this address. But it even fails on working RAM. The
System reboots after "Ok, now starting".
I now that i maybe have to patch page tables later when I got the kernel
itself working.
I want to exclude the first 32M with the BadRAM patch cause it is really
*very* broken (even memtest86 crashes).

What did I forget?
Any hints?

Alex



Relevant Pages

  • Re: moving RH9 to a different computer
    ... > The GRUB comes up but no matter which version of kernel I choose, ... > screen goes blank for a few seconds and the system reboots. ...
    (comp.os.linux.misc)
  • Re: Need fixing of a rebooting system
    ... This was a bz2 based kernel. ... the system reboots. ... >Please verify your processor type in the configuration. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: [PATCHv3 1/3] x86: use ELF format in compressed images.
    ... i put all drivers needed in kernel. ... bootloader copy bzImage to memory ... buffer to do uncompress on possiton. ... I think you will have a hard time measuring the time ...
    (Linux-Kernel)
  • 2.6.22-rc1 does not boot on VIA C3_2 cause of X86_CMPXCHG64
    ... It even does not uncompress the kernel. ... solution for me, cahnge arch/i386/Kconfig.cpu ... config X86_CMPXCHG64 ...
    (Linux-Kernel)
  • Re: Promise SATA 300 TX4
    ... A kernel made before this gives no errors, and a kernel make right after ... For this server I have 3 disks in a graid3 (so no ZFS but the errors ... recover (usually FreeBSD panic's enough so the system reboots by ...
    (freebsd-current)