uboot环境变量与内核MTD分区关系

发布者:BlissfulSunrise最新更新时间:2024-08-30 来源: cnblogs关键字:uboot  环境变量 手机看文章 扫描二维码
随时随地手机看文章


        c101=           [NET] Moxa C101 synchronous serial card


        cachesize=      [BUGS=IA-32] Override level 2 CPU cache size detection.

                        Sometimes CPU hardware bugs make them report the cache

                        size incorrectly. The kernel will attempt work arounds

                        to fix known problems, but for some CPUs it is not

                        possible to determine what the correct size should be.

                        This option provides an override for these situations.


        cdu31a=         [HW,CD]

                        Format: ,[,PAS]

                        See header of drivers/cdrom/cdu31a.c.


        chandev=        [HW,NET] Generic channel device initialisation


        checkreqprot    [SELINUX] Set initial checkreqprot flag value.

                        Format: { '0' | '1' }

                        See security/selinux/Kconfig help text.

                        0 -- check protection applied by kernel (includes

                                any implied execute protection).

                        1 -- check protection requested by application.

                        Default value is set via a kernel config option.

                        Value can be changed at runtime via

                                /selinux/checkreqprot.


        clock=          [BUGS=IA-32,HW] gettimeofday timesource override.

                        Forces specified timesource (if avaliable) to be used

                        when calculating gettimeofday(). If specicified

                        timesource is not avalible, it defaults to PIT.

                        Format: { pit | tsc | cyclone | pmtmr }


        hpet=           [IA-32,HPET] option to disable HPET and use PIT.

                        Format: disable


        cm206=          [HW,CD]

                        Format: { auto | [,][] }


        com20020=       [HW,NET] ARCnet - COM20020 chipset

                        Format:

                        [,[,[,[,[,]]]]]


        com90io=        [HW,NET] ARCnet - COM90xx chipset (IO-mapped buffers)

                        Format: [,]


        com90xx=        [HW,NET]

                        ARCnet - COM90xx chipset (memory-mapped buffers)

                        Format: [,[,]]


        condev=         [HW,S390] console device

        conmode=


        console=        [KNL] Output console device and options.


                tty  Use the virtual console device .


                ttyS[,options]

                        Use the specified serial port.  The options are of

                        the form 'bbbbpn', where 'bbbb' is the baud rate,

                        'p' is parity ('n', 'o', or 'e'), and 'n' is bits.

                        Default is '9600n8'.


                        See also Documentation/serial-console.txt.


                uart,io,[,options]

                uart,mmio,[,options]

                        Start an early, polled-mode console on the 8250/16550

                        UART at the specified I/O port or MMIO address,

                        switching to the matching ttyS device later.  The

                        options are the same as for ttyS, above.


        cpcihp_generic= [HW,PCI] Generic port I/O CompactPCI driver

                        Format:

                        ,,,[,<debug>]


        cpia_pp=        [HW,PPT]

                        Format: { parport | auto | none }


        crashkernel=nn[KMG]@ss[KMG]

                        [KNL] Reserve a chunk of physical memory to

                        hold a kernel to switch to with kexec on panic.


        cs4232=         [HW,OSS]

                        Format: ,,,,,


        cs89x0_dma=     [HW,NET]

                        Format:


        cs89x0_media=   [HW,NET]

                        Format: { rj45 | aui | bnc }


        cyclades=       [HW,SERIAL] Cyclades multi-serial port adapter.


        dasd=           [HW,NET]

                        See header of drivers/s390/block/dasd_devmap.c.


        db9.dev[2|3]=   [HW,JOY] Multisystem joystick support via parallel port

                        (one device per port)

                        Format: ,

                        See also Documentation/input/joystick-parport.txt


        debug           [KNL] Enable kernel debugging (events log level).


        decnet=         [HW,NET]

                        Format: [,]

                        See also Documentation/networking/decnet.txt.


        devfs=          [DEVFS]

                        See Documentation/filesystems/devfs/boot-options.


        dhash_entries=  [KNL]

                        Set number of hash buckets for dentry cache.


        digi=           [HW,SERIAL]

                        IO parameters + enable/disable command.


        digiepca=       [HW,SERIAL]

                        See drivers/char/README.epca and

                        Documentation/digiepca.txt.


        dmascc=         [HW,AX25,SERIAL] AX.25 Z80SCC driver with DMA

                        support available.

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ..[13]
关键字:uboot  环境变量 引用地址:uboot环境变量与内核MTD分区关系

上一篇:s3c2440对nandflash的操作1
下一篇:GCC 内联汇编(GCC内嵌ARM汇编规则)

推荐阅读最新更新时间:2026-02-21 23:50

