📄 设置自动启动脚本.txt
字号:
在用网络下载文件时,在PC机上要起一个TFTP的网络服务程序才能下载
Platform: Cirrus Logic EDB9312 Board (ARM920T) Rev A
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.
RAM: 0x00000000-0x04000000, 0x00041f68-0x03fbd000 available
FLASH: 0x60000000 - 0x62000000, 128 blocks of 0x00040000 bytes each.
RedBoot> fis init
RedBoot> fconfig -i
Initialize non-volatile configuration - continue (y/n)? y
Run script at boot: true
Boot script:
Enter script, terminate with empty line
>> fis load ramdisk.gz
>> fis load zImage_lcd
>> exec -r 0x800000 -s 0x600000
>>
Boot script timeout (1000ms resolution): 5 等待时间
Use BOOTP for network configuration: false
Gateway IP address: 192.168.0.1
Local IP address: 192.168.0.10 开发板IP
Local IP address mask: 255.255.255.0
Default server IP address: 192.168.0.219 PC机IP
DNS server IP address: 192.168.0.1
Set eth0 network hardware address [MAC]: true
eth0 network hardware address [MAC]: 0x00:0x00:0x00:0x00:0x60:0x34
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false
Update RedBoot non-volatile configuration - continue (y/n)? y
... Erase from 0x61f80000-0x61f81000: .
... Program from 0x03fbe000-0x03fbf000 at 0x61f80000: .
RedBoot> fis list
Name FLASH addr Mem addr Length Entry point
RedBoot 0x60000000 0x60000000 0x00040000 0x00000000
RedBoot config 0x61F80000 0x61F80000 0x00001000 0x00000000
FIS directory 0x61FC0000 0x61FC0000 0x00040000 0x00000000
RedBoot> load -r -v -b 0x800000 ramdisk.gz
\
Raw file loaded 0x00800000-0x00976304, assumed entry at 0x00800000
RedBoot> fis create -b 0x800000 -l 0x600000 ramdisk.gz
... Erase from 0x60040000-0x60640000: ........................
... Program from 0x00800000-0x00e00000 at 0x60040000: ........................
... Erase from 0x61fc0000-0x62000000: .
... Program from 0x03fbf000-0x03fff000 at 0x61fc0000: .
RedBoot> load -r -v -b 0x80000 zImage_lcd_usbkb
-
Raw file loaded 0x00080000-0x0014991b, assumed entry at 0x00080000
RedBoot> fis create -b 0x80000 -l 0x100000 zImage_lcd
... Erase from 0x60640000-0x60740000: ....
... Program from 0x00080000-0x00180000 at 0x60640000: ....
... Erase from 0x61fc0000-0x62000000: .
... Program from 0x03fbf000-0x03fff000 at 0x61fc0000: .
RedBoot> fis list
Name FLASH addr Mem addr Length Entry point
RedBoot 0x60000000 0x60000000 0x00040000 0x00000000
RedBoot config 0x61F80000 0x61F80000 0x00001000 0x00000000
FIS directory 0x61FC0000 0x61FC0000 0x00040000 0x00000000
ramdisk.gz 0x60040000 0x00800000 0x00600000 0x00800000
zImage_lcd 0x60640000 0x00080000 0x00100000 0x00080000
复位就可自动运行LINUX
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -