avatar
文章
61
标签
22
分类
11
主页
博文
  • 分类
  • 标签
  • 归档
关于笔者
TroyMitchell's blog
主页
博文
  • 分类
  • 标签
  • 归档
关于笔者

TroyMitchell's blog

IMPORTANT: lost blog notes
发表于2025-07-06
What happened to my blog?Due to unforeseen circumstances, some of the blog posts have been lost. I have only found the web page format, but the index for the homepage has been lost. So there is the list: 2025 yearAprilDay 10 Vercel 部署 Twikoo 后评论收不到通知邮件问题解决方法 Day 12 Linux 的 initcall 机制 Day 13 ELF 文件 -0- section 和 segment 的区别 Linux I2C 驱动框架分析 -0 Linux I2C 驱动框架分析 -1 Day 20 Platform Device Driver -0 Platform Device Driver -1 Day 24 嵌入式 Linux 面经 - 随意随缘不完整版 Day 26 Linux 设备树 -0- 理解 dtb 格式 Linux...
esp32初始化结构体问题
发表于2025-07-04|mcuesp32
在c++使用espidf进行wifi连接时,发现如下代码可以连接: wifi_config_t wifi_config = { .sta = { .ssid = "HBDT-23F", .password = "hbishbis" }}; 但如下代码不可连接: wifi_config_t wifi_config;strcpy(wifi_config.sta.ssid, "HBDT-23F");strcpy(wifi_config.sta.password, "hbishbis"); 经过排查发现espidf对于连接阶段除了ssid和password还使用到了其他变量,所以应该清零结构体内存: wifi_config_t wifi_config{}; 一个很低级的问题…记录下来时刻警醒。
VirtualBox错误
发表于2025-07-04
当我尝试启动虚拟机时遇到了如下错误: Kernel driver not installed (rc=-1908)The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing'/sbin/vboxconfig'as root.If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTA...
sd与mmc刷写指南
发表于2025-07-04
EnvHost: Ubuntu 22.04 GParted 1.3.1 SD卡首先插入sd卡,打开GParted工具,没有可以下载一个: ❯ sudo apt install gpart 选择sd卡设备,我这里是sdb,因机器而异。 选择菜单栏的设备->创建分区表,选择msdos分区表。 创建完成之后,新建两个分区。 一个fat16的,用于放内核镜像和dtb文件以及uboot保存的env文件。 一个ext4用来存放根文件系统。 完成之后点击绿色小对勾,让更改生效。 之后便可以在/dev下看到对应的分区: ❯ ls /dev/sdb*/dev/sdb /dev/sdb1 /dev/sdb2 下载uboot镜像: ❯ sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8 存放内核镜像和设备树: ❯ sudo mount /dev/sdb1 /mnt❯ sudo cp arch/arm/boot/zImage /mnt❯ sudo cp arch/arm/boot/dts/allwinne...
hexo: Deploy github and lose CNAME
发表于2025-07-04
IssueI deployed my hexo blog to github pages, but I lost the custom domain in github pages. I tried to re-add the custom domain in the repository settings and I found this operation will add CNAME file under the repository root directory. SolutionSo I copy this file(or create a new one and only put custom domain into this file) to the source directory of my hexo blog, and then commit and push it to the repository. Everything works fine!
nvim plugin - MakrdownPreview: can't preview
发表于2025-07-04
Env:Nvim: v0.11.2 & Lazyvim Terminal: Kitty OS: Arch Linux How did I doCreate a .lua file in the following directory: ~/.config/nvim/lua/plugins/markdown-preview.lua Then add the following code: return { "iamcco/markdown-preview.nvim", cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, ft = { "markdown" }, build = function() vim.fn["mkdp#util#install"]() end,} Reopen nvim ...
linux挂载nfs根文件系统失败
发表于2025-01-04|kernelnetwork
挂在nfs根文件系统时出现如下报错: [ 1.939157] VFS: Cannot open root device "nfs" or unknown-block(0,255): error -6[ 1.946989] Please append a correct "root=" boot option; here are the available partitions:[ 1.955765] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,255)[ 1.964493] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,255) ]--- 根据内核日志来看bootargs是设置正确的,经过多方排查是以下配置没开启: CONFIG_ROOT_NFS
tmux复制到系统剪切板
发表于2024-11-30
tmux可以使用这个配置:oh my tmux 然后在.tmux.conf.local中将以下选项设置为true: # -- clipboard -----------------------------------------------------------------# in copy mode, copying selection also copies to the OS clipboard# - true# - false (default)# - disabled# on Linux, this requires xsel, xclip or wl-copytmux_conf_copy_to_os_clipboard=true
lazyvim复制到剪切板
发表于2024-11-30
在neovim(10.0.2)中,其实已经默认开启了yank插件,也就是复制的内容会自动传入剪切板。 那么为什么还会有这篇文章呢?因为lazyvim默认有这样一个配置: opt.clipboard = vim.env.SSH_TTY and "" or "unnamedplus" -- Sync with system clipboard 这句的意思查看你的shell是否是tty类型,如果是tty那么就不会进入系统剪切板。恰好ssh就是tty类型,所以ssh连接的shell在打开nvim复制的内容是不会进入到系统剪切板的。 进入系统剪切板的作用:here 所以要在~/.config/nvim/lua/config/option.lua中覆盖这条默认设置: opt.clipboard = "unnamedplus" 这样即便tty也能够进入系统剪切板了。
ssh双向复制
发表于2024-11-30
在主机A通过ssh连接到主机B时,我们在A内复制的文本可以通过Ctrl+Shift+v粘贴到B,但是B内复制的却不能与A共享。 可能这里会造成一个疑惑:明明我复制ssh的shell信息也可以粘贴出来。其实这里复制复制的是终端上的字,并不是ssh的shell内复制,还是相当于本机复制。 这一点可以通过xsel工具做验证: # A❯ xsel --clipboard --outputLinux troy-server 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux\ No newline at end of selection# B❯ xsel --clipboard --output 可以看到虽然A复制的B的终端输出信息,但是却没有进入B的剪切板,而是进入A的剪切板,说明复制的是终端上的字,并不是ssh的shell内复制。 如果这里做一个假设,在B的shell打开一个vim进行复制(已经配置好vi...
12…7
avatar
TroyMitchell
对弈平凡
文章
61
标签
22
分类
11
Follow Me
公告
Words are cheap, I do.
最新文章
IMPORTANT: lost blog notes2025-07-06
esp32初始化结构体问题2025-07-04
VirtualBox错误2025-07-04
sd与mmc刷写指南2025-07-04
hexo: Deploy github and lose CNAME2025-07-04
分类
  • asm1
  • home-assistant2
  • kernel20
    • network1
    • reverse1
    • rockchip13
  • mcu3
    • esp323
标签
rockchip openHarmony hack mcu github vim home-assistant network linux rk3566 a33 allwinner ubuntu esp32 tmux rk3568 hexo docker nvim serial uboot kernel
归档
  • 七月 2025 6
  • 一月 2025 1
  • 十一月 2024 6
  • 十月 2024 5
  • 九月 2024 10
  • 八月 2024 22
  • 七月 2024 11
网站信息
文章数目 :
61
本站访客数 :
本站总浏览量 :
最后更新时间 :
©2020 - 2025 By TroyMitchell