05-S3C2440学习之内核(移植)linux3.4.2移植(1) 简单移植+修改MTD分区+制作jffs2文件系统
一、框架介绍及简单修改 1.1 Bootloader如何引导内核 Bootloader的工作: (1)讲内核读入内存中 (2)存一些内核启动参数到指定位置,内核启动时去解析 (3)启动内核,传入机器ID 1.2、内核的启动流程: 首先 内核的最终目的是挂接根文件系统,并启动应用程序。 想启动应用程序—需要挂接根文件系统—装载驱动程序(flash、网卡)--要解析参数(文件系统在哪)--根据R1判断内核是否支持该ID—支持调用初始化相关函数 每个开发板都有不同的硬件参数 内核移植过程中要决定我这个内核支持哪些硬件开发板 我在内核里针对这个开发板给他一个ID。Uboot启动的时候传入和内核中设置好的匹配
[单片机]
05-S3C2440学习之<font color='red'>内核</font>(移植)linux3.4.2移植(1) 简单移植+修改<font color='red'>MTD</font>分区+制作jffs2文件系统
U-boot-2014.04移植到MINI2440(10) 移植nand flash保存环境变量、添加分区
一.保存环境变量到nand flash 第一步:修改mini2440.h 由于我们执行saveenv这个命令,然后保存环境变量,u-boot的命令都是在common下实现的,切进去执行gerp “saveenv” –nr ./*.c,查找出如下结果: 这里出现了很多,打开Makefile: # environment obj-y += env_attr.o obj-y += env_callback.o obj-y += env_flags.o obj-$(CONFIG_ENV_IS_IN_DATAFLASH) +=env_dataflash.o obj-$(CONFIG_ENV_IS_IN_E
[单片机]
U-boot-2014.04移植到MINI2440(10) 移植nand flash保存<font color='red'>环境变量</font>、添加分区
uboot段相关变量
在分析relocate_code函数之前,先来总结一下相关的uboot段相关变量,这些段的地址在uboot代码重定位的时候需要用到,将uboot源码进行编译后,会在源码根目录生成u-boot.lds链接文件和u-boot.map内存映射文件,通过这两个文件,可以寻找到uboot段的地址 在上面寻找到的变量值中,除了_start和__image_copy_start值不会该变,当修改了uboot的源码或改变了编译条件,其他的变量都可能会发生改变,因此分析时,一定要以实际编译时进行uboot分析。 relocate_code函数 relocate_code函数会传入一个参数,该参数为gd- relocaddr,也就是uboot
[单片机]
<font color='red'>uboot</font>段相关变量
uboot常用的函数
一、介绍 FDT,flatted device tree,扁平设备树。熟悉 Linux 的人对这个概念应该不陌生。 简单理解为将部分设备信息结构存放到device tree文件中。 uboot最终将其device tree编译成dtb文件,使用过程中通过解析该dtb来获取板级设备信息。 uboot的dtb和kernel中的dtb是一致的。这部分建议直接参考wowo的dtb的文章 Device Tree(一):背景介绍 Device Tree(二):基本概念 Device Tree(三):代码分析 关于uboot的fdt,可以参考doc/README.fdt-control。 二、dtb介绍 1、dtb结构介绍 结构
[单片机]
uboot总结:uboot配置和启动过程2(mkconfig分析)
说明:文件位置:在uboot的目录下,文件名为:mkconfig。本身是一个脚本文件。 它的主要作用的是: (1)创建一个重要的符号链接 (2)创建一个config.mk文件(在include目录下) (3)创建一个config.h文件(在include目录下) 下面会截距一部分重要的代码来分析 1、首先要明白一个参数($1、$2、$3、$4、$5),这是传参 (1)@(MKCONFIG)(��������)(@:_config=) arm s5pc11x x210 samsung s5pc110 这个是在主Makefile中的配置部分的代码。这里的5个参数将来会传给mkconfig脚本。 $1:arm $2:s5pc11
[单片机]
04_uboot全面讲解
本课程希望达到目标 理解底层代码的编写方式 u-boot版本选择 uboot官方源码地址 https://ftp.denx.de/pub/u-boot/ Uboot版本一直在迭代,加入的东西也越来越多,所以我们学习,只要选择适合的版本就可以了 这里我们先选择下载2010.12版本的 解压下来之后,进入archarmcpuarmv7路径下,可以看到有各种芯片的版本 mx5/ omap3/ omap4/ omap-common/ s5pc1xx/ s5p-common/ config.mk cpu.c Makefile start.S syslib.c u-boot.lds 里面的start.S是芯片启动的文件,是我们后面重
[单片机]
[uboot] (番外篇)uboot之fdt介绍
一、介绍 FDT,flatted device tree,扁平设备树。熟悉 Linux 的人对这个概念应该不陌生。 简单理解为将部分设备信息结构存放到device tree文件中。 uboot最终将其device tree编译成dtb文件,使用过程中通过解析该dtb来获取板级设备信息。 uboot的dtb和kernel中的dtb是一致的。这部分建议直接参考wowo的dtb的文章 Device Tree(一):背景介绍 Device Tree(二):基本概念 Device Tree(三):代码分析 关于uboot的fdt,可以参考doc/README.fdt-control。 二、dtb介绍 1、dtb结构介绍 结构
[单片机]
s5pv210 uboot-2012-10移植(二) 之能够启动进入控制台
这次我们将从官网下载的最新uboot-2012-10移植到s5pv210开发板上,让其进入控制台,效果如下: 首先,我暂时没采用内核的SPL,这个将在后面给补上,这里的BL1是我自己参考资料写的,我用的是TQ210开发板,内存1G,对于不同的开发板,需要重新配置memory和修改uboot在内存里的地址,也就是CONFIG_SYS_TEXT_BASE。我的BL1代码在这里下载。 一、添加smdkv210单板 1.cp -a board/samsung/smdkc100 board/samsung/smdkv210 2.cp include/configs/smdkc100.h include/configs/smd
[单片机]
小广播
最新单片机文章
何立民专栏 单片机及嵌入式宝典

北京航空航天大学教授,20余年来致力于单片机与嵌入式系统推广工作。

厂商技术中心

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

 
机器人开发圈

电子工程世界版权所有 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2026 EEWORLD.com.cn, Inc. All rights reserved