Skip to content

Commit

Permalink
CPU info for Raspberry Pi 4B (#33)
Browse files Browse the repository at this point in the history
* CPU info for Raspberry Pi 4B
* Use fake Raspberry Pi serial
  • Loading branch information
chetbox authored Mar 10, 2022
1 parent 4589ce4 commit 8c7afbd
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/test-cpu_info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,18 @@ jobs:
run: |
grep -c "CPU architecture: 8" cpuinfo.txt
grep -c 6769746875620002 cpuinfo.txt
test_4b:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./ # pguyot/arm-runner-action@HEAD
with:
cpu_info: cpuinfo/raspberrypi_4b
bind_mount_repository: true
cpu: cortex-a53
commands: |
cat /proc/cpuinfo > cpuinfo.txt
- name: Test content of cpuinfo
run: |
grep -c "CPU architecture: 8" cpuinfo.txt
grep -c 676974687562004b cpuinfo.txt
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ used to trick them. The path is relative to the action (to use pre-defined
settings) or to the local repository.

Bundled with the action are the following files:
- `cpuinfo/raspberrypi_4b`
- `cpuinfo/raspberrypi_3b` (with a 32 bits system)
- `cpuinfo/raspberrypi_zero_w`
- `cpuinfo/raspberrypi_zero2_w` (with a 32 bits system)
Expand Down
40 changes: 40 additions & 0 deletions cpuinfo/raspberrypi_4b
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

Hardware : BCM2835
Revision : b03112
Serial : 676974687562004b
Model : Raspberry Pi 4 Model B Rev 1.2

0 comments on commit 8c7afbd

Please sign in to comment.