From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 7/7] Add support for Freescale's mx35pdk board.
Date: Wed, 19 Jan 2011 11:01:40 +0100 [thread overview]
Message-ID: <4D36B684.1000308@denx.de> (raw)
In-Reply-To: <20110119080607.9A5D12FC@gemini.denx.de>
On 01/19/2011 09:06 AM, Wolfgang Denk wrote:
>> diff --git a/MAINTAINERS b/MAINTAINERS
>> index d7cd09c..3abb4cb 100644
>> --- a/MAINTAINERS
>> +++ b/MAINTAINERS
>> @@ -554,6 +554,7 @@ Stefano Babic <sbabic@denx.de>
>> ea20 davinci
>> polaris xscale
>> trizepsiv xscale
>> + mx35pdk i.MX35
>> mx51evk i.MX51
>> vision2 i.MX51
>
> Please sort list.
Agree.
>> diff --git a/MAKEALL b/MAKEALL
>> index a732e6a..31dbfe1 100755
>> --- a/MAKEALL
>> +++ b/MAKEALL
>> @@ -409,6 +409,7 @@ LIST_ARM11=" \
>> mx31ads \
>> mx31pdk \
>> mx31pdk_nand \
>> + mx35pdk \
>> qong \
>> smdk6400 \
>> tnetv107x_evm \
>
> NAK. We don't add boards to MAKEALL any more. They get auto-selcted
> from their entry in boards.cfg.
I missed the point, I wil lfix it.
>> -#define X_ARM_MMU_SECTION(abase, vbase, size, cache, buff, access) \
>> - { \
>> - int i; int j = abase; int k = vbase; \
>> - for (i = size; i > 0 ; i--, j++, k++) \
>> - ARM_MMU_SECTION(ttb_base, j, k, cache, buff, access); \
>> - }
>
> Here and everywhere else: Macros with multiple statements should be
> enclosed in a do - while block.
The patch removes for mistake this file, that does not really exist in
u-boot. I have aklready fixed it.
>> +CONFIG_SYS_TEXT_BASE = 0xA0000000
>
> NAK. Please move CONFIG_SYS_TEXT_BASE into board config file and
> ditch config.mk
Thanks, I have understood now how it works.
>
>> +int checkboard(void)
>> +{
>> + u32 system_rev = get_cpu_rev();
>> + u32 board_rev = 0;
>> + struct ccm_regs *ccm =
>> + (struct ccm_regs *)IMX_CCM_BASE;
>> +
>> + puts("Board: MX35 3STACK ");
>
> Is this the correct board name?
I will change it as MX35PDK
>
>> + board_rev = board_detect();
>> +
>> + /* Print board revision */
>> + if (board_rev)
>> + puts("2.0");
>> + else
>> + puts("1.0");
>
> Maybe board_detect() could return the board revision sirectly, so you
> can use a single printf for all this, like:
>
> printf("Board: mx35pdk %d.0", board_detect());
>
> ?
>
>> + /* Print CPU revision */
>> + puts(" i.MX35 ");
>> + if (system_rev & CHIP_REV_2_0)
>> + puts("2.0 [");
>> + else
>> + puts("1.0 [");
>
> Eventually something similar could / should be done here?
Yes, this should be (get_cpu_rev() & CHIP_REV_2_0)
> ...
>> +NAND partitions can be recognized enabling in kernel CONFIG_MTD_REDBOOT_PARTS.
>> +For this board, CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK should be set to 2.
>> +
>> +However, the setup in redboot is not correct and does not use the whole flash.
>> +
>> +Better solution is to use the kernel parameter mtdparts. Here the resulting script to be defined in RedBoot with fconfig:
>
> Lines too long. Please fix globally (at least in text).
Ok
>
> ...
>> +#define CONFIG_EXTRA_ENV_SETTINGS \
> ...
>> + "uboot=u-boot.bin\0" \
>> + "kernel_addr_r=0x80800000\0" \
>> + "kernel=uImage\0" \
>
> Default locations are "<boardname>/u-boot.bin" resp.
> "<boardname>/uImage".
>
>> + "prg_uboot=tftpboot ${loadaddr} ${uboot};" \
>> + "protect off ${uboot_addr} 0xa003ffff;" \
>> + "erase ${uboot_addr} 0xa003ffff;" \
>> + "cp.b ${loadaddr} ${uboot_addr} ${filesize};" \
>> + "setenv filesize;saveenv\0"
>
> We usually split this into "load" and "update" steps, so you don;t
> automatically erase your flash even when the download failed.
I will change it.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
next prev parent reply other threads:[~2011-01-19 10:01 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-14 13:35 [U-Boot] [PATCH 1/7] Add support for MX35 processor Stefano Babic
2011-01-14 13:35 ` [U-Boot] [PATCH 2/7] serial_mxc: add support for Freescale's i.MX35 processor Stefano Babic
2011-01-19 7:19 ` Wolfgang Denk
2011-01-14 13:35 ` [U-Boot] [PATCH 3/7] mxc_i2c: Add support for the " Stefano Babic
2011-01-19 7:37 ` Wolfgang Denk
2011-01-19 9:46 ` Stefano Babic
2011-01-14 13:35 ` [U-Boot] [PATCH 4/7] mxc_nand: add support for " Stefano Babic
2011-01-14 18:33 ` Scott Wood
2011-01-14 13:35 ` [U-Boot] [PATCH 5/7] Add basic support for Freescale's mc9sdz60 Stefano Babic
2011-01-19 7:40 ` Wolfgang Denk
2011-01-14 13:35 ` [U-Boot] [PATCH 6/7] mxc_spi: add support for i.MX35 processor Stefano Babic
2011-01-19 7:48 ` Wolfgang Denk
2011-01-19 10:09 ` Stefano Babic
2011-01-19 11:40 ` Wolfgang Denk
2011-01-14 13:35 ` [U-Boot] [PATCH 7/7] Add support for Freescale's mx35pdk board Stefano Babic
2011-01-17 16:43 ` Jason Liu
2011-01-17 16:54 ` Stefano Babic
2011-01-17 17:29 ` Stefano Babic
2011-01-18 9:40 ` Wolfgang Denk
2011-01-18 10:18 ` Stefano Babic
2011-01-19 8:06 ` Wolfgang Denk
2011-01-19 10:01 ` Stefano Babic [this message]
2011-01-19 7:35 ` [U-Boot] [PATCH 1/7] Add support for MX35 processor Wolfgang Denk
2011-01-19 9:45 ` Stefano Babic
2011-01-19 11:37 ` Wolfgang Denk
2011-01-19 11:54 ` Stefano Babic
2011-01-21 9:36 ` Detlev Zundel
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=4D36B684.1000308@denx.de \
--to=sbabic@denx.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox