Some feedback about installing the latest version of the Linux SDK under Ubuntu 9.04 and hopefully might help others with a similar problem.
I recently purchased an Xport Pro and Development board. I applied all the dendencies as detailed in the Linux SDK User Guide un Ubuntu 9.04.
The install.sh script installed all the software correctly and I was able to run 'make menuconfig'. I could set the Vendor/Product Selection to Lantronix and Xport Pro, and set Customize Kernel Settings and Customize Application/Library Settings in Kernel/Library/Defaults section. On exit-ing and saving the configuration, the program stopped with the following error:
[email protected]:~/xport_SDK$ make menuconfig
cd /home/prf/xport_SDK/linux; make menuconfig
make[1]: Entering directory `/home/prf/xport_SDK/linux'
config/mkconfig > Kconfig
KCONFIG_NOTIMESTAMP=1 /home/prf/xport_SDK/linux/config/kconfig/mconf Kconfig
*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.
./.oldconfig: 1: -e: not found
./.oldconfig: 2: -e: not found
./.oldconfig: 3: -e: not found
./.oldconfig: 4: -e: not found
make[1]: Leaving directory `/home/prf/xport_SDK/linux'
[email protected]:~/xport_SDK$
After much head scratching, the problem was narrowed down to the setconfig script under <sdk_installation>/linux/config:-
**************************************************
#
# remove line containing $1 append line $2 to file in $3
#
replace_line()
{
TMPR="/tmp/setconfig.$$"
if [ -f "$3" ]
then
cat "$3" | grep -v "$1" > "$TMPR"
else
touch "$TMPR"
fi
echo -e "$2" >> "$TMPR"
cp "$TMPR" "$3"
rm -f "$TMPR"
}
**************************************************
If I edit the line echo -e "$2" >> "$TMPR" to echo "$2" >> "$TMPR" all seems to work and I can run 'make menuconfig' successfully, make changes to the kernel and applications and use 'make' to start compilation.
I guess that the Ubuntu version of 'echo' doesn't support the -e option correctly. I experienced the same problem using Ubuntu 8.04 and 9.1.
Regards
Peter Foden, Proudman Oceanographic Laboratory, Liverpool, UK
I recently purchased an Xport Pro and Development board. I applied all the dendencies as detailed in the Linux SDK User Guide un Ubuntu 9.04.
The install.sh script installed all the software correctly and I was able to run 'make menuconfig'. I could set the Vendor/Product Selection to Lantronix and Xport Pro, and set Customize Kernel Settings and Customize Application/Library Settings in Kernel/Library/Defaults section. On exit-ing and saving the configuration, the program stopped with the following error:
[email protected]:~/xport_SDK$ make menuconfig
cd /home/prf/xport_SDK/linux; make menuconfig
make[1]: Entering directory `/home/prf/xport_SDK/linux'
config/mkconfig > Kconfig
KCONFIG_NOTIMESTAMP=1 /home/prf/xport_SDK/linux/config/kconfig/mconf Kconfig
*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.
./.oldconfig: 1: -e: not found
./.oldconfig: 2: -e: not found
./.oldconfig: 3: -e: not found
./.oldconfig: 4: -e: not found
make[1]: Leaving directory `/home/prf/xport_SDK/linux'
[email protected]:~/xport_SDK$
After much head scratching, the problem was narrowed down to the setconfig script under <sdk_installation>/linux/config:-
**************************************************
#
# remove line containing $1 append line $2 to file in $3
#
replace_line()
{
TMPR="/tmp/setconfig.$$"
if [ -f "$3" ]
then
cat "$3" | grep -v "$1" > "$TMPR"
else
touch "$TMPR"
fi
echo -e "$2" >> "$TMPR"
cp "$TMPR" "$3"
rm -f "$TMPR"
}
**************************************************
If I edit the line echo -e "$2" >> "$TMPR" to echo "$2" >> "$TMPR" all seems to work and I can run 'make menuconfig' successfully, make changes to the kernel and applications and use 'make' to start compilation.
I guess that the Ubuntu version of 'echo' doesn't support the -e option correctly. I experienced the same problem using Ubuntu 8.04 and 9.1.
Regards
Peter Foden, Proudman Oceanographic Laboratory, Liverpool, UK
Comment