Re: [ptxdist] rootfs: package
Great ! It's works now! Many Thanks, Michael for support. Am Di., 4. Dez. 2018 um 14:39 Uhr schrieb Michael Olbrich < m.olbr...@pengutronix.de>: > On Tue, Dec 04, 2018 at 02:25:15PM +0100, Andreas Friesen wrote: > > Also I extracted my opkg.conf from ptxdist after little hack in > > > /usr/local/lib/ptxdist-2018.11.0/scripts/lib/ptxd_make_image_prepare_work_dir.sh > > > > ptxd_make_image_extract_xpkg_files() { > > ... > > cat "${xpkg_conf}" > /tmp/opkg.conf && > > .. > > } > > > > > > ââ[$] <> cat opkg.conf > > option force_postinstall 1 > > # > > # /etc/opkg/opkg.conf > > # > > src/gz willi http://willi.devel.hbm.com/clipx/soc-packages > > dest root / > > arch armhf 10 > > arch all 1 > > arch noarch 1 > > option check_signature 0 > > #option signature_ca_path /etc/ssl/certs > > #option signature_ca_file /etc/ssl/certs/opkg.crt > > This is generated from projectroot/etc/opkg/opkg.conf. I expect you have > one in your BSP. You need to add the lock_file option there. > > Michael > > -- > Pengutronix e.K. | | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | > > ___ > ptxdist mailing list > ptxdist@pengutronix.de ___ ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] rootfs: package
On Tue, Dec 04, 2018 at 02:25:15PM +0100, Andreas Friesen wrote: > Also I extracted my opkg.conf from ptxdist after little hack in > /usr/local/lib/ptxdist-2018.11.0/scripts/lib/ptxd_make_image_prepare_work_dir.sh > > ptxd_make_image_extract_xpkg_files() { > ... > cat "${xpkg_conf}" > /tmp/opkg.conf && > .. > } > > > ââ[$] <> cat opkg.conf > option force_postinstall 1 > # > # /etc/opkg/opkg.conf > # > src/gz willi http://willi.devel.hbm.com/clipx/soc-packages > dest root / > arch armhf 10 > arch all 1 > arch noarch 1 > option check_signature 0 > #option signature_ca_path /etc/ssl/certs > #option signature_ca_file /etc/ssl/certs/opkg.crt This is generated from projectroot/etc/opkg/opkg.conf. I expect you have one in your BSP. You need to add the lock_file option there. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | ___ ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] rootfs: package
Also I extracted my opkg.conf from ptxdist after little hack in /usr/local/lib/ptxdist-2018.11.0/scripts/lib/ptxd_make_image_prepare_work_dir.sh ptxd_make_image_extract_xpkg_files() { ... cat "${xpkg_conf}" > /tmp/opkg.conf && .. } ââ[$] <> cat opkg.conf option force_postinstall 1 # # /etc/opkg/opkg.conf # src/gz willi http://willi.devel.hbm.com/clipx/soc-packages dest root / arch armhf 10 arch all 1 arch noarch 1 option check_signature 0 #option signature_ca_path /etc/ssl/certs #option signature_ca_file /etc/ssl/certs/opkg.crt Am Di., 4. Dez. 2018 um 13:58 Uhr schrieb Michael Olbrich < m.olbr...@pengutronix.de>: > On Tue, Dec 04, 2018 at 01:47:45PM +0100, Andreas Friesen wrote: > > DESTDIR="/home/friesen/rootfs/rootfs0" strace -orootfs.log opkg -f > > "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/rootfs/rootfs0/" > install > > rootfs_1.0.0_armhf.ipk > > ââ[$] <> cat rootfs.log| grep run > [...] > > mkdir("/home/friesen/rootfs/rootfs0///usr/local/var/run", 0777) = 0 > > chmod("/home/friesen/rootfs/rootfs0///usr/local/var/run", 0755) = 0 > > creat("/home/friesen/rootfs/rootfs0///usr/local/var/run/opkg.lock", > 0640) = > > 4 > [...] > > DESTDIR="/home/friesen/rootfs/rootfs" strace -orootfs0.log > > > /home/friesen/gitlab/quantumx-master/projects/ppc/ptx-multi/platform-soc/sysroot-host/bin/opkg > > -f "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/rootfs/rootfs/" > > install rootfs_1.0.0_armhf.ipk > > ââ[$] <> cat rootfs0.log| grep run > [...] > > mkdir("/home/friesen/rootfs/rootfs///var/run", 0777) = 0 > > chmod("/home/friesen/rootfs/rootfs///var/run", 0755) = 0 > > creat("/home/friesen/rootfs/rootfs///var/run/opkg.lock", 0640) = 4 > > The opkg.conf template contains this: > > option lock_file /var/lock/opkg.lock > > As a result, the lock file is created there and I don't see this error. > I'm guessing, that you have a custom opkg.conf without this entry. > You need to add it with a path outside of /var/run. > > Michael > > -- > Pengutronix e.K. | | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | > > ___ > ptxdist mailing list > ptxdist@pengutronix.de ___ ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] rootfs: package
On Tue, Dec 04, 2018 at 01:47:45PM +0100, Andreas Friesen wrote: > DESTDIR="/home/friesen/rootfs/rootfs0" strace -orootfs.log opkg -f > "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/rootfs/rootfs0/" install > rootfs_1.0.0_armhf.ipk > ââ[$] <> cat rootfs.log| grep run [...] > mkdir("/home/friesen/rootfs/rootfs0///usr/local/var/run", 0777) = 0 > chmod("/home/friesen/rootfs/rootfs0///usr/local/var/run", 0755) = 0 > creat("/home/friesen/rootfs/rootfs0///usr/local/var/run/opkg.lock", 0640) = > 4 [...] > DESTDIR="/home/friesen/rootfs/rootfs" strace -orootfs0.log > > /home/friesen/gitlab/quantumx-master/projects/ppc/ptx-multi/platform-soc/sysroot-host/bin/opkg > -f "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/rootfs/rootfs/" > install rootfs_1.0.0_armhf.ipk > ââ[$] <> cat rootfs0.log| grep run [...] > mkdir("/home/friesen/rootfs/rootfs///var/run", 0777) = 0 > chmod("/home/friesen/rootfs/rootfs///var/run", 0755) = 0 > creat("/home/friesen/rootfs/rootfs///var/run/opkg.lock", 0640) = 4 The opkg.conf template contains this: option lock_file /var/lock/opkg.lock As a result, the lock file is created there and I don't see this error. I'm guessing, that you have a custom opkg.conf without this entry. You need to add it with a path outside of /var/run. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | ___ ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] rootfs: package
On Tue, Dec 04, 2018 at 12:53:14PM +0100, Andreas Friesen wrote: > Here as attachment config.log files No attachment? Anyways, can you run the failing version with 'strace -osomelogfile ...' und grep for /var/run in the resulting logfile? Anything suspicious there? Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | ___ ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] rootfs: package
Here as attachment config.log files --- ptxdist opkg config.log $ ./configure --prefix= --disable-libopkg-api --disable-static --disable-pathfinder --disable-xz --disable-bzip2 --disable-curl --disable-sha256 --disable-openssl --disable-ssl-curl --disable-gpg --without-l ibsolv --without-static-libopkg ## - ## ## Platform. ## ## - ## hostname = sumo uname -m = x86_64 uname -r = 4.19.4-arch1-1-ARCH uname -s = Linux uname -v = #1 SMP PREEMPT Fri Nov 23 09:06:58 UTC 2018 -- my opkg config.log $ ./configure ## - ## ## Platform. ## ## - ## hostname = sumo uname -m = x86_64 uname -r = 4.19.4-arch1-1-ARCH uname -s = Linux uname -v = #1 SMP PREEMPT Fri Nov 23 09:06:58 UTC 2018 Am Di., 4. Dez. 2018 um 12:47 Uhr schrieb Andreas Friesen : > Also rootfs and rootfs0 exists not! > > $ DESTDIR="/home/friesen/rootfs/rootfs" > /home/friesen/gitlab/quantumx-master/projects/ppc/ptx-multi/platform-soc/sysroot-host/bin/opkg > -f "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/rootfs/rootfs/" > install rootfs_1.0.0_armhf.ipk > Installing rootfs (1.0.0) on root. > To remove package debris, try `opkg remove rootfs`. > To re-attempt the install, try `opkg install rootfs`. > Collected errors: > * check_data_file_clashes: Package rootfs wants to install file > /home/friesen/rootfs/rootfs//var/run > But that path is currently a directory > * opkg_solver_install: Cannot install package rootfs. > > [$] <> ls -all rootfs/var > total 20 > drwxr-xr-x 5 friesen friesen 4096 Dec 4 12:42 . > drwxr-xr-x 3 friesen friesen 4096 Dec 4 12:42 .. > drwxr-xr-x 3 friesen friesen 4096 Dec 4 12:42 cache > drwxr-xr-x 3 friesen friesen 4096 Dec 4 12:42 lib > drwxr-xr-x 2 friesen friesen 4096 Dec 4 12:42 run <-- ! is a > directory > > > DESTDIR="/home/friesen/rootfs/rootfs0" opkg -f > "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/rootfs/rootfs0/" install > rootfs_1.0.0_armhf.ipk > Installing rootfs (1.0.0) on root. > > > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//proc/': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//mnt/': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//sys/': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//etc/': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//etc/profile': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//etc/resolv.conf': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//etc/hostname': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//etc/group': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//etc/issue': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//etc/passwd': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//etc/shadow': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//etc/nsswitch.conf': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//etc/mtab': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//etc/services': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//etc/hosts': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//etc/profile.environment': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//etc/fstab': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//etc/protocols': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//run/': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//root/': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//dev/': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//dev/zero': Can't create > '/home/friesen/rootfs/rootfs0/dev/zero' > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//dev/console': Can't create > '/home/friesen/rootfs/rootfs0/dev/console' > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//dev/null': Can't create > '/home/friesen/rootfs/rootfs0/dev/null' > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//home/': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//tmp/': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//media/': Can't set UID=0 > Warning when extracting archive entry > '/home/friesen/rootfs/rootfs0//var/': Can't set UID=0 > Warning when extracting archive
Re: [ptxdist] rootfs: package
Also rootfs and rootfs0 exists not! $ DESTDIR="/home/friesen/rootfs/rootfs" /home/friesen/gitlab/quantumx-master/projects/ppc/ptx-multi/platform-soc/sysroot-host/bin/opkg -f "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/rootfs/rootfs/" install rootfs_1.0.0_armhf.ipk Installing rootfs (1.0.0) on root. To remove package debris, try `opkg remove rootfs`. To re-attempt the install, try `opkg install rootfs`. Collected errors: * check_data_file_clashes: Package rootfs wants to install file /home/friesen/rootfs/rootfs//var/run But that path is currently a directory * opkg_solver_install: Cannot install package rootfs. [$] <> ls -all rootfs/var total 20 drwxr-xr-x 5 friesen friesen 4096 Dec 4 12:42 . drwxr-xr-x 3 friesen friesen 4096 Dec 4 12:42 .. drwxr-xr-x 3 friesen friesen 4096 Dec 4 12:42 cache drwxr-xr-x 3 friesen friesen 4096 Dec 4 12:42 lib drwxr-xr-x 2 friesen friesen 4096 Dec 4 12:42 run <-- ! is a directory DESTDIR="/home/friesen/rootfs/rootfs0" opkg -f "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/rootfs/rootfs0/" install rootfs_1.0.0_armhf.ipk Installing rootfs (1.0.0) on root. Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//proc/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//mnt/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//sys/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/profile': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/resolv.conf': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/hostname': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/group': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/issue': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/passwd': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/shadow': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/nsswitch.conf': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/mtab': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/services': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/hosts': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/profile.environment': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/fstab': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//etc/protocols': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//run/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//root/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//dev/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//dev/zero': Can't create '/home/friesen/rootfs/rootfs0/dev/zero' Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//dev/console': Can't create '/home/friesen/rootfs/rootfs0/dev/console' Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//dev/null': Can't create '/home/friesen/rootfs/rootfs0/dev/null' Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//home/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//tmp/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//media/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//var/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//var/lock/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//var/run': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//var/log/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//var/tmp/': Can't set UID=0 Warning when extracting archive entry '/home/friesen/rootfs/rootfs0//var/cache/': Can't set UID=0 Configuring rootfs. ls -all rootfs0/var total 24 drwxr-xr-x 6 friesen friesen 4096 Nov 1 01:00 . drwxr-xr-x 14 friesen friesen 4096 Dec 4 12:44 .. drwxr-xr-x 2 friesen friesen 4096 Nov 1 01:00 cache drwxr-xr-x 2 friesen friesen 4096 Nov 1 01:00 lock drwxr-xr-x 2 friesen friesen 4096 Nov 1 01:00 log lrwxrwxrwx 1 friesen friesen6 Nov 1 01:00 run -> ../run <--- is a link ! drwxr-xr-x 2 friesen friesen 4096 Nov 1 01:00 tmp Am Di., 4. Dez. 2018 um 11:40 Uhr schrieb Michael Olbrich < m.olbr...@pengutronix.de>: > On Tue, Dec 04,
Re: [ptxdist] rootfs: package
On Tue, Dec 04, 2018 at 10:40:11AM +0100, Andreas Friesen wrote: > Hi Michael. > > I compiled opkg for my host system (archlinux) with : "./configure ; make ; > make install" and installed all packages from ptxdist without any errors: > DESTDIR="/home/friesen/rootfs/rootfs" opkg -f > "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/rootfs/rootfs/" install > /home/friesen/ptx-multi/platform-soc/packages/*.ipk > > but > > DESTDIR="/home/friesen/rootfs/rootfs" > /home/friesen/gitlab/ptx-multi/platform-soc/sysroot-host/bin/opkg > -f "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/rootfs/rootfs/" > install > /home/friesen/gitlab/quantumx-master/projects/ppc/ptx-multi/platform-soc/packages/*,pkg > > produced this error: > > * check_data_file_clashes: Package rootfs wants to install file > /home/faix/ptx-multi/platform-soc/build-target/image-nor-mxfs4/var/run > But that path is currently a directory > > I finded out with try-and-error method, that opkg do not like "prefix= " ! Very strange. I don't see this issue here. Also, did you copy the correct error message? The path there is not inside the specified DESTDIR. And is var/run inside the generated rootfs an empty directory? Also, calling opkg manually may work for other reasons: If rootfs is installed before another package created the directory, then I think it will just work. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | ___ ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] rootfs: package
Hi Michael. I compiled opkg for my host system (archlinux) with : "./configure ; make ; make install" and installed all packages from ptxdist without any errors: DESTDIR="/home/friesen/rootfs/rootfs" opkg -f "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/rootfs/rootfs/" install /home/friesen/ptx-multi/platform-soc/packages/*.ipk but DESTDIR="/home/friesen/rootfs/rootfs" /home/friesen/gitlab/ptx-multi/platform-soc/sysroot-host/bin/opkg -f "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/rootfs/rootfs/" install /home/friesen/gitlab/quantumx-master/projects/ppc/ptx-multi/platform-soc/packages/*,pkg produced this error: * check_data_file_clashes: Package rootfs wants to install file /home/faix/ptx-multi/platform-soc/build-target/image-nor-mxfs4/var/run But that path is currently a directory I finded out with try-and-error method, that opkg do not like "prefix= " ! Am Di., 4. Dez. 2018 um 08:50 Uhr schrieb Michael Olbrich < m.olbr...@pengutronix.de>: > On Mon, Dec 03, 2018 at 11:38:46PM +0100, Andreas Friesen wrote: > > Hello everyone, > > > > it's work now. Here is a little patch. > > > > > > --- /usr/local/lib/ptxdist-2018.11.0/rules/host-opkg.make > 2018-11-22 > > 20:12:56.0 +0100 > > > > +++ rules/host-opkg.make2018-12-03 23:36:48.214811901 +0100 > > @@ -31,7 +31,6 @@ > > # > > HOST_OPKG_CONF_TOOL:= autoconf > > HOST_OPKG_CONF_OPT := \ > > - $(HOST_AUTOCONF) \ > > --disable-libopkg-api \ > > --disable-static \ > > --disable-pathfinder \ > > @@ -45,4 +44,6 @@ > > --without-libsolv \ > > --without-static-libopkg > > > > +# $(HOST_AUTOCONF) \ > > + > > # vim: syntax=make > > This just removes opkg from your PATH. Did you rebuild the BSP afterwards? > Maybe you have opkg somewhere else in PATH. > > Michael > > -- > Pengutronix e.K. | | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | > > ___ > ptxdist mailing list > ptxdist@pengutronix.de ___ ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] rootfs: package
On Mon, Dec 03, 2018 at 11:38:46PM +0100, Andreas Friesen wrote: > Hello everyone, > > it's work now. Here is a little patch. > > > --- /usr/local/lib/ptxdist-2018.11.0/rules/host-opkg.make 2018-11-22 > 20:12:56.0 +0100 > > +++ rules/host-opkg.make2018-12-03 23:36:48.214811901 +0100 > @@ -31,7 +31,6 @@ > # > HOST_OPKG_CONF_TOOL:= autoconf > HOST_OPKG_CONF_OPT := \ > - $(HOST_AUTOCONF) \ > --disable-libopkg-api \ > --disable-static \ > --disable-pathfinder \ > @@ -45,4 +44,6 @@ > --without-libsolv \ > --without-static-libopkg > > +# $(HOST_AUTOCONF) \ > + > # vim: syntax=make This just removes opkg from your PATH. Did you rebuild the BSP afterwards? Maybe you have opkg somewhere else in PATH. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | ___ ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] rootfs: package
On Thu, Nov 29, 2018 at 08:35:09AM +0100, Andreas Friesen wrote: > ... > Hello everyone, > > I migrated my project from 2017.05.0 to 2018.11.0 without any troubles, but > "ptxdist images" has a problem with rootfs package. Options > PTXCONF_ROOTFS_RUN=y > PTXCONF_ROOTFS_VAR_RUN=y are active and I don't have any packages, which > install /run or /var/run as a directory. I checked all packages with > manually extract with : > ar x $package ; tar -xf ./data.tar.gz ; > > rootfs_1.0.0_armhf.ipk > ... > drwx-- 240 Nov 1 01:00 root > drwxr-xr-x 240 Nov 1 01:00 run > drwxr-xr-x 240 Nov 1 01:00 sys > ... > drwxr-xr-x 2 40 Nov 1 01:00 var/log > lrwxrwxrwx 1 6 Nov 1 01:00 var/run -> ../run > drwxr-xr-x 2 40 Nov 1 01:00 var/tmp > > also, rootfs package looks great for me, but what is wrong with "ptxdist > images" > ... > Installing usr-rootfs (1.0) on root. > InstallinCollected errors: > * check_data_file_clashes: Package rootfs wants to install file > /home/faix/ptx-multi/platform-soc/build-target/image-nor-mxfs4/var/run > But that path is currently a directory > * opkg_solver_install: Cannot install package rootfs. > g luacjson (1.0.0) on root. > > Installing rootfs (1.0.0) on root. > To remove package debris, try `opkg remove rootfs`. > To re-attempt the install, try `opkg install rootfs`. > ... > Configuring libndp. > make: *** [/home/faix/ptx-multi/rules/image-ubifs-mxfs4.make:12: > /home/ffaix/ptx-multi/platform-soc/images/root-mxfs4.ubifs] Error 255 I think build-target/image-nor-mxfs4/ should still contain the image content if image creation fails. Is /var/run empty there? Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | ___ ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] rootfs: package
Hello everyone, it's work now. Here is a little patch. --- /usr/local/lib/ptxdist-2018.11.0/rules/host-opkg.make 2018-11-22 20:12:56.0 +0100 +++ rules/host-opkg.make2018-12-03 23:36:48.214811901 +0100 @@ -31,7 +31,6 @@ # HOST_OPKG_CONF_TOOL:= autoconf HOST_OPKG_CONF_OPT := \ - $(HOST_AUTOCONF) \ --disable-libopkg-api \ --disable-static \ --disable-pathfinder \ @@ -45,4 +44,6 @@ --without-libsolv \ --without-static-libopkg +# $(HOST_AUTOCONF) \ + # vim: syntax=make Am Do., 29. Nov. 2018 um 08:35 Uhr schrieb Andreas Friesen < ms.f...@gmail.com>: > ... > Hello everyone, > > I migrated my project from 2017.05.0 to 2018.11.0 without any troubles, > but > "ptxdist images" has a problem with rootfs package. Options > PTXCONF_ROOTFS_RUN=y > PTXCONF_ROOTFS_VAR_RUN=y are active and I don't have any packages, which > install /run or /var/run as a directory. I checked all packages with > manually extract with : > ar x $package ; tar -xf ./data.tar.gz ; > > rootfs_1.0.0_armhf.ipk > ... > drwx-- 240 Nov 1 01:00 root > drwxr-xr-x 240 Nov 1 01:00 run > drwxr-xr-x 240 Nov 1 01:00 sys > ... > drwxr-xr-x 2 40 Nov 1 01:00 var/log > lrwxrwxrwx 1 6 Nov 1 01:00 var/run -> ../run > drwxr-xr-x 2 40 Nov 1 01:00 var/tmp > > also, rootfs package looks great for me, but what is wrong with "ptxdist > images" > ... > Installing usr-rootfs (1.0) on root. > InstallinCollected errors: > * check_data_file_clashes: Package rootfs wants to install file > /home/faix/ptx-multi/platform-soc/build-target/image-nor-mxfs4/var/run > But that path is currently a directory > * opkg_solver_install: Cannot install package rootfs. > g luacjson (1.0.0) on root. > > Installing rootfs (1.0.0) on root. > To remove package debris, try `opkg remove rootfs`. > To re-attempt the install, try `opkg install rootfs`. > ... > Configuring libndp. > make: *** [/home/faix/ptx-multi/rules/image-ubifs-mxfs4.make:12: > /home/ffaix/ptx-multi/platform-soc/images/root-mxfs4.ubifs] Error 255 > > - Andreas > ___ ptxdist mailing list ptxdist@pengutronix.de
[ptxdist] rootfs: package
... Hello everyone, I migrated my project from 2017.05.0 to 2018.11.0 without any troubles, but "ptxdist images" has a problem with rootfs package. Options PTXCONF_ROOTFS_RUN=y PTXCONF_ROOTFS_VAR_RUN=y are active and I don't have any packages, which install /run or /var/run as a directory. I checked all packages with manually extract with : ar x $package ; tar -xf ./data.tar.gz ; rootfs_1.0.0_armhf.ipk ... drwx-- 240 Nov 1 01:00 root drwxr-xr-x 240 Nov 1 01:00 run drwxr-xr-x 240 Nov 1 01:00 sys ... drwxr-xr-x 2 40 Nov 1 01:00 var/log lrwxrwxrwx 1 6 Nov 1 01:00 var/run -> ../run drwxr-xr-x 2 40 Nov 1 01:00 var/tmp also, rootfs package looks great for me, but what is wrong with "ptxdist images" ... Installing usr-rootfs (1.0) on root. InstallinCollected errors: * check_data_file_clashes: Package rootfs wants to install file /home/faix/ptx-multi/platform-soc/build-target/image-nor-mxfs4/var/run But that path is currently a directory * opkg_solver_install: Cannot install package rootfs. g luacjson (1.0.0) on root. Installing rootfs (1.0.0) on root. To remove package debris, try `opkg remove rootfs`. To re-attempt the install, try `opkg install rootfs`. ... Configuring libndp. make: *** [/home/faix/ptx-multi/rules/image-ubifs-mxfs4.make:12: /home/ffaix/ptx-multi/platform-soc/images/root-mxfs4.ubifs] Error 255 - Andreas ___ ptxdist mailing list ptxdist@pengutronix.de