2005-02-05 11:18:48     How to compile uClinux (sources from cvs)

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

2005-02-05 11:18:48     How to compile uClinux (sources from cvs)

Przemyslaw Ciesielski (POLAND)

Message: 1219    Hi.

 

I've got problem with compiling uClinux.

I do everything as it has been written in ReleaseNotes-Beta1 but it doesn't work

 

I do:

# make clean

# make menuconfig

 

There i've set:

Vendor: ADI

ADI Products: BF533

Kernel Version: linux-2.6.x

Libc Version: uClibc

 

And what?

I've entered to linux-2.6.x directory, did make menuconfig and in "Processor type and features" i set:

Platform (EZKITLITE board support)

Crystal: 27 (was 11059200)

 

And which clock I need to set for 118 Mhz?

(1) Core Clock Divider

(5) System Clock Divider

?

 

When i set this two options for 118

And then do:

# make

 

i've got:

In file included from include/asm/system.h:5,

from include/asm/bitops.h:8,

from include/linux/bitops.h:4,

from include/linux/thread_info.h:20,

from include/linux/spinlock.h:12,

from include/linux/capability.h:45,

from include/linux/sched.h:7,

from arch/bfinnommu/kernel/asm-offsets.c:11:

include/asm/board/bf533.h:151:4: #error "VCO Multiplier is more than 22 for EZKIT. Please select a different value"

include/asm/board/bf533.h:174:4: #error "SCLK DIV cannot be less than 1 or more than 15. Please select a proper value"

include/asm/board/bf533.h:181:6: #error "CCLK DIV can be 1,2,4 or 8 only.Please select a proper value"

include/asm/board/bf533.h:198:4: #error "Sclk value selected is less than minimum.Please select a proper value for SCLK multiplier"

include/asm/board/bf533.h:204:5: #error "Please select sclk less than cclk"

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

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

