Skip to contentSkip to conversation

question : difference between booting 2.4 and 2.6 kernel

U-Boot-Users Tomko 2 participants 6 messages Jun 27, 2005 – Jun 28, 2005

lore
Share & tools
lore

Tomko

author
#0 lore raw

Hi all,

I would like to modify the uboot so that it could boot up 2.4 and 2.6 kernel without downloading the u boot again . what i know the difference is : 2.6 kernel know how to copy itself to memory but 2.4 do not and need bootloader to do it. Am i right ? How can i do this inorder to make it more convinent ?

Regards,
TOM

#1 lore raw
Quoted 3 lines · In message <[email protected]> you wrote:

I would like to modify the uboot so that it could boot up 2.4 and 2.6 kernel without downloading the u boot again . what i know the difference

There is absolutely no need to modify U-Boot for this purpose. It can boot many different operating systems and different Linux kernel versions without any code changes.

Quoted 3 lines

is : 2.6 kernel know how to copy itself to memory but 2.4 do not and need bootloader to do it. Am i right ? How can i do this inorder to make it more convinent ?

No, you are wrong. There are absolutely no changes needed.

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Oh, that sound of male ego.  You travel halfway across the galaxy and
it's still the same song.
	-- Eve McHuron, "Mudd's Women", stardate 1330.1
author
#2 lore raw
Quoted 14 lines · Wolfgang Denk
Quoted 4 lines · In message <[email protected]> you wrote:

I would like to modify the uboot so that it could boot up 2.4 and 2.6 kernel without downloading the u boot again . what i know the difference

There is absolutely no need to modify U-Boot for this purpose. It can boot many different operating systems and different Linux kernel versions without any code changes.

Quoted 10 lines
Quoted 5 lines

is : 2.6 kernel know how to copy itself to memory but 2.4 do not and need bootloader to do it. Am i right ? How can i do this inorder to make it more convinent ?

No, you are wrong. There are absolutely no changes needed.

In general, do you mean both kernel should know how to copy itself to memory and the bootloader don't need to handle this ?

Quoted 6 lines

Best regards,

Wolfgang Denk

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

In general, do you mean both kernel should know how to copy itself to memory and the bootloader don't need to handle this ?

No, the kernel has nothing to do with any copying or uncompressing etc. All this is done by U-Boot - no matter which kernel version or which architecture.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"A witty saying proves nothing."                           - Voltaire
author
#4 lore raw
Quoted 14 lines · Wolfgang Denk
Quoted 4 lines · In message <[email protected]> you wrote:

In general, do you mean both kernel should know how to copy itself to memory and the bootloader don't need to handle this ?

No, the kernel has nothing to do with any copying or uncompressing etc. All this is done by U-Boot - no matter which kernel version or which architecture.

Sorry , can you tell me where is the code of copying the kernel ? I suppose it will be in the file lib_arm/armlinux.c but i failed. Can you tell me which file contain the code ?

Regards,
TOM

Quoted 6 lines

Best regards,

Wolfgang Denk

#5 lore raw
Quoted 4 lines · In message <[email protected]> you wrote:

Sorry , can you tell me where is the code of copying the kernel ? I suppose it will be in the file lib_arm/armlinux.c but i failed. Can you tell me which file contain the code ?

See common/cmd_bootm.c:do_bootm()

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Those who will be able to conquer software will be able  to  conquer
the world."                 - Tadahiro Sekimoto, president, NEC Corp.