design: when uboot load kerne failed,we can switch to stanbdy system; how to realize: when boot fail, we can let uboot env bootKenrelFailCount++, then save to uboot_env partiton.    watchdog timeout will trigger cpu reset, when bootKernelFailCount bi…
DDR工作频率  在600MHZ. include/configs/board953x.h #define CFG_PLL_FREQ            CFG_PLL_650_600_200 #define  CFG_DDR_REFRESH_VAL            0x4138   (default 12c) 0x0100 0001 0011 1000 ./board/atheros/common/init-953x.c:59:#define CFG_DDR2_SCORPION_CAS…
auto switch HTTP protocol Chrome Extension HTTPS auto switch to HTTP VPN https://chrome.google.com/webstore/detail/hola-free-vpn-proxy-unblo/gkojfkhlekighikafcpjkiklfbnlmeio?hl=en-US refs Bad https://www.ruanyifeng.com/blog/2020/08/five-css-layouts-i…
pseudocode: If(reset_button was pressed ) { Change  uboot env bootslot^1 }…
uboot commad test test - minimal test like /bin/sh so we can use test command to some judge for example, test –n $uenvcmd    test var uenvcmd length !eq  zero detail learning you  can reference url: https://www.cnblogs.com/tankblog/p/6160808.html Not…
reference: uboot_dir/doc/README.distro Linux distributions are faced with supporting a variety of boot mechanisms,environments or bootloaders (PC BIOS, EFI, U-Boot, Barebox, ...). This makeslife complicated. Worse, bootloaders such as U-Boot have a c…
find cpu datasheet , watchdog relate registers: 0x18060008 watchdong timer control 0x1806000c watchdog timer we can read and write watchdog register under uboot console: #mw 0x1806000c 0xffffffff  1 #mw 0x1806000c 0x10000000  1 #mw 0x18060008    0x3 …
reference :https://github.com/lentinj/u-boot/blob/master/doc/README.autoboot how to enable protect sonsole in uboot stage ? we can add follow contest in include/configs/xxxx.h +// add by panzidong for support  protect uboot console +#define CONFIG_AU…
By passing the kernel panic parameter, the system automatically resets after 3 seconds when kernel panic happen example: bootargs  'board=xxxxx console=ttyS0,115200 ubi.mtd=overlay rootfs=/dev/mtdblock:rootfs  rootfstype=squashfs noinitrd init=/sbin/…
reference: http://www.denx.de/wiki/DULG/UBootCmdGroupExec => help source source - run script from memory Usage: source [addr] - run script starting at addr - A valid image header must be present => With the source command you can run "shell&quo…
=> fstypefstype - Look up a filesystem type Usage:fstype <interface> <dev>:<part>- print filesystem typefstype <interface> <dev>:<part> <varname>- set environment variable to filesystem type example: => fsty…
=> part --helppart - disk partition related commands Usage:part uuid <interface> <dev>:<part> - print partition UUIDpart uuid <interface> <dev>:<part> <varname> - set environment variable to partition UUIDpart…
reference :https://forum.openwrt.org/viewtopic.php?id=43237 reference :http://blog.chinaunix.net/uid-22547469-id-5048943.html cp  httpd     cus531-16m/  -a cp  net/httpd.c   cus531-16m/ cp  net/httpd.h   cus531-16m/ 修改net.c #ifdef CONFIG_STATUS_LED #…
题外话: 最近一直在学习u-boot的源代码,从代码量到代码风格,都让我认识到什么才是真正的程序.以往我所学到的C语言知识和u-boot的源代码相比,实在不值一提.说到底,机器都是0和1控制的.感觉这很像我们中国<易经>里的一句话:"太极生两仪,两仪生四象."两仪指的就是阴阳.天地,对立而又相互依存的一切,它们生成了天地万物.简单的0和1就构成了我们现在所用的操作系统,各种软件.硬件也是由高低电平控制,0和1就是万物. 刚刚在读一本科幻小说,里面提到一种叫做"脑域…
很明显,以下的文字来自微软MSDN 链接http://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx MSDN上分成了几个部分,查起来费事,统一放在这里了. 用kernel32.dll里的FormatMessage可以得到支持多语言的返回消息 有人把这些错误代码整理成了类,供参考 http://www.cnblogs.com/Sabre/p/3929264.html Note The informat…
本文记录imx6 uboot中关于lcd初始化的过程. uboot中相关的文件: cpu/arm_cortexa8/start.S lib_arm/board.c board/freescale/mx6q_sabresd/mx6q_sabresd.c common/stdio.c common/lcd.c drivers/video/ipu_common.c /* 汇编调用C语言 */ ./cpu/arm_cortexa8/start.S: ldr pc, _start_armboot @ ju…
标题: Uboot -kerne-root 启动流程 内容: ※uboot启动流程 ※Kernel启动流程 ※Root启动流程 ※构建根文件系统 /********************************* *u-boot: u-boot2012.04.01 *kernel:  linux-2.6.22 *busybox:    busybox-1.1.6 *********************************/ 一.uboot启动流程 1.初始化硬件 2.把内核从NAND读…
一.概述 linux内核镜像常见到的有两种形式,zImage和uImage.这两种文件的格式稍有差别,所以启动这两种格式的内核镜像也会有所不同.目前,uboot只支持启动uImage类型的镜像,对zImage还不支持(但是可以移植,TQ2440就是这样做的). 二.uImage和zImage 1.zImage zImage是用命令“#make zImage”生成的,我截取了生成信息最后部分的内容如下: OBJCOPY arch/arm/boot/Image Kernel: arch/arm/bo…
Introduction Deep learning is a recent trend in machine learning that models highly non-linear representations of data. In the past years, deep learning has gained a tremendous momentum and prevalence for a variety of applications (Wikipedia 2016a).…
the main steps: 1. look at the big picture 2. get the data 3. discover and visualize the data to gain insights 4. prepare the data for machine learning algorithms 5. select a model and train it 6. fine-tune your model 7. present your solution 8. laun…
本文转载至 http://zhangbuhuai.com/2015/07/16/beginning-auto-layout-part-1/ By 张不坏 2015-07-16 更新日期:2015-07-17 文章目录 1. 写在前面 2. iOS布局机制 3. 几个重要的API 3.1. intrinsicContentSize方法 3.2. preferredMaxLayoutWidth属性 3.3. sizeThatFits:方法和sizeToFit方法 3.4. systemLayoutS…
在u-boot中,通过bootm命令启动内核.bootm命令的作用是将内核加载到指定的内存地址,然后通过R0.R1.R2寄存器传递启动参数之后启动内核.在启动内核之前需要对环境做一些初始化工作,主要有如下几个方面: (1).cpu 寄存器设置 * R0 = 0 * R1 = 板级 id * R2 = 启动参数在内存中的起始地址 (2).cpu 模式 * 禁止所有中断 * 必须为SVC(超级用户)模式 (3).缓存.MMU * 关闭 MMU * 指令缓存可以开启或者关闭 * 数据缓存必须关闭并且不…
上片博文总结出了u-boot的工作流程,今天我们来分析,u-boot的两个比较重要的内容 1.        U-boot命令的实现 2.        U-boot如何启动内核 l  命令实现 我们的u-boot可以解析输入的命令,比如print.setenv.saveenv等命令,我们下来对其的实现进行分析. 我们昨天分析到BL2最后停在了main_loop处,那么我们输入的命令肯定也是在这个函数中实现的,我们找到该函数,在main_loop函数中run_command函数很容易引起我们的关…
本文转载自:https://gaomf.cn/2016/06/26/%E5%9C%A8U-Boot%E4%B8%AD%E6%B7%BB%E5%8A%A0%E8%87%AA%E5%AE%9A%E4%B9%89%E5%91%BD%E4%BB%A4%E4%BB%A5%E5%AE%9E%E7%8E%B0%E8%87%AA%E5%8A%A8%E4%B8%8B%E8%BD%BD%E7%A8%8B%E5%BA%8F/ U-Boot中通过NFS下载程序是一种很普遍的方式,然而下载程序的过程并不能只用一条命令实现…
本文转载自:http://www.crifan.com/files/doc/docbook/uboot_starts_analysis/release/html/uboot_starts_analysis.html 目录 正文之前 1. 本文内容 2. 本文目标 3. 代码来源 4. 阅读此文所要具有的前提知识 5. 声明 1. start.S详解 1.1. 设置CPU模式 1.1.1. globl 1.1.2. _start 1.1.3. ldr 1.1.4. .word 1.1.5. .ba…
1:什么是UBOOT,为什么要有UBOOT? UBOOT的主要作用是用来启动linux内核,因为CPU不能直接从块设备中执行代码,需要把块设备中的程序复制到内存中,而复制之前还需要进行很多初始化工作,如时钟.串口.dram等: 如要想让CPU启动linux内核,只能通过另外的程序,进行必要的初始化工作,在把linux内核中代码复制到内存中,并执行这块内存中的代码,即可启动linux内核:一般情况下,我们把linux 镜像储存在块设备中如SD卡.iNand.Nandflash等块设备中,首先执行U…
About this Course If you want to break into cutting-edge AI, this course will help you do so. Deep learning engineers are highly sought after, and mastering deep learning will give you numerous new career opportunities. Deep learning is also a new "s…
转自:https://www.cnblogs.com/biaohc/p/6403863.html 1:什么是UBOOT,为什么要有UBOOT? UBOOT的主要作用是用来启动linux内核,因为CPU不能直接从块设备中执行代码,需要把块设备中的程序复制到内存中,而复制之前还需要进行很多初始化工作,如时钟.串口.dram等: 如要想让CPU启动linux内核,只能通过另外的程序,进行必要的初始化工作,在把linux内核中代码复制到内存中,并执行这块内存中的代码,即可启动linux内核:一般情况下,…
---------------------if语句介绍--------------------------------------------------- class IfDemo { public static void main(String[] args) { int x = 1; if(x>1) { System.out.println("yes"); } else { System.out.println("a"); } /* if else 结构…
摘要 上一篇文章介绍了Fluent NHibernate基础知识.但是,Fluent NHibernate提供了一种更方便的Mapping方法称为Auto Mapping.只需在代码中定义一些Convention继承类,针对具体的属性.主键.关系.组件指定Mapping的规则,在实体类里定义简单的POCO对象就可以完成整个数据库的自动映射.Auto Mapping适合全新的系统开发,即是在系统设计时还没有数据库的时候.有点像Microsoft Entity Framework的Code Firs…