[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] uClinux compile error on "make dep"



Building uClinux Kernel for NuHO S3-2000

	Hi, below are the steps I have followed in trying to build the uClinux 
Kernel for the NuHo S3-2000 dev board.  However, the process crapped out 
when trying to do "make dep".  The error from "make dep" can be found at 
bottom.

I have previously gotten "make dep" to complete successully, but errors were 
encountered afterwards during "make".  After reading John Williams' msg July 
19 "Compilation Error".  I have tried adding in this new line that 
suggested,
		$ cvs update -rbefore_linux_2_4_31

As a result, "make dep" no longer completes successfully.

If anyone can point out some mistakes I may have made, or correct the 
process I have followed to ensure a successful compilation of the uClinux 
Kernel for the NuHO S3-2000, it would be greatly appreciated.  Thank you for 
your time.

Best regards,
Dave L.

-----------------------------------------------------------------------------

1. I have downloaded the microblaze-elf-tools tarball from
	http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux/Toolchain/linux_binaries.html

2. Made a directory named MicroBlaze-elf-tools under /usr/local

3. Extracted the microblaze-elf-tools tarball in 
/usr/local/MicroBlaze-elf-tools, with the command
	> tar -xzf microblaze-elf-tools-20050308.tar.gz

4. Ensured /usr/local/MicroBlaze-elf-tools/bin is in PATH by this command
	> export PATH=/usr/local/MicroBlaze-elf-tools/bin:${PATH}

5. While in the /opt directory, the following commands were executed
	> cvs -d:pserver:anonymous@cvs.uclinux.org:/var/cvs login
	> Hit <RETURN> at password prompt
	> cvs -z3 -d:pserver:anonymous@cvs.uclinux.org:/var/cvs co -ruClinux-dist-2004 uClinux-dist
	> cvs -z3 -d:pserver:anonymous@cvs.uclinux.org:/var/cvs co -rbefore-snapgear-code-sync-20050504 uClinux-2.4.x
	> cvs update -rbefore_linux_2_4_31
	(^^NOTE:this line added per John Williams' msg July 19 "Compilation Error")
	> cd uClinux-dist
	> ln -s ../uClinux-2.4.x linux-2.4.x

6. Copied all *.patch and *.tar files from the Linux folder in the extracted 
archive "NuHo_S3-2000_uClinux_Rel2005062301.zip" on the Windows machine to 
the /opt/uClinux-dist directory on the Linux machine.

7. For the NuHo_S3-2000_uClinux-dist.patch file, this command was executed
	> patch -p 0 -b < NuHo_S3-2000_uClinux-dist.path

8. For the NuHo_S3-2000_uClinux-2.4.x.patch file, this command was executed
	> patch -p 0 -b < NuHo_S3-2000_uClinux-2.4.x.patch

9. For the NuHo_S3-2000_uClinux_config.tar file, this command was executed
	> tar xf NuHo_S3-2000_uClinux_config.tar

10. Copied "auto-config.in" from the extracted archive 
"NuHo_S3-2000_uClinux_Rel2005062301.zip" into 
/opt/uClinux-dist/linux-2.4.x/arch/microblaze/platform/uclinux-auto/ 
directory on the Linux machine

11. While in the /opt/uClinux-dist directory, these commands were attempted
	> make clean
	(^^Note:make clean completed successfully)
	> make menuconfig
	(^^Note:make menuconfig completed successfully)

-----------------------------------------------------------------------------

During make menuconfig these were the extra questions prompted, <RETURN> was 
hit for all.

When presented with the uClinux build configuration menu, I went into 
"Kernel/Library/Defaults Selection" option and selected "Customize Kernel 
Settings" and "Customize Vendor/User Settings", and I have saved when asked.

2 additional windows were presented, I simply exited them and saved when 
asked.

---8<-snip---
CFI Flash device mapped on Microblaze/ML401 (uClinux) (CONFIG_MTD_ML401) 
[N/y/m/?] (NEW)

Conexant flash MTD support hack (CONFIG_MTD_MTDCNXT) [N/y/m/?] (NEW)

Fast Timer Support (CONFIG_FAST_TIMER) [N/y/?] (NEW)

flashloader (CONFIG_USER_BOOTTOOLS_FLASHLOADER) [N/y/?] (NEW)

himemloader (CONFIG_USER_BOOTTOOLS_HIMEMLOADER) [N/y/?] (NEW)

rubik (CONFIG_USER_GAMES_RUBIK) [N/y/?] (NEW)

-----------------------------------------------------------------------------

12. Finally during "make dep", process did not complete, errors below
	> make dep

-----------------------------------------------------------------------------

---8<-snip---
make[5]: Leaving directory `/opt/uClinux-2.4.x/drivers/dio'
make -C fc4 fastdep
make[5]: Entering directory `/opt/uClinux-2.4.x/drivers/fc4'
/opt/uClinux-2.4.x/scripts/mkdep -D__KERNEL__ -I/opt/uClinux-2.4.x/include  
-Wall -Wstrict-prototypes -Wno-trigraphs -O1 -g -fno-strict-aliasing 
-fno-common -DPLATFORM=uclinux-auto -O2 -fno-builtin -DNO_MM -DNO_FPU 
-D__ELF__ -DUTS_SYSNAME=\"uClinux\" -D__linux__ 
-I/usr/local/MicroBlaze-elf-tools/bin/../lib/gcc-lib/microblaze/2.95.3-4/./include 
-mxl-barrel-shift -mno-xl-soft-div -mno-xl-soft-mul  -nostdinc -iwithprefix 
include -- fc-al.h fc.c fc.h fcp.h fcp_impl.h fc_syms.c socal.c socal.h 
soc.c soc.h > .depend
make[5]: Leaving directory `/opt/uClinux-2.4.x/drivers/fc4'
make -C frv_acpi fastdep
make: *** frv_acpi: No such file or directory.  Stop.
make: Entering an unknown directorymake: Leaving an unknown 
directorymake[4]: *** [_sfdep_frv_acpi] Error 2
make[4]: Leaving directory `/opt/uClinux-2.4.x/drivers'
make[3]: *** [fastdep] Error 2
make[3]: Leaving directory `/opt/uClinux-2.4.x/drivers'
make[2]: *** [_sfdep_drivers] Error 2
make[2]: Leaving directory `/opt/uClinux-2.4.x'
make[1]: *** [dep-files] Error 2
make[1]: Leaving directory `/opt/uClinux-2.4.x'
make: *** [dep] Error 2

-----------------------------------------------------------------------------