2011-01-29 22:25:20 bf526 ezbrd defconfig
Nathan Manning (UNITED STATES)
Message: 97765
Does anyone know where I can find a bf526 ezbrd defconfig? All I see is precompiled images or the raw source with no default config for the bf526.
Thanks,
Nathan
QuoteReplyEditDelete
2011-01-30 00:18:13 Re: bf526 ezbrd defconfig
Mike Frysinger (UNITED STATES)
Message: 97770
all defconfigs are in the standard linux location: arch/$(arch)/configs/
QuoteReplyEditDelete
2011-01-30 12:10:06 Re: bf526 ezbrd defconfig
Nathan Manning (UNITED STATES)
Message: 97775
Please forgive the silly question, but I'm new to the uC distribution. The source I got doesn't have an arch/ directory. It does have something called linux-2.6.x though. Am I supposed to supply the standard kernel in there?
Nathan
QuoteReplyEditDelete
2011-01-30 12:48:15 Re: bf526 ezbrd defconfig
Mike Frysinger (UNITED STATES)
Message: 97776
all of the kernel source is under linux-2.6.x/
QuoteReplyEditDelete
2011-01-30 13:15:44 Re: bf526 ezbrd defconfig
Nathan Manning (UNITED STATES)
Message: 97777
Mine was empty by default. I got it from git://sources.blackfin.uclinux.org/git/readonly-mirrors/uclinux-dist.git as instructed by the BlackfinKoop. Is this normal? Should I try from scratch?
If I manually get the linux source from the linux git and put it in the linux-2.6.x/ then copy the BF526-EZBRD_defconfig into vendors/AnalogDevices/BF526-EZBRD as config.linux-2.6.x I can start compiling, but with quite a few new config options. Then it eventually crashes out with an error like so:
/home/nathan/blackfin/uclinux-dist/tools/cross-fix-root
make[4]: Leaving directory `/home/nathan/blackfin/uclinux-dist/user/blkfin-apps/inetutils'
make[3]: Leaving directory `/home/nathan/blackfin/uclinux-dist/user/blkfin-apps'
make[2]: Leaving directory `/home/nathan/blackfin/uclinux-dist/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/nathan/blackfin/uclinux-dist/user'
make: *** [subdirs] Error 1
QuoteReplyEditDelete
2011-01-30 13:46:02 Re: bf526 ezbrd defconfig
Mike Frysinger (UNITED STATES)
Message: 97780
i dont know what instructions you read, but they did not tell you to download the git tree. use the 2010R1 release.
your log snippet does not contain the actual error. you need to scroll back up to find out where things are actually going wrong, or run `make single`.
QuoteReplyEditDelete
2011-01-30 14:34:55 Re: bf526 ezbrd defconfig
Nathan Manning (UNITED STATES)
Message: 97784
Alright, I wanted to do as much of this from source up as possible. My default reaction was to get everything from their repositories so nothing was prebuilt. This has proven quite difficult and I've settled for a prebuilt toolchain, prebuilt uClibc, prebuilt u-boot-uart.ldr, and now uClinux.
Regardless, I downloaded the 2010R1 release (it did have the linux-2.6.x source as you mentioned) and started the build. It crashed in the same spot.
make[8]: Entering directory `/home/nathan/blackfin/blackfin-linux-dist/user/blkfin-apps/inetutils/build-inetutils-1.6/rsh'
/usr/bin/install: cannot change ownership of `/home/nathan/blackfin/blackfin-linux-dist/staging/usr/bin/rsh': Operation not permitted
INSTALL-ERROR:
INSTALL-ERROR: THIS PROGRAM(rsh) MUST BE INSTALLED SETUID ROOT
INSTALL-ERROR: /usr/bin/install -c rsh -o root -m 4775 /home/nathan/blackfin/blackfin-linux-dist/staging/usr/bin/rsh
INSTALL-ERROR:
make[8]: Leaving directory `/home/nathan/blackfin/blackfin-linux-dist/user/blkfin-apps/inetutils/build-inetutils-1.6/rsh'
make[7]: Leaving directory `/home/nathan/blackfin/blackfin-linux-dist/user/blkfin-apps/inetutils/build-inetutils-1.6/rsh'
make[6]: Leaving directory `/home/nathan/blackfin/blackfin-linux-dist/user/blkfin-apps/inetutils/build-inetutils-1.6/rsh'
Looks like a mismatch in priveleges. Am I supposed to be doing the make as root?
N
QuoteReplyEditDelete
2011-01-30 14:39:11 Re: bf526 ezbrd defconfig
Nathan Manning (UNITED STATES)
Message: 97785
If I run 'make single' I get a completely different error:
make[6]: Entering directory `/home/nathan/blackfin/blackfin-linux-dist/user/mtd-utils/606f38a2221648ca5c5fa292c9f71d2ddd59fa66'
mkdir -p /home/nathan/blackfin/blackfin-linux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/
gcc -I./include -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o /home/nathan/blackfin/blackfin-linux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr_lzo.o compr_lzo.c -g -Wp,-MD,/home/nathan/blackfin/blackfin-linux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/.compr_lzo.c.dep
compr_lzo.c:29:23: error: lzo/lzo1x.h: No such file or directory
compr_lzo.c: In function ‘jffs2_lzo_cmpr’:
compr_lzo.c:51: error: ‘lzo_uint’ undeclared (first use in this function)
compr_lzo.c:51: error: (Each undeclared identifier is reported only once
compr_lzo.c:51: error: for each function it appears in.)
compr_lzo.c:51: error: expected ‘;’ before ‘compress_size’
compr_lzo.c:54: warning: implicit declaration of function ‘lzo1x_999_compress’
compr_lzo.c:54: error: ‘compress_size’ undeclared (first use in this function)
compr_lzo.c:56: error: ‘LZO_E_OK’ undeclared (first use in this function)
compr_lzo.c:49: warning: unused parameter ‘model’
compr_lzo.c: In function ‘jffs2_lzo_decompress’:
compr_lzo.c:72: error: ‘lzo_uint’ undeclared (first use in this function)
compr_lzo.c:72: error: expected ‘;’ before ‘dl’
compr_lzo.c:74: warning: implicit declaration of function ‘lzo1x_decompress_safe’
compr_lzo.c:74: error: ‘dl’ undeclared (first use in this function)
compr_lzo.c:76: error: ‘LZO_E_OK’ undeclared (first use in this function)
compr_lzo.c:69: warning: unused parameter ‘model’
compr_lzo.c: At top level:
compr_lzo.c:84: warning: initialization discards qualifiers from pointer target type
compr_lzo.c: In function ‘jffs2_lzo_init’:
compr_lzo.c:95: error: ‘LZO1X_999_MEM_COMPRESS’ undeclared (first use in this function)
make[6]: *** [/home/nathan/blackfin/blackfin-linux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr_lzo.o] Error 1
QuoteReplyEditDelete
2011-01-30 14:54:45 Re: bf526 ezbrd defconfig
Mike Frysinger (UNITED STATES)
Message: 97786
that is a harmless warning and can be ignored. it isnt the actual error preventing you from building things.
QuoteReplyEditDelete
2011-01-30 15:03:27 Re: bf526 ezbrd defconfig
Nathan Manning (UNITED STATES)
Message: 97787
Assuming you are referring to the first error from the regular 'make' not the error from the 'make single' I don't know what to say. It tells me the error and stops compiling. No /images directory ever shows up.
QuoteReplyEditDelete
2011-01-30 19:31:12 Re: bf526 ezbrd defconfig
Nathan Manning (UNITED STATES)
Message: 97792
Are you familiar witn the bf526 ezbrd? Most of the documentation I'm finding talks about loading a uImage over tftp, but I can't find anything about loading it from onboard. It'd be nice to have a stand alone board with non-volatile root filesystem.
Any other thoughts on compiling the kernel? I still can't get the build to get far enough to result in an /images directory.
QuoteReplyEditDelete
2011-01-30 19:34:37 Re: bf526 ezbrd defconfig
Mike Frysinger (UNITED STATES)
Message: 97793
you need to install development packages like the documentation explains:
docs.blackfin.uclinux.org/doku.php?id=installing_linux
those lzo files need to be in your host system
QuoteReplyEditDelete
2011-01-30 19:35:23 Re: bf526 ezbrd defconfig
Mike Frysinger (UNITED STATES)
Message: 97794
the board doesnt really matter. the bf526-ezbrd has an ethernet port, so you should use it.
QuoteReplyEditDelete
2011-01-30 19:58:40 Re: bf526 ezbrd defconfig
Nathan Manning (UNITED STATES)
Message: 97795
liblzo packages fixed it. Got my images now!
But I'd still like a standalone board even if it does have ethernet capabilities.
QuoteReplyEditDelete
2011-01-30 20:03:21 Re: bf526 ezbrd defconfig
Mike Frysinger (UNITED STATES)
Message: 97796
nothing is keeping you from doing that. it just doesnt make much sense considering how slow serial is compared to ethernet.
QuoteReplyEditDelete
2011-01-30 20:32:38 Re: bf526 ezbrd defconfig
Nathan Manning (UNITED STATES)
Message: 97797
Sure, but I could do SPI flash or USB stick or something so I won't have to be online right?