make images

The forum for our foreign guests... Please post in English
dunryc
Neugieriger
Neugieriger
Beiträge: 19
Registriert: Samstag 27. November 2004, 22:43

make images

Beitrag von dunryc »

hi when i try the command :-

make flash-squashfsimages
all goes well untill make stops with this error


( rm -rf u-boot-1.1.4 || /bin/true ) && bunzip2 -cd Archive/u-boot-1.1.4.tar.bz2 | TAPE=- tar -x && ( cd u-boot-1.1.4; patch -p1 < ../Patches/u-boot-1.1.4.diff )
patching file Makefile
patching file common/Makefile
patching file common/cmd_flash.c
patching file common/cmd_net.c
patching file common/cmd_nvedit.c
patching file common/devices.c
patching file common/env_common.c
patching file common/main.c
patching file cpu/mpc8xx/cpu_init.c
patching file cpu/mpc8xx/start.S
patching file fs/Makefile
patching file fs/cramfs/cramfs.c
patching file fs/cramfs/uncompress.c
patching file fs/jffs2/compr_rtime.c
patching file fs/jffs2/compr_rubin.c
patching file fs/jffs2/compr_zlib.c
patching file fs/jffs2/jffs2_1pass.c
patching file fs/jffs2/mini_inflate.c
patching file include/cmd_confdefs.h
patching file include/commproc.h
patching file include/devices.h
patching file include/flash.h
patching file include/jffs2/load_kernel.h
patching file include/lcd.h
patching file include/version.h
patching file lib_generic/crc32.c
patching file net/bootp.c
patching file net/net.c
patching file net/tftp.c
patching file tools/Makefile
ln: accessing `missing/u-boot-config/u-boot.config': Not a directory
make: *** [.deps/u-boot] Error 1

any help would be appreciated

regards dunryc
Houdini
Developer
Beiträge: 2183
Registriert: Mittwoch 10. Dezember 2003, 07:59

Beitrag von Houdini »

ln: accessing `missing/u-boot-config/u-boot.config': Not a directory
the configure didn't catch the $BOOTDIR (probably $DRIVERDIR as well)
dunryc
Neugieriger
Neugieriger
Beiträge: 19
Registriert: Samstag 27. November 2004, 22:43

Beitrag von dunryc »

thanks for the reply Houdini , what is the solution thendo i have torerun ./autogen.sh or make , or repeat the whole process from the beginning

regards dunryvc
Houdini
Developer
Beiträge: 2183
Registriert: Mittwoch 10. Dezember 2003, 07:59

Beitrag von Houdini »

the easiest way is to edit the cdk/Makefile
one other is to specify the dirs to the configure call

Code: Alles auswählen

 --with-bootdir=DIR      boot dir from cvs [[[CVS/]boot/]]],
 --with-driverdir=DIR    driver dir from cvs [[[CVS/]driver]]],
the more difficult way is to find out why the directory was not found
dunryc
Neugieriger
Neugieriger
Beiträge: 19
Registriert: Samstag 27. November 2004, 22:43

Beitrag von dunryc »

thanks for the advice i took the diffricult route and managed to get a little further ubbot compilation is no longer a problem , but i was wondering if anyone could help with this

ln -s liblufs-ftpfs.so.2.0.0 /home/dunryc/dbox2/cdkflash/root/lib/liblufs-ftpfs.so ; \
fi ; \
if [ -e /home/dunryc/dbox2/cdkflash/root/lib/liblufs-ftpfs.la ]; then \
rm -f /home/dunryc/dbox2/cdkflash/root/lib/liblufs-ftpfs.la ; \
fi ; \
fi
make /home/dunryc/dbox2/cdkflash/.cramfs
make[2]: Entering directory `/home/dunryc/tuxbox-cvs/cdk'
make[2]: `/home/dunryc/dbox2/cdkflash/.cramfs' is up to date.
make[2]: Leaving directory `/home/dunryc/tuxbox-cvs/cdk'
/bin/false /home/dunryc/dbox2/cdkflash/cramfs/ /home/dunryc/dbox2/cdkflash/root-squashfs.img -be
make[1]: *** [flash-squashfsroot] Error 1
make[1]: Leaving directory `/home/dunryc/tuxbox-cvs/cdk'
make: *** [/home/dunryc/dbox2/cdkflash/root-squashfs-neutrino.img] Error 2
any help or even hint would be appreciated

