原创 最新内核linux2.6.36.2 DM9000 YAFFS2在utu2440移植成功

2011-1-6 10:24 3835 1 3 分类: MCU/ 嵌入式

花了两天时间,将最新内核linux2.6.36.2 在utu2440移植成功!包括根文件系统yaffs,cramfs移植,DM9000网卡,可以用NFS挂接根文件系统。。。。。。。。。。。。。。。


U-Boot 1.3.4 (Dec 26 2010 - 11:41:02)


DRAM:  64 MB
NAND:  64 MiB
In:    serial
Out:   serial
Err:   serial
dm9000 i/o: 0x18000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 00:0c:20:02:0a:5b
YY2440 # setenv bootargs 'console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.52:/yy-linux/root_1.18 ip=192.168.1.3:192.168.1.1:192.168.1.1:255.255.255.0:yangyong:eth0:off'
YY2440 # printenv
bootdelay=3
baudrate=115200
ethaddr=00:0c:20:02:0a:5b
serverip=192.168.1.51
gatewayip=192.168.1.1
netmask=255.255.255.0
ipaddr=192.168.1.3
stdin=serial
stdout=serial
stderr=serial
bootargs=console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.52:/yy-linux/root_1.18 ip=192.168.1.3:192.168.1.1:192.168.1.1:255.255.255.0:yangyong:eth0:off


Environment size: 331/65532 bytes
YY2440 # tftp 31000000 uimage
dm9000 i/o: 0x18000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 00:0c:20:02:0a:5b
TFTP from server 192.168.1.51; our IP address is 192.168.1.3
Filename 'uimage'.
Load address: 0x31000000
Loading: T #################################################################
         #################################################################
         ########
