The Binary Cheatsheet - GitHub Pages

Unifi Switch Boot Loop

Had 7 new 48-750 Unifi Switches installed yesterday. All adopted fine and were running. This morning, 3 of them (including one that been running fine for over a year) suddenly start boot looping. Tried power cyling, tried resetting, No luck. They all just boot with a few of the port lights on 24-48 on solid, the led flashing, and boot looping. Below is the console text.
U-Boot usw-v1.1.3.109-g90a2a80b (Nov 02 2016 - 20:22:35)
DEV ID= 0000db56 SKU ID = 0x8344 DDR type: DDR3 MEMC 0 DDR speed = 667MHz Validate Shmoo parameters stored in flash ..... OK Press Ctrl-C to run Shmoo ..... skipped Restoring Shmoo parameters from flash ..... done Running simple memory test ..... OK DDR Tune Completed DRAM: 256 MiB WARNING: Caches not enabled
soc_pcie_hw_init : port->reg_base = 0x18012000 , its value = 0x4 PCIe port 0 in RC mode
pos is 172 ==>PCIE: LINKSTA reg 0xbe val 0x1001
port 0 is not active!!
In: serial Out: serial Err: serial Unlocking L2 Cache ...Done arm_clk=400MHz, axi_clk=200MHz, apb_clk=50MHz, arm_periph_clk=200MHz Disabling outer cache Net: Board Net Initialization Failed No ethernet found. Hit any key to stop autoboot: 0 ubnt_bootsel_init: bootsel magic=a34de82b, bootsel = 1 UBNT application initialized Boot partition selected = 1 Loading Kernel Image @ 1000000, size = 15728640 Verifying 'kernel1' parition:OK

Booting kernel from Legacy Image at 01000000 ...

