- Main CPU: rk3368
- HW model and dts source: Rockchip PX5 EVB V11
- MCU: STM32F091vct6 (256 Kbytes of Flash memory and 32 Kbytes of SRAM) datsheet
0810 b' from ' | |
0678 b' ssh2' | |
00d8 b'%.48s:%.48s():%d (pid=%ld)\x00' | |
0708 b'%s' | |
0108 b'/usr/sbin/sshd\x00' | |
0870 b'Accepted password for ' | |
01a0 b'Accepted publickey for ' | |
0c40 b'BN_bin2bn\x00' | |
06d0 b'BN_bn2bin\x00' | |
0958 b'BN_dup\x00' |
#!/usr/bin/env python | |
r""" | |
This script can be used to fix the "exec format error" seen with tools like gzip in | |
WSL with Ubuntu 22.04 in Q1/Q2 2022 | |
A hacky fix for broken executables in WSL/Ubuntu 22.0 | |
see https://github.com/microsoft/WSL/issues/8219 | |
/* | |
Utility to dump and restore a 24c256 eeprom. | |
(Changing the defines it will work with other eeproms too.) | |
Remember that 24c256 has 16 bit addressing. | |
Smaller ones have 8 bit addressing. | |
By Zibri. |
#!/bin/sh | |
# Directory to store overlays in (one directory structure is created per overlay configured down below) | |
OVERLAY_BASE=/home/root/overlays | |
overlay() { | |
set -e | |
overlay_id="$(echo $1 | sed 's;/;__;g')" | |
unset TARGET SOURCE FSTYPE OPTIONS | |
eval $(findmnt -P $1) |
meta: | |
id: log2_int32 | |
title: Find the log base 2 of a 32-bit integer | |
license: CC0-1.0 | |
doc-ref: https://graphics.stanford.edu/~seander/bithacks.html#IntegerLog | |
# params: | |
# - id: val | |
# type: u4 | |
seq: | |
- id: log2 |
The microcontroller that I studied was removed from a Volkswagen car radio manufactured by Delco (now Delphi). The chip had only Delco markings on the package. It was decapsulated and the markings "NEC D78F0831Y" were found on the die. I reverse engineered the device definition files for the NEC toolchain (RA78K0) and determined that the uPD78F0831Y is a subset of a documented chip, the uPD78F0833Y. The '833Y adds 3 more timers, extended I2C functionality, and adds registers that allow firmware running on the '833Y to reprogram the flash ("self-programming"). Otherwise, the '831Y and '833Y are the same.
The uPD78F0831Y uses the NEC 78K0 core. Note that NEC (now Renesas) produced a number of incompatible cores with similar names such as 78K0S and 78K0R. Those
public void sendOutlookMail() throws Exception { | |
String toEmail = "[email protected]"; | |
String fromEmail = "[email protected]"; | |
//register the text/calendar mime type | |
MimetypesFileTypeMap mimetypes = (MimetypesFileTypeMap) MimetypesFileTypeMap.getDefaultFileTypeMap(); | |
mimetypes.addMimeTypes("text/calendar ics ICS"); |
#include <ctype.h> | |
#include <errno.h> | |
#include <stdarg.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/stat.h> | |
struct Archive |
//here is descriptors | |
//needs interrupt endpoint 1 in, bulk endpoint 2 out, bulk endpoint 3 in | |
//info from pl2303hx datasheet | |
/* Device Descriptor */ | |
const USB_DEVICE_DESCRIPTOR device_dsc= | |
{ | |
0x12, // Size of this descriptor in bytes | |
USB_DESCRIPTOR_DEVICE, // DEVICE descriptor type | |
0x0200, // USB Spec Release Number in BCD format |