EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Building kernel/rootfs for EA lpc2468

Started by David Miller July 1, 2012
Hi all,

I'm trying to build uClinux from uClinux-20110210-ea2468_v091, on
xubuntu 12.04.
Doing...

# make CROSS_COMPILE=arm-unknown-linux-uclibc- xconfig
# make CROSS_COMPILE=arm-unknown-linux-uclibc-

eventually fails with...

make[2]: Entering directory `/home/david/project/lpc2468/uClinux/include'
Making symlinks in /home/david/project/lpc2468/uClinux/staging/include
Making include/c++ symlink to compiler c++ includes
Checking for modern c++ bits...
Using modern c++ bits,
/home/david/project/lpc2468/uClinux/arm-unknown-linux-uclibc/bin/../arm-unknown-linux-uclibc/include/c++/4.4.5/arm-unknown-linux-uclibc/./bits
make[2]: Leaving directory `/home/david/project/lpc2468/uClinux/include'
i=uClibc; [ ! -d $i ] || ( touch $i/.sgbuilt_lib && make -j1 -C $i ) ||
exit $?
make[2]: Entering directory `/home/david/project/lpc2468/uClinux/uClibc'
install -d include/bits
gcc -DCURSES_LOC="" -DLOCALE -c conf.c -o conf.o
gcc -DCURSES_LOC="" -DLOCALE -c kxgettext.c -o kxgettext.o
gcc -DCURSES_LOC="" -DLOCALE -c lxdialog/checklist.c -o
lxdialog/checklist.o
gcc -DCURSES_LOC="" -DLOCALE -c lxdialog/inputbox.c -o
lxdialog/inputbox.o
gcc -DCURSES_LOC="" -DLOCALE -c lxdialog/menubox.c -o
lxdialog/menubox.o
gcc -DCURSES_LOC="" -DLOCALE -c lxdialog/textbox.c -o
lxdialog/textbox.o
gcc -DCURSES_LOC="" -DLOCALE -c lxdialog/util.c -o
lxdialog/util.o
gcc -DCURSES_LOC="" -DLOCALE -c lxdialog/yesno.c -o
lxdialog/yesno.o
make[3]: *** No rule to make target `/usr/include/ncurses/ncurses.h',
needed by `mconf.o'. Stop.
make[2]: *** [extra/config/conf] Error 2
make[2]: Leaving directory `/home/david/project/lpc2468/uClinux/uClibc'
make[1]: *** [uClibc] Error 2
make[1]: Leaving directory `/home/david/project/lpc2468/uClinux/lib'
make: *** [subdirs] Error 1

ncurses.h exists, but is in /usr/include, not /usr/include/ncurses.
Isn't mconf.o to do with menuconfig?
I also did an initial make clean, still no luck.

Any idea how to fix this please?

Thanks,
David.

An Engineer's Guide to the LPC2100 Series

--- In l..., David Miller wrote:
> Hi all,
>
> I'm trying to build uClinux from uClinux-20110210-ea2468_v091, on
> xubuntu 12.04.
> Doing...
>
> # make CROSS_COMPILE=arm-unknown-linux-uclibc- xconfig
> # make CROSS_COMPILE=arm-unknown-linux-uclibc-
>
> eventually fails with...
> make[1]: *** [uClibc] Error 2
> make[1]: Leaving directory `/home/david/project/lpc2468/uClinux/lib'
> make: *** [subdirs] Error 1
>
> ncurses.h exists, but is in /usr/include, not /usr/include/ncurses.
> Isn't mconf.o to do with menuconfig?
> I also did an initial make clean, still no luck.
>
> Any idea how to fix this please?
>
> Thanks,
> David.
>

How about creating the directory and putting a symlink there that points back to the actual file? Or simply copy the entire file into the subdirectory.

Richard

On Mon, Jul 2, 2012 at 2:34 AM, David Miller wrote:

> ncurses.h exists, but is in /usr/include, not /usr/include/ncurses.
>
> Any idea how to fix this please?
cd /usr/include
ln -s . ncurses


Hi,

Is the NCurses to be used in your PC ? or is it suppose to be used in the ARM ?

/usr/include is directory for the PC's library headers, and not to be used for the ARM (or any target architecture) for cross compiling.

Find your ncurses in the EA unzipped / untarred directory:
bash# find -iname ncurses /your/EA/unzipped/dir

I'd recommend you to get one of those embedded linux book, or live with Linux to understand what you are trying to do with these commands.

Regards,
-daniel

________________________________
From: Triffid Hunter
To: l...
Sent: Monday, July 2, 2012 11:47 AM
Subject: Re: [lpc2000] Building kernel/rootfs for EA lpc2468

On Mon, Jul 2, 2012 at 2:34 AM, David Miller wrote:

> ncurses.h exists, but is in /usr/include, not /usr/include/ncurses.
>
> Any idea how to fix this please?
cd /usr/include
ln -s . ncurses


Thanks all,

Created directory and copied several ncurses related files there,
/usr/include/ncurses/curses.h
/usr/include/ncurses/ncurses.h
/usr/include/ncurses/ncurses_dll.h
/usr/include/ncurses/unctrl.h

now compiles and creates uClinux and romfs.img

Regards,
David.

On 02/07/12 03:45, rtstofer wrote:
>
> --- In l... ,
> David Miller wrote:
> >
> >
> > Hi all,
> >
> > I'm trying to build uClinux from uClinux-20110210-ea2468_v091, on
> > xubuntu 12.04.
> > Doing...
> >
> > # make CROSS_COMPILE=arm-unknown-linux-uclibc- xconfig
> > # make CROSS_COMPILE=arm-unknown-linux-uclibc-
> >
> > eventually fails with...
> > make[1]: *** [uClibc] Error 2
> > make[1]: Leaving directory `/home/david/project/lpc2468/uClinux/lib'
> > make: *** [subdirs] Error 1
> >
> > ncurses.h exists, but is in /usr/include, not /usr/include/ncurses.
> > Isn't mconf.o to do with menuconfig?
> > I also did an initial make clean, still no luck.
> >
> > Any idea how to fix this please?
> >
> > Thanks,
> > David.
> > How about creating the directory and putting a symlink there that
> points back to the actual file? Or simply copy the entire file into
> the subdirectory.
>
> Richard




The 2024 Embedded Online Conference