Skip to contentSkip to conversation

ubi-utils cleanup

DISCUSSION Artem Bityutskiy 2 participants 3 messages Dec 17, 2007 – Jan 7, 2008 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi Frank, Alex, Andreas,

since UBIFS gets tried more, people start using ubi-utils more, and I got several feed-backs about how untidy mtd-utils,git is, and ubi-utils are untidy as well.

May you please help me cleaning them up a little? We should re-structure the repo a bit to start of. I've added few ideas into the ubi-utils/TODO file.

First of, we should separate out UBI tests from ubi-utils and move them to tests/ubi-tests. Then we should separate-out the tools which are NAND-related - indeed, what do they do in ubi-utils? They should go to nand-tools, and stuff like nanddump and nandwrite should go to nand-tools as well.

Since most of the stuff in ubi-utils were make by your team, I kindly ask you to help with re-structuring them.

Signature · 2 lines
Best regards,
Artem Bityutskiy (Битюцкий Артём)
#1 lore raw

Hi Artem,

Quoted 10 lines · Artem Bityutskiy

Hi Frank, Alex, Andreas,

since UBIFS gets tried more, people start using ubi-utils more, and I got several feed-backs about how untidy mtd-utils,git is, and ubi-utils are untidy as well.

May you please help me cleaning them up a little? We should re-structure the repo a bit to start of. I've added few ideas into the ubi-utils/TODO file.

Quoted 5 lines

First of, we should separate out UBI tests from ubi-utils and move them to tests/ubi-tests. Then we should separate-out the tools which are NAND-related - indeed, what do they do in ubi-utils? They should go to nand-tools, and stuff like nanddump and nandwrite should go to nand-tools as well.

nand2bin and bin2nand are of the same kind and not UBI dependend. To be more widely used, those tools need more flexibility where the ECC data is placed in the OOB. Currently it is pretty much hard-coded for the layout we are using.

I have nothing against relocating the tools to other directories. What I like to keep are working install and uninstall rules with the possibility to define an individual install directory.

Quoted 2 lines

Since most of the stuff in ubi-utils were make by your team, I kindly ask you to help with re-structuring them.

Alex is busy with his thesis, I doubt that he can help much. I will try to follow the discussion and contribute small things if my time permits it. Please take my colleague Monte Copeland on CC. I don't know how much time he has, but he is currently responsible for our internal UBI usage.

Regards

Frank

Signature · 4 lines
IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032
Boeblingen, Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Herbert Kircher, Sitz der Gesellschaft: Böblingen,
Registergericht: Amtsgericht Stuttgart, HRB 243294
#2 lore raw

Hi,

Quoted 4 lines · Frank Haverkamp

nand2bin and bin2nand are of the same kind and not UBI dependend. To be more widely used, those tools need more flexibility where the ECC data is placed in the OOB. Currently it is pretty much hard-coded for the layout we are using.

I added more flexibility to the nand2bin/bin2nand tools so that different ECC layouts in the OOB can more easily be added. I did not move them yet. Josh, this feature is probably what some of your colleagues might be looking for.

I moved the scripts from the perl- the scripts-sub-directory since two sub-dirs do not make a lot of sense like you already mentioned. I changed the Makefile a little so that one can start the tests more easily. I removed the obsolete documentation file.

You can find my proposed changes in my mtd-utils.git:
http://git.infradead.org/?p=users/haver/mtd-utils.git;a=summary

Regards,

Frank

Signature · 4 lines
IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032
Boeblingen, Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Herbert Kircher, Sitz der Gesellschaft: Böblingen,
Registergericht: Amtsgericht Stuttgart, HRB 243294