收藏 分享(赏)

加载内核及文件系统.doc

上传人:kpmy5893 文档编号:7191003 上传时间:2019-05-09 格式:DOC 页数:9 大小:37.50KB
下载 相关 举报
加载内核及文件系统.doc_第1页
第1页 / 共9页
加载内核及文件系统.doc_第2页
第2页 / 共9页
加载内核及文件系统.doc_第3页
第3页 / 共9页
加载内核及文件系统.doc_第4页
第4页 / 共9页
加载内核及文件系统.doc_第5页
第5页 / 共9页
点击查看更多>>
资源描述

1、法一、1、首先,用 u-boot/tools/mkimage 这个工具为你的内核加上 u-boot 引导所需要的文件头,具体做法如下:rootlocalhost tftpboot#mkimage -n linux-2.6.14 -A arm -O linux -T kernel -C none -a 0x30008000 -e 0x30008000 -d zImage zImage.imgImage Name: linux-2.6.14Created: Fri Jan 12 17:14:50 2007Image Type: ARM Linux Kernel Image (uncompresse

2、d)Data Size: 1262504 Bytes = 1232.91 kB = 1.20 MBLoad Address: 0x30008000Entry Point: 0x30008000 这里解释一下参数的意义: -A = set architecture to arch-O = set operating system to os-T = set image type to type-C = set compression type comp-a = set load address to addr (hex)-e = set entry point to ep (hex)-n = s

3、et image name to name-d = use image data from datafile-x = set XIP (execute in place)2 、下载内核 U-Boot 1.1.3 (Jan 12 2007 - 16:16:36) U-Boot code: 33F80000 - 33F9BAC0 BSS: - 33F9FBACRAM Configuration:Bank #0: 30000000 64 MBNor Flash: 512 kBNand Flash: 64 MBIn: serialOut: serialErr: serialHit any key to

4、 stop autoboot: 0sbc2410=tftp 0x31000000 zImage.img TFTP from server 192.168.1.115; our IP address is 192.168.1.128Filename zImage.img.Load address: 0x31000000Loading: #doneBytes transferred = 1263324 (1346dc hex) 3.运行 sbc2410=bootm 0x31000000# Booting image at 31000000 .Image Name: linun-2.6.14 Ima

5、ge Type: ARM Linux Kernel Image (uncompressed)Data Size: 1263260 Bytes = 1.2 MBLoad Address: 30008000Entry Point: 30008000Verifying Checksum . OKOK Starting kernel . Uncompressing Linux.Linux version 2.6.14 (rootluofuchong) (gcc version 3.4.1) #21 Fri Oct 20 17:206CPU: ARM920Tid(wb) 41129200 revisio

6、n 0 (ARMv4T)Machine: SMDK2410Memory policy: ECC disabled, Data cache writebackCPU S3C2410A (id 0x32410002)S3C2410: core 202.800 MHz, memory 101.400 MHz, peripheral 50.700 MHzS3C2410 Clocks, (c) 2004 Simtec ElectronicsCLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL onUSB Control, (c) 2006 sbc2410CP

7、U0: D VIVT write-back cacheCPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 setsCPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 setsBuilt 1 zonelistsKernel command line: console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.115:/frien“irq: clearing subpending status 00000002PI

8、D hash table entries: 512 (order: 9, 8192 bytes)timer tcon=00500000, tcnt a509, tcfg 00000200,00000000, usec 00001e4cConsole: colour dummy device 80x30Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)Memory: 64MB = 64MB totalMe

9、mory: 62208KB available (1924K code, 529K data, 108K init)Mount-cache hash table entries: 512CPU: Testing write buffer coherency: oksoftlockup thread 0 started up.NET: Registered protocol family 16S3C2410: Initialising architectureSCSI subsystem initializedusbcore: registered new driver usbfsusbcore

10、: registered new driver hubS3C2410 DMA Driver, (c) 2003-2004 Simtec ElectronicsDMA channel 0 at c4800000, irq 33DMA channel 1 at c4800040, irq 34DMA channel 2 at c4800080, irq 35DMA channel 3 at c48000c0, irq 36NetWinder Floating Point Emulator V0.97 (double precision)devfs: 2004-01-31 Richard Gooch

11、 (rgoochatnf.csiro.au)devfs: devfs_debug: 0x0devfs: boot_options: 0x1yaffs Oct 18 2006 12:39:51 Installing.Console: switching to colour frame buffer device 30x40fb0: s3c2410fb frame buffer devicefb1: Virtual frame buffer device, using 1024K of video memoryled driver initializeds3c2410 buttons succes

12、sfully loadeds3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410io scheduler noop registeredio scheduler anticipatory registeredio scheduler deadline registeredio scheduler cfq

13、registeredRAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksizeusbcore: registered new driver ubCirrus Logic CS8900A driver for Linux (Modified for SMDK2410)eth0: CS8900A rev E at 0xe0000300 irq=53, no eeprom , addr: 08: 0:3E:26:0A:5BS3C24XX NAND Driver, (c) 2004 Simtec Electronicss3

