热门关键字:  ubuntu  分区  函数  Fedora  linux系统进程

移植uClinux-2.6.9到S3C44B0的过程

来源: 作者: 时间:2007-12-21 Tag: 点击:
U-Boot 1.1.4 (Jan 22 2007 - 16:40:53)
 
U-Boot code: 0C700000 -> 0C719EF8  BSS: -> 0C71E99C
RAM Configuration:
Bank #0: 0c000000  8 MB
Flash:  2 MB
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
## Booting image at 00040000 ...
   Image Name:   Linux-2.6.9
   Created:      2007-02-08  14:54:44 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1086152 Bytes =  1 MB
   Load Address: 0c008000
   Entry Point:  0c008000
   Verifying Checksum ... OK
OK
 
Starting kernel ...
 
Uncompressing Linux......................................................................... done, booting the kernel.
Linux version 2.6.9-hsc0 (root@localhost.localdomain) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #63 Thu Feb 8 09:36:06 EST 2007
CPU: Samsung-S3C44B0x [44b07700] revision 0 (ARMv4T)
Machine: S3C44B0X Development Board
Built 1 zonelists
Kernel command line: root=/dev/ram0 initrd=0x0c136600,968k console=ttyS0,115200
PID hash table entries: 64 (order: 6, 1024 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 8MB = 8MB total
Memory: 5776KB available (2125K code, 123K data, 52K init)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
checking if image is initramfs...it isn't (ungzip failed); looks like an initrd
Freeing initrd memory: 968K
NET: Registered protocol family 16
init_module
Samsung S3C44B0 Rtl8019as driver version 0.1 (2002-02-20) <hzh12@163.net>
init
eth0: 12:34:56:78:90:ab
get_stats
ttyS0 at I/O 0x1d00000 (irq = 3) is a Samsung S3C44B0 Internal UART
ttyS1 at I/O 0x1d04000 (irq = 2) is a Samsung S3C44B0 Internal UART
RAMDISK driver initialized: 16 RAM disks of 1024K size 1024 blocksize
loop: loaded (max 8 devices)
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 512)
NET: Registered protocol family 1
NET: Registered protocol family 17
RAMDISK: romfs filesystem found at block 0
RAMDISK: Loading 968KiB [1 disk] into ram disk... done.
VFS: Mounted root (romfs filesystem) readonly.
Freeing init memory: 52K
Shell invoked to run file: /etc/rc
Command: hostname ucan
Command: /bin/expand /etc/ramfs.img /dev/ram1
Command: mount -t proc proc /proc
Command: mount -t ext2 /dev/ram1 /var
Command: mkdir /var/config
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: mkdir /var/empty
Command: cat /etc/motd
Welcome to
          ____ _  _
         /  __| ||_|                
    _   _| |  | | _ ____  _   _  _  _
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|
 
For further information check:
http://www.uclinux.org/
 
Command: ifconfig lo 192.168.1.8
Command: route add -net 192.168.1.1 netmask 255.255.255.0 lo
route: netmask and route address conflict
pid 15: failed 256
Execution Finished, Exiting
init: Booting to single user mode
 
Sash command shell (version 1.1.1)
/> ls
bin
dev
etc
home
lib
mnt
proc
sbin
tmp
usr
var
/>
狂喜!!!!
二、网络驱动
板子网卡是rtl8019,本来uclinux-2.6中有rtl8019的驱动程序的,原本以为跑起系统后,网络应该是没有什么问题的。但是不然,问题还是不少。其实问题也不太多,对我来说是多了,因为我不知道怎么去调试驱动程序。主要注意的地方有:
1、  网卡基地址
2、  中断号
3、  网卡工作模式,8位还是16位模式
4、  中断的触发方式,高电平触发,或上升沿(要在u-boot中修改)。这点害惨我了,当时以为和u-boot没有关系,所以一直来都没有去动u-boot的代码,花了好多时间,郁闷。
5、  最后ping通过后,把调试模式关闭。
 
 
 
 
注:这是我以前的移植uClinux的过程,把文档共享,希望能对linux初学者有所帮助.没有本人同意,不得随便转载,谢谢合作.

最新评论共有 4 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册
栏目列表
热点关注
相关文章