dts

dtc 编译命令

匿名 (未验证) 提交于 2019-12-02 23:38:02
设备树编译 dtc编译器可以把dts文件编译成为dtb,也可把dtb编译成为dts文件,编译命令格式如下: dtc [-I input-format] [-O output-format][-o output-filename] [-V output_version] input_filename 参数说明 - “fs” format. - “asm”: assembly language file 定义”blob”的版本,在dtb文件的字段中有表示,支持1 2 3和16,默认是3,在16版本上有许多特性改变 ./dtc -I dts -O dtb -o B_dtb.dtb A_dts.dts 把A_dts.dts编译生成B_dtb.dtb ./dtc -I dtb -O dts -o A_dts.dts A_dtb.dtb 把A_dtb.dtb反编译生成为A_dts.dts 版权声明:本文为博主原创文章,转载请附上博文链接! 文章来源: https://blog.csdn.net/oqqGuMu/article/details/91346377

全志_基于dts设备树驱动开发

坚强是说给别人听的谎言 提交于 2019-12-02 19:03:28
基于设备树开发 平台:A64 源码:Linux3.10 路径:Linux/arch/arm(arm64)/boot/dts/ ***.dts Makefile         //A64 是64位,选择arm64 #gpio-cells = <6>”表示在设备树里描述使用一个gpio口需要提供6个指定的参数. gpio = <&pio 1 1 1 1 1 0>; | | | | | | | |-------------------表示有效电平 | | | | | | |----------------------上下拉, 0关闭功能, 1上拉, 2下拉, 3保留 | | | | | |--------------------------驱动力,电流等级(0 - 3),级别越高,输出电流越大 | | | | |------------------------------gpio功能类型(复用类型),0输入, 1输出, 6和外部中断,7关闭功能(具体查手册) | | | |----------------------------------pin bank 内偏移(即组内第几个io口). | | |--------------------------------------哪组gpio, PA(0),PB(1),PC(2),PD(3),PE(4),PF(5),PG(6),PH(7)

3516dv300 开启串口 转载

↘锁芯ラ 提交于 2019-12-01 10:03:22
进入新公司参加的第一个项目,采用的是海思的Hi35xxVxx芯片。 我这边负责的模块是GPS模块,利用SDK代码框架,配置海思Hi35xx 芯片的串口,从串口读取GPS模块数据。 首先第一步,配置内核uart: 通过看芯片数据手册,GPS预留接口是 UART4。但是海思芯片未配置UART4。于是我们得从内核源码树配置UART4。 当然,得基于海思的内核patch 来配置,因为,原生内核是未对hi35xx芯片做适配的。 我们进入:osdrv/opensource/kernel/linux-4.9.y/arch/arm/boot/dts/ 目录 修改patch: diff -Naur linux-4.9.y.sdk/arch/arm/boot/dts/hi3559v200-demb.dts linux-4.9.y/arch/arm/boot/dts/hi3559v200-demb.dts --- linux-4.9.y.sdk/arch/arm/boot/dts/hi3559v200-demb.dts 2019-07-09 07:51:20.578954127 +0000 +++ linux-4.9.y/arch/arm/boot/dts/hi3559v200-demb.dts 2019-07-09 07:52:49.770587238 +0000 @@ -39,6 +39,9 @@

SSIS importing datetime column into SQL Server 2008

早过忘川 提交于 2019-11-30 19:31:54
I am trying to import a PSV file into SQL Server 2008 using SSIS. All is working fine apart from one field that contains a datatime . The contents of the file being imported contains datetime in the format of 2012-08-08T13:31:28.170 The file connector settings, for the PSV file are database timestamp with precision [DT_DBTIMESTAMP2] The destination column in SQL Server has a datetime datatype. The result of the package / contents of the SQL table is a datetime import: 2012-08-08 00:00:00.000 You will notice that the mins/secs have not been imported. I must be using the wrong datetime formats,

How can I run sql server stored procedures in parallel?

送分小仙女□ 提交于 2019-11-30 13:47:20
I want to do something like: exec sproc1 and sproc2 at the same time when they are both finished exec sproc3 I can do this in dts. Is there a way to do it in transact sql? Or is there a way to do it with a batch script (eg vbs or powershell)? sp _ start _ job I'm doing a similar thing at the moment, and the only way I've found to avoid using SSIS or some external shell is to split my load routine into 'threads' manually, and then fire a single master sqlagent job which in turn executes as many sp _ start _ job's as I have threads. From that point, they all run autonomously. It's not exactly

