Re: [OpenWrt-Devel] base-files: preinit scripts issue and mtd-utils package

2012-10-23 Thread Catalin Patulea
On Mon, Oct 22, 2012 at 11:51 AM, Roman Yeryomin wrote: > https://lists.openwrt.org/pipermail/openwrt-devel/2011-September/012184.html Right, that's basically the same modification I was trying too.. except it doesn't compile: $ make package/mtd/compile V=s [...] ccache_cc [...] -c -o mtd.o mtd.c

Re: [OpenWrt-Devel] base-files: preinit scripts issue and mtd-utils package

2012-10-22 Thread Roman Yeryomin
On 22 October 2012 09:19, Petr Štetiar wrote: > Catalin Patulea [2012-10-21 14:26:58]: > >> I noticed that many of the system scripts use mtd, so to reflect this >> in the package metadata I tried to make mtd a dependency of >> base-files. This would mean that if you select base-files, you also >

Re: [OpenWrt-Devel] base-files: preinit scripts issue and mtd-utils package

2012-10-21 Thread Petr Štetiar
Catalin Patulea [2012-10-21 14:26:58]: > I noticed that many of the system scripts use mtd, so to reflect this > in the package metadata I tried to make mtd a dependency of > base-files. This would mean that if you select base-files, you also > get mtd, achieving the same effect as making mtd man

Re: [OpenWrt-Devel] base-files: preinit scripts issue and mtd-utils package

2012-10-21 Thread Catalin Patulea
On Sun, Oct 21, 2012 at 2:26 PM, Catalin Patulea wrote: > Hope this helps :) If anyone knows some of the philosophy behind this, > I would be happy to hack away at some patches, but as it stands, I > don't have much to go on. An interesting example is myloader.h. It lives in (platform-independent)

Re: [OpenWrt-Devel] base-files: preinit scripts issue and mtd-utils package

2012-10-21 Thread Catalin Patulea
On Sun, Oct 21, 2012 at 9:24 AM, Petr Štetiar wrote: > Ok, sorry. I've meant "mtd" package, but wrote "mtd-utils". Anyway, the > conditions metioned in my previous email still apply. Without that "mtd" > package it's not possible to use jffs2 /overlay. I noticed that many of the system scripts use

Re: [OpenWrt-Devel] base-files: preinit scripts issue and mtd-utils package

2012-10-21 Thread Petr Štetiar
Jo-Philipp Wich [2012-10-21 15:17:35]: > "mtd" is in the "mtd" package, not "mtd-utils". Ok, sorry. I've meant "mtd" package, but wrote "mtd-utils". Anyway, the conditions metioned in my previous email still apply. Without that "mtd" package it's not possible to use jffs2 /overlay. -- ynezz ___

Re: [OpenWrt-Devel] base-files: preinit scripts issue and mtd-utils package

2012-10-21 Thread Jo-Philipp Wich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 "mtd" is in the "mtd" package, not "mtd-utils". -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlCD598ACgkQdputYINPTPN9xgCfRq2BEieU5Zp6RdL90yMW5zz/ /WUAn26uYI5N

[OpenWrt-Devel] base-files: preinit scripts issue and mtd-utils package

2012-10-21 Thread Petr Štetiar
Hi, while doing some testing of new firmware image yesterday, I've noticed, that no jffs2 overlay has been used, but just ramfs overlay. I've tracked it down to the lib/preinit/40_mount_jffs2 script: find_mount_jffs2() { mkdir -p /tmp/overlay mount "$(find_