Messages in this thread | | | Date | Sat, 02 Jul 2005 00:18:51 +0200 | From | Ondrej Zary <> | Subject | Re: Booting uncompressed kernel image on i386? |
| |
Wakko Warner wrote: > Ondrej Zary wrote: > >>Nobody answered, time to look at the code :-) >>The attached patch is a quick hack so "make" will create uncompressed >>kernel that can be booted in regular way. > > >>--- linux-2.6.12-printserver/arch/i386/boot/compressed/misc.c 2005-06-17 21:48:29.000000000 +0200 >>+++ linux-2.6.12-pentium/arch/i386/boot/compressed/misc.c 2005-07-01 23:34:55.000000000 +0200 >>@@ -374,7 +374,15 @@ >> >> makecrc(); >> putstr("Uncompressing Linux... "); > > > Would it not make sense to remove the above line? You're not actually > uncompressing anything. > It would but I kept it there for debugging (to see where it crashed :-) Anyway, I'd like to add new target "make uImage" (or something like that) but that requires more work. Something like this might be interesting for embedded systems which want to minimalize boot time.
>>- gunzip(); >>+ int i; >>+ for (i = 0; i < input_len / WSIZE; i++) { >>+ memcpy(window, input_data+i*WSIZE, WSIZE); >>+ outcnt = WSIZE; >>+ flush_window(); >>+ } >>+ memcpy(window, input_data+i*WSIZE, input_len % WSIZE); >>+ outcnt = input_len % WSIZE; >>+ flush_window(); >> putstr("Ok, booting the kernel.\n"); >> if (high_loaded) close_output_buffer_if_we_run_high(mv); >> return high_loaded; > >
-- Ondrej Zary - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |