Automounter - Newmake
-
- Interessierter
- Beiträge: 51
- Registriert: Dienstag 11. April 2006, 16:24
Automounter - Newmake
I'm slightly confused with implementing automake, and following barf's process on his site.
So to clarify, I need to edit the 2 files: cdk/Patches/linux-$version-dbox.config (for YADD) and cdk/Patches/linux-$version-dbox.config-flash (for images) and change a line to say CONFIG_AUTOFS4_FS=y....
Right, thats simple enough...
Now the confusing bit is where is says:
"Installing in YADD is with the make target automount, for images with the make target flash-automount.....etc...etc"
So my question is this; if I do the 1st bit and want to build the image using my normal command - e.g. "make flash-all-jffs2-2x yadd-all" , then where do I stick in the bit above about "make target flash-automount" as, I tried adding that to the make command e.g. make flash-automount-all-jffs2-2x yadd-automount-all , but it seemed to know nothing about that make target and failed.
So the confusion I think in the description on the web-page, is whether the make target flash-automount part is something thats typed into the make command (e.g , in my case make flash-all-jffs2-2x yadd-all) and I've slipped up somewhere, or whether this needs to be typed in at the "configure" stage ?
Incidentally, if I *only* did the first bit (added the automount kernel support) and used my usual make command make flash-all-jffs2-2x yadd-all , then would I end up with automount support, or not ?
If not, then an example of how I would extend my normal make command (make flash-all-jffs2-2x yadd-all) to include the automount part would greatly help.
Cheers from Mr Half-A-Brain
So to clarify, I need to edit the 2 files: cdk/Patches/linux-$version-dbox.config (for YADD) and cdk/Patches/linux-$version-dbox.config-flash (for images) and change a line to say CONFIG_AUTOFS4_FS=y....
Right, thats simple enough...
Now the confusing bit is where is says:
"Installing in YADD is with the make target automount, for images with the make target flash-automount.....etc...etc"
So my question is this; if I do the 1st bit and want to build the image using my normal command - e.g. "make flash-all-jffs2-2x yadd-all" , then where do I stick in the bit above about "make target flash-automount" as, I tried adding that to the make command e.g. make flash-automount-all-jffs2-2x yadd-automount-all , but it seemed to know nothing about that make target and failed.
So the confusion I think in the description on the web-page, is whether the make target flash-automount part is something thats typed into the make command (e.g , in my case make flash-all-jffs2-2x yadd-all) and I've slipped up somewhere, or whether this needs to be typed in at the "configure" stage ?
Incidentally, if I *only* did the first bit (added the automount kernel support) and used my usual make command make flash-all-jffs2-2x yadd-all , then would I end up with automount support, or not ?
If not, then an example of how I would extend my normal make command (make flash-all-jffs2-2x yadd-all) to include the automount part would greatly help.
Cheers from Mr Half-A-Brain
-
- Developer
- Beiträge: 1475
- Registriert: Dienstag 4. Februar 2003, 22:02
Actually, the sentence following the one you quoted says:
Everything is in my page, although my writing style is "concise" and almost (but not quite!) redundancy free.
The word "target" is used as a technical term, with the semantics from make. Therefore, the confusion you write about is not there.
You can also make flash-automount, followed by flash-all-jffs2-2x, but I would not recommend this for "production".Therefore, the elegant way is to include the line make automount in (e.g.) yadd-neutrino-local.sh and/or the line make flash-automount in root-local.sh,...
No.Incidentally, if I *only* did the first bit (added the automount kernel support) and used my usual make command make flash-all-jffs2-2x yadd-all , then would I end up with automount support, or not ?
Everything is in my page, although my writing style is "concise" and almost (but not quite!) redundancy free.
The word "target" is used as a technical term, with the semantics from make. Therefore, the confusion you write about is not there.
-
- Interessierter
- Beiträge: 51
- Registriert: Dienstag 11. April 2006, 16:24
@barf
Just for final clarification, I could do all this in one line - "make flash-automount flash-all-jffs2-2x yadd-all" if I wanted or I could do the "make flash-automount" and then the "make flash-all-jffs2-2x yadd-all" later on or as a second line ? Would it make any difference to compiling time which option I went with ?
Cheers.
This is the bit I was missing/looking for - thanks. I had discovered that make flash-automount worked so I just need to append my normal make commands (which are in a script and hence useable for "production") until I get my head around the concept and workings of the "-local" filesBarf hat geschrieben:
You can also make flash-automount, followed by flash-all-jffs2-2x, but I would not recommend this for "production".
Just for final clarification, I could do all this in one line - "make flash-automount flash-all-jffs2-2x yadd-all" if I wanted or I could do the "make flash-automount" and then the "make flash-all-jffs2-2x yadd-all" later on or as a second line ? Would it make any difference to compiling time which option I went with ?
Cheers.
-
- Interessierter
- Beiträge: 51
- Registriert: Dienstag 11. April 2006, 16:24
Not working for me on YADD
OK, so I built it with the automount option and complied etc all as above.
It didn't work for me on YADD.
Firstly, the logic in rcS states that if "/sbin/automount" exists then...., but in my case automount did not exist in /sbin.
Secondly, on a YADD, if I type "ps", all I see is "ps", it doesnt seem to report anything is running, although I know it is
Thirdly, looking in the "/lib/modules/<number>-dbox/kernel/fs" folder there are neither cifs nor nfs "drivers" or even directories there.
So unless I'm missing something (more than possible) I would have to conclude there is something wrong with this process with respect to YADDs ?
(PS these things above do exist on an image, however)
It didn't work for me on YADD.
Firstly, the logic in rcS states that if "/sbin/automount" exists then...., but in my case automount did not exist in /sbin.
Secondly, on a YADD, if I type "ps", all I see is "ps", it doesnt seem to report anything is running, although I know it is
Thirdly, looking in the "/lib/modules/<number>-dbox/kernel/fs" folder there are neither cifs nor nfs "drivers" or even directories there.
So unless I'm missing something (more than possible) I would have to conclude there is something wrong with this process with respect to YADDs ?
(PS these things above do exist on an image, however)
-
- Developer
- Beiträge: 1475
- Registriert: Dienstag 4. Februar 2003, 22:02
You forgot Incidentally, this works also after make yadd-neutrino.
Code: Alles auswählen
make automount
-
- Interessierter
- Beiträge: 51
- Registriert: Dienstag 11. April 2006, 16:24
errr, yes and no, I didnt forget it, I'd used make yadd-automount as I followed the same command logic as for the images (flash-automount).Barf hat geschrieben:You forgotIncidentally, this works also after make yadd-neutrino.Code: Alles auswählen
make automount
Is there a simple way to get up a list of all supported (new)make targets with correct syntax ?
Cheers.
-
- Developer
- Beiträge: 1475
- Registriert: Dienstag 4. Februar 2003, 22:02
http://www.bengt-martensson.de/dbox2/ne ... of+targets, or reading the sources (Makefile.am, make/*.mk). Although it should be said that the difference between "public" and "non-public" targets is sometimes not really clear.jubbler hat geschrieben:Is there a simple way to get up a list of all supported (new)make targets with correct syntax ?
-
- Interessierter
- Beiträge: 51
- Registriert: Dienstag 11. April 2006, 16:24
Thanks, I'll check it out.Barf hat geschrieben:http://www.bengt-martensson.de/dbox2/ne ... of+targets, or reading the sources (Makefile.am, make/*.mk). Although it should be said that the difference between "public" and "non-public" targets is sometimes not really clear.jubbler hat geschrieben:Is there a simple way to get up a list of all supported (new)make targets with correct syntax ?
BTW, have compiled a yadd which now has the automount in /sbin, however the other 2 issues I had above, on yadds still remain. i.e.
"Secondly, on a YADD, if I type "ps", all I see is "ps", it doesnt seem to report anything is running, although I know it is
Thirdly, looking in the "/lib/modules/<number>-dbox/kernel/fs" folder there are neither cifs nor nfs "drivers" or even directories there. "
Cheers.
-
- Developer
- Beiträge: 1475
- Registriert: Dienstag 4. Februar 2003, 22:02
Try the correct options to ps.jubbler hat geschrieben: "Secondly, on a YADD, if I type "ps", all I see is "ps", it doesnt seem to report anything is running, although I know it is
OK, while compiled into the kernel, i.e. not as modules. Cf. kernel configuration file. Did some (sane) description tell you the should be there?Thirdly, looking in the "/lib/modules/<number>-dbox/kernel/fs" folder there are neither cifs nor nfs "drivers" or even directories there. "
-
- Interessierter
- Beiträge: 51
- Registriert: Dienstag 11. April 2006, 16:24
Well just typing ps on an image brings up the ps list, it doesn't on a yadd. OK I can type ps -A but my question really was why is the yadd behaviour in this regard different to in an image (both compiled at same time with newmake) ?Barf hat geschrieben: "Secondly, on a YADD, if I type "ps", all I see is "ps", it doesnt seem to report anything is running, although I know it is
Try the correct options to ps.
Some sane common sense suggested to me that if the modules are present in an image and the yadd was built at the same time with the same parameters, then I would have expected the modules to be there, if they are there in an image - which they are. Hence confusion again as per the above issue.OK, while compiled into the kernel, i.e. not as modules. Cf. kernel configuration file. Did some (sane) description tell you the should be there?