2009-12-21 08:26:57     uclinux make --help thanks

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

2009-12-21 08:26:57     uclinux make --help thanks

zhongztc zhongztc (CHINA)

Message: 83791   

 

i downloaded the uclinux-dist-2008R1.5-RC3.tar.bz2.

 

my target is bf561 rev0.3

 

when i did make

 

it gives me some thing like this :

 

  SYMLINK include/asm-blackfin/mach-bf561 -> include/asm-blackfin/mach

  CHK     include/linux/version.h

  CHK     include/linux/utsrelease.h

  CC      arch/blackfin/kernel/asm-offsets.s

cc1: error: unrecognized command line option "-mcpu=bf561-0.3"

make[1]: *** [arch/blackfin/kernel/asm-offsets.s] Error 1

make: *** [prepare0] Error 2

 

can some one help me ?????

 

thanks

QuoteReplyEditDelete

 

 

2009-12-21 09:08:03     Re: uclinux make --help thanks

Mike Frysinger (UNITED STATES)

Message: 83793   

 

what version of the toolchain are you using exactly ?  as the FAQ states, your dist/toolchain must match.

 

QuoteReplyEditDelete

 

 

2009-12-21 21:24:29     Re: uclinux make --help thanks

zhongztc zhongztc (CHINA)

Message: 83808   

 

now i chang it to blackfin-toolchain-08r1.5-14.i386.rpm,uclinux-dist-2008R1.5-RC3.tar.bz2.

 

my target is bf561 rev0.3

 

but when i did make

 

it gives me some thing like this :

 

rm -f linux-2.6.x/usr/initramfs_data.cpio.gz

make ARCH=blackfin   CROSS_COMPILE=bfin-uclinux- -j1 -C linux-2.6.x  || exit 1

make[1]: Entering directory `/zhong/uClinux-dist-2008R1.5-RC3/linux-2.6.x'

  SYMLINK include/asm-blackfin/mach-bf561 -> include/asm-blackfin/mach

  CHK     include/linux/version.h

  UPD     include/linux/version.h

  CHK     include/linux/utsrelease.h

  UPD     include/linux/utsrelease.h

  SYMLINK include/asm -> include/asm-blackfin

  CC      arch/blackfin/kernel/asm-offsets.s

In file included from include/linux/spinlock.h:53,

                 from include/linux/capability.h:47,

                 from include/linux/sched.h:46,

                 from arch/blackfin/kernel/asm-offsets.c:32:

include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory

In file included from include/linux/spinlock.h:53,

                 from include/linux/capability.h:47,

                 from include/linux/sched.h:46,

                 from arch/blackfin/kernel/asm-offsets.c:32:

include/linux/kernel.h:123: error: expected declaration specifiers or 鈥?..鈥?before 鈥榲a_list鈥?

                                                                                                     include/linux/kernel.h:127: error: expected declaration specifiers or 鈥?..鈥?before 鈥榲a_list鈥?

                                                                                                    include/linux/kernel.h:131: error: expected declaration specifiers or 鈥?..鈥?before 鈥榲a_list鈥?

                                                                                                   include/linux/kernel.h:135: error: expected declaration specifiers or 鈥?..鈥?before 鈥榲a_list鈥?

                                                                                                  include/linux/kernel.h:139: error: expected declaration specifiers or 鈥?..鈥?before 鈥榲a_list鈥?

                                                                                                 include/linux/kernel.h:155: error: expected declaration specifiers or 鈥?..鈥?before 鈥榲a_list鈥?

                                                                                                make[2]: *** [arch/blackfin/kernel/asm-offsets.s] Error 1

make[1]: *** [prepare0] Error 2

make[1]: Leaving directory `/zhong/uClinux-dist-2008R1.5-RC3/linux-2.6.x'

make: *** [linux] Error 1

QuoteReplyEditDelete

 

 

2009-12-21 21:27:53     Re: uclinux make --help thanks

Mike Frysinger (UNITED STATES)

Message: 83809   

 

you didnt install the toolchain properly.  once again, please read the FAQ.

 

  docs.blackfin.uclinux.org/doku.php?id=faq

QuoteReplyEditDelete

 

 

2009-12-23 05:34:53     Re: uclinux make --help thanks

zhongztc zhongztc (CHINA)

Message: 83889   

 

Thank you very much ,the target can boot correctly.......

 

Now I  to ask you another question: uclinux2008R1.5 and uclinux R1-RC6 is said to support SMP,,,,,and i want to know how it support smp ,such as BF561(dulecoreBF533) ? ? Can you tell me about the principle? ? Thanks a lot.......

 

CoreA and CoreB works the same??just like the really SMP system??

 

OR:CoreB is a dev  to CorebA???and CoreB just do some task which CoreA tell it???

 

i am the fist time to learn this field and started a short time,thank you for you help very much!!!!!!!!!!

QuoteReplyEditDelete

 

 

2009-12-23 13:45:23     Re: uclinux make --help thanks

Mike Frysinger (UNITED STATES)

Message: 83894   

 

