[#4534] module put in l2 has warning and printed address out of L2

Document created by Aaronwu Employee on Aug 29, 2013
Version 1Show Document
  • View in full screen mode

[#4534] module put in l2 has warning and printed address out of L2

Submitted By: Mingquan Pan

Open Date

2008-10-15 23:40:52     Close Date

2008-10-16 02:40:59

Priority:

Medium High     Assignee:

Jie Zhang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

N/A     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

N/A

Uboot version or rev.:

    Toolchain version or rev.:

trunk head

App binary format:

N/A     

Summary: module put in l2 has warning and printed address out of L2

Details:

 

module put in l2 has warning and printed address out of L2 on bf548.

 

## Starting application at 0x0026b568 ...

Linux version 2.6.26.5-ADI-2009R1-pre-svn5419 (test@my-local-machine) (gcc version 4.1.2 (ADI svn)) #12 Thu Oct 16 11:27:06 CST 2008

console [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:                                                                                                                                               

...

*******************************************************************

STEP 4: Clean src directory

 

 

spawn make clean

make -C /home/test/work/cruise/checkouts/uclinux-dist/testsuites/l2_module/../../linux-2.6.x SUBDIRS=$PWD clean

make[1]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x'

make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x'

 

Make clean.

 

*******************************************************************

STEP 5: Build test program

 

 

spawn make

make -C /home/test/work/cruise/checkouts/uclinux-dist/testsuites/l2_module/../../linux-2.6.x SUBDIRS=$PWD modules

make[1]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x'

  CC [M]  /home/test/work/cruise/checkouts/uclinux-dist/testsuites/l2_module/hello.o

/home/test/work/cruise/checkouts/uclinux-dist/testsuites/l2_module/hello.c:8: warning: 'l2_data' attribute directive ignored

/home/test/work/cruise/checkouts/uclinux-dist/testsuites/l2_module/hello.c:12: warning: 'l2_text' attribute directive ignored

  Building modules, stage 2.

  MODPOST 1 modules

  CC      /home/test/work/cruise/checkouts/uclinux-dist/testsuites/l2_module/hello.mod.o

  LD [M]  /home/test/work/cruise/checkouts/uclinux-dist/testsuites/l2_module/hello.ko

make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x'

 

Case 1 ...PASS

 

root:/> ifconfig eth0 10.100.4.50 up

root:/> ifconfig set success.

 

 

*******************************************************************

STEP 6: Copy testcase to target board

 

 

spawn rcp hello.ko root@10.100.4.50:/

insmod hello.ko

========Load module into L2 memory========

L2 Code test: code function addr = 0x03d82854

L2 data A test: data variable addr = 0x03d82e60, data value is 0

L2 BSS  bank A test: bss  variable addr = 0xfeb00000, bss value is 0

root:/>

Case 1 ...FAIL                                                                                                                                            

 

Follow-ups

 

--- Mingquan Pan                                             2008-10-16 02:40:59

That is because the wrong way when putting the code and data in l2. Updated in

scripts. Close this.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes