請問這2個warning是怎麼產生的?

我們生活周遭存在太多太多的 embedded system ,過去 embedded system 有專屬的 OS,現在 linux 也可以應用在嵌入式環境,不過本版將廣泛討論所有嵌入式系統不只 linux 喔,歡迎有這方面經驗或有興趣的朋友一同進來討論。

版主: chester

請問這2個warning是怎麼產生的?

文章fuji65 » 週三 4月 01, 2009 6:37 pm

在移植kernel 2.26.28.7時,發生2個warning,如下:
thanks!!

Uncompressing Linux.................................................................................................................. done, booting the kernel.
Linux version 2.6.28.7 (marcus@marcus-desktop) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #1 Wed Apr 1 18:06:27 CST 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2410
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
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
irq: clearing pending ext status 00000800
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00000000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
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: 61140KB available (3292K code, 304K data, 128K init)
Calibrating delay loop... 99.73 BogoMIPS (lpj=249344)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 484 bytes
NET: Registered protocol family 16
kobject (c0366884): tried to init an initialized object, something is seriously wrong.
[<c002c8f0>] (dump_stack+0x0/0x14) from [<c014ecb0>] (kobject_init+0x48/0x7c)
[<c014ec68>] (kobject_init+0x0/0x7c) from [<c01942d0>] (device_initialize+0x2c/0xbc)
r5:00000000 r4:c036681c
[<c01942a4>] (device_initialize+0x0/0xbc) from [<c0198248>] (platform_device_register+0x18/0x24)
r6:00000005 r5:00000000 r4:c0366814
[<c0198230>] (platform_device_register+0x0/0x24) from [<c0198308>] (platform_add_devices+0x2c/0x60)
r4:00000000
[<c01982dc>] (platform_add_devices+0x0/0x60) from [<c00122f0>] (smdk_machine_init+0x84/0x98)
r7:c000f07c r6:c3816000 r5:c0023ee0 r4:c0023c10
[<c001226c>] (smdk_machine_init+0x0/0x98) from [<c001143c>] (smdk2410_init+0x1c/0x24)
[<c0011420>] (smdk2410_init+0x0/0x24) from [<c000f09c>] (customize_machine+0x20/0x2c)
[<c000f07c>] (customize_machine+0x0/0x2c) from [<c00282e4>] (do_one_initcall+0x5c/0x17c)
[<c0028288>] (do_one_initcall+0x0/0x17c) from [<c0008bf8>] (kernel_init+0x88/0xe8)
[<c0008b70>] (kernel_init+0x0/0xe8) from [<c00498a0>] (do_exit+0x0/0x6c8)
r5:00000000 r4:00000000
------------[ cut here ]------------
WARNING: at fs/sysfs/dir.c:462 sysfs_add_one+0x30/0x44()
sysfs: duplicate filename 's3c2410-nand' can not be created

