Skip to content

Instantly share code, notes, and snippets.

options:
parameters:
author: paul
catch_exceptions: 'True'
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: ''
description: ''
gen_cmake: 'On'
[ 5.251588] Btrfs loaded, crc32c=crc32c-intel
[ 5.454897] sd 5:0:0:0: [sdc] 2012160 512-byte logical blocks: (1.03 GB/983 MiB)
[ 5.456103] sd 5:0:0:0: [sdc] Write Protect is off
[ 5.456110] sd 5:0:0:0: [sdc] Mode Sense: 03 00 00 00
[ 5.457205] sd 5:0:0:0: [sdc] No Caching mode page found
[ 5.457217] sd 5:0:0:0: [sdc] Assuming drive cache: write through
[ 5.475817] sdc: sdc1
[ 5.480320] sd 5:0:0:0: [sdc] Attached SCSI removable disk
[ 5.908899] sr 0:0:1:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=0s
[ 5.908909] sr 0:0:1:0: [sr0] tag#0 Sense Key : Not Ready [current]
Linux version 5.12.0-rc1-opendingux-00102-g500660ddcf4e (paul@frank) (mipsel-linux-gcc.br_real (Buildroot 2020.11-220-gbeaf138c38) 10.2.0, GNU ld (GNU Binutils) 2.34) #1989 Wed Mar 3 22:00:48 WET 2021
CPU0 revision is: 2ed1024f (Ingenic XBurst)
FPU revision is: 00330000
MIPS: machine is GCW Zero Prototype
cma: Reserved 16 MiB at 0x00c00000
Primary instruction cache 16kB, VIVT, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 4-way, linesize 128 bytes.
Zone ranges:
Normal [mem 0x0000000000000000-0x000000000fffffff]
#include <stdint.h>
typedef uint32_t u32;
static u32 palette[256];
void c8_to_yuv(const u32 *src, u32 *dst_y, unsigned int w, unsigned int h)
{
unsigned int i, line, col;
u32 *dst_u = dst_y + 1 * (w * h) / 4;
// SPDX-License-Identifier: GPL-2.0
/dts-v1/;
#include "rg350.dts"
/ {
compatible = "ylm,rg280m", "ingenic,jz4770";
model = "Anbernic RG-280M";
spi {
#!/usr/bin/env python3
# Lesspass git-credential helper
import argparse
from subprocess import run
def main():
parser = argparse.ArgumentParser()
parser.add_argument('site', action="store", type=str,
text data bss dec hex filename
410730 350 0 411080 645c8 ./net/mac80211/mac80211.o
367964 7649 3728 379341 5c9cd ./drivers/staging/rtl8188eu/r8188eu.o
230612 8356 8448 247416 3c678 ./tools/perf/tests/perf-in.o
169150 105 1168 170423 299b7 ./net/wireless/nl80211.o
157312 484 144 157940 268f4 ./tools/perf/libtraceevent-in.o
145336 321 1248 146905 23dd9 ./drivers/media/v4l2-core/videodev.o
137268 65308 0 202576 31750 ./net/wireless/trace.o
126810 48108 512 175430 2ad46 ./fs/ext4/super.o
#!/usr/bin/env python
from sys import argv
def get_char_id(charname):
id_names = [
'Viridia',
'Greennill',
'Skyly',
'Bluefull',
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 895ca88..a2e4054 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -378,7 +378,7 @@ void CenterCamera(char override) {
int xStoppingDistance = 0; // How much distance it will take for the camera to come to
// a complete stop if it starts slowing down now.
- for (uint i = abs(static_cast<uint>(cameraXVel)); i > 0; i--) {
+ for (uint i = abs(static_cast<int>(cameraXVel)); i > 0; i--) {
opendingux:/media/sdcard/testing/glmark2_fbdev # unlockvt ; ./glmark2-es2-fbdev --off-screen
No graphic tty found.
Options::size: 800x600
fbdev_display succesful
Kernel: Vivante GPL kernel driver 4.6.6.1381
Physical address of internal memory: 00000000
* Video memory:
Internal physical: 0x00000000
Internal size: 0x00000000
External physical: 00000000