Skip to content

Instantly share code, notes, and snippets.

@KunYi
KunYi / qemu_4.2.log
Created January 27, 2023 11:24
use ubuntu-dev-tools to get qemu source
kunyi@civ-build:/tmp$ pull-lp-source qemu focal
Found qemu 1:4.2-3ubuntu6.24 in focal
Public key not found, could not verify signature
Downloading qemu_4.2.orig.tar.xz from archive.ubuntu.com (59.340 MiB)
Downloading qemu_4.2-3ubuntu6.24.debian.tar.xz from archive.ubuntu.com (0.305 MiB)
gpgv: Signature made Thu Dec 8 20:22:20 2022 CST
gpgv: using RSA key B35EBCD35C6717BC0ADEB08AEC873ACED468723C
gpgv: issuer "[email protected]"
gpgv: Can't check signature: No public key
dpkg-source: warning: failed to verify signature on ./qemu_4.2-3ubuntu6.24.dsc
@KunYi
KunYi / mdio_reg.c
Created November 9, 2022 03:52
using MDIO to access PHY registers
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <linux/mii.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <linux/sockios.h>
@KunYi
KunYi / .bashrc
Created October 21, 2022 05:26
my bashrc settings backup
# for golang
if [ -x /usr/local/go/bin ]; then
export PATH=$PATH:/usr/local/go/bin
fi
# for launch colorful minicom
alias minicom='minicom -c on -R utf8'
# download cache of yocto
if [ -d ~/yocto_cache/download ]; then
@KunYi
KunYi / Forlink OK6254-C U-Boot.log
Created October 16, 2022 07:15
Forlink OK6254-C Single Board Bootloader message!
@KunYi
KunYi / Build TI AM62x Kernel for Android.log
Created September 16, 2022 07:27
build TI AM625x Kernel for Android
kunyi@kunyi-ThinkPad-P53:/tmp/a53$ cd ${YOUR_PATH}/ti-kernel-aosp/
kunyi@kunyi-ThinkPad-P53:~/08_03_00/ti-kernel-aosp$ export DIST_DIR=${YOUR_PATH}/ti-aosp/device/ti/am62x-kernel/kernel/5.10
kunyi@kunyi-ThinkPad-P53:~/08_03_00/ti-kernel-aosp$ export BUILD_CONFIG=./imgtech-module/build.config.imgtech
kunyi@kunyi-ThinkPad-P53:~/08_03_00/ti-kernel-aosp$ build/build.sh
========================================================
Setting up for build
+ cd common
+ make LLVM=1 DEPMOD=depmod O=/home/kunyi/08_03_00/ti-kernel-aosp/out/android13-5.10/common mrproper
make[1]: Entering directory '/home/kunyi/08_03_00/ti-kernel-aosp/out/android13-5.10/common'
CLEAN arch/arm64/crypto
@KunYi
KunYi / build tispl.bin and u-boot.bin for AM6254.log
Created September 16, 2022 06:32
Build tispl.bin and u-boot.bin for AM6254
kunyi@kunyi-ThinkPad-P53:~/08_03_00/ti-bootloader-aosp/k3-image-gen$ cd ${YOUR_PATH}/ti-bootloader-aosp/arm-trusted-firmware
kunyi@kunyi-ThinkPad-P53:~/08_03_00/ti-bootloader-aosp/arm-trusted-firmware$ make CROSS_COMPILE=aarch64-none-linux-gnu- ARCH=aarch64 PLAT=k3 TARGET_BOARD=lite SPD=opteed
Including services/spd/opteed/opteed.mk
Building k3
CC lib/libc/abort.c
CC lib/libc/assert.c
CC lib/libc/exit.c
CC lib/libc/memchr.c
CC lib/libc/memcmp.c
CC lib/libc/memcpy.c
@KunYi
KunYi / build tiboot3.log
Created September 16, 2022 05:06
build tiboot3.bin for TI AM6254/Android build.log
kunyi@kunyi-ThinkPad-P53:~/08_03_00/toolchain$ source envsetup.sh
kunyi@kunyi-ThinkPad-P53:~/08_03_00/toolchain$ cd ..
kunyi@kunyi-ThinkPad-P53:~/08_03_00$ export YOUR_PATH=$PWD
kunyi@kunyi-ThinkPad-P53:~/08_03_00$ cd ${YOUR_PATH}/ti-bootloader-aosp/ti-u-boot/
kunyi@kunyi-ThinkPad-P53:~/08_03_00/ti-bootloader-aosp/ti-u-boot$ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- am62x_evm_r5_defconfig O=/tmp/r5
make[1]: Entering directory '/tmp/r5'
GEN ./Makefile
#
# configuration written to .config
#
@KunYi
KunYi / build rtems kernel with STM32F4.log
Created August 31, 2022 05:16
build rtems kernel with STM32F4
This file has been truncated, but you can view the full file.
builder@rtems:~/development/rtems/kernel/stm32f4$ $HOME/development/rtems/kernel/rtems/configure --prefix=$HOME/development/rtems/5.1 \
> --target=arm-rtems5 --enable-rtemsbsp=stm32f4 --enable-posix \
> --disable-networking
checking for gmake... no
checking for make... make
checking for RTEMS Version... 5.0.0
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... arm-unknown-rtems5
checking for a BSD-compatible install... /usr/bin/install -c
@KunYi
KunYi / install rtems 5 for ARM in docker.log
Last active August 31, 2022 05:19
install RTEMS 5.1 for ARM in container log
builder@rtems:~$ ./rtems5_install.sh
+ HOME_DIR=/home/builder
+ mkdir -p /home/builder/development/rtems
+ cd /home/builder/development/rtems
+ wget https://ftp.rtems.org/pub/rtems/releases/5/5.1/sources/rtems-source-builder-5.1.tar.xz
--2022-08-30 11:59:08-- https://ftp.rtems.org/pub/rtems/releases/5/5.1/sources/rtems-source-builder-5.1.tar.xz
Resolving ftp.rtems.org (ftp.rtems.org)... 140.211.10.151
Connecting to ftp.rtems.org (ftp.rtems.org)|140.211.10.151|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 264504 (258K) [application/x-xz]
@KunYi
KunYi / OpenBMC build-setup.log
Last active August 29, 2022 05:18
run openbmc-build-script/build-setup.sh
kunyi@kunyi-ThinkPad-P53:~/openbmc/openbmc-build-scripts$ WORKSPACE=~/ombc_2.11.0 num_cpu=4 target=romulus img_tag=bionic ./build-setup.sh
+++ dirname ./build-setup.sh
++ cd .
++ pwd
+ build_scripts_dir=/home/kunyi/openbmc/openbmc-build-scripts
+ http_proxy=
+ WORKSPACE=/home/kunyi/ombc_2.11.0
+ num_cpu=4
+ UBUNTU_MIRROR=
+ ENV_LOCAL_CONF=