14、c2410-nand: mapped registers at c4980000s3c2410-nand: timing: Tacls 10ns, Twrph0 30ns, Twrph1 10nsNAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bi)Scanning device for bad blocksBad eraseblock 1884 at 0x01d70000Creating 4 MTD partitions on “NAND 64MiB 3,3V 8-bit“:0x0000

15、0000-0x00020000 : “vivi“0x00020000-0x00030000 : “param“0x00030000-0x00200000 : “kernel“0x00200000-0x04000000 : “root“usbmon: debugfs is not availables3c2410-ohci s3c2410-ohci: S3C24XX OHCIs3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1s3c2410-ohci s3c2410-ohci: irq 42, io me

16、m 0x49000000hub 1-0:1.0: USB hub foundhub 1-0:1.0: 2 ports detectedInitializing USB Mass Storage driver.usbcore: registered new driver usb-storageUSB Mass Storage support registered.usbcore: registered new driver usbmousedrivers/usb/input/usbmouse.c: v1.6:USB HID Boot Protocol mouse drivermice: PS/2

17、 mouse device common for all mices3c2410 TouchScreen successfully loadedUDA1341 audio driver initializedNET: Registered protocol family 2IP route cache hash table entries: 1024 (order: 0, 4096 bytes)TCP established hash table entries: 4096 (order: 2, 16384 bytes)TCP bind hash table entries: 4096 (or

18、der: 2, 16384 bytes)TCP: Hash tables configured (established 4096 bind 4096)TCP reno registeredTCP bic registeredNET: Registered protocol family 1IP-Config: Complete:device=eth0, addr=192.168.1.128, mask=255.255.255.0, gw=192.168.1.1,host=luofuchong, domain=, nis-domain=(none),bootserver=192.168.1.1

19、, rootserver=192.168.1.115, rootpath=Looking up port of RPC 100003/2 on 192.168.1.115Looking up port of RPC 100005/1 on 192.168.1.115VFS: Mounted root (nfs filesystem).Mounted devfs on /devFreeing init memory: 108Kinit started: BusyBox v1.1.3 (2006.09.20-14:52+0000) multi-call binaryStarting pid 696

20、, console /dev/tts/0: /etc/init.d/rcS Please press Enter to activate this console.方法二、1、首先,用 u-boot/tools/mkimage 这个工具为你的内核加上 u-boot 引导所需要的文件头,具体做法如下:rootlocalhost tftpboot#mkimage -n linux-2.6.14 -A arm -O linux -T kernel -C none -a 0x30008000 -e 0x30008040 -d zImage zImage.imgImage Name: linux-2.6

21、.14Created: Fri Jan 12 17:14:50 2007Image Type: ARM Linux Kernel Image (uncompressed)Data Size: 1262504 Bytes = 1232.91 kB = 1.20 MBLoad Address: 0x30008000Entry Point: 0x300080402 、下载内核 U-Boot 1.1.3 (Jan 12 2007 - 16:16:36) U-Boot code: 33F80000 - 33F9BAC0 BSS: - 33F9FBACRAM Configuration:Bank #0:

22、30000000 64 MBNor Flash: 512 kBNand Flash: 64 MBIn: serialOut: serialErr: serialHit any key to stop autoboot: 0sbc2410=tftp 0x30008000 zImage.img TFTP from server 192.168.1.115; our IP address is 192.168.1.128Filename zImage.img.Load address: 0x30008000Loading: #doneBytes transferred = 1263324 (1346

23、dc hex) 3.运行 sbc2410=bootm 0x30008000# Booting image at 30008000 .Image Name: linux-2.6.14Image Type: ARM Linux Kernel Image (uncompressed)Data Size: 1261056 Bytes = 1.2 MBLoad Address: 30008000Entry Point: 30008040Verifying Checksum . OKXIP Kernel Image . OK 内核启动信息省。三、固化如果你想把镜像文件写入 flash,每次开机后让 u-b

24、oot 帮你复制到 sdram 中,再使用 bootm 命令引导的话,可以按照这样操作:sbc2410=tftp 0x30008000 zImage.imgTFTP from server 192.168.1.115; our IP address is 192.168.1.128Filename zImage.img.Load address: 0x30008000Loading: #doneBytes transferred = 1263324 (1346dc hex)sbc2410=nand erase 0x30000 0x1d0000 NAND erase: device 0 offs

25、et 196608, size 1900544 . OKsbc2410=nand write 0x30008000 0x30000 0x1d0000 NAND write: device 0 offset 196608, size 1900544 . 1900544 bytes written: OK 设置 u-boot 启动命令:1、针对方法一:sbc2410=setenv bootcmd nand read 0x31000000 0x30000 0x1d0000;bootm 0x31000000sbc2410=saveenvSaving Environment to NAND.Erasing Nand.Writing to Nand. done2、针对方法二:sbc2410=setenv bootcmd nand read 0x30008000 0x30000 0x1d0000;bootm 0x30008000sbc2410=saveenvSaving Environment to NAND.Erasing Nand.Writing to Nand. donesbc2410=reset启动信息略。

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报