Spaces:
Sleeping
Sleeping
File size: 3,337 Bytes
6c7b14a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
Ticket Name: Linux/TDA2: How to get the serial number of the chip of tda2x Query Text: Part Number: TDA2 Tool/software: Linux How to get the serial number of the chip of tda2x Responses: Hi, shuai wang32, Please refer to 1.5 TDA2x Device Identification section in Technical Reference Manual. Regards, Mariya Hi, Please refer to Table 1-2. DIE_ID in the device TRM. Although not explicitly stated, I think DIE_ID is a unique die ID identificator. Regards, Stan Hi Stan I'm going to use the only chip ID to encrypt it. Table 1-2. DIE_ID Is it appropriate? shuai Hi Shuai, Yes this is correct. Regards, Rishabh HI Rishabh: HOW CAN I get the DIE_ID number on A15 in linux! unsigned int chipid[4]; chipid[0]=STD_FUSE_DIE_ID_0; chipid[1]=STD_FUSE_DIE_ID_1; chipid[2]=STD_FUSE_DIE_ID_2; chipid[3]=STD_FUSE_DIE_ID_3; printf("chipid[0]=%d ,chipid[1]=%d,chipid[2]=%d,chipid[3]=%d\n",chipid[0],chipid[1],chipid[2],chipid[3]); chains_main.c:142:12: error: 'STD_FUSE_DIE_ID_1' undeclared (first use in this function) Hi Shuai, These are registers in the Control Module. Search for CTRL_WKUP_STD_FUSE_DIE_ID_0(0x4AE0 C200) in Control Module chapter in TRM. Regards, Rishabh Hi You will not be able to just access the device physical registers on Linux Linux uses a full fledged MMU to ensure isolation between Kernel and user mode access Accessing device register from an User application is typically not allowed unless you are writing a user space driver for a peripheral If it is for some debug you can use tools such as omapconf( github.com/.../wiki) to temporarily map the device registers and read/write to it I have a A15 algorithm link needs to be encrypted and used for users, I want to use chip ID to correspond to encrypted files, so how do I get the chip ID in the A15's algorithm LINK? In this way, I can verify whether the chip ID matches the encrypted file. Hi Are you suggesting that you would like to use the chip ID as an input for the encryption process - is the encryption based on the chip id itself or a device unique key Hi Sriram based on the chip id itself ! BESTwishes shuai Using a emulator can look at the register of ID , also read Physical Address, but canot read Physical Address in code of linux. ****** Segmentation fault caught .... Faulty address is 0x4ae0c200, called from 0xb6c4d1a9 Totally Obtained 0 stack frames. signal number =11 Signal number = 11, Signal errno = 0 SI code = 1 (Address not mapped to object) Fault addr = 0x4ae0c200 [bt] Execution path: Hi Can you clarify where will you need to read the chip id from If it is from user space, you have to resort to one of the following 1. Read from RTOS(on M4) , pass this information as part of IPC to application on A15 2. On A15 Use tool like omapconf and some scripting to pass this information to your application 3. Emulate ompaconf type mapping from a custom driver to map and read the device id information Hi:Sriram i want to read chip id on A15 algorithm link ! Hi:Sriram On A15 Use tool like omapconf is there any sample or document for guide ! shuai Hi For omapconf usage refer wiki link : github.com/.../wiki Hi Shuai, We haven't heard back from you, I'm assuming you were able to resolve your issue. If not, just post a reply below (or create a new thread if the thread has locked due to time-out). Regards, Yordan |