Skip to content

Instantly share code, notes, and snippets.

@kassane
Last active October 28, 2023 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kassane/ca669fc22efe6fc2c053cbc909600d60 to your computer and use it in GitHub Desktop.
Save kassane/ca669fc22efe6fc2c053cbc909600d60 to your computer and use it in GitHub Desktop.
Hello Linux on Mipsel - Zig version
root@OpenWrt:~# /tmp/hello-zig
Zig Info:
Version: 0.12.0-dev.1297+a9e66ed73
Stage: stage2_llvm
Let's have a look at your shiny MIPS - mips32 system! :)
cpuinfo:
system type : MediaTek MT7628AN ver:1 eco:2
machine : TP-Link TL-WR840N v4
processor : 0
cpu model : MIPS 24KEc V5.5
BogoMIPS : 385.84
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa : mips1 mips2 mips32r1 mips32r2
ASEs implemented : mips16 dsp
Options implemented : tlb 4kex 4k_cache prefetch mcheck ejtag llsc pindexed_dcache userlocal vint perf_cntr_intr_bit perf
shadow register sets : 1
kscratch registers : 0
package : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available
meminfo:
MemTotal: 57620 kB
MemFree: 30300 kB
MemAvailable: 24084 kB
cmdline:
console=ttyS0,115200 rootfstype=squashfs,jffs2
kernel:
Linux OpenWrt 5.10.138 #0 Sat Sep 3 02:55:34 2022 mips GNU/Linux
@kassane
Copy link
Author

kassane commented Aug 30, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment