本人实践:
· 主 机:VMWare—ubuntu10.04
· 开发板:Mini2440--128MBNand
· 编译器:arm-linux-gcc-4.3.2
Copy linux kernel from 0x00060000 to 0x30008000, size = 0x00500000 ...done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "noinitrd root=/dev/mtdblock3 init=/linuxrcconsole=ttySA
C0"
MACH_TYPE = 1999
NOW, Booting Linux......
Uncompressing Linux.............................................................
................................................................. done,booting
the kernel.
Error: unrecognized/unsupported machine ID (r1 =0x000007cf).
Available machine support:
ID (hex) NAME
000000c1 SMDK2410
000005d2 JIVE
0000030e SMDK2440
Please check your kernel config and/or bootloader.
(可以改进:)
ID (hex) NAME.....erine d
USB hos
000000c1 SMDK2410 download.2010 12:48:0
[
000005d2 JIVE+0000]
Now, Downlo
Please check your kernel configand/or bootloader. suppo
alg: No te
Linux version 2.
RECEIVED FIL
##### FriendlyARM BIOS 2.0 for2440 #####y G++ Ldefault)
Downloaded fil
[x] format NAND FLASH forLinuxbytesto activate this console.)
[v] Download vivi2:06 CS
Found blo
[k] Download linux kernel /]#3c2410fb fram
CPU:
E
[y] Download root_yaffs imageor2440 #####
Writing... .
[a] Absolute UserApplicationWritten 1930860 bytes Linuxda
[n] Download Nboot for WinCEARMBIOS 2.0 for 2440 #####
[l] Download WinCE boot-logornelndlyARM
[x] format NAND
[w] Download WinCENK.binimagert.0: s3c2410_s
[v]
[d] Download & Runute User Ap
[k] Do
[z] Download zImage into RAM
[n] Download
[y] Download
[g] Boot linux from RAM
s3
Mem
[l] Download W
[f] Format the nand flashionkisteredfor
[w] Downl
[b] Boot the s
Uncompressing Li
[s] Setparameter.................
[v] View the parametertable............................
[w] Write the parameter table toflash memeoryR_IRQ
........................................
[q] Quit........
Enter your selection:w.......................
Found block size =0x00020000..................00400000
he
Erasing... ... doneor: unrecognized/unsup
Writing... ... done 0x000007cf)..........
Written 49152bytes...................
Saved vivi private data machinesupport:MIPS (
##### Parameter Menu #####x) NAMEcated to 0x1
[r] Reset parameter table todefault table..............
000005d2 JIVE...r
CP
[s] Set parameterase check yourke
[v] View the parametertable.:90:90:90st
[a] Absolute User Application
-------------------------------------------------------------....................bcor
[l] Download WinCE boot-logoel 3at
mach_type : 000005d2 1490.........
[d] Download & Run..................
[z] Download z
media_type : 00000003 3 RAMitializedus
...........
[f] Format the nand flash........
boot_mem_base : 30000000 805306368et the bootparametersistered new interface drive
[u] Backup
baudrate : 0001c200 115200...........er usb fo
ohci
[r] Restore NAND Flash from HOSTth
xmodem : 00000001
[q] Goto shell of
##### FriendlyARM BIOS 2.0 for2440 #####................
[n] Download Nboot for W
[x] format NAND FLASH for Linux
[l] Download WinCE boot-logor
[v] Download vivi........
[w] Down
[k] Download linuxkernel................
[l] Download WinCE boot-logo
[w] Download WinCE NK.bin
[d] Download & Run
[z] Download zImage into RAM
[g] Boot linux from RAM
[f] Format the nand flash
[b] Boot the system
[s] Set the boot parameters
[u] Backup NAND Flash to HOSTthrough USB(upload)
[r] Restore NAND Flash from HOSTthrough USB
[q] Goto shell of vivi
[i] Version: 0945-2K
Enter your selection: b
Copy linux kernel from 0x00060000to 0x30008000, size = 0x00500000 ... done
zImage magic = 0x016f2818
Setup linux parameters at0x30000100
linux command line is:"noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySA
C0"
MACH_TYPE = 1490
NOW, Booting Linux......
UncompressingLinux.............................................................
................................................................done, booting t
he kernel.
在QQ2440开机时出现unrecognized/unsupported machine ID |
|
|
|
来源: ChinaUnix博客 日期: 2008.03.25 17:06 (共有0条评论) 我要评论 |
|
|
|
移植新内核到QQ2440友善之臂的开发板上,开机出现了: |
错误分析:
原来是machine的ID和Supervivi传递进来的ID不匹配~
关于machine ID,可以参考一下这篇文章
<2.6.18-2内核中对S3C2440的引导启动分析>
虽然版本老了点,但是核心思想还是没有变
vimarch/arm/mach-s3c2440/mach-smdk2440.c
在最后一段有这句 MACHINE_START(S3C2440 , ”SMDK2440”)
这里S3C2440就是machine ID的代号~ 呢具体值是多少呢?~
在arch/arm/tools/mach-types中
s3c2440 ARCH_S3C2440 S3C2440 362
原来我们的machine ID是362~
呢bootloader传递进来的值是多少呢?~
Error:unrecognized/unsupported machine ID (r1 = 0x000007cf).
注意到没有?~ 0x7CF转换成10进制也就是1999
修改mach-types中的对应项
s3c2440 ARCH_S3C2440 S3C2440 1999
虽然这样就和下面MINI2440的1999冲突了,但是只要不加入MINI2440的配置就没事
修改后编译,再执行zImage后得下列输出
(结果转至http://blogold.chinaunix.net/u1/57901/showart_2019107.html移植2.6.30.4到MINI2440的学习笔记)
zImagemagic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "noinitrd root=/dev/mtdblock2 init=/linuxrcconsole=ttySAC0"
MACH_TYPE = 1999
NOW, Booting Linux......
Uncompressing Linux........................................................................................................done, booting the kernel.
后附:全贴---
移植2.6.30.4到MINI2440的学习笔记 |
|
|
|
|
|
|
网友评论
|
|||||||||||||||||||
|
|||||||||||||||||||
|
|
|||||||||||||||||||
|
|||||||||||||||||||
|
|
|||||||||||||||||||
|
|||||||||||||||||||
|
|
||||||||||||||||||
|
||||||||||||||||||
|
|
|||||||||||||||||||
|
移植文件系统后出现错误分析改正如下:
Enter your selection: b
Copy linux kernel from 0x00060000 to 0x30008000, size = 0x00500000 ...done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "noinitrd root=/dev/mtdblock3 init=/linuxrcconsole=ttySAC0"
MACH_TYPE = 1490
NOW, Booting Linux......
UncompressingLinux.......................................................................................................................done, booting the kernel.
Linux version 2.6.30.4([email protected]) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) )#6 Fri Mar 25 23:56:49 CST 2011
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: JIVE
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, (c) 2004Simtec 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: noinitrd root=/dev/mtdblock3 init=/linuxrcconsole=ttySAC0
NR_IRQS:85
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttySAC0] enabled
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: 60980KB available (3432K code, 316K data, 132K init, 0K highmem)
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 936 bytes
NET: Registered protocol family 16
S3C Power Management,Copyright 2004 Simtec Electronics
S3C2440: Initialisingarchitecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c)2003-2004,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
s3c2440-i2c s3c2440-i2c: slave address 0x00
s3c2440-i2c s3c2440-i2c: bus frequency set to 49 KHz
s3c2440-i2c s3c2440-i2c: i2c-0:S3C I2C adapter
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 renoregistered
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (extended precision)
JFFS2 version 2.2. (NAND) (SUMMARY) 漏 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
yaffs Mar 25 2011 22:54:44 Installing.
msgmni has been set to 119
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fbframe buffer device
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
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
brd: module loaded
loop: module loaded
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide-cd driver 5.00
Driver 'sd' needs updating - please use bus_type methods
dm9000 Ethernet Driver, V1.31
S3C24XX NAND Driver, (c)2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=4, 39ns Twrph0=6 59ns,Twrph1=5 49ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 609 at 0x000004c20000
Bad eraseblock 868 at 0x000006c80000
Bad eraseblock 1543 at 0x00000c0e0000
Creating 8 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000028000 : "uboot"
0x00000002c000-0x000000030000: "spare"
mtd: partition "spare" doesn't start on an erase block boundary-- force read-only
0x000000030000-0x000000200000 : "kernel (ro)"
0x000000200000-0x000001600000 : "root (ro)"
0x000002c00000-0x000004000000: "yaffs"
0x000000028000-0x00000002c000: "env"
mtd: partition "env" doesn't start on an erase block boundary --force read-only
0x000001600000-0x0000017d0000 : "zimage"
mtd: partition "zimage" doesn't end on an erase block -- forceread-only
0x0000017d0000-0x000002bd0000 : "cramfs"
mtd: partition "cramfs" doesn't start on an erase block boundary-- force read-only
usbmon: debugfs is not available
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: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.4.3:USB FTDI Serial ConvertersDriver
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
S3C2410 Watchdog Timer,(c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, resetdisabled, irq enabled
Advanced Linux Sound Architecture Driver Version 1.0.20.
ALSA device list:
No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2410-rtc s3c2410-rtc: setting system clock to2165-12-12 06:29:37 UTC (1888531281)
错误点:
uncorrectable error : <3>uncorrectable error : <3>end_request:I/O error, dev mtdblock3, sector 0
Buffer I/O error on device mtdblock3, logical block 0
uncorrectable error : <3>uncorrectable error : <3>end_request:I/O error, dev mtdblock3, sector 0
Buffer I/O error on device mtdblock3, logical block 0
uncorrectable error : <3>end_request: I/O error, dev mtdblock3,sector 8
Buffer I/O error on device mtdblock3, logical block 1
uncorrectable error : <3>end_request: I/O error, dev mtdblock3,sector 8
Buffer I/O error on device mtdblock3, logical block 1
end_request: I/O error, dev mtdblock3, sector 16
Buffer I/O error on device mtdblock3, logical block 2
end_request: I/O error, dev mtdblock3, sector 16
Buffer I/O error on device mtdblock3, logical block 2
uncorrectable error : <3>end_request: I/O error, dev mtdblock3,sector 24
Buffer I/O error on device mtdblock3, logical block 3
uncorrectable error : <3>end_request: I/O error, dev mtdblock3,sector 24
Buffer I/O error on device mtdblock3, logical block 3
uncorrectable error : <3>uncorrectable error : <3>end_request:I/O error, dev mtdblock3, sector 0
FAT: unable to read boot sector
VFS: Cannot open root device "mtdblock3" or unknown-block(31,3)
Please append a correct "root=" boot option; here are theavailable partitions:
1f00 160 mtdblock0 (driver?)
1f01 16 mtdblock1 (driver?)
1f02 1856 mtdblock2 (driver?)
1f03 20480 mtdblock3 (driver?)
1f04 20480 mtdblock4 (driver?)
1f05 16 mtdblock5 (driver?)
1f06 1856 mtdblock6 (driver?)
1f07 20480 mtdblock7 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs onunknown-block(31,3)
Backtrace:
[<c002da1c>](dump_backtrace+0x0/0x114) from [<c02b94ec>] (dump_stack+0x18/0x1c)
r7:00008001 r6:c3859000 r5:c002483c r4:c03a6c14
[<c02b94d4>] (dump_stack+0x0/0x1c)from [<c02b953c>](panic+0x4c/0x11c)
[<c02b94f0>](panic+0x0/0x11c)from [<c00090d0>] (mount_block_root+0x1e0/0x220)
r3:00000000 r2:20000013 r1:c3817f6cr0:c032d8bd
[<c0008ef0>] (mount_block_root+0x0/0x220) from [<c00091d4>](mount_root+0xc4/0xfc)
r8:00000000 r7:00000000 r6:00000000r5:c002483c r4:01f00003
[<c0009110>] (mount_root+0x0/0xfc) from [<c000937c>] (prepare_namespace+0x170/0x1c4)
r5:c002483c r4:c03a6504
[<c000920c>](prepare_namespace+0x0/0x1c4)from [<c000860c>](kernel_init+0xbc/0xe8)
r5:00000000 r4:c03a64e0
[<c0008550>] (kernel_init+0x0/0xe8) from [<c004cce8>](do_exit+0x0/0x58c)
r4:00000000
错误原因
2.6.14 ECC问题和ramdisk! 收藏
ECC问题,如果不把
Device Drivers --->
Memory Technology Devices (MTD) --->
NAND Flash Device Drivers --->
[*] S3C2410NAND Hardware ECC
去掉会出现如下的问题:
end_request: I/O error, dev mtdblock3, sector 2
EXT3-fs: unable to read superblock
end_request: I/O error, dev mtdblock3, sector 0
Buffer I/O error on device mtdblock3, logical block 0
end_request: I/O error, dev mtdblock3, sector 0
Buffer I/O error on device mtdblock3, logical block 0
end_request: I/O error, dev mtdblock3, sector 8
Buffer I/O error on device mtdblock3, logical block 1
end_request: I/O error, dev mtdblock3, sector 8
Buffer I/O error on device mtdblock3, logical block 1
end_request: I/O error, dev mtdblock3, sector 16
Buffer I/O error on device mtdblock3, logical block 2
end_request: I/O error, dev mtdblock3, sector 16
Buffer I/O error on device mtdblock3, logical block 2
end_request: I/O error, dev mtdblock3, sector 24
Buffer I/O error on device mtdblock3, logical block 3
end_request: I/O error, dev mtdblock3, sector 24
Buffer I/O error on device mtdblock3, logical block 3
end_request: I/O error, dev mtdblock3, sector 0
FAT: unable to read boot sector
VFS: Cannot open root device "mtdblock3" or unknown-block(31,3)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs onunknown-block(31,3)
另外,还要在在/linux-2.6.14.1/drivers/mtd/nand/s3c_2410.c中将
chip->eccmode =NAND_ECC_SOFT 改为 chip->eccmode = NAND_ECC_NONE;(我的开发板就是这个错误)
关于initrd及RamDisk的问题
在做2.6.14内核移植之前,我本来是想移植2.6.15的,但是出现了如是的一些问题:就是无法打开根文件系统, 终端显示的信息如下:
VFS: Cannot open root device"mtdblock3" or unknown-block(31,3)
Please append a correct"root=" boot option
Kernel panic - not syncing:VFS: Unable to mount root fs on unknown-block(31,3)
后来改成2.6.14,同样的配置,却不会出现如上的问题。但是在这个过程中我却对RamDisk有了较好的掌握, 包括它也initrd的关系。
Ramdisk是用来挂载根文件系统而在内存中开辟的地块区域,如果你需要你的内核支持Ramdisk,那么你需要作以下的更改:
1). 首先,设置vivi的linux_cmd_line为:
param set linux_cmd_line "initrd=0x30800000,0x400000root=/dev/ram0 init=/linuxrc console=ttySAC0 max=00:0e:3a:aa:bb:cc"
如果你的bootloader不可以设置启动参数,也可以在
Boot options ---> 中的第三个选项中按回车进行设置。
我通过多次的测试,发现initrd=0x30800000,0x400000的作用就是在RAM中开辟一块始起地址为0x30800000,大小为 4MB的Ramdisk.
2). 其次还要在配置内核的时候注意以下的选项:
Device Drivers --->
Block devices --->
<*> RAM disksupport │ │
│ │ (16) Default number of RAM disks(NEW) │ │
│ │ (4096) Default RAM disk size (kbytes) (NEW) │ │
│ │ [*] Initial RAM disk (initrd)support
这样内核就可以支持从Ramdisk启动了。其中4096KB要与上面设置的Ramdisk大小一致,这里为4MB。
编译内核之后,这样子启动:
net tftp 192.168.1.100 30008000zImage
net tftp 192.168.1.100 30800000root_china.cramfs
boot ram 30008000 0x12fee8
如果你不想用Ramdisk来挂载文件系统,直接从Flash中打开文件系统,那么在配置内核的时候,可以将RAM disksupport支持去掉。
http://blogold.chinaunix.net/u2/77230/showart_1171688.html
移植内核时出现了这种错误,这种错误通常是由校验造成的.这种情况的解决办法为:
禁止Flash ECC校验
我们的内核都是通过UBOOT写到Nand Flash的, UBOOT通过的软件ECC算法产生ECC校验码, 这与内核校验的ECC码不一样, 内核中的ECC码是由S3C2410中Nand Flash控制器产生的. 所以, 我们在这里选择禁止内核ECC校验.
修改drivers/mtd/nand/s3c2410.c文件:
vi drivers/mtd/nand/s3c2410.c
找到s3c2410_nand_init_chip()函数,在该函数体最后加上一条语句:
chip->eccmode = NAND_ECC_NONE;
完整启动过程:
Copy linux kernel from 0x00060000 to 0x30008000, size= 0x00500000
... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "noinitrdroot=/dev/mtdblock3 init=/linuxrc
console=ttySAC0"
MACH_TYPE = 1490
NOW, Booting Linux......
Uncompressing
Linux.............................................................
..........................................................done,
booting the kernel.
Linux version 2.6.30.4([email protected]) (gcc version
4.3.2 (Sourcery G++ Lite 2008q3-72) ) #7 Sat Mar 26 17:43:16 CST
2011
CPU: ARM920T [41129200] revision 0 (ARMv4T),cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: JIVE
ATAG_INITRD is deprecated; please update yourbootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XXClocks, (c) 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 groupingon. Total
pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock3init=/linuxrc
console=ttySAC0
NR_IRQS:85
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttySAC0] enabled
Dentrycache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cachehash table entries: 4096 (order: 2, 16384 bytes)
Memory:64MB = 64MB total
Memory:60980KB available (3432K code, 316K data, 132K init, 0K
highmem)--------------------------------------------------和原配的不同点
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 936 bytes
NET: Registered protocol family 16
S3CPower Management, Copyright 2004 Simtec Electronics
S3C2440:Initialising architecture
S3C2440:IRQ Support
S3C24XXDMA Driver, (c) 2003-2004,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
s3c2440-i2c s3c2440-i2c: slave address 0x00
s3c2440-i2c s3c2440-i2c: bus frequency set to 49 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3CI2C adapter
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, 8192bytes)
TCP: Hash tables configured (established 2048 bind2048)
TCP renoregistered
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (extendedprecision)
JFFS2 version 2.2. (NAND) (SUMMARY) 漏 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
yaffs Mar 25 2011 22:54:44 Installing.
msgmni has been set to 119
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fbframe buffer device
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver, 4 ports, IRQ sharingenabled
s3c2440-uart.0:s3c2410_serial0 at MMIO0x50000000 (irq = 70) is a
S3C2440
s3c2440-uart.1:s3c2410_serial1 at MMIO0x50004000 (irq = 73) is a
S3C2440
s3c2440-uart.2:s3c2410_serial2 at MMIO0x50008000 (irq = 76) is a
S3C2440
brd: module loaded
loop: module loaded
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide-cd driver 5.00
Driver 'sd' needs updating - please use bus_typemethods
dm9000 Ethernet Driver, V1.31
S3C24XXNAND Driver, (c) 2004 Simtec Electronics
s3c2440-nands3c2440-nand: Tacls=4, 39nsTwrph0=6 59ns, Twrph1=5
49ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda(Samsung NAND
256MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is notrecommended !!
Scanning device for bad blocks
Bad eraseblock 609 at 0x000004c20000
Bad eraseblock 868 at 0x000006c80000
Bad eraseblock 1543 at 0x00000c0e0000
Creating 8 MTD partitions on "NAND 256MiB 3,3V8-bit":
0x000000000000-0x000000028000 : "uboot"
0x00000002c000-0x000000030000: "spare"
mtd: partition "spare" doesn't start on anerase block boundary --
force read-only
0x000000030000-0x000000200000 : "kernel(ro)"
0x000000200000-0x000001600000 : "root (ro)"
0x000002c00000-0x000004000000: "yaffs"
0x000000028000-0x00000002c000 : "env"
mtd: partition "env" doesn't start on anerase block boundary --
force read-only
0x000001600000-0x0000017d0000 : "zimage"
mtd: partition "zimage" doesn't end on anerase block -- force
read-only
0x0000017d0000-0x000002bd0000 : "cramfs"
mtd: partition "cramfs" doesn't start on anerase block boundary
-- force read-only
usbmon: debugfs is not available
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohcis3c2410-ohci: S3C24XX OHCI
s3c2410-ohcis3c2410-ohci: new USB busregistered, assigned bus
number 1
s3c2410-ohcis3c2410-ohci: irq 42, io mem0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driverusbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB SerialDevice
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.4.3:USB FTDISerial Converters Driver
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
S3C24XXRTC, (c) 2004,2006 Simtec Electronics
s3c2410-rtcs3c2410-rtc: rtc disabled,re-enabling
s3c2410-rtcs3c2410-rtc: rtc core:registered s3c as rtc0
S3C2410Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdts3c2410-wdt: watchdog inactive,reset disabled, irq
enabled
Advanced Linux Sound Architecture Driver Version 1.0.20.
ALSA device list:
No soundcardsfound.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2410-rtcs3c2410-rtc: setting systemclock to 2165-12-13
00:16:21 UTC (1888595285)
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.3,"mtdblock3"
yaffs: auto selecting yaffs2
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) readonly ondevice 31:3.
Freeing init memory: 132K
cannot run '/etc/init.d/rcS': Permission denie
Please press Enter to activate this console.
第三次改动就是利用:
static struct mtd_partition smdk_default_nand_part[] = {
[0]= {
.name = "vivi",
.size = 0x00040000,
.offset= 0x00000000,
},
[1]= {
.name = "param",
.offset= 0x00040000,
.size = 0x00020000,
},
[2]= {
.name = "kernel",
.offset= 0x00060000,
.size = 0x00200000,
},
[3]= {
.name = "root",
.offset= 0x00560000,
.size = 0x3fd80000,
},
};
得到: