首页 > 技术知识 > 正文

U-Boot 2013.07-g03ba37a-dirty (Mar 25 2020 – 10:47:42) Board: ISVP (Ingenic XBurst T31 SoC) DRAM: 128 MiB Top of RAM usable for U-Boot at: 84000000 Reserving 439k for U-Boot at: 83f90000 Reserving 32784k for malloc() at: 81f8c000 Reserving 32 Bytes for Board Info at: 81f8bfe0 Reserving 124 Bytes for Global Data at: 81f8bf64 Reserving 128k for boot params() at: 81f6bf64 Stack Pointer at: 81f6bf48 Now running in RAM – U-Boot at: 83f90000 MMC: msc: 0 the manufacturer c2 SF: Detected MX25L128**E *** Warning – bad CRC, using default environment In: serial Out: serial Err: serial Net: ====>phy 0:0x1c-0xc816 found SPEED:0, DUPLEX:0 Jz4775-9161 Hit any key to stop autoboot: 0 isvp_t31# isvp_t31# isvp_t31# isvp_t31# isvp_t31# isvp_t31# isvp_t31# isvp_t31# isvp_t31# printenv baudrate=115200 bootargs=console=ttyS1,115200n8 mem=64M@0x0 rmem=64M@0x4000000 init=/linuxrc rootfstype=squashfs root=/dev/mtdblock2 rw mtdparts=jz_sfc:256k(boot),2560k(kernel),2048k(root),-(appfs) bootcmd=sf probe;sf read 0x80600000 0x40000 0x280000; bootm 0x80600000 bootdelay=1 ethact=Jz4775-9161 ethaddr=00:d0:d0:00:95:27 gatewayip=192.168.100.1 ipaddr=192.168.100.73 loads_echo=1 netmask=255.255.255.0 serverip=192.168.100.71 stderr=serial stdin=serial stdout=serial Environment size: 501/16380 bytes
<

我们的板子是NorFlash和NandFlash同时支持,系统放在Nor上

bootargs=console=ttyS1,115200n8 mem=64M@0x0 rmem=64M@0x4000000 init=/linuxrc rootfstype=squashfs root=/dev/mtdblock2 rw mtdparts=jz_sfc:256k(boot),2560k(kernel),2048k(root),-(appfs)

默认启动参数配置:

路径在,uboot/include/configs/isvp_t31.h

从nor启动

bootcmd=sf probe;sf read 0x80600000 0x40000 0x280000; bootm 0x80600000

1) CONFIG_BOOTARGS, 主要修改点是内核启动以后的内存配置,分区大小配置。( 注: mem 表示内核启动以后保留内存, rmem 表示预留给 SDK 的内存(包括 ISP模块的内存);两者相加为芯片真实内存大小; 具体大小可参考代码)。

2) CONFIG_BOOTCOMMAND,配置 uboot 启动执行的命令。 例如: norflash 启动模式下添加 sd 卡启动的命令,

“sf probe;sf read 0x80600000 0x40000 0x280000; bootm 0x80600000” 改为

“mmc read 0x80600000 0x1800 0x3000; bootm 0x80600000″。

3) CONFIG_BOOTDELAY, 配置 uboot 的等待时间。

4) 需要添加新的 norflash 芯片的支持。

5) uboot 中添加密码功能:

修改配置文件, 修改 isvp_t31.h 中添加如下内容: #define CONFIG_AUTOBOOT_KEYED // 必配 #define CONFIG_AUTOBOOT_STOP_STR “123456” //必配, uboot 设置的密码。 #define CONFIG_AUTOBOOT_PROMPT “Press xxx in %d second” // bootdelay,选配, uboot 提示信息。 #define CONFIG_AUTOBOOT_DELAY_STR “linux” //选配, uboot 提示信息代码的具体实现在 common/main.c 中 abortboot_keyed(int bootdelay); 可以根据自己的需要具体改动。

猜你喜欢