Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,742,912 Members 40,011 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Get serial number of hTC device in 3.4 Linux Kernel?

Tip us?
 
rqmok
Old
#1  
rqmok's Avatar
Senior Member - OP
Thanks Meter 349
Posts: 669
Join Date: Sep 2012
Location: Adelaide

 
DONATE TO ME
Default [Q] Get serial number of hTC device in 3.4 Linux Kernel?

Hi there.

As you might know, I am trying to build 3.4 kernel for the hTC Incredible S VIVO.

The original ICS kernel for this device uses some methods to get the board's serial number that I cannot understand.

If someone knows how to get the serial number of a hTC device then please explain it to me.

Thank You.
Phone: Samsung Galaxy S II GT-I9100T (Vodafone AU)
ROM: Ehndroix (always the latest version)

Xperia Style ROM for Huawei U8800
CyanogenMod 10 ROM for Huawei U8800

Github
Twitter
 
es0tericcha0s
Old
#2  
Senior Member
Thanks Meter 461
Posts: 2,368
Join Date: May 2010

 
DONATE TO ME
Quote:
Originally Posted by rqmok View Post
Hi there.

As you might know, I am trying to build 3.4 kernel for the hTC Incredible S VIVO.

The original ICS kernel for this device uses some methods to get the board's serial number that I cannot understand.

If someone knows how to get the serial number of a hTC device then please explain it to me.

Thank You.
In bootloader / fastboot mode:

fastboot getvar all
Need some help, advice, something fixed? Hit me up on Hangouts @ es0tericcha0s and check out my site: http://mobilemojo5280.com for more info!


HTC Droid Eris / Motorola Droid / Samsung Galaxy S Fascinate / Motorola Droid X / LG G2x / HTC Evo 3D (x2) / Samsung Epic 4G Touch (Sprint S2) / HTC Amaze / Samsung Galaxy S3 (International) / Samsung Galaxy Note 2 / Nexus 4 / HTC One / Samsung Galaxy S4 / Sony Xperia ZL / Nexus 5 / ? (One+1 maybe...)
 
rqmok
Old
#3  
rqmok's Avatar
Senior Member - OP
Thanks Meter 349
Posts: 669
Join Date: Sep 2012
Location: Adelaide

 
DONATE TO ME
Quote:
Originally Posted by es0tericcha0s View Post
In bootloader / fastboot mode:

fastboot getvar all
Thank You for the response but I am actually trying to find out how to implement the serial number in the kernel. In the original hTC Incredible S kernel, the following is used in the board file:

Code:
Select Code
static int _init board_serialno_setup(char *serialno)
{
            android_usb_pdata.serial_number = serialno;
            return 1;
}
__setup("androidboot.serialno=", board_serialno_setup);
But, I don't understand where the integer gets char *serialno from. Does the bootloader pass this to the kernel? If yes, how can I catch this char when it is sent to the kernel?

Thanks.
Phone: Samsung Galaxy S II GT-I9100T (Vodafone AU)
ROM: Ehndroix (always the latest version)

Xperia Style ROM for Huawei U8800
CyanogenMod 10 ROM for Huawei U8800

Github
Twitter
Tags
3.4, kernel, linux, number, serial
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes