I've moved the journal and code for fungen to the Pico Code Project on GitHub.
| // Copyright 2019 Google LLC. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| // Author: Anton Mikhailov | |
| // The look-up tables contains 256 entries. Each entry is a an sRGB triplet. | |
| float turbo_srgb_floats[256][3] = {{0.18995,0.07176,0.23217},{0.19483,0.08339,0.26149},{0.19956,0.09498,0.29024},{0.20415,0.10652,0.31844},{0.20860,0.11802,0.34607},{0.21291,0.12947,0.37314},{0.21708,0.14087,0.39964},{0.22111,0.15223,0.42558},{0.22500,0.16354,0.45096},{0.22875,0.17481,0.47578},{0.23236,0.18603,0.50004},{0.23582,0.19720,0.52373},{0.23915,0.20833,0.54686},{0.24234,0.21941,0.56942},{0.24539,0.23044,0.59142},{0.24830,0.24143,0.61286},{0.25107,0.25237,0.63374},{0.25369,0.26327,0.65406},{0.25618,0.27412,0.67381},{0.25853,0.28492,0.69300},{0.26074,0.29568,0.71162},{0.26280,0.30639,0.72968},{0.26473,0.31706,0.74718},{0.26652,0.32768,0.76412},{0.26816,0.33825,0.78050},{0.26967,0.34878,0.79631},{0.27103,0.35926,0.81156},{0.27226,0.36970,0.82624},{0.27334,0.38008,0.84037},{0.27429,0.39043,0.85393},{0.27509,0.40072,0.86692},{0.2757 |
The objective of these instructions is to create a complete Arm64 OS (Userland and Kernel) using Debian Debootstrap and RPI-Update for use on the Raspberry Pi 3 and 4.
Prerequisites:
- An existing Debian/Raspbian system (any architecture will do)
- An empty SD card formatted as per a standard Raspbian installation mounted to /mnt/sd on the build system
- 1st Partition 0-256MB = FAT32 (Mount to /mnt/sd/boot)
- 2nd Partition 256MB+ = EXT4 (Mount to /mnt/sd)
The Digilent JTag uses FT2232, but its configuration EEPROM contains secrete data needed to be recoginzed by Xilinx ISE/Vivado. The following method only works on linux (tested on Ubuntu16.04), but the patched FT2232 doggle also works on Windows. Since WSL1 does not provide USB device access, the following method will not work for WSL1.
DONT use FT_Prog on offical Digilent cable, as it can trash the firmware! The offical eeprom contains secrete data that cannot be handled correctly by FT_Prog.
Here are steps to create a Digilent-like Jtag that can be used in Xilinx ISE and Vivado
- Install softwares:
sudo apt-get install libftdi1 ftdi-eeprom - Create a file "flash_digilent.conf" with the following content:
In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
| #!/bin/sh | |
| # This program gets the power status (AC IN or BAT) | |
| # I2C interface with AXP209 | |
| # | |
| ####################################################################### | |
| # Copyright (c) 2014 by RzBo, Bellesserre, France | |
| # | |
| # Permission is granted to use the source code within this | |
| # file in whole or in part for any use, personal or commercial, | |
| # without restriction or limitation. |
| #!/bin/sh | |
| # This program gets the battery info from PMU | |
| # Voltage and current charging/discharging | |
| # | |
| # Nota : temperature can be more than real because of self heating | |
| ####################################################################### | |
| # Copyright (c) 2014 by RzBo, Bellesserre, France | |
| # | |
| # Permission is granted to use the source code within this | |
| # file in whole or in part for any use, personal or commercial, |
| #!/bin/sh | |
| #Change these settings to match your system | |
| ACCESS_KEY='YOUR_ACCESS_KEY' | |
| ACCESS_SECRET='YOUR_SECRET_KEY' | |
| BUCKET="YOUR_BUCKET_NAME" | |
| DATABASE="YOUR_DATABASE_NAME" | |
| # Do not change anything below this line | |
| tool=`which s3multiput s3cmd` |