done
Bytes transferred = 2024504 (1ee438 hex)
YY2440 # bootm 31000000
## Booting kernel from Legacy Image at 31000000 ...
   Image Name:   Linux-2.6.36.2-YangYong
   Created:      2011-01-06   1:49:34 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2024440 Bytes =  1.9 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.36.2-YangYong (root@localhost.localdomain) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-176) ) #20 Thu Jan 6 09:49:25 CST 2011
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: YY2440
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, Copyright 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.168.1.52:/yy-linux/root_1.18 ip=192.168.1.3:192.168.1.1:192.168.1.1:255.255.255.0:yangyong:eth0:off
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: 60744k/60744k available, 4792k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xc4800000 - 0xe0000000   ( 440 MB)
    lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0025000   ( 116 kB)
      .text : 0xc0025000 - 0xc03b8000   (3660 kB)
      .data : 0xc03b8000 - 0xc03e0d80   ( 164 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:85
irq: clearing pending ext status 00000300
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
gpiochip_add: gpios 288..303 (GPIOK) failed to register
gpiochip_add: gpios 320..334 (GPIOL) failed to register
gpiochip_add: gpios 352..353 (GPIOM) failed to register
NET: Registered protocol family 16
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, Copyright 2003-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 <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
s3c-i2c s3c2440-i2c: slave address 0x10
s3c-i2c s3c2440-i2c: bus frequency set to 98 KHz
s3c-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
Advanced Linux Sound Architecture Driver Version 1.0.23.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
msgmni has been set to 118
alg: No test for stdrng (krng)
io scheduler noop registered (default)
Console: switching to colour frame buffer device 30x20
fb0: s3c2410fb frame buffer device
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
loop: module loaded
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c24xx-nand s3c2440-nand: Tacls=2, 19ns Twrph0=3 29ns, Twrph1=2 19ns
s3c24xx-nand s3c2440-nand: NAND ECC disabled
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Bad eraseblock 2797 at 0x000002bb4000
cmdlinepart partition parsing not available
Creating 4 MTD partitions on "NAND":
0x000000000000-0x000000040000 : "Boot"
0x000000040000-0x000000060000 : "boot-env"
0x000000060000-0x000000260000 : "kernel"
0x000000260000-0x000003ffc000 : "root"
dm9000 Ethernet Driver, V1.31
Now use the default MAC address: 00:0c:20:02:0a:5b
eth0: dm9000a at c481c300,c4820304 IRQ 53 MAC: 00:0c:20:02:0a:5b (yangyong)
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: S3C24XX OHCI
usb usb1: Manufacturer: Linux 2.6.36.2-YangYong ohci_hcd
usb usb1: SerialNumber: s3c24xx
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
s3c2410_udc: debugfs dir creation failed -19
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
i2c /dev entries driver
Linux video capture interface: v2.00
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
No device for DAI UDA134X
No device for DAI s3c24xx-i2s
ALSA device list:
  No soundcards found.
TCP cubic registered
lib80211: common routines for IEEE802.11 drivers
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
eth0: link down
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
IP-Config: Complete:
     device=eth0, addr=192.168.1.3, mask=255.255.255.0, gw=192.168.1.1,
     host=yangyong, domain=, nis-domain=(none),
     bootserver=192.168.1.1, rootserver=192.168.1.52, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.52
Looking up port of RPC 100005/1 on 192.168.1.52
VFS: Mounted root (nfs filesystem) on device 0:12.
Freeing init memory: 116K
ifconfig: SIOCSIFHWADDR: Device or resource busy
route: SIOCADDRT: File exists
[01/Jan/1970:00:00:07 +0000] boa: server version Boa/0.94.13
[01/Jan/1970:00:00:07 +0000] boa: server built Dec 28 2010 at 14:41:06.
[01/Jan/1970:00:00:07 +0000] boa: starting server pid=458, port 80
*******************************
*********** YY ARM ************
Kernel version: linux-2.6.36.2


Author:         YangYong
Data:           2011.01.06


*******************************


Please press Enter to activate this console. open device leds: No such file or directory


[root@yangyong /]# ls
bin      home     mnt      root     sys      usr
dev      lib      opt      sbin     tmp      var
etc      linuxrc  proc     sddisk   udisk    www
[root@yangyong /]# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: seq=0 ttl=64 time=4.051 ms
64 bytes from 192.168.1.1: seq=1 ttl=64 time=1.287 ms
^C
--- 192.168.1.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 1.287/2.669/4.051 ms
[root@yangyong /]# top


Mem: 5912K used, 54948K free, 0K shrd, 0K buff, 3132K cached
CPU:  7.6% usr 15.3% sys  0.0% nic 76.9% idle  0.0% io  0.0% irq  0.0% sirq
Load average: 0.06 0.01 0.00 1/32 477
  PID  PPID USER     STAT   VSZ %MEM CPU %CPU COMMAND
  477   462 root     R     2184  3.5   0 23.0 top
  455     1 root     S     4820  7.8   0  0.0 /usr/sbin/inetd
  462     1 root     S     2188  3.5   0  0.0 -/bin/sh
    1     0 root     S     2180  3.5   0  0.0 init
  463     1 root     S     2180  3.5   0  0.0 init
  465     1 root     S     2180  3.5   0  0.0 init
  468     1 root     S     2180  3.5   0  0.0 init
  458     1 root     S     2004  3.2   0  0.0 /sbin/boa
  261     2 root     SW       0  0.0   0  0.0 [kworker/0:1]
    5     2 root     SW       0  0.0   0  0.0 [kworker/u:0]
    2     0 root     SW       0  0.0   0  0.0 [kthreadd]
    3     2 root     SW       0  0.0   0  0.0 [ksoftirqd/0]
    4     2 root     SW       0  0.0   0  0.0 [kworker/0:0]
    6     2 root     SW<      0  0.0   0  0.0 [khelper]
    7     2 root     SW       0  0.0   0  0.0 [kworker/u:1]
  153     2 root     SW       0  0.0   0  0.0 [sync_supers]
  155     2 root     SW       0  0.0   0  0.0 [bdi-default]
  157     2 root     SW<      0  0.0   0  0.0 [kblockd]
  166     2 root     SW       0  0.0   0  0.0 [khubd]
  172     2 root     SW<      0  0.0   0  0.0 [kmmcd]
[root@yangyong /]# ps
PID   USER     TIME   COMMAND
    1 root       0:00 init
    2 root       0:00 [kthreadd]
    3 root       0:00 [ksoftirqd/0]
    4 root       0:00 [kworker/0:0]
    5 root       0:00 [kworker/u:0]
    6 root       0:00 [khelper]
    7 root       0:00 [kworker/u:1]
  153 root       0:00 [sync_supers]
  155 root       0:00 [bdi-default]
  157 root       0:00 [kblockd]
  166 root       0:00 [khubd]
  172 root       0:00 [kmmcd]
  259 root       0:00 [rpciod]
  261 root       0:01 [kworker/0:1]
  267 root       0:00 [kswapd0]
  314 root       0:00 [aio]
  318 root       0:00 [nfsiod]
  323 root       0:00 [crypto]
  364 root       0:00 [mtdblock0]
  369 root       0:00 [mtdblock1]
  374 root       0:00 [mtdblock2]
  379 root       0:00 [mtdblock3]
  427 root       0:00 [usbhid_resumer]
  440 root       0:00 [kworker/0:2]
  455 root       0:00 /usr/sbin/inetd
  458 root       0:00 /sbin/boa
  462 root       0:00 -/bin/sh
  463 root       0:00 init
  465 root       0:00 init
  468 root       0:00 init
  475 root       0:00 [flush-0:12]
  478 root       0:00 ps
[root@yangyong /]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:20:02:0A:5B 
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2825 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1111 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3302979 (3.1 MiB)  TX bytes:182070 (177.8 KiB)
          Interrupt:53 Base address:0xc300


lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


[root@yangyong /]#


 


 


                        发现一个问题??  linux 2.6.36.2的CPU使用率比linux 2.6.30.4的少很多,不知是真如此,还是什么原因??????????????


linux 2.6.30.4


105b82df-9ed4-4cae-be54-606fbc57b292.jpg


linux 2.6.36.2


b4db5261-05ca-4406-9405-d47aa9890c29.jpg

广告

文章评论 2条评论)

