Skip to content

Instantly share code, notes, and snippets.

View qichunren's full-sized avatar
🌈
Focusing contribute

Qichunren qichunren

🌈
Focusing contribute
View GitHub Profile
@qichunren
qichunren / sync.sh
Created May 18, 2024 11:40
在Linux中,我有两个目录,我需要从一个目录中同步其中的一些目录和文件到另一个目录中。 如第一个目录中有大量目录有文件,我需要选择性的记录一些目录和文件,我希望能同步其中的一些目录和文件到另外一个目录里,同时保证目录结构。
#!/bin/bash
# 源目录
source_base="/data/tian5.0he/T113-tina5.0"
# 目标目录
target_base="/home/qichunren/code/T113-S3-Box-SDK"
# 需要同步的目录列表
directories_to_sync=(
@qichunren
qichunren / buildlog.txt
Created February 26, 2024 02:59
t113 tina sdk 5.0
Package kmod-mac80211 is missing dependencies for the following libraries:
cfg80211.ko
compat.ko
Makefile:528: recipe for target '/home/qichunren/data/t113-tina-5.0/out/t113/dev2/openwrt/extra/targets/t113-dev2/generic/packages/kmod-mac80211_5.4.182+5.10.85-1-1_arm_cortex-a7_neon.ipk' failed
make[3]: *** [/home/qichunren/data/t113-tina-5.0/out/t113/dev2/openwrt/extra/targets/t113-dev2/generic/packages/kmod-mac80211_5.4.182+5.10.85-1-1_arm_cortex-a7_neon.ipk] Error 1
make[3]: Leaving directory '/data/t113-tina-5.0/openwrt/openwrt/package/kernel/mac80211'
time: package/kernel/mac80211/regular/compile#0.30#0.06#0.73
ERROR: package/kernel/mac80211 failed to build (build variant: regular).
package/Makefile:114: recipe for target 'package/kernel/mac80211/compile' failed
make[2]: *** [package/kernel/mac80211/compile] Error 1
@qichunren
qichunren / log.txt
Created February 23, 2024 07:12
t113 builroot sd无法启动
[89]HELLO! BOOT0 is starting!
[92]BOOT0 commit : 1417090655
[95]set pll start
[96]fix vccio detect value:0xc0
[104]periph0 has been enabled
[107]set pll end
[108][pmu]: bus read error
[111]board init ok
[113]enable_jtag
@qichunren
qichunren / boot.txt
Last active February 22, 2024 16:49
T113_buildroot_tf_boot log
[88]HELLO! BOOT0 is starting!
[90]BOOT0 commit : 1417090655
[93]set pll start
[95]fix vccio detect value:0xc0
[102]periph0 has been enabled
[105]set pll end
[107][pmu]: bus read error
[109]board init ok
[111]enable_jtag
[113]ZQ value = 0x2f
@qichunren
qichunren / log.txt
Created February 20, 2024 05:54
dephy-io/t113-tina build log
ruby@ruby-VirtualBox:~/code/t113-tina$ docker compose run b
[+] Building 0.0s (0/0)
[+] Building 0.0s (0/0)
builder@b775dd81fe0d:/app$ source build/envsetup.sh
Setup env done! Please run lunch next.
builder@b775dd81fe0d:/app$ lunch
You're building on Linux
Lunch menu... pick a combo:
@qichunren
qichunren / build_log.txt
Created February 20, 2024 01:12
error_log
qichunren@qichunren-VirtualBox:~/Desktop/v1.1$ ./build.sh
========ACTION List: build_linuxdev;========
options :
INFO: ----------------------------------------
INFO: build linuxdev ...
INFO: chip: sun8iw20p1
INFO: platform: linux
INFO: kernel: linux-5.4
INFO: board: dev
INFO: output: /home/qichunren/Desktop/v1.1/out/t113/dev/buildroot
@qichunren
qichunren / README.md
Last active March 29, 2022 14:08
Rails CRUD boy

Generate admin model CRUD code

This is unexpected, as it geneated post model into admin namespace.

./bin/rails generate admin/post title context:text

Solution:

./bin/rails generate model Post title context:text

./bin/rails g scaffold_controller Admin::Post title context:text --model-name=Post --no-jbuilder

#!/usr/bin/env bash
# inspired by
# https://gist.github.com/JannikArndt/feb720c1f5d210b4820b880af23f2a07
# which was inspired by
# https://github.com/fwartner/mac-cleanup/blob/master/cleanup.sh
# https://gist.github.com/jamesrampton/4503412
# https://github.com/mengfeng/clean-my-mac/blob/master/clean_my_mac.sh
# https://github.com/szymonkaliski/Dotfiles/blob/master/Scripts/clean-my-mac
# http://brettterpstra.com/2015/10/27/vacuuming-mail-dot-app-on-el-capitan/ / https://github.com/pbihq/tools/blob/master/MailDBOptimiser.sh
@qichunren
qichunren / README.md
Last active October 8, 2021 16:02
rails project default template
bundle exec rails new ~/code/sitebuilder --javascript=esbuild --css=tailwind --dev --database=postgresql --skip-action-mailbox
@qichunren
qichunren / README.md
Last active September 2, 2021 06:30
Install Arch Linux on Virtualbox

分区

Use fdisk -l to view current device info. Use gdisk to create partitions.

三个分区:

  • EFI分区 (ef00)
  • / 根分区
  • /home 分区