LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-17-2016, 06:14 AM   #1
ayyasprings
Member
 
Registered: Aug 2014
Posts: 118

Rep: Reputation: Disabled
How does the file linux-2.6.32.2/arch/arm/boot/compressed/head.S packed as the entry point of kernel image?


In the main Makefile of kernel source including the architecture specific Makefile was included by the line
include $(srctree)/arch/$(SRCARCH)/Makefile

And how does the Makefile in other directories were invoked/parsed to build vmlinux object file from their corresponding directories'
source files, for example in case of arm architecture, the directories like
1)linux-2.6.32.2/arch/arm/kernel
2)linux-2.6.32.2/arch/arm/boot
3)linux-2.6.32.2/arch/arm/boot/compressed and so and so?
I could not locate the lines responsible for that in main Makefile.

And how it was ensured so that the file linux-2.6.32.2/arch/arm/boot/compressed/head.o packed as the first file in the kernel image memory layout in case zImage was the target?

In other words, how the linker script file linux-2.6.32.2/arch/arm/boot/compressed/vmlinux.lds.in ensured to be called in appropriate order to make start function in linux-2.6.32.2/arch/arm/boot/compressed/head.S to be the entry point of kernel image?

Please reply!
 
Old 12-18-2016, 01:02 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
why the 2.6 kernel ?
it is getting rather OLD

this also sounds a bit like a homework question

as to makefiles
are you used to working with m4 and autotools to make a configure script to make the makefiles
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux/arch/arm/kernel/head.S jaysh Linux - Software 1 06-15-2012 04:33 AM
linux/arch/arm/kernel/head.S jaysh Linux - Kernel 1 06-11-2012 07:40 AM
Error when compiling kernel at arch/x86/boot/compressed/misc.c ronzo Linux - Kernel 0 03-29-2009 11:04 AM
Loading Suse Linux 9.0 loads to the point of ramdisk:Compressed image found at block0 todd1234 Linux - Newbie 7 02-24-2004 06:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration