All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Nokia N900: MTDPARTS_DEFAULT was removed in 43ede0bc (Kconfig: Migrate MTDIDS_DEFAULT / MTDPARTS_DEFAULT)
Date: Thu, 27 Dec 2018 15:53:06 -0500	[thread overview]
Message-ID: <20181227205306.GX16433@bill-the-cat> (raw)
In-Reply-To: <20181227193256.fsaak6zykotuwfve@pali>

On Thu, Dec 27, 2018 at 08:32:56PM +0100, Pali Rohár wrote:
> On Thursday 27 December 2018 14:12:35 Tom Rini wrote:
> > On Thu, Dec 27, 2018 at 08:09:56PM +0100, Pali Rohár wrote:
> > > On Thursday 27 December 2018 13:57:59 Tom Rini wrote:
> > > > On Thu, Dec 27, 2018 at 07:52:54PM +0100, Pali Rohár wrote:
> > > > 
> > > > > Hello, it seems that MTD partition definitions for Nokia N900 were
> > > > > removed in commit 43ede0bca7fc1590b623832b743213b818257a27 (Kconfig:
> > > > > Migrate MTDIDS_DEFAULT / MTDPARTS_DEFAULT).
> > > > > 
> > > > > See diff:
> > > > > http://git.denx.de/?p=u-boot.git;a=blobdiff;f=include/configs/nokia_rx51.h;h=b7fe7341e407fd16275ed06d2cd399a3a2fc0e6a;hp=20b8c345f06620210d4852f547b1e64c54e48904;hb=43ede0bca7fc1590b623832b743213b818257a27;hpb=804dcf771aacc75f595d3656be0ca6a7887b6672
> > > > > 
> > > > > Can you bring them back?
> > > > > 
> > > > > Note that those PART*_* macros are used not only for constructing
> > > > > MTDPARTS_DEFAULT, but also for OMAP Nokia N900 atags, which are needed
> > > > > for booting Maemo 5.
> > > > 
> > > > Yes, please update the defconfig file with whatever needs to be in the
> > > > option there, thanks!
> > > 
> > > Looking at it... and it is problematic.
> > > 
> > > At time when Nokia N900 code was put into U-Boot mainline repository,
> > > UBIFS and OneNand code in U-Boot was broken. Therefore I added only
> > > #ifdef switch to enable MTD support optionally. Ideally once, OneNand is
> > > in U-Boot fixed, then it can be enabled. I do not know what is current
> > > state.
> > 
> > OneNAND is probably still broken then, and should probably just be
> > removed if so?
> 
> Now it even does not compile... I'm getting following error:
> 
> drivers/mtd/onenand/onenand_uboot.c: In function ‘onenand_init’:
> drivers/mtd/onenand/onenand_uboot.c:37:31: error: ‘CONFIG_SYS_ONENAND_BASE’ undeclared (first use in this function)
>   onenand_chip.base = (void *) CONFIG_SYS_ONENAND_BASE;
>                                ^~~~~~~~~~~~~~~~~~~~~~~
> drivers/mtd/onenand/onenand_uboot.c:37:31: note: each undeclared identifier is reported only once for each function it appears in
> 
> After I applied
> 
> diff --git a/configs/nokia_rx51_defconfig b/configs/nokia_rx51_defconfig
> index fe2ecf6c94..905bdee249 100644
> --- a/configs/nokia_rx51_defconfig
> +++ b/configs/nokia_rx51_defconfig
> @@ -36,3 +36,6 @@ CONFIG_TWL4030_USB=y
>  CONFIG_VIDEO=y
>  CONFIG_CFB_CONSOLE_ANSI=y
>  # CONFIG_VGA_AS_SINGLE_DEVICE is not set
> +CONFIG_CMD_ONENAND=y
> +CONFIG_CMD_MTDPARTS=y
> +CONFIG_CMD_UBIFS=y
> 
> 
> > > And definition for MTD was not moved out of nokia_rx51.h file to
> > > nokia_rx51_defconfig. But if you look at old definition of
> > > MTDPART_DEFAULT it is composed from other macros in that nokia_rx51.h
> > > file.
> > > 
> > > So I cannot move it for obvious reason to nokia_rx51_defconfig, without
> > > including nokia_rx51.h in nokia_rx51_defconfig file. So how to solve
> > > this problem?
> > 
> > You should construct and pass the final string as it doesn't look like
> > it changes dynamically, right?
> 
> Yes, that is possible. But then definition for partitions would be at
> two places. Once in nokia_rx51_defconfig and second time in nokia_rx51.h

It shouldn't be in nokia_rx51.h at all, it needs to be migrated to
nokia_rx51_defconfig and any comments about where/why put into the
existing board README, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181227/2b8ee548/attachment.sig>

  parent reply	other threads:[~2018-12-27 20:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-27 18:52 [U-Boot] Nokia N900: MTDPARTS_DEFAULT was removed in 43ede0bc (Kconfig: Migrate MTDIDS_DEFAULT / MTDPARTS_DEFAULT) Pali Rohár
2018-12-27 18:57 ` Tom Rini
2018-12-27 19:09   ` Pali Rohár
2018-12-27 19:12     ` Tom Rini
2018-12-27 19:32       ` Pali Rohár
2018-12-27 20:35         ` Pali Rohár
2018-12-27 20:53         ` Tom Rini [this message]
2018-12-27 21:01           ` Pali Rohár
2018-12-27 21:07             ` Tom Rini

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=20181227205306.GX16433@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.