Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <stdlib.h>
#include <libusb.h>
#include <assert.h>
#include <stdbool.h>
#include <string.h>
#include <time.h>
#include "usb_test_def.h"
libusb_context *ctx;
cat ../www/buildserver/builds | grep sim | awk 'BEGIN { FS=":"; } { system("rm -rf build && mkdir build && cd build && "$7 " -j9 && make install && xvfb-run ./rockboxui && cp simdisk/*.bmp ../builtin-2048/ && cd .. && rm -rf build"); }'
#!/bin/sh
# The updater script on the NWZ has a major bug/feature:
# it does NOT clear the update flag if the update scrit fails
# thus causing a update/reboot loop and a bricked device
# always clear to make sure we don't end up being screwed
nvpflag fup 0xFFFFFFFF
lcdmsg -c -f /usr/local/bin/font_08x12.bmp -l 0,10 "I want to be Rockbox'ed"
sleep 1
start end comment
00000000 00001000 eMMC miniboot
00001000 00040000 U-Boot
00040000 01040000 FU Kernel image
00040000 0036f600 FU Kernel
0036f600 00b6f600 FU initrd
01040000 ???????? NVP
010bc000 ???????? F/W kernel ?
Bus 001 Device 006: ID 046d:0a0b Logitech, Inc. ClearChat Pro USB
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
#
# Automatically generated file; DO NOT EDIT.
# Crosstool-NG Configuration
#
CT_CONFIGURE_has_xz=y
CT_CONFIGURE_has_svn=y
CT_MODULES=y
#
# Paths and misc options
Notes on sony-arm-linux:
- to ease debugging, the config file tells ct-ng to save state so that build can be
restarted on failure
- because of some weirdness in the tools that come with the kernel, you need
to have the 32-bit (i386) version of your SYSTEM headers (ie the host your
are compiling with), on Debian that's:
* linux-libc-dev:i386
* libgcc-dev:i386 OR libgcc-5-dev:i386 OR libgcc-6-dev:i386 (choose the one that matches your system gcc version)
* gcc-multilib
- you might need to play with LIBRARY_PATH to tell it to consider the 32-bit libraries
#!/bin/sh
# The updater script on the NWZ has a major bug/feature:
# it does NOT clear the update flag if the update scrit fails
# thus causing a update/reboot loop and a bricked device
# always clear to make sure we don't end up being screwed
nvpflag fup 0xFFFFFFFF
lcdmsg -c -f /usr/local/bin/font_08x12.bmp -l 0,10 "Rockbox me please !"
sleep 1
#if defined(SANSA_FUZEPLUS)
static enum boot_t boot_decision(enum context_t context)
{
return BOOT_ROCK;
/* if volume down is hold, boot to OF */
if(!read_gpio(1, 30))
return BOOT_OF;
/* on normal boot, make sure power button is hold long enough */
if(context == CONTEXT_NORMAL)
{
--
-- Shangling M2
--
M2 = {}
-- call with nil to get automatic name
function M2.dump_ipl(file)
if file == nil then
file = "shangling_m2_ipl.bin"
end