public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind@infradead.org>
To: Nancy <nancydreaming@gmail.com>
Cc: linux-mtd <linux-mtd@lists.infradead.org>
Subject: Re: Is there possible to integrate mtd ubi ubifs latest version in one git tree?
Date: Sat, 12 Apr 2008 12:57:13 +0300	[thread overview]
Message-ID: <1207994233.5965.124.camel@sauron> (raw)
In-Reply-To: <bae050c10804102348sceaef1bh557ecce22a96b03f@mail.gmail.com>

Hi,

On Fri, 2008-04-11 at 14:48 +0800, Nancy wrote:
>     Is there possible to integrate mtd ubi ubifs latest version in one git tree?
Well, the mainline is where MTD tree and UBI trees are integrated. UBIFS
git tree is not in main line, so it is separate.

But no, we cannot integrate 3 development trees, it just does not make
sense. Better describe your problem and I'll try to help.

>     If the answer is no, will ubifs give patches for porting it to old
> linux kernel? The patches only contain the ubifs needed file.
We maintain 2.6.21, 2.6.22, 2.6.23, and 2.6.24 ports. They contain UBIFS
patches and all the other patches which are needed to make UBIFS work.
For example, 2.6.21 port has tons of UBI patches back-ported from the
ubi-2.6.git tree, it has LZO compressor ported from older versions of
the kernel as well.

>     I know little about kernel, just git clone the whole
> ubifs-v2.6.24, I found there is a lot of differences between the
> original linux-2.6.24.3 and ubifs-v2.6.24.
Sure. But it is easy to make linux-2.6.24.3 + UBIFS. Really. Suppose you
have linux-2.6.24.3 tree at /home/nancy/linux-2.6.24.3 and ubifs-v2.6.24
at /home/nanxy/ubifs-v2.6.24. Do the following:

# cd /home/nanxy/ubifs-v2.6.24
# git diff v2.6.24 > all_ubifs.diff
# cd /home/nancy/linux-2.6.24.3
# patch -p1 < all_ubifs.diff

And that's it.

If you do not want to loose UBIFS history, you could do like this
# cd /home/nanxy/ubifs-v2.6.24
# git format-patch v2.6.24
This will give you huge amount of patches, basically all patches which
we applied to vanilla linux-2.6.24. Now you may apply them to your
linux-2.6.24.3. The easiest way is to use git-am. But first you have to
make sure your linux-2.6.24.3 is a git repository. If it is not (you
downloaded it as a tar.gz file, create a git repository using git
init-db and then git commit).

# cd /home/nancy/linux-2.6.24.3
# git init-db
# git add .
# git-commit -a

Now you have git repository. Then

# mv /home/nanxy/ubifs-v2.6.24/0* .
# git am 0*

And this will apply all the patches in right order (because they have
prefix with number and will be sorted by name). But it you may have some
conflicts, which you will have to fix manually. And after all patches
were applied, you may look what you have with git log.

HTH.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

  reply	other threads:[~2008-04-12  9:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-11  6:48 Is there possible to integrate mtd ubi ubifs latest version in one git tree? Nancy
2008-04-12  9:57 ` Artem Bityutskiy [this message]
2008-04-12  9:59   ` Artem Bityutskiy
2008-04-12 10:10   ` Artem Bityutskiy
2008-04-14  4:46     ` Nancy
2008-04-14  9:05       ` Artem Bityutskiy
2008-04-15 11:41         ` Jamie Lokier
2008-04-15 11:44           ` Artem Bityutskiy
2008-04-15 15:21             ` Jamie Lokier
2008-04-15 15:41               ` Artem Bityutskiy
     [not found]         ` <bae050c10804140435v5141dec6qd61b325a4a1ff6ad@mail.gmail.com>
     [not found]           ` <1208173090.5965.187.camel@sauron>
2008-04-15 12:04             ` Nancy
2008-04-16  6:11               ` Artem Bityutskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1207994233.5965.124.camel@sauron \
    --to=dedekind@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=nancydreaming@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox