[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] kobject_add failed



Hello!

I have a XUP-V2Pro board.
I use fs-boot to run my board, and after, I upload u-boot via cat
u-boot.srec > /dev/ttyUSB0 (I have a serial-usb converter). Then, I
download linux kernel at 0xA0000000 address because it's the start address
of my main memory.
I do the following:

u-boot>iminfo 0xA0000000

## Checking Image at a0000000 ...
   Image Name:   PetaLinux Kernel 2.6
   Image Type:   Microblaze Linux Kernel Image (uncompressed)
   Data Size:    2785424 Bytes =  2.7 MB
   Load Address: a0000000
   Entry Point:  a0000000
   Verifying Checksum ... OK


I run linux: u-boot>go 0xA0000000
Screen displays:
## Starting application at 0xA0000000 ...
Found romfs @ 0xa01b108c (0x000f7000)
#### klimit a01c9000 ####
Moving 0x000f7000 bytes from 0xa01b108c to 0xa01c8868
New klimit: 0xa02c0000


I find __log_buf address in software/petalinux-dist/linux-2.6.x/System.map.

# grep "__log_buf" linux-2.6.x/System.map
a01b3df8 b __log_buf

I reset the board, and I md 0xa01b3df8 (__log_buf)

U-Boot> md a01b3df8
a01b3df8: 3c353e4c 696e7578 20766572 73696f6e    <5>Linux version
a01b3e08: 20322e36 2e32302d 75633020 28746865     2.6.20-uc0 (the
a01b3e18: 6d617374 65726163 66407468 656d6173    masteracf@themas
a01b3e28: 74657261 63662d6c 6170746f 70292028    teracf-laptop) (
a01b3e38: 67636320 76657273 696f6e20 332e342e    gcc version 3.4.
a01b3e48: 31202820 50657461 4c696e75 7820302e    1 ( PetaLinux 0.
a01b3e58: 32302042 75696c64 202d7263 31203035    20 Build -rc1 05
a01b3e68: 30363037 20292920 23322054 75652053    0607 )) #2 Tue S
a01b3e78: 65702032 32203131 3a33323a 31342043    ep 22 11:32:14 C
a01b3e88: 45535420 32303039 0a3c363e 73657475    EST 2009.<6>setu
a01b3e98: 705f6370 75696e66 6f3a2069 6e697469    p_cpuinfo: initi
a01b3ea8: 616c6973 696e670a 3c343e73 65747570    alising.<4>setup
a01b3eb8: 5f637075 696e666f 3a204e6f 20505652    _cpuinfo: No PVR
a01b3ec8: 20737570 706f7274 20696e20 4350552e     support in CPU.
a01b3ed8: 20205573 696e6720 73746174 69632063      Using static c
a01b3ee8: 6f6d7069 6c652d74 696d6520 696e666f    ompile-time info
U-Boot>
a01b3ef8: 0a3c363e 7365745f 63707569 6e666f5f    .<6>set_cpuinfo_
a01b3f08: 73746174 69633a20 5573696e 67207374    static: Using st
a01b3f18: 61746963 20435055 20696e66 6f2e0a3c    atic CPU info..<
a01b3f28: 343e7365 7475705f 6d656d6f 72793a20    4>setup_memory:
a01b3f38: 6d61785f 6d61706e 723a2030 78626666    max_mapnr: 0xbff
a01b3f48: 66660a3c 343e7365 7475705f 6d656d6f    ff.<4>setup_memo
a01b3f58: 72793a20 6d696e5f 6c6f775f 70666e3a    ry: min_low_pfn:
a01b3f68: 20307861 30303030 0a3c343e 73657475     0xa0000.<4>setu
a01b3f78: 705f6d65 6d6f7279 3a206d61 785f6c6f    p_memory: max_lo
a01b3f88: 775f7066 6e3a2030 78323030 30300a3c    w_pfn: 0x20000.<
a01b3f98: 373e4f6e 206e6f64 65203020 746f7461    7>On node 0 tota
a01b3fa8: 6c706167 65733a20 31333130 37320a3c    lpages: 131072.<
a01b3fb8: 373e2020 444d4120 7a6f6e65 3a203130    7>  DMA zone: 10
a01b3fc8: 32342070 61676573 20757365 6420666f    24 pages used fo
a01b3fd8: 72206d65 6d6d6170 0a3c373e 2020444d    r memmap.<7>  DM
a01b3fe8: 41207a6f 6e653a20 30207061 67657320    A zone: 0 pages
U-Boot>
a01b3ff8: 72657365 72766564 0a3c373e 2020444d    reserved.<7>  DM
a01b4008: 41207a6f 6e653a20 31333030 34382070    A zone: 130048 p
a01b4018: 61676573 2c204c49 464f2062 61746368    ages, LIFO batch
a01b4028: 3a33310a 3c373e20 204e6f72 6d616c20    :31.<7>  Normal
a01b4038: 7a6f6e65 3a203020 70616765 73207573    zone: 0 pages us
a01b4048: 65642066 6f72206d 656d6d61 700a3c34    ed for memmap.<4
a01b4058: 3e427569 6c742031 207a6f6e 656c6973    >Built 1 zonelis
a01b4068: 74732e20 20546f74 616c2070 61676573    ts.  Total pages
a01b4078: 3a203133 30303438 0a3c353e 4b65726e    : 130048.<5>Kern
a01b4088: 656c2063 6f6d6d61 6e64206c 696e653a    el command line:
a01b4098: 20080a3c 363e4f50 4220494e 54432023     ..<6>OPB INTC #
a01b40a8: 30206174 20307838 31383030 3030300a    0 at 0x81800000.
a01b40b8: 3c343e50 49442068 61736820 7461626c    <4>PID hash tabl
a01b40c8: 6520656e 74726965 733a2032 30343820    e entries: 2048
a01b40d8: 286f7264 65723a20 31312c20 38313932    (order: 11, 8192
a01b40e8: 20627974 6573290a 3c363e54 494d4552     bytes).<6>TIMER
U-Boot>
a01b40f8: 20617420 30783833 43303030 30300a3c     at 0x83C00000.<
a01b4108: 343e6469 7361626c 696e6720 6561726c    4>disabling earl
a01b4118: 7920636f 6e736f6c 650a3c34 3e44656e    y console.<4>Den
a01b4128: 74727920 63616368 65206861 73682074    try cache hash t
a01b4138: 61626c65 20656e74 72696573 3a203635    able entries: 65
a01b4148: 35333620 286f7264 65723a20 362c2032    536 (order: 6, 2
a01b4158: 36323134 34206279 74657329 0a3c343e    62144 bytes).<4>
a01b4168: 496e6f64 652d6361 63686520 68617368    Inode-cache hash
a01b4178: 20746162 6c652065 6e747269 65733a20     table entries:
a01b4188: 33323736 3820286f 72646572 3a20352c    32768 (order: 5,
a01b4198: 20313331 30373220 62797465 73290a3c     131072 bytes).<
a01b41a8: 363e4d65 6d6f7279 3a203531 36373336    6>Memory: 516736
a01b41b8: 6b2f3532 34323838 6b206176 61696c61    k/524288k availa
a01b41c8: 626c650a 3c373e43 616c6962 72617469    ble.<7>Calibrati
a01b41d8: 6e672064 656c6179 206c6f6f 702e2e2e    ng delay loop...
a01b41e8: 20312e33 3620426f 676f4d49 50532028     1.36 BogoMIPS (
U-Boot>
a01b41f8: 6c706a3d 36383332 290a3c34 3e4d6f75    lpj=6832).<4>Mou
a01b4208: 6e742d63 61636865 20686173 68207461    nt-cache hash ta
a01b4218: 626c6520 656e7472 6965733a 20353132    ble entries: 512
a01b4228: 0a3c343e 6b6f626a 6563745f 61646420    .<4>kobject_add
a01b4238: 6661696c 65642066 6f722063 6c617373    failed for class
a01b4248: 20776974 68202d45 45584953 542c2064     with -EEXIST, d
a01b4258: 6f6e2774 20747279 20746f20 72656769    on't try to regi
a01b4268: 73746572 20746869 6e677320 77697468    ster things with
a01b4278: 20746865 2073616d 65206e61 6d652069     the same name i
a01b4288: 6e207468 65207361 6d652064 69726563    n the same direc
a01b4298: 746f7279 2e0a3c34 3e0a3c34 3e537461    tory..<4>.<4>Sta
a01b42a8: 636b3a0a 3c343e20 20626666 63316564    ck:.<4>  bffc1ed
a01b42b8: 34206266 66633165 65342030 30303030    4 bffc1ee4 00000
a01b42c8: 30303120 62666666 33343738 20613031    001 bfff3478 a01
a01b42d8: 39323732 34206130 30626161 36342061    92724 a00baa64 a
a01b42e8: 30313765 35336320 61303139 32373238    017e53c a0192728
U-Boot>
a01b42f8: 200a3c34 3e202061 30306261 34666320     .<4>  a00ba4fc
a01b4308: 30303030 30303063 20303030 30303030    0000000c 0000000
a01b4318: 32203030 30303030 32662061 30313932    2 0000002f a0192
a01b4328: 37313420 30303030 30303030 20626666    714 00000000 bff
a01b4338: 63303030 30203030 30303030 3030200a    c0000 00000000 .
a01b4348: 3c343e20 20613030 62616261 63206130    <4>  a00babac a0
a01b4358: 30626162 61632030 30303030 30303020    0babac 00000000
a01b4368: 61303031 62383430 20613030 31623835    a001b840 a001b85
a01b4378: 63203030 30303030 30302030 30303030    c 00000000 00000
a01b4388: 30303020 61303161 62366338 200a3c34    000 a01ab6c8 .<4
a01b4398: 3e43616c 6c205472 6163653a 205b3c61    >Call Trace: [<a
a01b43a8: 30306261 6136343e 5d205b3c 61303062    00baa64>] [<a00b
a01b43b8: 61346663 3e5d205b 3c613030 62616261    a4fc>] [<a00baba
a01b43c8: 633e5d20 5b3c6130 30626162 61633e5d    c>] [<a00babac>]
a01b43d8: 205b3c61 30303162 3834303e 5d205b3c     [<a001b840>] [<
a01b43e8: 61303031 62383563 3e5d205b 3c613031    a001b85c>] [<a01
U-Boot>
a01b43f8: 61623663 383e5d20 5b3c6130 31616236    ab6c8>] [<a01ab6
a01b4408: 39633e5d 205b3c61 30316134 6633633e    9c>] [<a01a4f3c>
a01b4418: 5d205b3c 61303161 34386563 3e5d205b    ] [<a01a48ec>] [
a01b4428: 3c613031 61623862 383e5d20 5b3c6130    <a01ab8b8>] [<a0
a01b4438: 31616238 61633e5d 205b3c61 30303030    1ab8ac>] [<a0000
a01b4448: 3133383e 5d205b3c 61303030 30306363    138>] [<a00000cc
a01b4458: 3e5d205b 3c613030 30313237 633e5d20    >] [<a000127c>]
a01b4468: 5b3c6130 30303132 37303e5d 200a0000    [<a0001270>] ...
a01b4478: 00000000 00000000 00000000 00000000    ................
a01b4488: 00000000 00000000 00000000 00000000    ................
a01b4498: 00000000 00000000 00000000 00000000    ................
a01b44a8: 00000000 00000000 00000000 00000000    ................
a01b44b8: 00000000 00000000 00000000 00000000    ................
a01b44c8: 00000000 00000000 00000000 00000000    ................
a01b44d8: 00000000 00000000 00000000 00000000    ................
a01b44e8: 00000000 00000000 00000000 00000000    ................


Over address a01b4228, I can see:
kobject_add failed for class with -EEXIST, don't try to register things with
the same name in the same directory.

And then, I can see "stack:... call trace:..."
It seems a segment fault or kernel panic. Why? And why on screen only
displays the klimit message and doesn't display all messages?

Please, help me!!!
Thanks!


ACF.





___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/