Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
const unsigned char scramble[256] =
{
0x00, 0xcc, 0xc1, 0xc2, 0xc3, 0xcd, 0xce, 0xcf, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb,
0x20, 0x2a, 0x2b, 0x2c, 0x2d, 0x24, 0x2e, 0x2f, 0x21, 0x22, 0x23, 0x25, 0x26, 0x27, 0x28, 0x29,
amixer controls > /contents/amixer.log
ls -R /dev/snd > /contents/snd.log
aplay -l > /contents/card.log
aplay -L >> /contents/card.log
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <getopt.h>
unsigned char vt_MUSIC_CR0_AC0_HDP_FR0_NC0[] =
{
0x33, 0x17, 0x17, 0x17, 0x17, 0x17, 0x17, 0x17, 0x17, 0x17,
Monitoring done by pid 21337
alsa monitor
+-hw:0
+-id: icxcodec
+-name: icx-codec
+-long name: sound codec (icx mixer)
+-mixer name: icx mixer
+-driver:
+-components:
+-hctl controls
# $UBIFS is ubifs image file
# make sure $IMAGE is a ubifs image file
blkid $(IMAGE)
$(IMAGE): ... TYPE="ubifs"
# size of created mtd is 256.0 MiB
modprobe nandsim first_id_byte=0x2c second_id_byte=0xda third_id_byte=0x90 fourth_id_byte=0x95
flash_erase /dev/mtd0 0 0
ubiformat /dev/mtd0 -s 2048 -O 2048
modprobe ubi
diff --git a/firmware/asm/mips/thread-mips32.c b/firmware/asm/mips/thread-mips32.c
index e754df7e29..664375d4e5 100644
--- a/firmware/asm/mips/thread-mips32.c
+++ b/firmware/asm/mips/thread-mips32.c
@@ -26,20 +26,20 @@
*---------------------------------------------------------------------------
*/
-void start_thread(void); /* Provide C access to ASM label */
-static void USED_ATTR _start_thread(void)
@echo off
set /p device= "Enter device drive (typically E: or F:) "
echo Device is %device%
set ofile= sonynwz_result.txt
scsitool-nwz-v19 %device% help_us > %ofile%
scsitool-nwz-v19 %device% get_dhp > %ofile%
scsitool-nwz-v19 %device% get_dnk_nvp_multi kas shp sps fmp pcd mid ctr fpi fur fvi ins lyr nvr prk rbt she sku ums ups clv pwd clg fni rnd mac >> %ofile%
echo Result has been written to %ofile%
diff --git a/apps/plugins/SUBDIRS b/apps/plugins/SUBDIRS
index c22977f..ed75631a 100644
--- a/apps/plugins/SUBDIRS
+++ b/apps/plugins/SUBDIRS
@@ -31,7 +31,7 @@ fft
#endif
chessbox
-fractals
+//fractals
extern int rand(void);
typedef long int32_t;
typedef unsigned long uint32_t;
typedef int32_t mad_fixed64hi_t;
typedef uint32_t mad_fixed64lo_t;
typedef int32_t mad_fixed_t;
int main()
{
test_mem figures: read/write/memset/memcpy in MB/s
NOTE: I modified the code so that the DRAM buffer has size 2^16*4 = 256 KiB
AUTO-SLOW ON, unboosted: 44 / 158 / 139 / 33
AUTO-SLOW ON, boosted: 115 / 336 / 328 / 66
AUTO-SLOW OFF, unboosted: 58 / 160 / 139 / 35
AUTO-SLOW OFF, boosted: 140 / 336 / 336 / 74
AUTO-SLOW OFF, HBUS@200Mhz, boosted: 147 / 355 / 345 / 75