regards dunryc
Houdini
Developer
Beiträge: 2183
Registriert: Mittwoch 10. Dezember 2003, 07:59

Beitrag von Houdini »

/bin/false /home/dunryc/dbox2/cdkflash/cramfs/ /home/dunryc/dbox2/cdkflash/root-squashfs.img -be
the $MKSQUASHFS = mkfs.squashfs or mksquashfs tool is missing/not found
dunryc
Neugieriger
Neugieriger
Beiträge: 19
Registriert: Samstag 27. November 2004, 22:43

Beitrag von dunryc »

thank you for all your help houdini its appreciated , unfortunatly i still cant make any images , at first i also thought that squashfs was the culprit but i can call it from the command line with no problems if i call it without options i get the help screen and i have used it before to view the contents of squashed images , to test i also tried to mka jffs2 images and a cram image below is someoutput from the errors i recieved

with make flash-var-jffs2 :-


]/usr/bin/install -c -d /home/dunryc/dbox2/cdkflash/jffs2/tuxbox/config/enigma
/usr/bin/install -c -d /home/dunryc/dbox2/cdkflash/jffs2/plugins
/usr/bin/install -c -d /home/dunryc/dbox2/cdkflash/jffs2/tuxbox/plugins
/usr/bin/install -c -d /home/dunryc/dbox2/cdkflash/jffs2/bin
cp -p /home/dunryc/dbox2/cdkflash/root/etc/passwd /home/dunryc/dbox2/cdkflash/jffs2/etc/passwd
cp -p /home/dunryc/dbox2/cdkflash/root/bin/camd2 /home/dunryc/dbox2/cdkflash/jffs2/bin/camd2
/bin/false -b -e 131072 -p -r /home/dunryc/dbox2/cdkflash/jffs2/ -o /home/dunryc/dbox2/cdkflash/var-jffs2.img
make: *** [/home/dunryc/dbox2/cdkflash/var-jffs2.img] Error 1
with make flash-cramfsenigmaimages :-
make /home/dunryc/dbox2/cdkflash/.cramfs
make[2]: Entering directory `/home/dunryc/tuxbox-cvs/cdk'
make[2]: `/home/dunryc/dbox2/cdkflash/.cramfs' is up to date.
make[2]: Leaving directory `/home/dunryc/tuxbox-cvs/cdk'
/bin/false -p -n "0106`date +%Y%m%d%H%M`" /home/dunryc/dbox2/cdkflash/cramfs/ /home/dunryc/dbox2/cdkflash/root-cramfs.img
make[1]: *** [flash-cramfsroot] Error 1
make[1]: Leaving directory `/home/dunryc/tuxbox-cvs/cdk'
make: *** [/home/dunryc/dbox2/cdkflash/root-cramfs-enigma.img] Error 2
so it seems all attempts to make any type of imge with either file system are failing !! although "make all" terminated sucsessfully

any help would be much appreciated

regards dunryc
Houdini
Developer
Beiträge: 2183
Registriert: Mittwoch 10. Dezember 2003, 07:59

Beitrag von Houdini »

/bin/false -b -e 131072 -p -r /home/dunryc/dbox2/cdkflash/jffs2/ -o
/bin/false -p -n "0106`date +%Y%m%d%H%M`" /home/dunryc/dbox2/cdkflash/cramfs/ /home/dunryc/dbox2/cdkflash/root-cramfs.img
edit cdk/Makefile and replace the /bin/false with your path to the mkfs.$FS tools