#仅适用于友善提供的Mini2440开发板u-boot源码!!!
1. 启动u-boot(重启开发板并按一次任意键):
U-Boot 2010.03 ( 4鏈20 2014 - 11:20:52)
modified by tekkamanninja (tekkamanninja@163.com)
Love Linux forever!!
I2C: ready
DRAM: 64 MB
Flash: 2 MB
NAND: 256 MiB
In: serial
Out: serial
Err: serial
USB slave is enable!
Net: dm9000
Hit any key to stop autoboot: 0
##### FriendlyARM U-Boot(2012-07) for 2440 #####
[f] Format the nand flash
[v] Download u-boot.bin
[k] Download Linux kernel
[y] Download root yaffs2 image
[a] Download Absolute User Application
[s] Set the boot parameter of Linux
[b] Boot Linux
[r] Reboot
[q] Quit to shell
Enter your Selection:q //进入shell
[u-boot@MINI2440]#
2. 查看当前u-boot环境参数设置:
[u-boot@MINI2440]# printenv
bootargs=noinitrd root=/dev/mtdblock3 console=ttySAC0 init=/linuxrc
bootcmd=nand read.i 0x30008000 60000 500000;bootm
bootdelay=1
baudrate=115200
ethaddr=08:08:11:18:12:27
ipaddr=192.168.0.230
serverip=192.168.0.1
gatewayip=192.168.0.1
netmask=255.255.255.0
stdin=serial
stdout=serial
stderr=serial
ethact=dm9000
Environment size: 313/131068 bytes
3. 设置u-boot环境参数:
[u-boot@MINI2440]# setenv ipaddr 192.168.1.230 //开发板(target)IP
[u-boot@MINI2440]# setenv serverip 192.168.1.110 //开发主机(host)IP(FTP服务器所在主机)
[u-boot@MINI2440]# setenv gatewapip 192.168.1.1 //网关IP
[u-boot@MINI2440]# saveenv //保存设置(至开发板nand flash)
Saving Environment to NAND...
Erasing Nand...
Erasing at 0x40000 -- 100% complete.
Writing to Nand... done
4. 通过TFTP下载u-boot(至开发板外部RAM(64M bytes)):
[u-boot@MINI2440]# tftp 0x30008000 u-boot.bin
dm9000 i/o: 0x20000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 08:08:11:18:12:27
operating at 100M full duplex mode
Using dm9000 device
TFTP from server 192.168.1.110; our IP address is 192.168.1.230
Filename 'u-boot.bin'.
Load address: 0x30008000
Loading: T ################
done
Bytes transferred = 231376 (387d0 hex)
5. 擦除Nand flash以用来烧写u-boot(地址: 0x0,大小: 0x60000):
[u-boot@MINI2440]# nand erase 0x0 0x60000
NAND erase: device 0 offset 0x0, size 0x60000
Erasing at 0x40000 -- 100% complete.
OK
6. (从开发板RAM)拷贝u-boot至Nand flash(RAM地址: 0x30008000; Nand flash 地址: 0x0,大小: 0x60000):
[u-boot@MINI2440]# nand write 0x30008000 0x0 0x60000
NAND write: device 0 offset 0x0, size 0x60000
Writing at 0x40000 -- 100% is complete. 393216 bytes written: OK
7. 重启开发板:
U-Boot 2010.03 ( 4鏈20 2014 - 11:20:52)
modified by tekkamanninja (tekkamanninja@163.com)
Love Linux forever!!
I2C: ready
DRAM: 64 MB
Flash: 2 MB
NAND: 256 MiB
In: serial
Out: serial
Err: serial
USB slave is enable!
Net: dm9000
Hit any key to stop autoboot: 0
NAND read: device 0 offset 0x60000, size 0x500000
5242880 bytes read: OK
Starting kernel ...
Uncompressing Linux................................................................................................................................................... done, booting the kernel.
Linux version 2.6.32.2-FriendlyARM (root@localhost.localdomain) (gcc version 4.4.3 (ctng-1.6.1) ) #2 Sat Apr 19 19:26:38 CST 2014
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: FriendlyARM Mini2440 development board
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: console=ttySAC0 root=/dev/nfs nfsroot=192.16
1. 启动u-boot(重启开发板并按一次任意键):
U-Boot 2010.03 ( 4鏈20 2014 - 11:20:52)
modified by tekkamanninja (tekkamanninja@163.com)
Love Linux forever!!
I2C: ready
DRAM: 64 MB
Flash: 2 MB
NAND: 256 MiB
In: serial
Out: serial
Err: serial
USB slave is enable!
Net: dm9000
Hit any key to stop autoboot: 0
##### FriendlyARM U-Boot(2012-07) for 2440 #####
[f] Format the nand flash
[v] Download u-boot.bin
[k] Download Linux kernel
[y] Download root yaffs2 image
[a] Download Absolute User Application
[s] Set the boot parameter of Linux
[b] Boot Linux
[r] Reboot
[q] Quit to shell
Enter your Selection:q //进入shell
[u-boot@MINI2440]#
2. 查看当前u-boot环境参数设置:
[u-boot@MINI2440]# printenv
bootargs=noinitrd root=/dev/mtdblock3 console=ttySAC0 init=/linuxrc
bootcmd=nand read.i 0x30008000 60000 500000;bootm
bootdelay=1
baudrate=115200
ethaddr=08:08:11:18:12:27
ipaddr=192.168.0.230
serverip=192.168.0.1
gatewayip=192.168.0.1
netmask=255.255.255.0
stdin=serial
stdout=serial
stderr=serial
ethact=dm9000
Environment size: 313/131068 bytes
3. 设置u-boot环境参数:
[u-boot@MINI2440]# setenv ipaddr 192.168.1.230 //开发板(target)IP
[u-boot@MINI2440]# setenv serverip 192.168.1.110 //开发主机(host)IP(FTP服务器所在主机)
[u-boot@MINI2440]# setenv gatewapip 192.168.1.1 //网关IP
[u-boot@MINI2440]# saveenv //保存设置(至开发板nand flash)
Saving Environment to NAND...
Erasing Nand...
Erasing at 0x40000 -- 100% complete.
Writing to Nand... done
4. 通过TFTP下载u-boot(至开发板外部RAM(64M bytes)):
[u-boot@MINI2440]# tftp 0x30008000 u-boot.bin
dm9000 i/o: 0x20000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 08:08:11:18:12:27
operating at 100M full duplex mode
Using dm9000 device
TFTP from server 192.168.1.110; our IP address is 192.168.1.230
Filename 'u-boot.bin'.
Load address: 0x30008000
Loading: T ################
done
Bytes transferred = 231376 (387d0 hex)
5. 擦除Nand flash以用来烧写u-boot(地址: 0x0,大小: 0x60000):
[u-boot@MINI2440]# nand erase 0x0 0x60000
NAND erase: device 0 offset 0x0, size 0x60000
Erasing at 0x40000 -- 100% complete.
OK
6. (从开发板RAM)拷贝u-boot至Nand flash(RAM地址: 0x30008000; Nand flash 地址: 0x0,大小: 0x60000):
[u-boot@MINI2440]# nand write 0x30008000 0x0 0x60000
NAND write: device 0 offset 0x0, size 0x60000
Writing at 0x40000 -- 100% is complete. 393216 bytes written: OK
7. 重启开发板:
U-Boot 2010.03 ( 4鏈20 2014 - 11:20:52)
modified by tekkamanninja (tekkamanninja@163.com)
Love Linux forever!!
I2C: ready
DRAM: 64 MB
Flash: 2 MB
NAND: 256 MiB
In: serial
Out: serial
Err: serial
USB slave is enable!
Net: dm9000
Hit any key to stop autoboot: 0
NAND read: device 0 offset 0x60000, size 0x500000
5242880 bytes read: OK
Starting kernel ...
Uncompressing Linux................................................................................................................................................... done, booting the kernel.
Linux version 2.6.32.2-FriendlyARM (root@localhost.localdomain) (gcc version 4.4.3 (ctng-1.6.1) ) #2 Sat Apr 19 19:26:38 CST 2014
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: FriendlyARM Mini2440 development board
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: console=ttySAC0 root=/dev/nfs nfsroot=192.16