FORUMS

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

732 posts
Thanks Meter: 389
 
Post Reply Subscribe to Thread Email Thread
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.
 
 
21st June 2014, 06:37 PM |#2  
Senior Member
Thanks Meter: 638
 
Donate to Me
More
Quote:
Originally Posted by rqmok

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
22nd June 2014, 03:37 AM |#3  
rqmok's Avatar
OP Senior Member
Flag Adelaide
Thanks Meter: 389
 
Donate to Me
More
Quote:
Originally Posted by es0tericcha0s

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:
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.
Post Reply Subscribe to Thread

Tags
3.4, kernel, linux, number, serial

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes