Post Reply

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

OP rqmok

21st June 2014, 12:24 PM   |  #1  
rqmok's Avatar
OP Senior Member
Flag Adelaide
Thanks Meter: 358
 
675 posts
Join Date:Joined: Sep 2012
Donate to Me
More
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: 562
 
2,935 posts
Join Date:Joined: May 2010
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: 358
 
675 posts
Join Date:Joined: Sep 2012
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
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Q&A, Help & Troubleshooting by ThreadRank