SMP on the BF561 is only supported in 2009R1.  upgrade.

 

as for your questions, search the wiki.  BF561 SMP is what it says -- you can run different processes on different cores.

QuoteReplyEditDelete

 

 

2009-12-25 00:16:00     Re: uclinux make --help thanks

zhongztc zhongztc (CHINA)

Message: 83923   

 

you didnt install the toolchain properly.  once again, please read the FAQ.

 

  docs.blackfin.uclinux.org/doku.php?id=faq

 

---

 

 

 

thank you! now it can run correctly on my target...

 

now i want to compile another uImage and it can support Kgdb,

 

but   after i patched kgdb_bfin_linux-2.6.x.patch,and configured:

 

Kernel hacking --->

    [*] Kernel debugging

    [*] KGBD: kernel debugging with remote gd

 

..........

 

[*]   KGDB: Console messages through gdb                                                       

    KGDB: connect over (Ethernet)  ---> 

 

.......

 

after make:

 

.........

 

  CC      kernel/kgdb.o

kernel/kgdb.c: In function 鈥榢gdb_handle_exception鈥?

kernel/kgdb.c:920: error: invalid lvalue in unary 鈥?鈥?

                                                          kernel/kgdb.c:920: error: invalid lvalue in unary 鈥?鈥?

                                                                                                                    kernel/kgdb.c:920: error: invalid lvalue in unary 鈥?鈥?

                                          kernel/kgdb.c:920: warning: type defaults to 鈥榠nt鈥?in declaration of 鈥榯ype name鈥?

                                                                                                                                   kernel/kgdb.c: At top level:

kernel/kgdb.c:1393: warning: initialization from incompatible pointer type

make[2]: *** [kernel/kgdb.o] Error 1

make[1]: *** [kernel] Error 2

make[1]: Leaving directory `/zhong/uClinux-dist-2008R1.5-RC3/linux-2.6.x'

make: *** [linux] Error 1

 

I don't know what have i done wrong?

QuoteReplyEditDelete

 

 

2009-12-25 09:35:09     Re: uclinux make --help thanks

Mike Frysinger (UNITED STATES)

Message: 83943   

 

upgrade to 2009R1

QuoteReplyEditDelete

 

 

2009-12-27 05:37:07     Re: uclinux make --help thanks

zhongztc zhongztc (CHINA)

Message: 83971   

 

According the docs:  docs.blackfin.uclinux.org/doku.php?id=linux-kernel:kgdb_2008r1.5, i think  2008R1.5 can support kgdb.....

 

now i upgrade to 2009R1, BF561(rev0.3),patch :kgdboe_bfin_linux-2.6.x.patch  and  kgdb_smp_switch_master_cpu_linux-2.6.x.patch

 

i patch the second one;

 

errors:

 

bfin-uclinux-gcc  -Wl,-elf2flt    -mcpu=bf561-0.3 -o touch touch.o

make[3]:正在离开目录 `/media/??/2009/uClinux-dist/user/fileutils'

make[4]:正在离开目录 `/media/??/2009/uClinux-dist/user/busybox/build-busybox-1.13.4'

make[3]:正在离开目录 `/media/??/2009/uClinux-dist/user/busybox'

make[2]:正在离开目录 `/media/??/2009/uClinux-dist/user'

make[1]: *** [all] 错误 2

make[1]:正在离开目录 `/media/??/2009/uClinux-dist/user'

make: *** [subdirs] 错误 1

 

 

i think my configure was wrong....

 

can you give me a simple guide on how to configure kgdb ?or a related website.

 

thank you very much...

 

2009R1 support smp onBF561(rev 0.3) ???my target is rev0.3...

 

so the kgdb patch can support s  dual core debugging of BF561?????

QuoteReplyEditDelete

 

 

2009-12-27 21:53:53     Re: uclinux make --help thanks

Sonic Zhang (CHINA)

Message: 83972   

 

Your log information doesn't include real error. Please make bugreport and upload the log file.

 

SMP kernel can't be built and run on bf561 v0.3. Please find a board with bf561 v0.5.

QuoteReplyEditDelete

 

 

2009-12-28 00:49:15     Re: uclinux make --help thanks

zhongztc zhongztc (CHINA)

Message: 83975   

 

SMP kernel can't be built and run on bf561 v0.3.????????????

QuoteReplyEditDelete

 

 

2009-12-28 11:42:33     Re: uclinux make --help thanks

Mike Frysinger (UNITED STATES)

Message: 84004   

 

we've built 2009R1 SMP and run on BF561-0.3 just fine

QuoteReplyEditDelete

 

 

2009-12-29 01:20:56     Re: uclinux make --help thanks

zhongztc zhongztc (CHINA)

Message: 84019   

 

2008R1.5,i patched smp_bf561.patch and make a new uImage,

 

and it can work correctly,,,and  i can see two cpuinfos

 

could you tell me whether my new uImge support smp now??

 

about running on BF561-0.3 ,,,,2009R1 SMP and my new uImgae do the same work(about supporting smp)????

Attachments

    Outcomes