Modules linked in:
[<c002c8f0>] (dump_stack+0x0/0x14) from [<c00478a4>] (warn_slowpath+0x5c/0x78)
[<c0047848>] (warn_slowpath+0x0/0x78) from [<c00d5720>] (sysfs_add_one+0x30/0x44)
r3:c38464a0 r2:c03173a0
r6:c3817cfc r5:c38477c8 r4:ffffffef
[<c00d56f0>] (sysfs_add_one+0x0/0x44) from [<c00d580c>] (create_dir+0x5c/0xb0)
r5:c38477c8 r4:c380d2a0
[<c00d57b0>] (create_dir+0x0/0xb0) from [<c00d58c0>] (sysfs_create_dir+0x40/0x5c)
r8:c0366884 r7:c0371cc8 r6:00000000 r5:00000000 r4:c0366884
[<c00d5880>] (sysfs_create_dir+0x0/0x5c) from [<c014ee74>] (kobject_add_internal+0xcc/0x1a0)
r4:c0366884
[<c014eda8>] (kobject_add_internal+0x0/0x1a0) from [<c014ef90>] (kobject_add_varg+0x48/0x50)
r7:00000001 r6:c0371cc8 r5:00000000 r4:c0366884
[<c014ef48>] (kobject_add_varg+0x0/0x50) from [<c014f028>] (kobject_add+0x58/0x64)
r6:ffffffea r5:c036681c r4:0000001c
[<c014efd0>] (kobject_add+0x0/0x64) from [<c019459c>] (device_add+0x7c/0x564)
r3:c03668a8 r2:c0333188
[<c0194520>] (device_add+0x0/0x564) from [<c01981b0>] (platform_device_add+0xec/0x16c)
[<c01980c4>] (platform_device_add+0x0/0x16c) from [<c0198250>] (platform_device_register+0x20/0x24)
r7:c0025b18 r6:00000005 r5:00000000 r4:c0366814
[<c0198230>] (platform_device_register+0x0/0x24) from [<c0198308>] (platform_add_devices+0x2c/0x60)
r4:00000000
[<c01982dc>] (platform_add_devices+0x0/0x60) from [<c00122f0>] (smdk_machine_init+0x84/0x98)
r7:c000f07c r6:c3816000 r5:c0023ee0 r4:c0023c10
[<c001226c>] (smdk_machine_init+0x0/0x98) from [<c001143c>] (smdk2410_init+0x1c/0x24)
[<c0011420>] (smdk2410_init+0x0/0x24) from [<c000f09c>] (customize_machine+0x20/0x2c)
[<c000f07c>] (customize_machine+0x0/0x2c) from [<c00282e4>] (do_one_initcall+0x5c/0x17c)
[<c0028288>] (do_one_initcall+0x0/0x17c) from [<c0008bf8>] (kernel_init+0x88/0xe8)
[<c0008b70>] (kernel_init+0x0/0xe8) from [<c00498a0>] (do_exit+0x0/0x6c8)
r5:00000000 r4:00000000
---[ end trace 1b75b31a2719ed1c ]---
kobject_add_internal failed for s3c2410-nand with -EEXIST, don't try to register things with the same name in the same directory.
[<c002c8f0>] (dump_stack+0x0/0x14) from [<c014ef18>] (kobject_add_internal+0x170/0x1a0)
[<c014eda8>] (kobject_add_internal+0x0/0x1a0) from [<c014ef90>] (kobject_add_varg+0x48/0x50)
r7:00000001 r6:c0371cc8 r5:00000000 r4:c0366884
[<c014ef48>] (kobject_add_varg+0x0/0x50) from [<c014f028>] (kobject_add+0x58/0x64)
r6:ffffffea r5:c036681c r4:0000001c
[<c014efd0>] (kobject_add+0x0/0x64) from [<c019459c>] (device_add+0x7c/0x564)
r3:c03668a8 r2:c0333188
[<c0194520>] (device_add+0x0/0x564) from [<c01981b0>] (platform_device_add+0xec/0x16c)
[<c01980c4>] (platform_device_add+0x0/0x16c) from [<c0198250>] (platform_device_register+0x20/0x24)
r7:c0025b18 r6:00000005 r5:00000000 r4:c0366814
[<c0198230>] (platform_device_register+0x0/0x24) from [<c0198308>] (platform_add_devices+0x2c/0x60)
r4:00000000
[<c01982dc>] (platform_add_devices+0x0/0x60) from [<c00122f0>] (smdk_machine_init+0x84/0x98)
r7:c000f07c r6:c3816000 r5:c0023ee0 r4:c0023c10
[<c001226c>] (smdk_machine_init+0x0/0x98) from [<c001143c>] (smdk2410_init+0x1c/0x24)
[<c0011420>] (smdk2410_init+0x0/0x24) from [<c000f09c>] (customize_machine+0x20/0x2c)
[<c000f07c>] (customize_machine+0x0/0x2c) from [<c00282e4>] (do_one_initcall+0x5c/0x17c)
[<c0028288>] (do_one_initcall+0x0/0x17c) from [<c0008bf8>] (kernel_init+0x88/0xe8)
[<c0008b70>] (kernel_init+0x0/0xe8) from [<c00498a0>] (do_exit+0x0/0x6c8)
r5:00000000 r4:00000000
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2410: Initialising architecture
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
fuji65
可愛的小學生
可愛的小學生
 
文章: 10
註冊時間: 週二 3月 17, 2009 9:48 am

回到 embedded system

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客