linux2.6.38在mini2440上移植遇到问题,求帮助!!
求教:我在mini2440上移植2.6.38遇到的问题:我配好nand驱动,编译好内核之后下进板子启动的信息,但是没有nand分区信息,请问这个一般是什么原因呢!?? 谢谢!
下面是内核启动时的串口信息:
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, Copyright 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 grouping on. Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0
PID hash table entries: 256 (order: -2, 1024 bytes)
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: 60460k/60460k available, 5076k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
vmalloc : 0xc4800000 - 0xf6000000 ( 792 MB)
lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc0029000 ( 132 kB)
.text : 0xc0029000 - 0xc03f6a58 (3895 kB)
.data : 0xc03f8000 - 0xc041ba40 ( 143 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:85
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
gpiochip_add: gpios 288..303 (GPIOK) failed to register
gpiochip_add: gpios 320..334 (GPIOL) failed to register
gpiochip_add: gpios 352..353 (GPIOM) failed to register
NET: Registered protocol family 16
kobject (c03fe1f0): tried to init an initialized object, something is seriously wrong.
[<c002e938>] (unwind_backtrace+0x0/0xec) from [<c017ad68>] (kobject_init+0x38/0x70)
[<c017ad68>] (kobject_init+0x38/0x70) from [<c01c1504>] (device_initialize+0x20/0x60)
[<c01c1504>] (device_initialize+0x20/0x60) from [<c01c5008>] (platform_device_register+0x10/0x1c)
[<c01c5008>] (platform_device_register+0x10/0x1c) from [<c01c5264>] (platform_add_devices+0x1c/0x60)
[<c01c5264>] (platform_add_devices+0x1c/0x60) from [<c000b148>] (customize_machine+0x1c/0x28)
[<c000b148>] (customize_machine+0x1c/0x28) from [<c0029434>] (do_one_initcall+0xd0/0x1a4)
[<c0029434>] (do_one_initcall+0xd0/0x1a4) from [<c00083d0>] (kernel_init+0x98/0x144)
[<c00083d0>] (kernel_init+0x98/0x144) from [<c002a978>] (kernel_thread_exit+0x0/0x8)
------------[ cut here ]------------
WARNING: at kernel/resource.c:491 __insert_resource+0x3c/0x128()
Modules linked in:
[<c002e938>] (unwind_backtrace+0x0/0xec) from [<c003ada4>] (warn_slowpath_common+0x48/0x60)
[<c003ada4>] (warn_slowpath_common+0x48/0x60) from [<c003add4>] (warn_slowpath_null+0x18/0x1c)
[<c003add4>] (warn_slowpath_null+0x18/0x1c) from [<c0040738>] (__insert_resource+0x3c/0x128)
[<c0040738>] (__insert_resource+0x3c/0x128) from [<c0040898>] (insert_resource+0x8/0x14)
[<c0040898>] (insert_resource+0x8/0x14) from [<c01c4f50>] (platform_device_add+0xb4/0x15c)
[<c01c4f50>] (platform_device_add+0xb4/0x15c) from [<c01c5264>] (platform_add_devices+0x1c/0x60)
[<c01c5264>] (platform_add_devices+0x1c/0x60) from [<c000b148>] (customize_machine+0x1c/0x28)
[<c000b148>] (customize_machine+0x1c/0x28) from [<c0029434>] (do_one_initcall+0xd0/0x1a4)
[<c0029434>] (do_one_initcall+0xd0/0x1a4) from [<c00083d0>] (kernel_init+0x98/0x144)
[<c00083d0>] (kernel_init+0x98/0x144) from [<c002a978>] (kernel_thread_exit+0x0/0x8)
---[ end trace 1b75b31a2719ed1c ]---
s3c24xx-iis: failed to claim resource 0
------------[ cut here ]------------
WARNING: at drivers/base/core.c:143 device_release+0x74/0x88()
Device 's3c24xx-iis' does not have a release() function, it is broken and must be fixed.
Modules linked in:
[<c002e938>] (unwind_backtrace+0x0/0xec) from [<c003ada4>] (warn_slowpath_common+0x48/0x60)
[<c003ada4>] (warn_slowpath_common+0x48/0x60) from [<c003ae3c>] (warn_slowpath_fmt+0x2c/0x3c)
[<c003ae3c>] (warn_slowpath_fmt+0x2c/0x3c) from [<c01c0e44>] (device_release+0x74/0x88)
[<c01c0e44>] (device_release+0x74/0x88) from [<c017af1c>] (kobject_release+0x58/0x6c)
[<c017af1c>] (kobject_release+0x58/0x6c) from [<c017beb4>] (kref_put+0x60/0x70)
[<c017beb4>] (kref_put+0x60/0x70) from [<c02f548c>] (klist_put+0x64/0x6c)
[<c02f548c>] (klist_put+0x64/0x6c) from [<c01c1690>] (device_del+0x48/0x158)
[<c01c1690>] (device_del+0x48/0x158) from [<c01c4e60>] (platform_device_del+0x18/0x54)
[<c01c4e60>] (platform_device_del+0x18/0x54) from [<c01c523c>] (platform_device_unregister+0xc/0x18)
[<c01c523c>] (platform_device_unregister+0xc/0x18) from [<c01c5280>] (platform_add_devices+0x38/0x60)
[<c01c5280>] (platform_add_devices+0x38/0x60) from [<c000b148>] (customize_machine+0x1c/0x28)
[<c000b148>] (customize_machine+0x1c/0x28) from [<c0029434>] (do_one_initcall+0xd0/0x1a4)
[<c0029434>] (do_one_initcall+0xd0/0x1a4) from [<c00083d0>] (kernel_init+0x98/0x144)
[<c00083d0>] (kernel_init+0x98/0x144) from [<c002a978>] (kernel_thread_exit+0x0/0x8)
---[ end trace 1b75b31a2719ed1d ]---
------------[ cut here ]------------
WARNING: at drivers/base/core.c:143 device_release+0x74/0x88()
Device 's3c2440-i2c' does not have a release() function, it is broken and must be fixed.
Modules linked in:
[<c002e938>] (unwind_backtrace+0x0/0xec) from [<c003ada4>] (warn_slowpath_common+0x48/0x60)
[<c003ada4>] (warn_slowpath_common+0x48/0x60) from [<c003ae3c>] (warn_slowpath_fmt+0x2c/0x3c)
[<c003ae3c>] (warn_slowpath_fmt+0x2c/0x3c) from [<c01c0e44>] (device_release+0x74/0x88)
[<c01c0e44>] (device_release+0x74/0x88) from [<c017af1c>] (kobject_release+0x58/0x6c)
[<c017af1c>] (kobject_release+0x58/0x6c) from [<c017beb4>] (kref_put+0x60/0x70)
[<c017beb4>] (kref_put+0x60/0x70) from [<c01c5280>] (platform_add_devices+0x38/0x60)
[<c01c5280>] (platform_add_devices+0x38/0x60) from [<c000b148>] (customize_machine+0x1c/0x28)
[<c000b148>] (customize_machine+0x1c/0x28) from [<c0029434>] (do_one_initcall+0xd0/0x1a4)
[<c0029434>] (do_one_initcall+0xd0/0x1a4) from [<c00083d0>] (kernel_init+0x98/0x144)
[<c00083d0>] (kernel_init+0x98/0x144) from [<c002a978>] (kernel_thread_exit+0x0/0x8)
---[ end trace 1b75b31a2719ed1e ]---
------------[ cut here ]------------
WARNING: at drivers/base/core.c:143 device_release+0x74/0x88()
Device 's3c2410-wdt' does not have a release() function, it is broken and must be fixed.
Modules linked in:
[<c002e938>] (unwind_backtrace+0x0/0xec) from [<c003ada4>] (warn_slowpath_common+0x48/0x60)
[<c003ada4>] (warn_slowpath_common+0x48/0x60) from [<c003ae3c>] (warn_slowpath_fmt+0x2c/0x3c)
[<c003ae3c>] (warn_slowpath_fmt+0x2c/0x3c) from [<c01c0e44>] (device_release+0x74/0x88)
[<c01c0e44>] (device_release+0x74/0x88) from [<c017af1c>] (kobject_release+0x58/0x6c)
[<c017af1c>] (kobject_release+0x58/0x6c) from [<c017beb4>] (kref_put+0x60/0x70)
[<c017beb4>] (kref_put+0x60/0x70) from [<c01c5280>] (platform_add_devices+0x38/0x60)
[<c01c5280>] (platform_add_devices+0x38/0x60) from [<c000b148>] (customize_machine+0x1c/0x28)
[<c000b148>] (customize_machine+0x1c/0x28) from [<c0029434>] (do_one_initcall+0xd0/0x1a4)
[<c0029434>] (do_one_initcall+0xd0/0x1a4) from [<c00083d0>] (kernel_init+0x98/0x144)
[<c00083d0>] (kernel_init+0x98/0x144) from [<c002a978>] (kernel_thread_exit+0x0/0x8)
---[ end trace 1b75b31a2719ed1f ]---
------------[ cut here ]------------
WARNING: at drivers/base/core.c:143 device_release+0x74/0x88()
Device 's3c2410-lcd' does not have a release() function, it is broken and must be fixed.
Modules linked in:
[<c002e938>] (unwind_backtrace+0x0/0xec) from [<c003ada4>] (warn_slowpath_common+0x48/0x60)
[<c003ada4>] (warn_slowpath_common+0x48/0x60) from [<c003ae3c>] (warn_slowpath_fmt+0x2c/0x3c)
[<c003ae3c>] (warn_slowpath_fmt+0x2c/0x3c) from [<c01c0e44>] (device_release+0x74/0x88)
[<c01c0e44>] (device_release+0x74/0x88) from [<c017af1c>] (kobject_release+0x58/0x6c)
[<c017af1c>] (kobject_release+0x58/0x6c) from [<c017beb4>] (kref_put+0x60/0x70)
[<c017beb4>] (kref_put+0x60/0x70) from [<c01c5280>] (platform_add_devices+0x38/0x60)
[<c01c5280>] (platform_add_devices+0x38/0x60) from [<c000b148>] (customize_machine+0x1c/0x28)
[<c000b148>] (customize_machine+0x1c/0x28) from [<c0029434>] (do_one_initcall+0xd0/0x1a4)
[<c0029434>] (do_one_initcall+0xd0/0x1a4) from [<c00083d0>] (kernel_init+0x98/0x144)
[<c00083d0>] (kernel_init+0x98/0x144) from [<c002a978>] (kernel_thread_exit+0x0/0x8)
---[ end trace 1b75b31a2719ed20 ]---
------------[ cut here ]------------
WARNING: at drivers/base/core.c:143 device_release+0x74/0x88()
Device 's3c2410-ohci' does not have a release() function, it is broken and must be fixed.
Modules linked in:
[<c002e938>] (unwind_backtrace+0x0/0xec) from [<c003ada4>] (warn_slowpath_common+0x48/0x60)
[<c003ada4>] (warn_slowpath_common+0x48/0x60) from [<c003ae3c>] (warn_slowpath_fmt+0x2c/0x3c)
[<c003ae3c>] (warn_slowpath_fmt+0x2c/0x3c) from [<c01c0e44>] (device_release+0x74/0x88)
[<c01c0e44>] (device_release+0x74/0x88) from [<c017af1c>] (kobject_release+0x58/0x6c)
[<c017af1c>] (kobject_release+0x58/0x6c) from [<c017beb4>] (kref_put+0x60/0x70)
[<c017beb4>] (kref_put+0x60/0x70) from [<c01c5280>] (platform_add_devices+0x38/0x60)
[<c01c5280>] (platform_add_devices+0x38/0x60) from [<c000b148>] (customize_machine+0x1c/0x28)
[<c000b148>] (customize_machine+0x1c/0x28) from [<c0029434>] (do_one_initcall+0xd0/0x1a4)
[<c0029434>] (do_one_initcall+0xd0/0x1a4) from [<c00083d0>] (kernel_init+0x98/0x144)
[<c00083d0>] (kernel_init+0x98/0x144) from [<c002a978>] (kernel_thread_exit+0x0/0x8)
---[ end trace 1b75b31a2719ed21 ]---
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C244X: Clock Support, DVS off
bio: create slab <bio-0> at 0
Linux 移植
[解决办法]
mount出问题了
log上写的很清楚了
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "mtdblock3" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[解决办法]
你nand怎么分区的? 我一般是先用nfs启动,在nfs下分的。。。。。