Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android kernel version name

I have successfully build Gingerbread 2.3.4 for beagleboard xM rev C. Now i want to check Linux kernel version name inside a script which runs after the init.rc. In linux we can find the same using the command uname -r. But it is not found in android kernel. can somebody help me with some sample script to do the same.

like image 907
upv Avatar asked Jan 17 '12 12:01

upv


2 Answers

There is a version file in the /proc directory. Try cat /proc/version in a shell and it should display informations about your kernel.

like image 108
Dyonisos Avatar answered Sep 29 '22 00:09

Dyonisos


If your phone is rooted and BusyBox is installed then uname -r should work.

enter image description here

like image 40
Aniket Thakur Avatar answered Sep 29 '22 02:09

Aniket Thakur