**************************** WARNING ********************************** If you want to run ELF image, you should use -e option to indicate your elf-format image filename. Or you only want to run binary image, you need to set the filename of the image and its entry in skyeye.conf. *********************************************************************** Your elf file is little endian. arch: arm cpu info: armv4, arm920t, 41009200, ff00fff0, 2 mach info: name s3c2410x, mach_init addr 0x806bae0 ethmod num=1, mac addr=8:0:3e:26:a:5b, hostip=10.0.0.1 nandflash: dump ./nand.dump file size:69206016 dbct info: turn on dbct! uart_mod:0, desc_in:, desc_out:, converter: SKYEYE: use arm920t mmu ops Loaded RAM ./u-boot.bin ERROR: s3c2410x_io_write_word(0x4c000000) = 0x00ffffff ERROR: s3c2410x_io_write_word(0x4c000008) = 0x00048032
U-Boot 1.1.4 (May 3 2009 - 18:31:55)
U-Boot code: 33F80000 -> 33F9873C BSS: -> 33F9C814 RAM Configuration: Bank #0: 30000000 64 MB Flash: 512 kB *** Warning - bad CRC, using default environment
将以下U-Boot的重定向语句段: #ifndef CONFIG_SKIP_RELOCATE_UBOOT relocate:/* relocate U-Boot to RAM */ adr r0, _start /* r0 <- current position of code */ ldr r1, _TEXT_BASE /* test if we run from flash or RAM */ cmp r0, r1 /* don‘t reloc during debug */ beq stack_setup
ldr r2, _armboot_start ldr r3, _bss_start sub r2, r3, r2 /* r2 <- size of armboot */ add r2, r0, r2 /* r2 <- source end address */
copy_loop: ldmia r0!,{r3-r10}/* copy from source address [r0] */ stmia r1!,{r3-r10}/* copy to target address [r1] */ cmp r0, r2 /* until source end addreee [r2] */ ble copy_loop #endif /* CONFIG_SKIP_RELOCATE_UBOOT */
替换成: //#ifndef CONFIG_SKIP_RELOCATE_UBOOT //relocate: /* relocate U-Boot to RAM */ // adr r0, _start /* r0 <- current position of code */ // ldr r1, _TEXT_BASE /* test if we run from flash or RAM */ // cmp r0, r1 /* don‘t reloc during debug */ // beq stack_setup
[root@localhost u-boot-1.1.4]# make [root@localhost u-boot-1.1.4]# skyeye1.2.6 //再次执行skyeye1.2.6
/*
**************************** WARNING ********************************** If you want to run ELF image, you should use -e option to indicate your elf-format image filename. Or you only want to run binary image, you need to set the filename of the image and its entry in skyeye.conf. *********************************************************************** Your elf file is little endian. arch: arm cpu info: armv4, arm920t, 41009200, ff00fff0, 2 mach info: name s3c2410x, mach_init addr 0x806bae0 ethmod num=1, mac addr=8:0:3e:26:a:5b, hostip=10.0.0.1 nandflash: dump ./nand.dump
[root@localhost u-boot-1.1.4]# skyeye1.2.6 //再次执行skyeye1.2.6 /* **************************** WARNING ********************************** If you want to run ELF image, you should use -e option to indicate your elf-format image filename. Or you only want to run binary image, you need to set the filename of the image and its entry in skyeye.conf. *********************************************************************** Your elf file is little endian. arch: arm cpu info: armv4, arm920t, 41009200, ff00fff0, 2 mach info: name s3c2410x, mach_init addr 0x806bae0 ethmod num=1, mac addr=8:0:3e:26:a:5b, hostip=10.0.0.1 nandflash: dump ./nand.dump file size:69206016 dbct info: turn on dbct! uart_mod:0, desc_in:, desc_out:, converter: SKYEYE: use arm920t mmu ops Loaded RAM ./u-boot.bin ERROR: s3c2410x_io_write_word(0x4c000000) = 0x00ffffff ERROR: s3c2410x_io_write_word(0x4c000008) = 0x00048032
U-Boot 1.1.4 (May 3 2009 - 18:57:18)
U-Boot code: 33F80000 -> 33F988D4 BSS: -> 33F9C9AC RAM Configuration: Bank #0: 30000000 64 MB Flash: 512 kB *** Warning - bad CRC, using default environment
In: serial Out: serial Err: serial OK2410 # ? //显示可以使用的u-boot命令
**************************** WARNING ********************************** If you want to run ELF image, you should use-e option to indicate your elf-format image filename.Or you only want to run binary image, you need to set the filename of the image and its entry in skyeye.conf. *********************************************************************** Your elf file is little endian. arch: arm cpu info: armv4, arm920t,41009200, ff00fff0,2 mach info: name s3c2410x, mach_init addr 0x806bae0 ethmod num=1, mac addr=8:0:3e:26:a:5b, hostip=10.0.0.1 nandflash:dump./nand.dump
在最后添加如下内容: config ARM_CS8900 tristate "CS8900 support" depends on NET_ETHERNET && ARM && ARCH_SMDK2410 help Supportfor CS8900A chipset based Ethernet cards.If you have a network (Ethernet) card of this type, say Y and read the Ethernet-HOWTO, available fromas well as.To compile this driver as a module, choose M here and read. Themodule will be called cs8900.o.
添加如下语句: config DEVFS_FS bool"/dev file system support (OBSOLETE)" default y config DEVFS_MOUNT bool"Automatically mount at boot" default y depends on DEVFS_FS
[root@localhost linux-2.6.14.7]# cp arch/arm/configs/smdk2410_defconfig .config [root@localhost linux-2.6.14.7]# make smdk2410_defconfig [root@localhost linux-2.6.14.7]# make menuconfig //开始配置内核
//在弹出的TUI界面中,进行如下的配置(在smdk2410_defconfig的基础上)。
Loadablemodule support ---> [*]Enable loadable module support
Floating point emulation ---> [*] NWFPE math emulation //This is necessary to run most binaries!!!
#接下来要做的是对内核MTD子系统的设置 DeviceDrivers---> MemoryTechnologyDevices(MTD)---> <*>MemoryTechnologyDevice(MTD) support [*] MTD partitioning support #支持MTD分区,这样我们在前面设置的分区才有意义 [*]Command line partition table parsing #支持从命令行设置flash分区信息,灵活 RAM/ROM/Flash chip drivers ---> <*>Detect flash chips byCommonFlashInterface(CFI) probe <*>Detect non-CFI AMD/JEDEC-compatible flash chips []Flash chip driver advanced configuration options <*>SupportforIntel/Sharp flash chips <*>Supportfor AMD/Fujitsu flash chips (0)Retry failed commands (erase/program)(NEW) <>Supportfor ST (AdvancedArchitecture) flash chips <>Supportfor RAM chips in bus mapping <*>Supportfor ROM chips in bus mapping <>Supportfor absent chips in bus mapping <> XIP aware MTD support
NAND FlashDeviceDrivers---> <*> NAND DeviceSupport <*> NAND Flash support for S3C2410/S3C2440 SoC
# 内核支持从Ramdisk启动 DeviceDrivers---> Block devices ---> <*>Loopback device support <*>Network block device support <*> RAM disk support (16)Default number of RAM disks (4096)Default RAM disk size (kbytes) [*]Initial RAM disk (initrd) support
# 设置CS8900的支持, 将前面添加的网卡驱动程序,以静态的方式添加到内核中 DeviceDrivers---> Network device support ---> Ethernet(10or100Mbit)---> [*]Ethernet(10or100Mbit) <*> CS8900 support
#接下来要做的是对串口的设置 DeviceDrivers---> Character devices ---> [*]Non-standard serial port support [*] S3C2410 RTC Driver
#接下来要做的是针对文件系统的设置 File systems ---> <*>Second extended fs support <*> ROM file system support #支持romfs Pseudo filesystems ---> [*]/dev file system support (OBSOLETE) [*]Automatically mount at boot (NEW) [*]/proc file system support [*]Virtual memory file system support (former shm fs) Miscellaneous filesystems ---> <*>JournallingFlashFileSystem(JFFS) support #支持JFFS (0) JFFS debugging verbosity (0= quiet,3= noisy)(NEW) [*] JFFS stats available in/proc filesystem <*>JournallingFlashFileSystem v2 (JFFS2) support #支持JFFS2 (0) JFFS2 debugging verbosity (0= quiet,2= noisy)(NEW) [*] JFFS2 write-buffering support (NEW) []Advanced compression options for JFFS2 (NEW) <*>Compressed ROM file system support (cramfs)#支持cramfs NetworkFileSystems---> <*> NFS file system support [*]ProvideNFSv3 client support [*]Root file system on NFS <*> YAFFS2 file system support #支持YAFFS2 ---512byte/ page devices []Use older-style on-NAND data format with pageStatus byte(NEW) [*]LetsYaffsdo its own ECC (NEW) [*]Use the same ecc byte order asStevenHill‘s nand_ecc.c --- 2048 byte (or larger) / page devices [*] Autoselect yaffs2 format (NEW) [*] Disable lazy loading (NEW) [*] Turn off wide tnodes (NEW) [*] Force chunk erase check (NEW) [*] Cache short names in RAM (NEW)
//保存退出,产生.config文件
[root@localhost linux-2.6.14.7]# make [root@localhost linux-2.6.14.7]# cp arch/arm/boot/compressed/vmlinux ../u-boot-1.1.4/tools/ [root@localhost linux-2.6.14.7]# cd ../u-boot-1.1.4/tools/ [root@localhost tools]# ./mkimage -A arm -O linux -T kernel -C none -a 30008000 -e 30008000 -n linux-2.6.14.7 -d vmlinux uImage
Image Name: linux-2.6.14.7 Created: Sun May 10 15:16:17 2009 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1009504 Bytes = 985.84 kB = 0.96 MB Load Address: 0x30008000 Entry Point: 0x30008000
OK2410 # setenv bootargs noinitrd mem=64M root=/dev/mtdblock2 init=/linuxrc console=ttySAC0,115200 OK2410 # tftp 0x31000000 uImage OK2410 # bootm 31000000 ## Booting image at 31000000 ... Image Name: linux-2.6.14.7 Created: 2009-05-10 14:48:03 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1009504 Bytes = 985.8 kB Load Address: 30008000 Entry Point: 30008000 Verifying Checksum ... OK OK Starting kernel ... Uncompressing Linux.................................................................... done, booting the kernel.
Error: unrecognized/unsupported machine ID (r1 = 0x00000000). //出现错误 Available machine support: ID (hex) NAME 000000c1 SMDK2410 Please check your kernel config and/or bootloader.
**************************** WARNING ********************************** If you want to run ELF image, you should use -e option to indicate your elf-format image filename. Or you only want to run binary image, you need to set the filename of the image and its entry in skyeye.conf. *********************************************************************** …… //部分启动信息省略 Hit any key to stop autoboot: 0 //到此处会出现倒计时 按空格即可 OK2410 # printenv bootargs=noinitrd root=/dev/nfs rw nfsroot=10.0.0.1:/tmp/nfs ip=10.0.0.110:10.0.0.1:10.0.0.1:255.255.255.0 init=linuxrc console=ttySAC0,115200 mem=64M bootcmd=tftp 0x31000000 uImage;bootm 0x31000000 //要记住该环境变量,后面的实例中会用到 bootdelay=3 baudrate=115200 ipaddr=10.0.0.110 serverip=10.0.0.1 netmask=255.255.255.0 stdin=serial stdout=serial stderr=serial ethaddr=08:00:3E:26:0A:5B
Environment size: 341/65532 bytes OK2410 # OK2410 # setenv bootargs noinitrd mem=64M root=/dev/mtdblock2 init=/linuxrc console=ttySAC0,115200 OK2410 # tftp 0x31000000 uImage OK2410 # bootm 31000000 ## Booting image at 31000000 ... Image Name: linux-2.6.14.7 Created: 2009-05-10 14:48:03 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1009504 Bytes = 985.8 kB Load Address: 30008000 Entry Point: 30008000 Verifying Checksum ... OK OK
Starting kernel ... Uncompressing Linux................................................................ done, booting the kernel. Linux version 2.6.14.7 (root@localhost.localdomain) (gcc version 3.4.1) #1 Sun May 10 15:13:57 CST 2009 CPU: ARM920Tid(wb) [41009200] revision 0 (ARMvundefined/unknown) Machine: SMDK2410 Warning: bad configuration page, trying to continue Memory policy: ECC disabled, Data cache writeback CPU S3C2410 (id 0x32410000) S3C2410: core 202.800 MHz, memory 101.400 MHz, peripheral 50.700 MHz S3C2410 Clocks, (c) 2004 Simtec Electronics CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on CPU0: D VIVT write-back cache CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets Built 1 zonelists Kernel command line: noinitrd mem=64M root=/dev/mtdblock2 init=/linuxrc console=ttySAC0,115200 irq: clearing pending status 00004000 irq: clearing pending status 00008000 irq: clearing pending status 00800000 irq: clearing pending status 10000000 irq: clearing subpending status 00000093 PID hash table entries: 512 (order: 9, 8192 bytes) timer tcon=00500000, tcnt a509, tcfg 00000200,00000000, usec 00001e4c Console: colour dummy device 80x30 Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory: 64MB = 64MB total Memory: 62720KB available (1635K code, 321K data, 92K init) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok softlockup thread 0 started up. NET: Registered protocol family 16 S3C2410: Initialising architecture NetWinder Floating Point Emulator V0.97 (double precision) devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au) devfs: boot_options: 0x1 Console: switching to colour frame buffer device 80x25 fb0: Virtual frame buffer device, using 1024K of video memory S3C2410 RTC, (c) 2004 Simtec Electronics s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410 s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410 s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410 io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize Cirrus Logic CS8900A driver for Linux (Modified for SMDK2410) eth0: CS8900A rev D at 0xe0000300 irq=53, no eeprom , addr: 08: 0:3E:26:0A:5B S3C24XX NAND Driver, (c) 2004 Simtec Electronics s3c2410-nand: mapped registers at c4980000 s3c2410-nand: timing: Tacls 10ns, Twrph0 30ns, Twrph1 10ns 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 Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit": 0x00000000-0x00100000 : "bootloader" 0x00100000-0x00400000 : "kernel" 0x00400000-0x02c00000 : "root" 0x02d00000-0x03c00000 : "user" mice: PS/2 mouse device common for all mice NET: Registered protocol family 2 IP 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 (order: 2, 16384 bytes) TCP: Hash tables configured (established 4096 bind 4096) TCP reno registered TCP bic registered NET: Registered protocol family 1 Reading data from NAND FLASH without ECC is not recommended Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
//错误,因为mtdblock2中还没有文件系统,该问题将在第三部曲中解决
//通过NFS访问文件系统
**************************** WARNING ********************************** If you want to run ELF image, you should use -e option to indicate your elf-format image filename. Or you only want to run binary image, you need to set the filename of the image and its entry in skyeye.conf. *********************************************************************** …… //部分启动信息省略 Hit any key to stop autoboot: 0 OK2410 # tftp 0x31000000 uImage TFTP from server 10.0.0.1; our IP address is 10.0.0.110 Filename ‘uImage‘. Load address: 0x31000000 Loading: …… //部分信息省略 done Bytes transferred = 1009568 (f67a0 hex) OK2410 # bootm 31000000 …… //部分信息省略 OK Starting kernel ... Uncompressing Linux................................................................ done, booting the kernel. Linux version 2.6.14.7 (root@localhost.localdomain) (gcc version 3.4.1) #1 Sun May 10 15:13:57 CST 2009 CPU: ARM920Tid(wb) [41009200] revision 0 (ARMvundefined/unknown) Machine: SMDK2410 …… //部分信息省略 Kernel command line: noinitrd root=/dev/nfs rw nfsroot=10.0.0.1:/tmp/nfs ip=10.0.0.110:10.0.0.1:10.0.0.1:255.255.255.0 init=linuxrc console=ttySAC0,115200 mem=64M …… //部分信息省略 Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit": 0x00000000-0x00100000 : "bootloader" 0x00100000-0x00400000 : "kernel" 0x00400000-0x02c00000 : "root" 0x02d00000-0x03c00000 : "user" …… //部分信息省略 NET: Registered protocol family 1 IP-Config: Complete: device=eth0, addr=10.0.0.110, mask=255.255.255.0, gw=10.0.0.1, host=10.0.0.110, domain=, nis-domain=(none), bootserver=10.0.0.1, rootserver=10.0.0.1, rootpath= Looking up port of RPC 100003/2 on 10.0.0.1 Looking up port of RPC 100005/1 on 10.0.0.1 VFS: Mounted root (nfs filesystem). Mounted devfs on /dev Freeing init memory: 92K Failed to execute linuxrc. Attempting defaults... Kernel panic - not syncing: No init found. Try passing init= option to kernel.
File systems ---> <*> YAFFS2 file system support --- 512 byte / page devices [ ] Use older-style on-NAND data format with pageStatus byte (NEW) [*] Lets Yaffs do its own ECC (NEW) [*] Use the same ecc byte order as Steven Hill‘s nand_ecc.c ---2048byte(or larger)/ page devices [*]Autoselect yaffs2 format (NEW) [*]Disable lazy loading (NEW) [*]Turn off wide tnodes (NEW) [*]Force chunk erase check (NEW) [*]Cacheshort names in RAM (NEW)
[root@localhost linux-2.6.14.7]# make //至此,支持yaffs2文件系统的Linux内核映像(vmlinux)已经生成
[root@localhost linux-2.6.14.7]# cp arch/arm/boot/compressed/vmlinux ../u-boot-1.1.4/tools/ [root@localhost linux-2.6.14.7]# cd ../u-boot-1.1.4/tools/ [root@localhost tools]# ./mkimage -A arm -O linux -T kernel -C none -a 30008000 -e 30008000 -n linux-2.6.14.7 -d vmlinux uImage
[root@localhost busybox-1.13.4]# make defconfig //恢复默认配置 [root@localhost busybox-1.13.4]# make menuconfig
在弹出的TUI界面中进行如下配置: 检查MiscellaneousUtilities---> taskset 是否去除 同时设置如下: BusyboxSettings---> BuildOptions---> [*]BuildBusyBoxas a static binry (no shared libs)//选用静态连接 [*]BuildwithLargeFileSupport(for accessing files >2 GB) (/usr/local/arm/3.4.1/bin/arm-linux-)CrossCompiler prefix InstallationOptions---> [*]Don‘t use /usr (./_install) BusyBox installation prefix //安装路径 Busybox Library Tuning ---> (6) Minimum password length (2) MD5: Trade Bytes for Speed [*] Faster /proc scanning code (+100 bytes) [ ] Support for /etc/networks [*] Command line editing (1024) Maximum length of input [*] vi-style line editing commands (15) History size [*] History saving [*] Tab completion [*] Username completion [*] Fancy shell prompts //Setting this option allows for prompts to use things like \w and // \$ and escape codes. [ ] Give more precise messages when copy fails (cp, mv etc) (4) Copy buffer size, in kilobytes [ ] Use clock_gettime(CLOCK_MONOTONIC) syscall [*] Use ioctl names rather than hex values in error messages [*] Support infiniband HW //设置完毕后,保存、退出。
[root@localhost busybox-1.13.4]# make
...... CC networking/inetd.o CC networking/interface.o networking/interface.c:818: error: `ARPHRD_INFINIBAND‘ undeclared here (notin a function) networking/interface.c:818: error: initializer element isnot constant networking/interface.c:818: error:(near initialization for`ib_hwtype.type‘) make[1]: *** [networking/interface.o] 错误 1 make: *** [networking] 错误 2
...... CC util-linux/volume_id/volume_id.o CC util-linux/volume_id/xfs.o AR util-linux/volume_id/lib.a LINK busybox_unstripped Trying libraries: crypt m Library crypt is not needed, excluding it Library m is needed, can‘t exclude it (yet) Final link with: m DOC busybox.pod DOC BusyBox.txt DOC BusyBox.1 DOC BusyBox.html
[root@localhost busybox-1.13.4]# make install
//成功,但是会出现如下信息: -------------------------------------------------- You will probably need to make your busybox binary setuid root to ensure all configured applets will work properly. --------------------------------------------------
[root@localhost _install]# cd /root/Desktop/busybox-1.13.4 [root@localhost busybox-1.13.4]# cp -a examples/bootfloppy/etc/* /tmp/nfs/etc/ */ [root@localhost busybox-1.13.4]# ls /tmp/nfs/etc/
[root@localhost nfs]# chmod 755 etc/inittab [root@localhost nfs]# gedit etc/init.d/rcS //文件内容如下: #!/bin/sh # mount all filesystem defined in "fstab" echo "#mount all......." /bin/mount -a
/bin/mknod -m 600 /dev/console c 5 1 /bin/mknod -m 666 /dev/null c 1 3 /bin/mknod -m 666 /dev/tty0 c 4 0 /bin/mknod -m 666 /dev/mtdblock0 b 31 0 /bin/mknod -m 666 /dev/mtdblock1 b 31 1 /bin/mknod -m 666 /dev/mtdblock2 b 31 2 /bin/mknod -m 666 /dev/mtdblock3 b 31 3 #/bin/mount -t ext2 /dev/mtdblock3 /mnt/temp/
echo "******************************************************************" echo " OK 2410 Rootfs made by liyanshuo, 2009.05" echo "******************************************************************"
# Set user path echo "Set user path in /etc/profile" export PATH=/bin:/sbin:/usr/bin:/usr/sbin #设置命令搜索路径 export HISTSIZE=100 export PS1=‘[\u@\h \W]\$ ‘ alias ll=‘ls -l‘
#/sbin/ifconfig eth0 192.168.1.22 netmask 255.255.255.0 /sbin/ifconfig lo 127.0.0.1 echo "Configure net done"
[root@localhost nfs]#cd [root@localhost ~]# cd Desktop/ [root@localhost Desktop]# gedit /etc/xinetd.d/tftp //tftp文件内容如下: 1 # default: off 2 # description: The tftp server serves files using the trivial file transfer \ 3 # protocol. The tftp protocol is often used to boot diskless \ 4 # workstations, download configuration files to network-aware printers, \ 5 # and to start the installation process for some operating systems. 6 service tftp 7 { 8 socket_type = dgram 9 protocol = udp 10 wait = yes 11 user = root 12 server = /usr/sbin/in.tftpd 13 server_args = -s /tftpboot 14 disable = no 15 per_source = 11 16 cps = 100 2 17 flags = IPv4 18 }
**************************** WARNING ********************************** If you want to run ELF image, you should use -e option to indicate your elf-format image filename. Or you only want to run binary image, you need to set the filename of the image and its entry in skyeye.conf. *********************************************************************** …… //部分启动信息省略 Hit any key to stop autoboot: 0 OK2410 # run bootcmd TFTP from server 10.0.0.1; our IP address is 10.0.0.110 Filename ‘uImage‘. Load address: 0x31000000 Loading: checksum bad checksum bad ################################################################# ################################################################# ################################################################# ################################ done Bytes transferred = 1161416 (11b8c8 hex) ## Booting image at 31000000 ... Image Name: linux-2.6.14.7 Created: 2009-05-24 11:22:39 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1161352 Bytes = 1.1 MB Load Address: 30008000 Entry Point: 30008000 Verifying Checksum ... OK OK
Starting kernel ...
Uncompressing Linux.......................................................................... done, booting the kernel. Linux version 2.6.14.7 (root@localhost.localdomain) (gcc version 3.4.1) #6 Sun May 24 19:22:08 CST 2009 CPU: ARM920Tid(wb) [41009200] revision 0 (ARMvundefined/unknown) Machine: SMDK2410 Memory policy: ECC disabled, Data cache writeback CPU S3C2410 (id 0x32410000) S3C2410: core 202.800 MHz, memory 101.400 MHz, peripheral 50.700 MHz S3C2410 Clocks, (c) 2004 Simtec Electronics CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on CPU0: D VIVT write-back cache CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets Built 1 zonelists Kernel command line: noinitrd root=/dev/nfs rw nfsroot=10.0.0.1:/tmp/nfs ip=10.0.0.110:10.0.0.1:10.0.0.1:255.255.255.0 init=linuxrc console=ttySAC0,115200 mem=64M …… //部分启动信息省略 Memory: 64MB = 64MB total Memory: 62464KB available (1888K code, 393K data, 92K init) …… //部分启动信息省略 JFFS version 1.0, (C) 1999, 2000 Axis Communications AB JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc. yaffs May 24 2009 19:21:42 Installing. Console: switching to colour frame buffer device 80x25 fb0: Virtual frame buffer device, using 1024K of video memory …… //部分启动信息省略 RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize Cirrus Logic CS8900A driver for Linux (Modified for SMDK2410) eth0: CS8900A rev D at 0xe0000300 irq=53, no eeprom , addr: 08: 0:3E:26:0A:5B S3C24XX NAND Driver, (c) 2004 Simtec Electronics s3c2410-nand: mapped registers at c4980000 s3c2410-nand: timing: Tacls 10ns, Twrph0 30ns, Twrph1 10ns 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 7 at 0x0001c000 Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit": 0x00000000-0x00100000 : "bootloader" 0x00100000-0x00400000 : "kernel" 0x00400000-0x02c00000 : "root" 0x02d00000-0x03c00000 : "user" mice: PS/2 mouse device common for all mice NET: Registered protocol family 2 …… //部分启动信息省略 IP-Config: Complete: device=eth0, addr=10.0.0.110, mask=255.255.255.0, gw=10.0.0.1, host=10.0.0.110, domain=, nis-domain=(none), bootserver=10.0.0.1, rootserver=10.0.0.1, rootpath= Looking up port of RPC 100003/2 on 10.0.0.1 Looking up port of RPC 100005/1 on 10.0.0.1 VFS: Mounted root (nfs filesystem). Mounted devfs on /dev Freeing init memory: 92K #mount all....... ****************************************************************** OK 2410 Rootfs made by liyanshuo, 2009.05 ****************************************************************** ztg login: root login[25]: root login on ‘console‘
Processing /etc/profile... Set search library path in /etc/profile Set user path in /etc/profile Configure net done All Done
**************************** WARNING ********************************** If you want to run ELF image, you should use -e option to indicate your elf-format image filename. Or you only want to run binary image, you need to set the filename of the image and its entry in skyeye.conf. *********************************************************************** …… //部分启动信息省略 Hit any key to stop autoboot: 0 OK2410 # tftp 0x31000000 ok2410.cramfs TFTP from server 10.0.0.1; our IP address is 10.0.0.110 Filename ‘ok2410.cramfs‘. Load address: 0x31000000 Loading: checksum bad ############checksum bad ##################################################### ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ####################################### done Bytes transferred = 2195456 (218000 hex) OK2410 # nand erase 400000 300000