⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lumit-uclinux-readme.txt

📁 关于s3c4510数据手册的资料以及lumit bootloader有关知识文章
💻 TXT
字号:
uClinux boot User Guide for lumit4510 : how to boot uClinux kernel说明: 本小节内容是关于如何在 bootloader 的基础上,启动 uClinux -------------------------------------------------------------------------Step 1:1、通过 help 可以看到 \>helphelp	------	show help?	------	= helpload	------	load file to memoryprog	------	program flashboot	------	boot from flashap	------	auto load image flie and program flashcopy	------	copy flash from src to dst addressipcfg	------	show or set IP addressdn	------	ev-7t bootloader downloadgo	------	Go at 0x80002、执行 ipcfg 获得开发板的 ip 地址 (缺省即 192.168.168.101)\>ipcfgIP address : 192.168.168.101\>Step 2:1、下载 http://www.lumit.org/download/tools/tftp.exe2、下载 http://www.lumit.org/download/software/image.ram.rar3、解压缩 image.ram.rar 获得 image.ram ,该文件就是 uClinux kernel imageStep 3:1、修改设置 pc 主机的ip地址为 192.168.168.100 2、使用开发套件中的“网络对连线”连接 pc 主机的网口和 lumit 4510 开发板的网口3、此时应该看到 D1, D2 led 亮了,说明网络连接正常Step 4:1、在开发板上执行 load 命令,表示从网络下载内核\>loadNo begin address for download, use default address 0x8000Mini TFTP Server 1.0 (IP : 192.168.168.101 PORT: 69)Load image file from hostType tftp -i 192.168.168.101 put filename at the host PCPress ESC key to exit2、此时开发板开始等待主机发送 image.ram 3、在 pc 主机上刚才 Step 2 的下载目录中输入 tftp -i 192.168.168.101 put image.ramc:\temp>tftp -i 192.168.168.101 put image.ramTransfer successful: 1563584 bytes in 3 seconds, 521194 bytes/s4、最后一行表示通过 tftp 传输成功,下载 uClinux kernel 完毕5、此时在开发板上输入 ESC 键,表示退出传输模式6、开发板显示 \> 提示符,重新又回到 bootloader 的 Shell 中\>loadNo begin address for download, use default address 0x8000Mini TFTP Server 1.0 (IP : 192.168.168.101 PORT: 69)Load image file from hostType tftp -i 192.168.168.101 put filename at the host PCPress ESC key to exit\>7、此时执行 go 命令,开始运行 uClinux Kernel image8、uClinux Kernel 开始输出,并进入到 uClinux 的 Sash 中\>gogo at address 0x8000 Linux version 2.4.22-uc0 (root@dailzh) (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/)) #24  17 18:54:45 CST 2003Processor: Samsung S3C4510B revision 6Architecture: SNDS100On node 0 totalpages: 4096zone(0): 0 pages.zone(1): 4096 pages.zone(2): 0 pages.Kernel command line: root=/dev/rom0Calibrating delay loop... 49.76 BogoMIPSMemory: 16MB = 16MB totalMemory: 14512KB available (1454K code, 156K data, 40K init)Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)Inode cache hash table entries: 1024 (order: 1, 8192 bytes)Mount cache hash table entries: 512 (order: 0, 4096 bytes)Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)Page-cache hash table entries: 4096 (order: 2, 16384 bytes)POSIX conformance testing by UNIFIXLinux NET4.0 for Linux 2.4Based upon Swansea University Computer Society NET3.039Initializing RT netlink socketStarting kswapdSamsung S3C4510 Serial driver version 0.9 (2001-12-27) with no serial options enabledttyS00 at 0x3ffd000 (irq = 5) is a S3C4510BttyS01 at 0x3ffe000 (irq = 7) is a S3C4510BBlkmem copyright 1998,1999 D. Jeff DionneBlkmem copyright 1998 Kenneth AlbanowskiBlkmem 1 disk images:0: C4358-17DB57 [VIRTUAL C4358-17DB57] (RO)RAMDISK driver initialized: 16 RAM disks of 1024K size 1024 blocksizeSamsung S3C4510 Ethernet driver version 0.1 (2002-02-20) <mac@os.nctu.edu.tw>eth0: 00:40:95:36:35:34 NET4: Linux TCP/IP 1.0 for NET4.0IP Protocols: ICMP, UDP, TCPIP: routing cache hash table of 512 buckets, 4KbytesTCP: Hash tables configured (established 1024 bind 1024)VFS: Mounted root (romfs filesystem) readonly.Freeing init memory: 40KShell invoked to run file: /etc/rcCommand: hostname SamsungCommand: /bin/expand /etc/ramfs.img /dev/ram0Command: /bin/expand /etc/ramfs2048.img /dev/ram1Command: mount -t proc proc /procCommand: mount -t ext2 /dev/ram0 /varCommand: mount -t ext2 /dev/ram1 /ramdiskCommand: chmod 777 /ramdiskCommand: mkdir /var/configCommand: mkdir /var/tmpCommand: mkdir /var/logCommand: mkdir /var/runCommand: mkdir /var/lockCommand: ifconfig lo 127.0.0.1Command: route add -net 127.0.0.0 netmask 255.255.255.0 loCommand: ifconfig eth0 192.168.168.101 netmask 255.255.255.0 upCommand: cat /etc/motdWelcome to          ____ _  _         /  __| ||_|                     _   _| |  | | _ ____  _   _  _  _    | | | | |  | || |  _ \| | | |\ \/ /   | |_| | |__| || | | | | |_| |/    \   |  ___\____|_||_|_| |_|\____|\_/\_/   | |   |_|For further information check:http://www.uclinux.org/Execution Finished, ExitingSash command shell (version 1.1.1)/> 9、进入 /bin 目录,执行下面的应用程序,例如 ping/telnet/ftp/mount 等例如:/> cd bin/bin> ping 192.168.168.100PING 192.168.168.100 (192.168.168.100): 56 data bytes64 bytes from 192.168.168.100: icmp_seq=0 ttl=128 time=0.0 ms64 bytes from 192.168.168.100: icmp_seq=2 ttl=128 time=0.0 ms64 bytes from 192.168.168.100: icmp_seq=3 ttl=128 time=0.0 ms64 bytes from 192.168.168.100: icmp_seq=4 ttl=128 time=0.0 ms64 bytes from 192.168.168.100: icmp_seq=5 ttl=128 time=0.0 ms64 bytes from 192.168.168.100: icmp_seq=6 ttl=128 time=0.0 ms64 bytes from 192.168.168.100: icmp_seq=7 ttl=128 time=0.0 ms64 bytes from 192.168.168.100: icmp_seq=8 ttl=128 time=0.0 ms64 bytes from 192.168.168.100: icmp_seq=9 ttl=128 time=0.0 ms64 bytes from 192.168.168.100: icmp_seq=10 ttl=128 time=0.0 ms--- 192.168.168.100 ping statistics ---11 packets transmitted, 11 packets received, 0% packet lossround-trip min/avg/max = 0.0/0.0/0.0 ms/bin> 可以看出 pc 主机与开发板的连接正常另外如果在 pc 主机端启动 telnet/ftp server,还可以测试 telnet/ftp 等应用。可以自己测试一下,telnet 到自己的 pc 上看看目录文件什么的还是很好玩的。┌-------------------------------------------------------------------------┐│                                                                         ││    Welcome to visit http://www.lumit.org for more information           ││                                                                         ││                  [lumit] - let us make it together                      ││                                                                         ││                                                                         ││                                         lumit-admin <admin@lumit.org>   ││                                                                         │└-------------------------------------------------------------------------┘

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -