{"id":21440776,"url":"https://github.com/boolivar/pijoy","last_synced_at":"2025-10-04T17:54:03.929Z","repository":{"id":31885676,"uuid":"35454364","full_name":"boolivar/pijoy","owner":"boolivar","description":"Sega megadrive gamepad driver for raspberry pi gpio","archived":false,"fork":false,"pushed_at":"2020-12-10T10:47:46.000Z","size":23,"stargazers_count":11,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T16:48:00.499Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boolivar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-11T22:53:03.000Z","updated_at":"2020-12-10T10:47:49.000Z","dependencies_parsed_at":"2022-09-10T16:20:55.314Z","dependency_job_id":null,"html_url":"https://github.com/boolivar/pijoy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/boolivar/pijoy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolivar%2Fpijoy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolivar%2Fpijoy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolivar%2Fpijoy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolivar%2Fpijoy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boolivar","download_url":"https://codeload.github.com/boolivar/pijoy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolivar%2Fpijoy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266026176,"owners_count":23866030,"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-11-23T01:18:33.451Z","updated_at":"2025-10-04T17:53:58.854Z","avatar_url":"https://github.com/boolivar.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pijoy\nSega megadrive gamepad driver for raspberry pi gpio\n\n1. Get running kernel sources\n  * find pi firmware git hash:\n  ```bash\n  zcat /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz | head\n  ```\n  * find pi kernel sources git hash:\n  ```\n  firmware/extra/git_hash\n  ```\n  * get pi kernel sources\n  * setup KERNEL_SRC environment variable:\n  ```bash\n  export KERNEL_SRC={path-to-kernel-sources}\n  ```\n  * get Module.symvers from firmware repo:\n  ```bash\n  cp firmware/extra/Module.symvers ${KERNEL_SRC}\n  ```\n2. Get running kernel config\n  * ensure configs module running:\n  ```bash\n  modprobe configs\n  ```\n  * get running kernel config:\n  ```bash\n  zcat /proc/config.gz \u003e ${KERNEL_SRC}/.config\n  ```\n3. Setup compiler tools\n  * setup CCPREFIX environment variable:\n  ```bash\n  export CCPREFIX=/{tools-path}/arm-bcm2708/{compiler-path}/bin/arm-linux-gnueabihf-\n  ```\n  * prepare kernel sources:\n  ```bash\n  make ARCH=arm CROSS_COMPILE=${CCPREFIX} oldconfig\n  make ARCH=arm CROSS_COMPILE=${CCPREFIX} modules_prepare\n  ```\n4. Build module\n  * run make within pijoy module directory:\n  ```bash\n  make ARCH=arm CROSS_COMPILE=${CCPREFIX} -C ${KERNEL_SRC} M=$(pwd)\n  ```\n5. Upload and run compiled module\n  * upload module to pi:\n  ```bash\n  scp pijoy.ko pi@raspberry:/home/pi/\n  ```\n  * install module on pi:\n  ```bash\n  mv /home/pi/pijoy.ko /lib/modules/$(uname -r)/\n  ```\n  * load module on pi:\n  ```bash\n  modprobe pijoy dev1=0,6\n  ```\n\n## Links\n---\n\n[Building pi kernel](http://elinux.org/Raspberry_Pi_Kernel_Compilation)\n\n### Github\n\n[Pi compiler tools](https://github.com/raspberrypi/tools)\n\n[Pi kernel sources](https://github.com/raspberrypi/linux)\n\n[Pi firmware (kernel+modules) builds](https://github.com/raspberrypi/firmware)\n\n[rpi-update tool for easy firmware update](https://github.com/Hexxeh/rpi-update)\n\n[Pi firmware mirror used by rpi-update tool](https://github.com/Hexxeh/rpi-firmware)\n\n[rpi-source utility that installs the kernel source](https://github.com/notro/rpi-source)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboolivar%2Fpijoy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboolivar%2Fpijoy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboolivar%2Fpijoy/lists"}