SSIS importing datetime column into SQL Server 2008

萝らか妹 提交于 2019-11-30 03:32:27
问题 I am trying to import a PSV file into SQL Server 2008 using SSIS. All is working fine apart from one field that contains a datatime . The contents of the file being imported contains datetime in the format of 2012-08-08T13:31:28.170 The file connector settings, for the PSV file are database timestamp with precision [DT_DBTIMESTAMP2] The destination column in SQL Server has a datetime datatype. The result of the package / contents of the SQL table is a datetime import: 2012-08-08 00:00:00.000

Device tree compiler not recognizes C syntax for include files

流过昼夜 提交于 2019-11-29 15:50:57
问题 I want to compile my board device tree manually. I has downloaded the latest version of dtc from its official source, but when I try to run the following command, I get an error advising me to change all #include directives to /include/ and so on for #define , etc. dtc -I dts -O dtb -p 0x1000 meson-gxl-s905x-khadas-vim.dts -o kvim1.dtb My board is Khadas Vim with an amlogic S905x SoC in its heart. All include files are present and the error is: Error: meson-gxl-s905x-khadas-vim.dts:8.1-9

PHP's DateTime::Diff gets it wrong?

怎甘沉沦 提交于 2019-11-29 03:51:37
DateTime::Diff should calculate a proper interval and take into account Daylight Savings Time (DST) and leap years. Although apparently it isn't so. Code of horror: $d1 = new DateTime("2011-10-30 01:05:00", new DateTimeZone("Europe/Stockholm")); $d2 = new DateTime("2011-10-30 03:05:00", new DateTimeZone("Europe/Stockholm")); echo $d1->getOffset() / (60 * 60); Prints '2'! Keep in mind thus that UTC time = 1h - 2h = 23:05:00 the day before. echo $d2->getOffset() / (60 * 60); Prints '1'. DST happened. UTC time = 3h - 1h = 02:05:00. $di = $d1->diff($d2); echo "Hours of DateInterval: " . $di->h;

Linux DTS中和中断相关属性的解释和用法

半世苍凉 提交于 2019-11-28 12:20:20
原文: http://blog.gqylpy.com/gqy/429 置顶:来自一名75后老程序员的武林秘籍——必读 (博主推荐) 来,先呈上武林秘籍链接: http://blog.gqylpy.com/gqy/401/ 你好,我是一名极客!一个 75 后的老工程师! 我将花两分钟,表述清楚我让你读这段文字的目的! 如果你看过武侠小说,你可以把这个经历理解为,你失足落入一个山洞遇到了一位垂暮的老者!而这位老者打算传你一套武功秘籍! 没错,我就是这个老者! 干研发 20 多年了!我也年轻过,奋斗过!我会画原理图,会画 PCB,会模拟,会数字!玩过 PLC,玩过单片机,会用汇编,会用 C!玩过 ARM,比如 PLC,STM32,和时下正在起飞的 NXP RT1052!搞过 DSP,比如 TMS320F28335!搞过 FPGA,不管 Xilinx 还是 Altera,也不管是 Verilog 还是 VHDL,或者直接画数字电路图!我懂嵌入式系统,比如 uCOS 和 Linux!我懂开源的硬件,比如 Arduino 和树莓派!我也搞软件,学了一堆上位机的语言C#,JAVA,Python,Kotlin,Swift!会写爬虫工具,又自学写APP,不管Android 还是 IOS! 可是这一切有什么用呢?土鸡瓦狗!不值一提!干技术的永远就是最苦逼的那个人! 我相信看到这里的你,应该是个 IT

PHP's DateTime::Diff gets it wrong?

百般思念 提交于 2019-11-27 17:53:04
问题 DateTime::Diff should calculate a proper interval and take into account Daylight Savings Time (DST) and leap years. Although apparently it isn't so. Code of horror: $d1 = new DateTime("2011-10-30 01:05:00", new DateTimeZone("Europe/Stockholm")); $d2 = new DateTime("2011-10-30 03:05:00", new DateTimeZone("Europe/Stockholm")); echo $d1->getOffset() / (60 * 60); Prints '2'! Keep in mind thus that UTC time = 1h - 2h = 23:05:00 the day before. echo $d2->getOffset() / (60 * 60); Prints '1'. DST