随笔分类 -  嵌入式Linux初识篇

主要记录一些调试学习中碰到过的问题及解决方法
摘要:ubi挂载操作: (1)格式化ubi分区 ubiformat /dev/mtd* 格式化mtdblock* (2)与ubi建了连接 ubiattach /dev/ubi_ctrl -m * mtdblock*与ubi建立连接 (3)创建volume ubimkvol /dev/ubi* -s 100 阅读全文
posted @ 2021-05-20 11:30 wzr777 阅读(2165) 评论(0) 推荐(0) 编辑
摘要:###mtdparts的格式如下: mtdparts=<mtddef>[;<mtddef] <mtddef> := <mtd-id>:<partdef>[,<partdef>] <partdef> := <size>[@offset][<name>][ro] <mtd-id> := unique i 阅读全文
posted @ 2021-05-20 10:46 wzr777 阅读(972) 评论(0) 推荐(0) 编辑
摘要:mkfs.ubifs -x lzo -m 2KiB -e 124KiB -c 720 -o system_ubifs.img -d $path_to_system -m 最小I/O单元大小,一般是页大小, 2048 byte -r 是指定哪个文件系统作为文件系统。 -e 是可擦除逻辑块大小,一般等于 阅读全文
posted @ 2021-05-11 16:09 wzr777 阅读(367) 评论(0) 推荐(0) 编辑
摘要:应用代码不同方式生成Release版本比较 mkdir -p build rm build/* -rf cd build/ cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/usr/local/arm-2014.05/bin/arm-none-li 阅读全文
posted @ 2021-05-10 17:24 wzr777 阅读(117) 评论(0) 推荐(0) 编辑
摘要:在C应用代码里实现PING,并输出avg时间 int testshell( void ) { FILE *stream; int len,i; char buf[1024],tmp[256]; char *p; p = (char *)tmp; stWMIpAddr.ucIPAddr[0] = 19 阅读全文
posted @ 2021-05-10 11:18 wzr777 阅读(203) 评论(0) 推荐(0) 编辑
摘要:内核驱动目录 内核驱动设备 DEV目录 入口: arch/arm/mach-nuc970/dev.c /* * linux/arch/arm/mach-nuc970/dev.c * * Copyright (C) 2014 Nuvoton corporation. * * * This progra 阅读全文
posted @ 2021-04-23 19:18 wzr777 阅读(442) 评论(0) 推荐(0) 编辑
摘要:972平台终端Boot 启动流程 选择核心架构arm926,调用start.s 初始化ctr0后跳转对应main arch/arm/cpu/arm926ejs/start.S arch/arm/lib/crt0.S 然后跳转到对应的board_init,在board_init自定义添加液晶显示驱动和 阅读全文
posted @ 2021-04-23 19:07 wzr777 阅读(781) 评论(0) 推荐(0) 编辑
摘要:编译生成dapa.ubi文件 [root@localhost Dapa]# ls dapa dapa.img dapa.ubi ubinize.cfg 命令.txt [root@localhost Dapa]# mkfs.ubifs -F -m 2048 -e 126976 -c 128 -o da 阅读全文
posted @ 2021-04-23 18:45 wzr777 阅读(172) 评论(0) 推荐(0) 编辑
摘要:rootfs根文件系统编译笔记 复制mkfs.ubifs ubinize到usr/Sbin 目录 编译生成rootfs.img [root@localhost usr]# mkdir /usr/rootfs [root@localhost usr]# ls bin etc games include 阅读全文
posted @ 2021-04-23 18:43 wzr777 阅读(485) 评论(0) 推荐(0) 编辑
摘要:Kernel编译笔记 直接NUC970_Linux_Kernel-master目录下make [root@localhost Kernel]# cp -rf /mnt/hgfs/LINUX_JZQ/Linux/Kernel/* /usr/Kernel/ [root@localhost NUC970_ 阅读全文
posted @ 2021-04-23 18:42 wzr777 阅读(206) 评论(0) 推荐(0) 编辑
摘要:uboot编译笔记 拷贝NUC970_U-Boot_v2016.11-maste到usr/uboot/目录 [root@localhost uboot]# cp -rf /mnt/hgfs/LINUX_JZQ/Linux/Uboot/* /usr/uboot/ [root@localhost NUC 阅读全文
posted @ 2021-04-23 18:35 wzr777 阅读(226) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示