Image Name: Ubiquiti 3.7.51.6230 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 14582180 Bytes = 13.9 MiB Load Address: 00018000 Entry Point: 00018000 Verifying Checksum ... OK Loading Kernel Image ... OK OK boot_prep_linux commandline: console=ttyS0,115200 [email protected] [email protected] mtdparts=spi1.0:768k(u-boot),64k(u-boot-env),64k(shmoo),15360k(kernel0),15424k(kernel1),1024k(cfg),64k(EEPROM) ubntbootid=1
Starting kernel ...
Disabling outer cache [ 0.000000] Booting Linux on physical CPU 0 [ 0.000000] Linux version 3.6.5 ([email protected]) (gcc version 4.7.2 (GCC) ) #1 SMP Wed Mar 22 15:27:16 PDT 2017 [ 0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine: Broadcom iProc [ 0.000000] Memory policy: ECC disabled, Data cache writealloc [ 0.000000] BUG: mapping for 0x18000000 at 0xf0000000 out of vmalloc space [ 0.000000] BUG: mapping for 0x19000000 at 0xf1000000 out of vmalloc space [ 0.000000] PERCPU: Embedded 7 pages/cpu @c1c1c000 s6272 r8192 d14208 u32768 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 61952 [ 0.000000] Kernel command line: console=ttyS0,115200 [email protected] [email protected] mtdparts=spi1.0:768k(u-boot),64k(u-boot-env),64k(shmoo),15360k(kernel0),15424k(kernel1),1024k(cfg),64k(EEPROM) ubntbootid=1 ubootver=usw-v1.1.3.109-g90a2a80b [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Memory: 128MB 128MB = 256MB total [ 0.000000] Memory: 245580k/245580k available, 16564k reserved, 131072K highmem [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) [ 0.000000] vmalloc : 0xc8800000 - 0xf0000000 ( 632 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0018000 - 0xc0311fc0 (3048 kB) [ 0.000000] .init : 0xc0312000 - 0xc0dd6880 (11027 kB) [ 0.000000] .data : 0xc0dd8000 - 0xc0e00180 ( 161 kB) [ 0.000000] .bss : 0xc0e001a4 - 0xc0e12658 ( 74 kB) [ 0.000000] SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1. [ 0.000000] NR_IRQS:292 [ 0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms [ 0.010000] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216) [ 0.050000] pid_max: default: 4096 minimum: 301 [ 0.050000] Mount-cache hash table entries: 512 [ 0.050000] CPU: Testing write buffer coherency: ok [ 0.050000] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.050000] Setting up static identity map for 0x253330 - 0x253388 [ 0.050000] L310 cache controller enabled [ 0.050000] l2x0: 8 ways, CACHE_ID 0x410000c9, AUX_CTRL 0x0a120000, Cache size: 131072 B [ 0.050000] Brought up 1 CPUs [ 0.050000] SMP: Total of 1 processors activated (795.44 BogoMIPS). [ 0.050000] devtmpfs: initialized [ 0.060000] NET: Registered protocol family 16 [ 0.060000] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.060000] GENPLL[5] mdiv=40 rate=2000000000 [ 0.060000] Sel=1 Ovr=1 Div=48 [ 0.060000] UART clock rate 50000000 [ 0.080000] bio: create slab at 0 [ 0.080000] Switching to clocksource iproc_gtimer [ 0.080000] NET: Registered protocol family 2 [ 0.090000] TCP established hash table entries: 4096 (order: 3, 32768 bytes) [ 0.090000] TCP bind hash table entries: 4096 (order: 3, 32768 bytes) [ 0.090000] TCP: Hash tables configured (established 4096 bind 4096) [ 0.090000] TCP: reno registered [ 0.090000] UDP hash table entries: 128 (order: 0, 4096 bytes) [ 0.090000] UDP-Lite hash table entries: 128 (order: 0, 4096 bytes) [ 0.090000] NET: Registered protocol family 1 [ 14.240000] pm_init: Initializing Power Management .... [ 14.240000] iproc gpiochip add GPIOA [ 14.240000] GPIOA:ioaddr f0000060 [ 14.240000] GPIOA:intr_ioaddr f0000000 dmu_ioaddr (null) [ 14.490000] PCIE0: LINKSTA reg 0xbe val 0x1001 [ 14.490000] reg[0xac]=0x10, reg[0xae]=0x42, reg[0xb0]=0x8000, reg[0xb4]=0x2c10, reg[0xb6]=0x10, reg[0xb8]=0x5c12, reg[0xba]=0x65, reg[0xbe]=0x1001, reg[0xc6]=0x40, reg[0xca]=0x1, reg[0xd0]=0x1f, reg[0xd2]=0x8, reg[0xdc]=0x2, PCIE0 link=0 [ 14.840000] PCIe port 1 in End-Point mode - ignored [ 14.840000] Registering iproc_pmu_device [ 14.840000] bounce pool size: 64 pages [ 14.850000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 14.850000] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc. [ 14.860000] msgmni has been set to 223 [ 14.860000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254) [ 14.860000] io scheduler noop registered [ 14.860000] io scheduler deadline registered (default) [ 14.860000] io scheduler cfq registered [ 14.860000] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled [ 14.860000] serial8250.0: ttyS0 at MMIO 0x18000400 (irq = 123) is a 16550A [ 15.310000] console [ttyS0] enabled [ 15.310000] serial8250.0: ttyS1 at MMIO 0x18000300 (irq = 123) is a 16550A [ 15.340000] brd: module loaded [ 15.350000] loop: module loaded [ 15.360000] nbd: registered device at major 43 [ 15.380000] tun: Universal TUN/TAP device driver, 1.6 [ 15.390000] tun: (C) 1999-2004 Max Krasnyansky [email protected] [ 15.400000] TCP: cubic registered [ 15.400000] NET: Registered protocol family 10 [ 15.410000] sit: IPv6 over IPv4 tunneling driver [ 15.420000] NET: Registered protocol family 17 [ 15.420000] 8021q: 802.1Q VLAN Support v1.8 [ 15.430000] GENPLL[5] mdiv=40 rate=2000000000 [ 15.430000] qspi_iproc qspi_iproc.1: 1-lane output, 3-byte address [ 15.440000] m25p80 spi1.0: found mx25l25635e, expected m25p80 [ 15.450000] m25p80 spi1.0: mx25l25635e (32768 Kbytes) [ 15.450000] 7 cmdlinepart partitions found on MTD device spi1.0 [ 15.460000] Creating 7 MTD partitions on "spi1.0": [ 15.460000] 0x000000000000-0x0000000c0000 : "u-boot" [ 15.470000] 0x0000000c0000-0x0000000d0000 : "u-boot-env" [ 15.480000] 0x0000000d0000-0x0000000e0000 : "shmoo" [ 15.480000] 0x0000000e0000-0x000000fe0000 : "kernel0" [ 15.490000] 0x000000fe0000-0x000001ef0000 : "kernel1" [ 15.500000] 0x000001ef0000-0x000001ff0000 : "cfg" [ 15.510000] 0x000001ff0000-0x000002000000 : "EEPROM" [ 15.540000] Freeing init memory: 11024K [ 15.580000] ubnthal: module license 'Proprietary' taints kernel. [ 15.580000] Disabling lock debugging due to kernel taint [ 15.650000] gpiodev: reset_timeout=3 ...running /sbin/init init started: BusyBox v1.19.4 (2017-03-22 15:14:07 PDT) /bin/watchdog: invalid option -- m BusyBox v1.19.4 (2017-03-22 15:14:07 PDT) multi-call binary.
Usage: watchdog [-t N[ms]] [-T N[ms]] [-F] DEV
Periodically write to watchdog device DEV
 -T N Reboot after N seconds if not reset (default 60) -t N Reset every N seconds (default 30) -F Run in foreground 
