{"id":17921544,"url":"https://github.com/theopolis/tpm-i2c-atmel","last_synced_at":"2025-03-24T01:32:30.478Z","repository":{"id":5651590,"uuid":"6860518","full_name":"theopolis/tpm-i2c-atmel","owner":"theopolis","description":"Linux Kernel Driver for Atmel's AT97SC3204T I2C TPM (for Beaglebone)","archived":false,"fork":false,"pushed_at":"2015-02-05T11:11:36.000Z","size":524,"stargazers_count":17,"open_issues_count":0,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-19T02:38:11.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theopolis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-26T05:54:55.000Z","updated_at":"2019-07-01T08:11:20.000Z","dependencies_parsed_at":"2022-09-09T22:10:43.119Z","dependency_job_id":null,"html_url":"https://github.com/theopolis/tpm-i2c-atmel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopolis%2Ftpm-i2c-atmel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopolis%2Ftpm-i2c-atmel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopolis%2Ftpm-i2c-atmel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopolis%2Ftpm-i2c-atmel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theopolis","download_url":"https://codeload.github.com/theopolis/tpm-i2c-atmel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245194504,"owners_count":20575766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T20:34:40.261Z","updated_at":"2025-03-24T01:32:28.427Z","avatar_url":"https://github.com/theopolis.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"ATMEL's AT97SC3204T I2C TPM\n==================================================\n\n*NOTE:* Support exists in mainline Linux now. \n\n## Instructions (Kernel):\n\nThe following few steps will add the I2C TPM as a tristate in `drivers/char/tpm`.\nYou will need to configure your board to include the TPM on the correct I2C bus. \nAtmel's I2C TPM has an address of 0x29. You can add: \n```cpp\n{ I2C_BOARD_INFO(\"tpm_i2c_atmel\", 0x29), }\n```\nto the `i2c_board_info` struct used by the I2C bus.\n\n0. Patch your system board to include `tpm_i2c_atmel` with the I2C bus and address of the TPM. \n1. Insert support for the TPM: `[tpm-i2c-atmel] $ bash ./patch_kernel.sh /kernel/source` \n   This moves the source into `drivers/char/tpm`, and adds support to Kconfig \u0026 Makefile.\n2. Add your preference for `CONFIG_TCG_TIS_I2C_ATMEL`.\n3. Compile your kernel.\n\n## Beaglebone (A5+) (Kernel):\n\nFor a BeagleBone, in addition to the above steps, there are two included patches\nto (1) enable the I2C-2 bus, and (2) add the I2C TPM at address 0x29 on I2C-2.\n\n0. Follow the above\n1. Apply patches: (for Linux 3.7, only patch `bb-ra5-add-tpm-i2c-atmel-3.7.patch`)\n```\n[kernel-dir] $ patch -p0 \u003c /tpm-i2c-atmel/patches/bb-ra5-add-i2c1.patch\n[kernel-dir] $ patch -p0 \u003c /tpm-i2c-atmel/patches/bb-ra5-add-tpm-i2c-atmel.patch\n```\n\n## Beaglebone (A5+) (Module):\n\nIf you would like the Atmel I2C TPM driver as a module built outside of the kernel\nyou can checkout the beaglebone branch and modify `tpm_i2c_atmel.`c to specify the \nI2C bus and address (though should not change).\n\n0. (Optional) Patch your `board-am335xevm.c` using `patches/bb-ra5-add-i2c1.patch`.\n   `[kernel-dir] $ patch -p0 \u003c /tpm-i2c-atmel/bb-ra5-add-i2c1.patch`\n   This will enable the I2C-2 bus. The BeagleBone SRM identifies I2C-2 for use with\n   peripherals. \n3. `git checkout -b beaglebone beaglebone`\n4. `KERNEL_DIR=/location CROSS_COMPILER=/location/bin/arm-linux- make`\n5. Copy the .ko to the BeagleBone: `insmod ./tpm_i2c_atmel.ko`\n\n## Other:\n\nThe TPM will need initialization; TrouSerS's tpm_tools can do this from userspace.\n\n0. `git clone git://trousers.git.sourceforge.net/gitroot/trousers/trousers`\n1. `git clone git://trousers.git.sourceforge.net/gitroot/trousers/tpm-tools`\n2. Follow the directions for both, tpm-tools depends on TrouSerS.\n3. `./tpm-tools/src/tpm_mgmt/tpm_startup`\n\n*Note:* newer versions of the Linux Kernel support TPM initialization and self test.\n  We expect U-boot to have issued a startup and self test, similar to platforms \n  implementing TPM in BIOS.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheopolis%2Ftpm-i2c-atmel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheopolis%2Ftpm-i2c-atmel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheopolis%2Ftpm-i2c-atmel/lists"}