Wang shaodong's Blog

Wang shaodong's Blog

about-zypper
Created2021-08-26
#cmdzypper ar -c -t yast2 “iso:/?iso=/home/jaimin/su1100.001.iso” “openSuSE 11”
about-design-pattern
Created2021-08-24
扩展的方法,1继承的方法,2. 组合的方式组合优于继承 封装变化点:将稳定点,与变化点隔离开
about tree
Created2021-08-24
树,二叉树,traverse平衡二叉树二分法查找红黑树逆波兰表示法epoll的底层是 红黑树poll 和select的底层是线性表
sql 语句入门
Created2021-08-24
12345678SELECTwakeup_source ,COUNT(*) ASwaekup_source_counterWHICH production_version LIKE "nwe-10%"AND production_version LIKE "%211%"ORDER BY waekup_source_counter DES
debug-xp
Created2021-08-22
uboot 中启动httpd 服务的时候,使用浏览器无法打开升级网页,是因为浏览器默认启用了https,ubooot中的httpd 命令不支持 ssl加密 没有这个,所以用http://192.168.4.1 就能打开了 mail.zowee.com.cn网站手机上打不开,电脑浏览器上能打开,因为手机上默认使用的http访问的,pc上默认使用了https访问 test
bash grammar cheatseet
Created2021-08-18
先贴一个bash中类似与c++ 中的switch case的demo12345678910111213141516171819202122232425#!/bin/bash# switch.sh # $# 代表使用这个脚本的时候给这个脚本传递的参数个数 -lt 代表 less than# $0 代表脚本的名字, 和C语言main函数的argv[]参数类似if [ $# -lt 1 ]; then echo "Usage: $0 [sth] [sth]"fi# $1 $2 $3 代表传给脚本的第几个参数if [ $# -eq 2 ] && [ $2 == "debug" ]; then echo "this enter debug mode" DBG_FLAG=1ficase $1 in x86) echo "this is case x86" ;; arm32) echo "this is case arm32" ;; arm64) ech...
fast-power-algorithm
Created2021-08-17
快速幂算法, 先贴一下算法模板,后边研究好了再贴研究心得,还有什么矩阵的快速幂算法1234567891011int fastpow(int base, int n) { int ans = 1; while (n) { if (n&1) { ans *= base; } base *= base; n >>= 1; } return ans;} 直接幂算法,在数值比较大的时候,在做算法题目的时候,时间复杂度不能接受12345678int normalpow(int base, int n) { int ans = 1; int i; for (i = 0; i < n; i++) { ans *= base; } return ans;}
Linux software commonly used
Created2021-08-07
ubuntu 内核调试开发常用软件包名 记录12libncurses5-dev gcc-arm-linux-gnueabi build-essential gcc-5-arm-linux-gnueabi git libssl-dev openssl bc flex bison qemu make gdb gdb-multiarch \device-tree-compiler uml-utilities bridge-utils nfs-kernel-server 1234# openssl's liblibssl-dev# elf's liblibelf-dev 内核启动的三种方式 initrd (init ram disk) init= root
风言风语
Created2020-08-22
为什么选择租房的地方离公司近? 不是为了多加班被资本压榨剩余价值,而是为了减少通勤时间,把时间用在睡觉和学习上来提升自己的竞争力
名词解释
Created2020-06-17
ROM(BOOTROM CD-ROM) RAM(SRAM DRAM, SDRAM, DDR)FLASH (NOR NAND FLASH)SPI SPLuboot分为uboot-spl和uboot两个组成部分。SPL是Secondary Program Loader的简称,第二阶段程序加载器,这里所谓的第二阶段是相对于SOC中的BROM来说的,之前的文章已经有所介绍,SOC启动最先执行的是BROM中的固化程序。 BROM会通过检测启动方式来加载第二阶段bootloader。uboot已经是一个bootloader了,那么为什么还多一个uboot spl呢? 这个主要原因是对于一些SOC来说,它的内部SRAM可能会比较小,小到无法装载下一个完整的uboot镜像,那么就需要spl,它主要负责初始化外部RAM和环境,并加载真正的uboot镜像到外部RAM中来执行。 所以由此来看,SPL应该是一个非常小的loader程序,可以运行于SOC的内部SRAM中,它的主要功能就是加载真正的uboot并运行之 ARM SoC的启动过程: RomBoot –> SPL –> u-boot...
1…345…9
avatar
wang shaodong
Articles
83
Tags
15
Categories
0
Follow Me
Announcement
This is my Blog
Recent Posts
Contact ways2026-06-13
Hexo Quick Manual2023-01-24
kernel structs pos2022-03-23
busybox SUID support2022-03-23
kernel image formats2022-03-23
Tags
Tool Others sql shell Tools git terms Tools algorithm C/C++ other alogrithm Linux/C C/C++ Linux tools others
Archives
  • June 2026 1
  • January 2023 1
  • March 2022 19
  • September 2021 6
  • August 2021 11
  • August 2020 1
  • June 2020 1
  • May 2020 3
Website Info
Article Count :
83
Unique Visitors :
Page Views :
Last Update :
© 2025 - 2026 By wang shaodongFramework Hexo 8.1.2|Theme Butterfly 5.5.5