Skip to content

Instantly share code, notes, and snippets.

View Y2Kot's full-sized avatar

Y2Kot Y2Kot

  • Moscow
View GitHub Profile
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/string.h>
#include <linux/list.h>
#include <linux/sysfs.h>
@Y2Kot
Y2Kot / kernel
Last active March 6, 2023 07:30
CONFIG_KERNEL_VERSION: 5.4
------device/khadas/kvim4/build.config.meson.arm64.trunk-----
KERNEL_DEVICETREE: kvim4 kvim4n
=====ab update & vendor boot mode=====
=================================
========================================================
= build config: /home/ubuntu/vim4/device/khadas/kvim4/build.config.meson.arm64.trunk
. common/build.config.common
. common/build.config.aarch64
. device/khadas/common/kernelbuild/build.config.common
Clean up
make[1]: Entering directory '/home/ubuntu/vim4/bootloader/uboot/build'
CLEAN dts/../arch/arm/dts
CLEAN dts
CLEAN examples/standalone
CLEAN tools
CLEAN tools/lib tools/common
CLEAN u-boot.bin.sd.bin.signed u-boot.lds u-boot.bin.usb.signed u-boot.cfg.configs u-boot.map u-boot-nodtb.bin u-boot.bin.signed u-boot.cfg u-boot.bin u-boot.srec u-boot u-boot.sym System.map
CROSS_COMPILE : /opt/toolchains/gcc-linaro-7.3.1-2018.05-i686_aarch64-elf/bin/aarch64-elf- VERSION: aarch64-elf-gcc (Linaro GCC 7.3-2018.05) 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
CLEAN scripts/basic
@Y2Kot
Y2Kot / Android logcat
Created February 6, 2023 11:09
vim4 logcat
This file has been truncated, but you can view the full file.
2019-11-01 03:06:57.480 386-4380 MIPISensor and...ovider@2.5-service-droidlogic V captureNV21:doRotationAndMirror
2019-11-01 03:06:57.480 386-4380 MIPISensor and...ovider@2.5-service-droidlogic V Sensor capturing buffer 1: stream 1, 1920 x 1080, format 23, stride 1920, buf 0xef684070, img 0xe772d000
2019-11-01 03:06:57.480 386-4380 MIPISensor and...ovider@2.5-service-droidlogic V captureNV21:mTempFD = 37
2019-11-01 03:06:57.480 386-4380 ge2d_stream and...ovider@2.5-service-droidlogic V ge2d_copy: E
2019-11-01 03:06:57.480 386-4380 ge2d_stream and...ovider@2.5-service-droidlogic V ge2d_copy_internal: E
2019-11-01 03:06:57.496 0-0 [ 517.436...0] AM_SC1 kernel I 842, cam 0 sc fifo is empty.
2019-11-01 03:06:57.498 386-4380 MIPISensor and...ovider@2.5-service-droidlogic V captureNewImage:buffer size=2
2019-11-01 03:06:57.498 386-4380 MIPISensor and...ov
@Y2Kot
Y2Kot / LinkedInProfile.rb
Created January 6, 2021 21:51 — forked from brikis98/LinkedInProfile.rb
Seven Languages in Seven Weeks: Ruby, Day 3
class LinkedInProfile
SIMPLE_PROFILE_FIELDS = %w[id summary headline honors interests specialties industry first_name last_name public_profile_url picture_url associations]
SIMPLE_PROFILE_FIELDS.each do |field|
define_method(field.to_sym) do
@json[field]
end
end
def initialize(json)
@Serializer(forClass = BaseResponse::class)
class BaseResponseSerializer<T : Any>(private val dataSerializer: KSerializer<T>): KSerializer<BaseResponse<T>> {
override val descriptor: SerialDescriptor
get() = SerialDescriptor("BaseResponseSerializer") {
val dataDescriptor = dataSerializer.descriptor
element("resultCode", String.serializer().descriptor)
element("payload", dataDescriptor)
element("trackingId", String.serializer().descriptor)
element("details", Details.serializer().descriptor)
}
CAGGAAAGATTAAAAGAAGTAAAAGGAACTCGGCAAACTCTACCCCCGCCTGTTTACCAAAAACATCACC
TCTAGCATTACTAGTATTAGAGGCACTGCCTGCCCAGTGACATGTGTTCAACGGCCGCGGTACCCTGACC
GTGCAAAGGTAGCATAATCACTTGTTCTCTAAATAAGGACTTGTATGAATGGCCACACGAGGGTTTAACT
GTCTCTTACTTCTAATCAGTGAAATTGACCTATCCGTGAAGAGGCGGATATAACCAAATAAGACGAGAAG
ACCCTATGGAGCTTCAATTTAATAATGCAAACTAATAACTTAAAAACCAACAGGCACCAATCCACCGTGT
ATGTATTATAAACTTTGGTTGGGGTGACCTCGGAGCATAACATAACCTCCGAAAGACATATACCAAGACT
TAACCAGTCTAAGTAAACTTATAACCATTGACCCAATAACTTGATCAACGGACTAAGTTACCCTAGGGAT
AACAGCGCAATCCTACTCTAGAGTCCATATCGACAGTAGGGTTTACGACCTCGATGTTGGATCAAGACAT
CCTAATGGTGCAGCCGCTATTAAGGGTTCGTTTGTTCAACGATTAAAGTCTTACGTGATCTGAGTTCAGA
CCGGAGAAATCCAGGTCGGTTTCTATCTATTAAATATTCCTCCCAGTACGAAAGGATAAGAGAAATAGAG