matthieu_in_hk
Posts: 14
Joined: Sun Feb 08, 2015 6:31 am

kernel.img and kernel7.img?

Sat Feb 21, 2015 3:03 am

Hello,

On my /boot partition I have 2 files named kernel*.img.
How can I know which one i'm currently running ? (I need to delete the other one for space reasons):
Thanks for your help. Under my config.txt and the $ ls -ls /boot

Cheers,
Mat

Code: Select all

pi@rp /boot $ more config.txt |grep kernel
kernel=linux-3.12.y
pi@rp /boot $ ls -ls
total 17752
   8 -rwxr-xr-x 1 root root    4379 Feb 20 19:03 bcm2708-rpi-b.dtb
   8 -rwxr-xr-x 1 root root    4658 Feb 20 19:03 bcm2708-rpi-b-plus.dtb
   8 -rwxr-xr-x 1 root root    5622 Feb 20 19:03 bcm2709-rpi-2-b.dtb
  24 -rwxr-xr-x 1 root root   17856 Feb 20 19:03 bootcode.bin
   8 -rwxr-xr-x 1 root root     120 Dec 21 19:14 cmdline.txt
   8 -rwxr-xr-x 1 root root    1486 Feb 20 17:13 config.txt
  24 -rwxr-xr-x 1 root root   18693 Feb 20 18:09 COPYING.linux
   8 -rwxr-xr-x 1 root root     256 Feb 13 20:02 edid.dat
   8 -rwxr-xr-x 1 root root    2354 Feb 20 19:03 fixup_cd.dat
   8 -rwxr-xr-x 1 root root    6144 Feb 20 19:03 fixup.dat
  16 -rwxr-xr-x 1 root root    9196 Feb 20 19:03 fixup_x.dat
   8 -rwxr-xr-x 1 root root     137 Dec 24 20:29 issue.txt
3880 -rwxr-xr-x 1 root root 3969768 Feb 20 19:03 kernel7.img
3904 -rwxr-xr-x 1 root root 3996668 Feb 20 19:03 kernel.img
   8 -rwxr-xr-x 1 root root    1447 Feb 20 18:09 LICENCE.broadcom
  24 -rwxr-xr-x 1 root root   18974 Sep 26  2013 LICENSE.oracle
3144 -rwxr-xr-x 1 root root 3217152 Jan 30 07:52 linux-3.12.y
   8 drwxr-xr-x 2 root root    8192 Feb 20 19:03 overlays
 544 -rwxr-xr-x 1 root root  555672 Feb 20 19:03 start_cd.elf
2584 -rwxr-xr-x 1 root root 2643544 Feb 20 19:03 start.elf
3520 -rwxr-xr-x 1 root root 3600424 Feb 20 19:03 start_x.elf

User avatar
AndyD
Posts: 2334
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: kernel.img and kernel7.img?

Sat Feb 21, 2015 3:07 am

If you are using a Pi 2, the kernel will be kernel7.img, if you are using any other Raspberry Pi it will use kernel.img.

matthieu_in_hk
Posts: 14
Joined: Sun Feb 08, 2015 6:31 am

Re: kernel.img and kernel7.img?

Sat Feb 21, 2015 4:23 am

Ok, thanks for the clarification.
I have a RPI B+, so I can erase the kernel7.img ?

Thanks,
Mat

User avatar
rpdom
Posts: 17205
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: kernel.img and kernel7.img?

Sat Feb 21, 2015 6:34 am

Yes.

User avatar
DougieLawson
Posts: 39183
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: kernel.img and kernel7.img?

Sat Feb 21, 2015 7:41 am

You can also trash that 3.12.y kernel you've got in there.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
ragnarjensen
Posts: 333
Joined: Wed May 15, 2013 6:13 pm
Location: Stockholm, Sweden
Contact: Website

Re: kernel.img and kernel7.img?

Sun Feb 22, 2015 4:10 pm

According to this
matthieu_in_hk wrote:

Code: Select all

pi@rp /boot $ more config.txt |grep kernel
kernel=linux-3.12.y
you're not running either of the kernel*.img files, but the linux-3.12.y file.
--
Ragnar

Me5000
Posts: 9
Joined: Fri Nov 17, 2017 12:30 pm

Re: kernel.img and kernel7.img?

Mon Dec 25, 2017 6:15 pm

Does the Raspberry Pi Zero W use kernel7.img or kernel.img?

User avatar
DougieLawson
Posts: 39183
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: kernel.img and kernel7.img?

Mon Dec 25, 2017 6:44 pm

Me5000 wrote:
Mon Dec 25, 2017 6:15 pm
Does the Raspberry Pi Zero W use kernel7.img or kernel.img?
kernel.img is used by RPi 1B, 1A, A+, B+, 2B (first version) Z, Z (with camera), ZW, CM1

kernel7.img is used by the RPi2B2, RPi3B, CM3 and CM3L.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

codedoo
Posts: 3
Joined: Fri Dec 29, 2017 11:40 pm

Re: kernel.img and kernel7.img?

Mon Jan 01, 2018 6:29 pm

Hi,
that's strange :roll: because I put 3 files in my sd for booting a bare metal Pi zero hello world (only a blink led to say hello):
bootcode.bin
kernel7.img
start.elf

Files bootcode.bin and start.elf come from raspberry firmware, while kernel.7.img is created by me using this code :
https://github.com/cirosantilli/raspber ... 91e13fd764

The code from the github example is for Pi 2, but works in my Pi Zero too.

(Thank you guys for this topic, very very interesting )

Regards

Leonardo

Return to “Raspberry Pi OS”