* [Buildroot] jffs2 multiple partition
@ 2009-11-25 16:08 Jonathan dumaresq
2009-11-25 16:44 ` Michael S. Zick
2009-11-25 21:25 ` Thomas Petazzoni
0 siblings, 2 replies; 11+ messages in thread
From: Jonathan dumaresq @ 2009-11-25 16:08 UTC (permalink / raw)
To: buildroot
Hi all,
I work with the atngw100 board and I try to build my custom linux fs with
buildroot. I try to figure out how to split the rootfs in 2 partitions.
Is there a way to it it ? Or I must hack the target jffs2 ?
Regards
Jonathan
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] jffs2 multiple partition
2009-11-25 16:08 [Buildroot] jffs2 multiple partition Jonathan dumaresq
@ 2009-11-25 16:44 ` Michael S. Zick
2009-11-25 16:55 ` Jonathan dumaresq
2009-11-25 21:25 ` Thomas Petazzoni
1 sibling, 1 reply; 11+ messages in thread
From: Michael S. Zick @ 2009-11-25 16:44 UTC (permalink / raw)
To: buildroot
On Wed November 25 2009, Jonathan dumaresq wrote:
> Hi all,
>
> I work with the atngw100 board and I try to build my custom linux fs with
> buildroot. I try to figure out how to split the rootfs in 2 partitions.
>
> Is there a way to it it ? Or I must hack the target jffs2 ?
>
Why not just write the build to a tar-ball?
Untar and divide up however you like before you write the files to jffs2?
mike
> Regards
>
> Jonathan
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] jffs2 multiple partition
2009-11-25 16:44 ` Michael S. Zick
@ 2009-11-25 16:55 ` Jonathan dumaresq
0 siblings, 0 replies; 11+ messages in thread
From: Jonathan dumaresq @ 2009-11-25 16:55 UTC (permalink / raw)
To: buildroot
-----Message d'origine-----
De?: buildroot-bounces at busybox.net [mailto:buildroot-bounces at busybox.net] De
la part de Michael S. Zick
Envoy??: 25 novembre 2009 11:44
??: buildroot at busybox.net
Objet?: Re: [Buildroot] jffs2 multiple partition
> Is there a way to it it ? Or I must hack the target jffs2 ?
>
Why not just write the build to a tar-ball?
Untar and divide up however you like before you write the files to jffs2?
Juste looking for an automatic way of doing it. I have check in Atmel
buildroot, and HCE Have modified the jffs2 part to be able to do it. I Just
wonder if the upstream had this possibilities ?
mike
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] jffs2 multiple partition
2009-11-25 16:08 [Buildroot] jffs2 multiple partition Jonathan dumaresq
2009-11-25 16:44 ` Michael S. Zick
@ 2009-11-25 21:25 ` Thomas Petazzoni
2009-11-26 14:30 ` Jonathan dumaresq
1 sibling, 1 reply; 11+ messages in thread
From: Thomas Petazzoni @ 2009-11-25 21:25 UTC (permalink / raw)
To: buildroot
Le Wed, 25 Nov 2009 11:08:07 -0500,
"Jonathan dumaresq" <jdumaresq@cimeq.qc.ca> a ?crit :
> I work with the atngw100 board and I try to build my custom linux fs
> with buildroot. I try to figure out how to split the rootfs in 2
> partitions.
How would like to split the rootfs ? I.e, what should Buildroot do to
split your rootfs ? What should be in the two different parts ?
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] jffs2 multiple partition
2009-11-25 21:25 ` Thomas Petazzoni
@ 2009-11-26 14:30 ` Jonathan dumaresq
2009-11-26 14:36 ` Peter Korsgaard
0 siblings, 1 reply; 11+ messages in thread
From: Jonathan dumaresq @ 2009-11-26 14:30 UTC (permalink / raw)
To: buildroot
Hi Thomas,
-----Message d'origine-----
De?: buildroot-bounces at busybox.net [mailto:buildroot-bounces at busybox.net] De
la part de Thomas Petazzoni
Envoy??: 25 novembre 2009 16:25
??: buildroot at busybox.net
Objet?: Re: [Buildroot] jffs2 multiple partition
Le Wed, 25 Nov 2009 11:08:07 -0500,
"Jonathan dumaresq" <jdumaresq@cimeq.qc.ca> a ?crit :
> I work with the atngw100 board and I try to build my custom linux fs
> with buildroot. I try to figure out how to split the rootfs in 2
> partitions.
How would like to split the rootfs ?
I.e, what should Buildroot do to
split your rootfs ? What should be in the two different parts ?
I use the atngw100 board from atmel and We have 8M of parrallel flash and 8M
of serial flash. If the rootfs is > 8MB, I need to split the the rootfs. I
have looked in the ATMEL buildroot and from what I see, HCE have done some
work to ba able to do it. I just finished to port his work on my upstream
version of buildroot.
The main idea is to put the usr part in the 8MB serial flash.
I don't know if this is something that buildroot should offer ? if yes, I
can try to make a patch that add this functionality to buildroot ?
Jonathan
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] jffs2 multiple partition
2009-11-26 14:30 ` Jonathan dumaresq
@ 2009-11-26 14:36 ` Peter Korsgaard
2009-11-26 15:06 ` Jonathan dumaresq
2009-11-26 15:13 ` Thomas Petazzoni
0 siblings, 2 replies; 11+ messages in thread
From: Peter Korsgaard @ 2009-11-26 14:36 UTC (permalink / raw)
To: buildroot
>>>>> "Jonathan" == Jonathan dumaresq <jdumaresq@cimeq.qc.ca> writes:
Hi,
Jonathan> The main idea is to put the usr part in the 8MB serial flash.
Jonathan> I don't know if this is something that buildroot should offer
Jonathan> ? if yes, I can try to make a patch that add this
Jonathan> functionality to buildroot ? Jonathan
The question is how to generalize this and make is simple to
use/understand. My initial feeling is that for something as specialized
as this we should just make it easy to do outside BR (like we do with
the tarball target), instead of add a lot of complexity to BR/Kconfig.
But send the patch to the list once you're done, and I'll take a look at
it.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] jffs2 multiple partition
2009-11-26 14:36 ` Peter Korsgaard
@ 2009-11-26 15:06 ` Jonathan dumaresq
2009-11-26 15:13 ` Thomas Petazzoni
1 sibling, 0 replies; 11+ messages in thread
From: Jonathan dumaresq @ 2009-11-26 15:06 UTC (permalink / raw)
To: buildroot
Hi Peter,
-----Message d'origine-----
De?: Peter Korsgaard [mailto:jacmet at gmail.com] De la part de Peter Korsgaard
Envoy??: 26 novembre 2009 09:37
??: Jonathan dumaresq
Cc?: 'Thomas Petazzoni'; buildroot at busybox.net
Objet?: Re: [Buildroot] jffs2 multiple partition
>>>>> "Jonathan" == Jonathan dumaresq <jdumaresq@cimeq.qc.ca> writes:
Hi,
Jonathan> The main idea is to put the usr part in the 8MB serial flash.
Jonathan> I don't know if this is something that buildroot should offer
Jonathan> ? if yes, I can try to make a patch that add this
Jonathan> functionality to buildroot ? Jonathan
The question is how to generalize this and make is simple to
use/understand. My initial feeling is that for something as specialized
as this we should just make it easy to do outside BR (like we do with
the tarball target), instead of add a lot of complexity to BR/Kconfig.
But send the patch to the list once you're done, and I'll take a look at
it.
This is what I have. This looks to work. This is the first time I send a
patch... I will attach it to this email. If this is not right. Please let me
know. Since I take this from ATMEL buildroot, I take no credit for this ....
Jonathan
--
Bye, Peter Korsgaard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-multiple-partition-jffs2.patch
Type: application/octet-stream
Size: 19636 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091126/8493c48b/attachment-0001.obj>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] jffs2 multiple partition
2009-11-26 14:36 ` Peter Korsgaard
2009-11-26 15:06 ` Jonathan dumaresq
@ 2009-11-26 15:13 ` Thomas Petazzoni
2009-11-26 16:45 ` Jonathan dumaresq
1 sibling, 1 reply; 11+ messages in thread
From: Thomas Petazzoni @ 2009-11-26 15:13 UTC (permalink / raw)
To: buildroot
Le Thu, 26 Nov 2009 15:36:40 +0100,
Peter Korsgaard <jacmet@uclibc.org> a ?crit :
> The question is how to generalize this and make is simple to
> use/understand. My initial feeling is that for something as
> specialized as this we should just make it easy to do outside BR
> (like we do with the tarball target), instead of add a lot of
> complexity to BR/Kconfig.
Same opinion here. The feature ? put /usr in one filesystem and the rest
in another filesystem ? is very, very specific. Unless we find a way to
make it more generally useful, I don't think this belongs to Buildroot.
We could imagine that the user can give a text file saying which
file/directory should go in which filesystem, so that parts could be
put into a read-only filesystem and other parts into a read/write
filesystem. But I'm not sure how this would work.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] jffs2 multiple partition
2009-11-26 15:13 ` Thomas Petazzoni
@ 2009-11-26 16:45 ` Jonathan dumaresq
2009-11-26 17:03 ` Michael S. Zick
0 siblings, 1 reply; 11+ messages in thread
From: Jonathan dumaresq @ 2009-11-26 16:45 UTC (permalink / raw)
To: buildroot
Hi Thomas,
-----Message d'origine-----
De?: buildroot-bounces at busybox.net [mailto:buildroot-bounces at busybox.net] De
la part de Thomas Petazzoni
Envoy??: 26 novembre 2009 10:13
??: buildroot at busybox.net
Objet?: Re: [Buildroot] jffs2 multiple partition
Same opinion here. The feature ? put /usr in one filesystem and the rest
in another filesystem ? is very, very specific. Unless we find a way to
make it more generally useful, I don't think this belongs to Buildroot.
Yes I know That this is very specific. To be honest, this is not funny at
all. But with the patch I just send, You can cherry pick some directory and
fill the jffs2_partition.txt file ans list those directory (or mount point)
in there.
We could imagine that the user can give a text file saying which
file/directory should go in which filesystem, so that parts could be
put into a read-only filesystem and other parts into a read/write
filesystem. But I'm not sure how this would work.
This can be a realy fun !!!
Thomas
--
Jonathan
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] jffs2 multiple partition
2009-11-26 16:45 ` Jonathan dumaresq
@ 2009-11-26 17:03 ` Michael S. Zick
2009-11-26 18:38 ` Peter Korsgaard
0 siblings, 1 reply; 11+ messages in thread
From: Michael S. Zick @ 2009-11-26 17:03 UTC (permalink / raw)
To: buildroot
On Thu November 26 2009, Jonathan dumaresq wrote:
> Hi Thomas,
>
> -----Message d'origine-----
> De?: buildroot-bounces at busybox.net [mailto:buildroot-bounces at busybox.net] De
> la part de Thomas Petazzoni
> Envoy??: 26 novembre 2009 10:13
> ??: buildroot at busybox.net
> Objet?: Re: [Buildroot] jffs2 multiple partition
>
> Same opinion here. The feature ? put /usr in one filesystem and the rest
> in another filesystem ? is very, very specific. Unless we find a way to
> make it more generally useful, I don't think this belongs to Buildroot.
>
> Yes I know That this is very specific. To be honest, this is not funny at
> all. But with the patch I just send, You can cherry pick some directory and
> fill the jffs2_partition.txt file ans list those directory (or mount point)
> in there.
>
> We could imagine that the user can give a text file saying which
> file/directory should go in which filesystem, so that parts could be
> put into a read-only filesystem and other parts into a read/write
> filesystem. But I'm not sure how this would work.
>
> This can be a realy fun !!!
>
> Thomas
Perhaps like a "makedev table"?
Used as an "install command" target re-director?
Not that much different than using exclude-from-file and include-from-file
tar command options to reorganize the output tarball in user scripting.
Sounds like re-inventing an old, well known, wheel.
Hmm... Doesn't the build system already have an option to run things
through a user provided script?
Mike
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] jffs2 multiple partition
2009-11-26 17:03 ` Michael S. Zick
@ 2009-11-26 18:38 ` Peter Korsgaard
0 siblings, 0 replies; 11+ messages in thread
From: Peter Korsgaard @ 2009-11-26 18:38 UTC (permalink / raw)
To: buildroot
>>>>> "Michael" == Michael S Zick <minimod@morethan.org> writes:
Hi,
Michael> Perhaps like a "makedev table"? Used as an "install command"
Michael> target re-director? Not that much different than using
Michael> exclude-from-file and include-from-file tar command options to
Michael> reorganize the output tarball in user scripting. Sounds like
Michael> re-inventing an old, well known, wheel.
Yes, exactly. It also shouldn't be jffs2 specific - E.G. you might want
the base system to be on squashfs, and "extra" stuff on jffs2.
Michael> Hmm... Doesn't the build system already have an option to run things
Michael> through a user provided script?
It does (BR2_ROOTFS_POST_BUILD_SCRIPT) - But that runs *BEFORE* the
target fs'es are created. You can ofcause do something like this
outside BR from the tarball target.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2009-11-26 18:38 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-25 16:08 [Buildroot] jffs2 multiple partition Jonathan dumaresq
2009-11-25 16:44 ` Michael S. Zick
2009-11-25 16:55 ` Jonathan dumaresq
2009-11-25 21:25 ` Thomas Petazzoni
2009-11-26 14:30 ` Jonathan dumaresq
2009-11-26 14:36 ` Peter Korsgaard
2009-11-26 15:06 ` Jonathan dumaresq
2009-11-26 15:13 ` Thomas Petazzoni
2009-11-26 16:45 ` Jonathan dumaresq
2009-11-26 17:03 ` Michael S. Zick
2009-11-26 18:38 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox