// 编译内核
cd /home/guoqian/4-3-1/linux-2.6.29
make disclean
cp config-mini2440 .config
make menuconfig ARCH=arm
make uImage ARCH=arm CROSS_COMPILE=arm-linux-
// 将uImage拷至TFTP
cp arch/arm/boot/uImage /tftpboot/
// u-boot参数设置
set ipaddr 192.168.1.230
set serverip 192.168.1.123
set gatewayip 192.168.1.1
set bootcmd 'tftp 31000000 uImage; bootm 31000000'
set bootargs 'root=/dev/nfs rw nfsroot=192.168.1.123:/nfsroot/rootfs ip=192.168.1.230 console=ttySAC0 mem=64M'
save
printenv
启动过程如下:
U-Boot 2010.03 ( 4鏈18 2010 - 21:39:25)
modified by tekkamanninja (tekkamanninja@163.com)
Love Linux forever!!
I2C: ready
DRAM: 64 MB
Flash: 2 MB
NAND: 256 MiB
Video: 240x320x16 20kHz 62Hz
In: serial
Out: serial
Err: serial
USB slave is enable!
Net: dm9000
U-Boot 2010.03 ( 4鏈18 2010 - 21:39:25)
modified by tekkamanninja
(tekkamanninja@163.com)
Love Linux forever!!
Hit any key to stop autoboot: 0
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.123; our IP address is 192.168.1.230
Filename 'uImage-nfs'.
Load address: 0x31000000
Loading: T #################################################################
#################################################################
#########################
done
Bytes transferred = 2274308 (22b404 hex)
## Booting kernel from Legacy Image at 31000000 ...
Image Name: Linux-2.6.32.2-FriendlyARM
Created: 2011-08-19 2:45:31 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2274244 Bytes = 2.2 MB
Load Address: 30008000
Entry Point: 30008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux................................................................................................................................................... done, booting the kernel.
Linux version 2.6.32.2-FriendlyARM (root@ShiGuang) (gcc version 4.4.3 (ctng-1.6.1) ) #2 Fri Aug 19 10:45:24 CST 2011
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: root=/dev/nfs rw nfsroot=192.168.1.123:/nfsroot/rootfs ip=192.168.1.230 console=ttySAC0 mem=64M
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 60084KB available (4188K code, 451K data, 156K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:85
irq: clearing pending status 02000000
irq: clearing subpending status 00000002
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
S3C244X: Clock Support, DVS off
bio: create slab
SCSI subsystem initialized
……
……
……
TCP cubic registered
NET: Registered protocol family 17
s3c2410-rtc s3c2410-rtc: hctosys: invalid date/time
eth0: link down
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
device=eth0, addr=192.168.1.230, mask=255.255.255.0, gw=255.255.255.255,
host=192.168.1.230, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=192.168.1.123, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.123
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Looking up port of RPC 100005/1 on 192.168.1.123
VFS: Mounted root (nfs filesystem) on device 0:11.
Freeing init memory: 156K
hwclock: settimeofday() failed: Invalid argument
Try to bring eth0 interface up......NFS root ...Done
Please press Enter to activate this console.
[root@FriendlyARM /]#
[root@FriendlyARM /]#
[root@FriendlyARM /]#