Skip to contentSkip to conversation

Booting uncompressed kernel image

DISCUSSION Matteo Fortini 2 participants 3 messages Jan 26, 2009 – Jan 27, 2009

lore
Share & tools
lore
#0 lore raw

Hi all,
I built an uncompressed uImage using mkimage --no-gzip -C none in the wrapper scripts.

Only, u-boot recognizes it as uncompressed and launches the kernel properly (it's around 4MB), but in the end linux just prints OK
and stops.

Has anyone done the same?

Thanks ,
Matteo

#1 lore raw

Dear Matteo Fortini,

Quoted 3 lines · In message <[email protected]> you wrote:

I built an uncompressed uImage using mkimage --no-gzip -C none in the wrapper scripts.

Hm... you must be using a funny version of mkimage, then. The cod in mainline will bail out on "--no-gzip".

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
If I can have honesty, it's easier to overlook mistakes.
	-- Kirk, "Space Seed", stardate 3141.9
#2 lore raw

You're right,
to be precise, the --no-gzip option was given to the wrapper script, the option I gave to mkimage was -C none.

The change in the wrapper script was adding:
case "$platform" in
ubootraw)
rm -f "$ofile"
mkimage -A ppc -O linux -T kernel -C none -a 00000000 -e 00000000 \
$uboot_version -d "$vmz" "$ofile"
if [ -z "$cacheit" ]; then
rm -f "$vmz"
fi
exit 0
;;
esac

and I called wrapper as
./arch/powerpc/boot/wrapper -c -o arch/powerpc/boot/uImage -p ubootraw -C "powerpc-e300c3-linux-gnu-" --no-gzip vmlinux

Anyway, I'll check the solution given by Luotao, thanks!

Regards,
Matteo

Wolfgang Denk ha scritto:

Quoted 15 lines

Dear Matteo Fortini,

Quoted 2 lines · In message <[email protected]> you wrote:

I built an uncompressed uImage using mkimage --no-gzip -C none in the wrapper scripts.

Hm... you must be using a funny version of mkimage, then. The cod in mainline will bail out on "--no-gzip".

Best regards,

Wolfgang Denk