This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux Image Name

Hi,

I wanted to know something about Linux Image Name at boot up.

I cloned the Linux Kernel from

http://arago-project.org/git/projects

I have recently been developing the kernel and now have at boot up something like this

## Booting kernel from Legacy Image at 80000000 ...                                                                  
   Image Name:   Linux-2.6.37-00004-g986c437                                                                         
   Image Type:   ARM Linux Kernel Image (uncompressed)                                                               
   Data Size:    3028528 Bytes = 2.9 MiB                                                                             
   Load Address: 80008000                                                                                            
   Entry Point:  80008000                                                                                            
   Verifying Checksum ... OK                                                                                 
   Loading Kernel Image ...

I can see the Image Name being Linux-2.6.37-00004-g986c437, from my understanding I can see that

a.                  2.6.37  is the version in the makefile.

b.                  00004 is the fourth commit

c.                   g986c437 is the current head.

I can also see that the Makefile reads kernel version from Kernel.release

The question I have is how does the version in kernel.release get generated and how can I make it custom. Plus how do I remove the  extra stuff after 2.6.37

Thanks in advance.

Ali

  • Hi Ali,

    You can modify the kernel print (append with kernel version) name in menuconfig option.

    make menuconfig ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-

    General setup  --->

    (Test_Titus) Local version - append to kernel release

    Ex:

    Bytes transferred = 2494152 (260ec8 hex)
    ## Booting kernel from Legacy Image at c0700000 ...
       Image Name:   Linux-3.3.0_Test_Titus
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2494088 Bytes = 2.4 MiB
       Load Address: c0008000
       Entry Point:  c0008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    root@omapl138-lcdk:/# uname -a
    Linux omapl138-lcdk 3.3.0_Test_Titus #14 PREEMPT Thu Jul 17 15:15:22 IST 2014 armv5tejl unknown
    root@omapl138-lcdk:/#

  • Hi Titus,


    I have tried that to no avail. This is what I get.

    Linux-2.6.37-00004-g986c437-dirt

    dirt is for the reason because its not committed to the server but 0004 and g986c437 I can not renove. Not sure if this is the problem but could it be that the image is build with lots of DEBUG in defconfig file which might require the image to be build as release version but I am not sure how...?

    Regards

  • Problem solved when committed to derver. No going to bother with GIT head in Image name as I think it will help in tracking

  • Hi Ali,

    Thanks for your update.