登录后参与讨论

zuoyioo7_550610384 2013-6-27 23:33

老大,写点移植过程遇到的问题啊,还有经验,估计博主又可以出书了?先赞一个了!

billzhu_345737527 2012-5-22 13:06

分享一下如何做的多好啊
相关推荐阅读
singlechip 2013-07-03 14:54
[博客大赛]四层板搞定--AT91SAM9X35 第二版
    花了一个月时间,又重新设计了一款AT91SAM9X35的板子。针对第一版做了以下改进。   1 200PIN1.27MM的双排插针换成了更可靠的BTB-80 插针   ...
singlechip 2013-04-25 09:48
[博客大赛]四层板搞定--AT91SAM9X35
  1月15号从零开始设计原理图,到今天4月15号,刚好3个月,终于用4层板设计完成了AT...
singlechip 2013-04-09 18:06
准备花3个月时间用四层板画--AT91SAM9X35
  最近终于腾出手来,比较看好AT91SAM9X35这颗芯片,打算好好弄弄。先从画板开始吧?虽然手上有芯片商提供的开发板,但总觉得不能自己画出一块板出来,技术永远不会属于自己。所以准...
singlechip 2013-02-01 15:01
PCB设计资料汇总
http://pan.baidu.com/share/link?shareid=202013&uk=3826038294#dir/path=%2FPCB%E8%AE%BE%E8%AE%A1...
singlechip 2012-12-12 16:00
[ti博客大赛]基于MSP430装备监控型冲击震动记录仪
概述 装备监控型冲击振动记录仪(以下简称记录仪)用于长时间监视装备在储存过程中受到的冲击振动,对超过阈值的冲击事件进行记录和报警。记录的事件包括对事件的发生强度和发生时间进行实时的记录。当需要...
singlechip 2012-12-12 16:00
[ti博客大赛]当年纯手工打造的---基于MSP430姿态调整仪
当年纯手工打造的---基于MSP430姿态调整仪。。。。采用三轴加速度传感器。。。 感兴趣的朋友可以到我博客探讨。。。。 http://bbs.ednchina.com/BLOG_ARTI...
广告
我要评论
2
1
广告
关闭 热点推荐上一条 /2 下一条