make[1]: Leaving directory `/home/pck/test/uClinux-dist/linux-2.6.x'

make: *** [linux] Error 1

 

TIA!

.p

QuoteReplyEditDelete

 

 

2005-02-05 14:22:34     RE: How to compile uClinux (sources from cvs

Lyndon Pham (UNITED STATES)

Message: 1228    Hi,

 

Refer to this post:

 

  blackfin.uclinux.org/forum/message.php?msg_id=1036

 

Hope this helps.

QuoteReplyEditDelete

 

 

2005-02-05 15:03:57     RE: How to compile uClinux (sources from cvs

Przemyslaw Ciesielski (POLAND)

Message: 1230    Hi,

 

Thanks, it helped me.

But after compile finish I don't have linux.dxe

 

make in linux-2.6.x ended with:

LOAD rootfs.o

END GROUP

LOAD .tmp_kallsyms2.o

OUTPUT(vmlinux elf32-bfin)

 

So maybe in this case I have to upload to my Blackfin this vmlinux?

 

But isn't it to big?

pck@vmware linux-2.6.x $ ls -l vmlinux

-rwxr-xr-x 1 pck users 5315085 Feb 4 19:38 vmlinux

 

TIA!

 

.p

QuoteReplyEditDelete

 

 

2005-02-05 18:44:05     RE: How to compile uClinux (sources from cvs

Lyndon Pham (UNITED STATES)

Message: 1238    Rename the file "linux" to "linux.dxe" in the

 

.../uClinux-dist/linux-2.6.x/ directory

 

Mine are typically 4-5MB.

QuoteReplyEditDelete

 

 

2005-02-06 14:39:43     RE: How to compile uClinux (sources from cvs

James Warren (UNITED KINGDOM)

Message: 1245    I get exactly the same error on the latest CVS. Including getting a 'vmlinux' file but no 'linux' file.

 

Funny thing is I managed to complete a build of the CVS from a few day's ago. Although the 'linux' file didn't run on the board.

 

I'm trying to revert back to the old CVS now and see if that builds.

 

Anybody know if something has changed recently in the kernel that would make a 1 week old toolchain not work?

 

Thanks,

QuoteReplyEditDelete

 

 

2005-02-06 14:40:24     RE: How to compile uClinux (sources from cvs

James Warren (UNITED KINGDOM)

Message: 1246    btw Lyndon, thanks for the offer of help off-list but i've got the toolchain working now :-)

QuoteReplyEditDelete

 

 

2005-02-06 16:46:52     RE: How to compile uClinux (sources from cvs

James Warren (UNITED KINGDOM)

Message: 1248    Ok, i've checked and the old kernel compiles fine still (checkout 1 week ago) however a kernel checkout out on Saturday(05 Feb) fails during make. The last bit of the log is at the bottom of this message.

 

Przemys I see you are having exactly the same problem, have you ever been able to build the kernel?

 

 

 

0x004c2438 sysctl_tcp_rfc1337

0x004c2bfc sysctl_icmp_echo_ignore_broadcasts

0x004c2450 sysctl_tcp_orphan_retries

0x004c2580 raw_v4_htable

0x004c2c14 net_statistics

0x004c1e4c ip_rt_max_size

0x004c2c94 ip_fib_main_table

0x004c1d3c netlink_sock_nr

0x004c243c sysctl_tcp_ecn

0x004c242c tcp_statistics

0x004c2404 ip_ra_chain

0x004c2400 sysctl_ip_dynaddr

0x004c2b88 udp_statistics

0x004c2984 udp_hash

0x004c2410 sysctl_tcp_mem

0x004c2c20 sysctl_ip_nonlocal_bind

0x004c1ecc inet_peer_unused_head

0x004c2c00 sysctl_icmp_ignore_bogus_error_responses

0x004c1ca4 rtnl

0x004c2ca8 unix_socket_table

0x004c240c tcp_timewait_cachep

*(COMMON)

0x004c30b8 . = ALIGN (0x4)

0x004c30b8 _ebss = .

0x004c30b8 _end = .

 

.text_l1 0xffa00000 0x0

0xffa00000 . = ALIGN (0x4)

0xffa00000 _stext_l1 = .

*(.text.l1)

0xffa00000 . = ALIGN (0x4)

0xffa00000 _etext_l1 = .

 

.data_l1 0xff800000 0x0

0xff800000 . = ALIGN (0x4)

0xff800000 _sdata_l1 = .

*(.data.l1)

0xff800000 . = ALIGN (0x4)

0xff800000 _edata_l1 = .

 

.bss_l1 0xff800000 0x0

0xff800000 . = ALIGN (0x4)

0xff800000 _sbss_l1 = .

*(.bss.l1)

0xff800000 . = ALIGN (0x4)

0xff800000 _ebss_l1 = .

LOAD arch/bfinnommu/mach-bf533/head.o

LOAD arch/bfinnommu/kernel/init_task.o

LOAD init/built-in.o

START GROUP

LOAD usr/built-in.o

LOAD arch/bfinnommu/kernel/built-in.o

LOAD arch/bfinnommu/mm/built-in.o

LOAD arch/bfinnommu/mach-bf533/built-in.o

LOAD kernel/built-in.o

LOAD mm/built-in.o

LOAD fs/built-in.o

LOAD ipc/built-in.o

LOAD security/built-in.o

LOAD crypto/built-in.o

LOAD lib/lib.a

LOAD arch/bfinnommu/lib/lib.a

LOAD lib/built-in.o

LOAD arch/bfinnommu/lib/built-in.o

LOAD drivers/built-in.o

LOAD sound/built-in.o

LOAD net/built-in.o

LOAD rootfs.o

END GROUP

OUTPUT(.tmp_vmlinux1 elf32-bfin)

make[1]: *** [.tmp_vmlinux1] Error 1

make[1]: Leaving directory `/mnt/sdc1/uClinux-dist/linux-2.6.x'

make: *** [linux] Error 1

root@box:/mnt/sdc1/uClinux-dist#

QuoteReplyEditDelete

 

 

2005-02-06 19:13:11     RE: How to compile uClinux (sources from cvs

Przemyslaw Ciesielski (POLAND)

Message: 1252    Hi James.

 

No, i don't have problems with compiling kernel - last line is OUTPUT(vmlinux elf32-bfin) and that's all. After that in linux-2.6.x directory I have new file vmlinux.

 

But my sources are from January 4...

 

Grets.

.p

QuoteReplyEditDelete

 

 

2005-02-06 20:00:57     RE: How to compile uClinux (sources from cvs

Lyndon Pham (UNITED STATES)

Message: 1256    Hey guys, I was having a similar problem earlier (see this thread   blackfin.uclinux.org/forum/message.php?msg_id=1030)

 

But just as I was told, the last lines of the error won't help much to find out what's wrong. Try doing:

 

make 2 > error.log

 

to make a file with the warnings etc. My problem was related to sound support. It didn't like support for the 1836 codec. I unchecked it in the kernel config and was able to build the image without a problem. Try that out.

Attachments

    Outcomes