Use 500ms to specify period in milliseconds
  • exec Restoring EEPROM data from ubnthal MAC: f0:9f:c2:0c:2c:a9 SyncDB Running... Validating the active image /dev/mtd4..."3.7.51.6230" Validating the backup image /dev/mtd3..."3.3.1.3458" DMA pool size: 4194304 AXI unit 0: Dev 0x8344, Rev 0x01, Chip BCM53344_A0, Driver BCM56150_A0 In hpcHardwareInit:236, could not find the board
    Configurator did not initialized... exiting
Reference platform resetting ... + exec The system is going down NOW! Sent SIGTERM to all processes Sent SIGKILL to all processes Requesting system reboot [ 35.980000] Disabling non-boot CPUs ... [ 35.980000] Restarting system.
Any Ideas? Is there a way to tftp boot these? The only documentation I found was for AP's.
submitted by pkroupa to Ubiquiti [link] [comments]

Adafruit Space Invader pendant. Want to convert to using a bicolor 1.2 led matrix. How would the code change?

 // Trinket/Gemma + LED matrix backpack jewelry. Plays animated // sequence on LED matrix. Press reset button to display again, // or add optional momentary button between pin #1 and +V. // THERE IS NO ANIMATION DATA IN THIS SOURCE FILE, you should // rarely need to change anything here. EDIT anim.h INSTEAD. #define BRIGHTNESS 14 // 0=min, 15=max #define I2C_ADDR 0x70 // Edit if backpack A0/A1 jumpers set #include  #include  #include  #include "anim2.h" // Animation data is located here #include "anim3.h" // Animation data is located here #include "anim4.h" // Animation data is located here static const uint8_t PROGMEM reorder[] = { // Column-reordering table 0x00,0x40,0x20,0x60,0x10,0x50,0x30,0x70,0x08,0x48,0x28,0x68,0x18,0x58,0x38,0x78, 0x04,0x44,0x24,0x64,0x14,0x54,0x34,0x74,0x0c,0x4c,0x2c,0x6c,0x1c,0x5c,0x3c,0x7c, 0x02,0x42,0x22,0x62,0x12,0x52,0x32,0x72,0x0a,0x4a,0x2a,0x6a,0x1a,0x5a,0x3a,0x7a, 0x06,0x46,0x26,0x66,0x16,0x56,0x36,0x76,0x0e,0x4e,0x2e,0x6e,0x1e,0x5e,0x3e,0x7e, 0x01,0x41,0x21,0x61,0x11,0x51,0x31,0x71,0x09,0x49,0x29,0x69,0x19,0x59,0x39,0x79, 0x05,0x45,0x25,0x65,0x15,0x55,0x35,0x75,0x0d,0x4d,0x2d,0x6d,0x1d,0x5d,0x3d,0x7d, 0x03,0x43,0x23,0x63,0x13,0x53,0x33,0x73,0x0b,0x4b,0x2b,0x6b,0x1b,0x5b,0x3b,0x7b, 0x07,0x47,0x27,0x67,0x17,0x57,0x37,0x77,0x0f,0x4f,0x2f,0x6f,0x1f,0x5f,0x3f,0x7f, 0x80,0xc0,0xa0,0xe0,0x90,0xd0,0xb0,0xf0,0x88,0xc8,0xa8,0xe8,0x98,0xd8,0xb8,0xf8, 0x84,0xc4,0xa4,0xe4,0x94,0xd4,0xb4,0xf4,0x8c,0xcc,0xac,0xec,0x9c,0xdc,0xbc,0xfc, 0x82,0xc2,0xa2,0xe2,0x92,0xd2,0xb2,0xf2,0x8a,0xca,0xaa,0xea,0x9a,0xda,0xba,0xfa, 0x86,0xc6,0xa6,0xe6,0x96,0xd6,0xb6,0xf6,0x8e,0xce,0xae,0xee,0x9e,0xde,0xbe,0xfe, 0x81,0xc1,0xa1,0xe1,0x91,0xd1,0xb1,0xf1,0x89,0xc9,0xa9,0xe9,0x99,0xd9,0xb9,0xf9, 0x85,0xc5,0xa5,0xe5,0x95,0xd5,0xb5,0xf5,0x8d,0xcd,0xad,0xed,0x9d,0xdd,0xbd,0xfd, 0x83,0xc3,0xa3,0xe3,0x93,0xd3,0xb3,0xf3,0x8b,0xcb,0xab,0xeb,0x9b,0xdb,0xbb,0xfb, 0x87,0xc7,0xa7,0xe7,0x97,0xd7,0xb7,0xf7,0x8f,0xcf,0xaf,0xef,0x9f,0xdf,0xbf,0xff }; int animationSection = 0; void ledCmd(uint8_t x) { // Issue command to LED backback driver Wire.beginTransmission(I2C_ADDR); Wire.write(x); Wire.endTransmission(); } void clear(void) { // Clear display buffer Wire.beginTransmission(I2C_ADDR); for(uint8_t i=0; i<17; i++) Wire.write(0); Wire.endTransmission(); } void setup() { power_timer1_disable(); // Disable unused peripherals power_adc_disable(); // to save power PCMSK |= _BV(PCINT1); // Set change mask for pin 1 Wire.begin(); // I2C init clear(); // Blank display ledCmd(0x21); // Turn on oscillator ledCmd(0xE0 | BRIGHTNESS); // Set brightness ledCmd(0x81); // Display on, no blink } uint8_t rep = REPS; void loop() { switch (animationSection) { case 0: for(int i=0; i 10) { animationSection = 0; } if(!--rep) { // If last cycle... ledCmd(0x20); // LED matrix in standby mode // GIMSK = _BV(PCIE); // Enable pin change interrupt // power_all_disable(); // All peripherals off // set_sleep_mode(SLEEP_MODE_PWR_DOWN); // sleep_enable(); // sei(); // Keep interrupts disabled // sleep_mode(); // Power down CPU (pin 1 will wake) // Execution resumes here on wake. // PLD - Simply Sleep for 2 minutes then start again... //delay(100000); //delay(100000); delay(120000); animationSection = 0; GIMSK = 0; // Disable pin change interrupt rep = REPS; // Reset animation counter power_timer0_enable(); // Re-enable timer power_usi_enable(); // Re-enable USI Wire.begin(); // Re-init I2C clear(); // Blank display ledCmd(0x21); // Re-enable matrix } } ISR(PCINT0_vect) {} // Button tap 
This is a section of the anim file. I want to be able to set the various colors in these "frames"
// Animation data for Trinket/Gemma + LED matrix backpack jewelry. // Edit this file to change the animation; it's unlikely you'll need // to edit the source code. #define REPS 10 // Number of times to repeat the animation loop (1-255) const int frameSpeed2 = 3; const uint8_t PROGMEM anim2[] = { // Animation bitmaps. Each frame of animation MUST contain // 8 lines of graphics data (there is no error checking for // length). Each line should be prefixed with the letter 'B', // followed by exactly 8 binary digits (0 or 1), no more, // no less (again, no error checking). '0' represents an // 'off' pixel, '1' an 'on' pixel. End line with a comma. B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, frameSpeed2, // 0.10 seconds }; 
submitted by pldiguanaman to arduino [link] [comments]

my_bin2.bin: 0x42 0x42 0x42 0x42 0x42 0x42 0x42 0x42 0x42 0x42 (represents 10 characters "B") The next step is to modify the linker configuration file (.ld) in order to specify input file format and path to the binary files (see the line 14-17) The binary probably imports the C runtime (which we can tell from MSVCR120.dll), and it was probably compiled with Visual Studio 2013–information we can glean off the 120 version number in the .dll. It looks like the binary calls printf, but we can’t really infer much more. Dumpbin 0x42 Binary Options Get link; Facebook; Twitter; Pinterest; Email; Other Apps; October 08, 2017 Nov. 5. 0x42 Binario Options Create and Destroy Options Pointers ... Example: To enable modes 6 & 1 only the mask value is set to hex 0x42 or binary 01000010 if mask is set to <= 0 then default will be 0xCF which is what prior versions of Compressonator used. int CMP_CDECL SetMaskBC6 (void * options, unsigned int mask); int CMP_CDECL SetMaskBC7 (void * options, unsigned char mask); Decoder Channel Mapping¶ The channel ... Sinopsis 0x42 Binary. Windows error 0x42 Binary muncul sebagai operasi komputer Anda yang sering Membuka program akan menjadi lambat dan me... 0x42/blog 0 My notes about development ... and not only it. 0x42/emacs 0 0x42/fire 0 0x42/hi 0 0x42/kvstore 0 tenderpro. 0x42/sites_craw 0 parser js . 0x42/soap 0 Make it easy to use SOAP from Erlang. rbkmoney/moneypenny-proto 0 Mobile number portability ... Binary is the purest representation of data on computers, but it isn’t easy to understand what the data represents. How do we get from binary to other values? Representation. Many typed programming languages have datatypes like integers, floats, strings, etc. These datatypes tell the computer how to interpret binary data. Instead of modifying ... The binary numeral system uses the number 2 as its base (radix). As a base-2 numeral system, it consists of only two numbers: 0 and 1. While it has been applied in ancient Egypt, China and India for different purposes, the binary system has become the language of electronics and computers in the modern world. This is the most efficient system to detect an electric signal’s off (0) and on (1 ... During this research all modification of the ScreenOS binary to construct the trojaned version was hand crafted assembly inserted via hex editing the binary firmware. 1. First Bite [ Delivery ] Unlike loading a firmware over a serial console at boot time, the checksum and size fields in the header are checked when images are loaded over the network via TFTP or the Web interface 00000000 ...

[index] [13361] [11517] [16357] [16958] [16558] [6965] [6100] [27010] [8231] [6763]

https://binaryoptiontrade.invisoftbaharmist.ml