* [U-Boot] mt7623 bootup example
@ 2018-11-03 8:46 Frank Wunderlich
2018-11-04 10:38 ` Frank Wunderlich
0 siblings, 1 reply; 4+ messages in thread
From: Frank Wunderlich @ 2018-11-03 8:46 UTC (permalink / raw)
To: u-boot
Hi Simon, hi Ryder,
i tried Patches so far, they are working well
https://patchwork.ozlabs.org/patch/992398/
here my github-repo with steps to build:
https://github.com/frank-w/u-boot
there is a build.sh, which compiles uboot the common way with some additions like bootmenu and full environment to load a kernel on BPI-R2
here are instructions how to prepare SD-Card for boot-up:
https://www.fw-web.de/dokuwiki/doku.php?id=en:bpi-r2:storage#extended_boot-headers
as you see you need 3 Headers on SD-Card (SDMMC_BOOT, BRLYT, Preloader) and the uboot.bin for SD-Card. on emmc imho preloader in boot0-block and uboot on main-Partition is enough for uboot to boot
Source: https://www.fw-web.de/dokuwiki/doku.php?id=en:bpi-r2:uboot#update_uboot
btw. @ryder.lee you have a small typo in the readme:
Boorom => Bootrom (2 times)
maybe you can add Infos above from my wiki. Btw. how far is the ethernet-driver? then i can replace my 2014-uboot ;)
regards Frank
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] mt7623 bootup example
2018-11-03 8:46 [U-Boot] mt7623 bootup example Frank Wunderlich
@ 2018-11-04 10:38 ` Frank Wunderlich
2018-11-05 2:17 ` Ryder Lee
0 siblings, 1 reply; 4+ messages in thread
From: Frank Wunderlich @ 2018-11-04 10:38 UTC (permalink / raw)
To: u-boot
Just to be clear...i tested v2 patches on rc1 (https://github.com/frank-w/u-boot/tree/bpi-r2_v2) they working well.
v3 have additional depencies (swig,python-dev same on rc1&rc3) and bootargs seems not to be passed to kernel (rc1=bpi-r2_v3_old and rc3 = bpi-r2_v3)
> Gesendet: Samstag, 03. November 2018 um 09:46 Uhr
> Von: "Frank Wunderlich" <frank-w@public-files.de>
> An: sjg at chromium.org, "Ryder Lee" <ryder.lee@mediatek.com>
> Cc: u-boot at lists.denx.de
> Betreff: [U-Boot] mt7623 bootup example
>
> Hi Simon, hi Ryder,
>
> i tried Patches so far, they are working well
>
> https://patchwork.ozlabs.org/patch/992398/
>
> here my github-repo with steps to build:
>
> https://github.com/frank-w/u-boot
>
> there is a build.sh, which compiles uboot the common way with some additions like bootmenu and full environment to load a kernel on BPI-R2
>
> here are instructions how to prepare SD-Card for boot-up:
>
> https://www.fw-web.de/dokuwiki/doku.php?id=en:bpi-r2:storage#extended_boot-headers
>
> as you see you need 3 Headers on SD-Card (SDMMC_BOOT, BRLYT, Preloader) and the uboot.bin for SD-Card. on emmc imho preloader in boot0-block and uboot on main-Partition is enough for uboot to boot
>
> Source: https://www.fw-web.de/dokuwiki/doku.php?id=en:bpi-r2:uboot#update_uboot
>
> btw. @ryder.lee you have a small typo in the readme:
> Boorom => Bootrom (2 times)
>
> maybe you can add Infos above from my wiki. Btw. how far is the ethernet-driver? then i can replace my 2014-uboot ;)
>
> regards Frank
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] mt7623 bootup example
2018-11-04 10:38 ` Frank Wunderlich
@ 2018-11-05 2:17 ` Ryder Lee
[not found] ` <trinity-7cc45333-a7c3-4636-8f19-050a15386b29-1541435132344@3c-app-gmx-bs51>
0 siblings, 1 reply; 4+ messages in thread
From: Ryder Lee @ 2018-11-05 2:17 UTC (permalink / raw)
To: u-boot
On Sun, 2018-11-04 at 11:38 +0100, Frank Wunderlich wrote:
> Just to be clear...i tested v2 patches on rc1 (https://github.com/frank-w/u-boot/tree/bpi-r2_v2) they working well.
>
> v3 have additional depencies (swig,python-dev same on rc1&rc3) and bootargs seems not to be passed to kernel (rc1=bpi-r2_v3_old and rc3 = bpi-r2_v3)
That's because I remove 'gd->bd->bi_boot_params' in v3, but it seems you
use legacy method (ATAGs) to pass parameters. I will add it back.
> > Gesendet: Samstag, 03. November 2018 um 09:46 Uhr
> > Von: "Frank Wunderlich" <frank-w@public-files.de>
> > An: sjg at chromium.org, "Ryder Lee" <ryder.lee@mediatek.com>
> > Cc: u-boot at lists.denx.de
> > Betreff: [U-Boot] mt7623 bootup example
> >
> > Hi Simon, hi Ryder,
> >
> > i tried Patches so far, they are working well
> >
> > https://patchwork.ozlabs.org/patch/992398/
> >
> > here my github-repo with steps to build:
> >
> > https://github.com/frank-w/u-boot
> >
> > there is a build.sh, which compiles uboot the common way with some additions like bootmenu and full environment to load a kernel on BPI-R2
> >
> > here are instructions how to prepare SD-Card for boot-up:
> >
> > https://www.fw-web.de/dokuwiki/doku.php?id=en:bpi-r2:storage#extended_boot-headers
> >
> > as you see you need 3 Headers on SD-Card (SDMMC_BOOT, BRLYT, Preloader) and the uboot.bin for SD-Card. on emmc imho preloader in boot0-block and uboot on main-Partition is enough for uboot to boot
> >
> > Source: https://www.fw-web.de/dokuwiki/doku.php?id=en:bpi-r2:uboot#update_uboot
> >
> > btw. @ryder.lee you have a small typo in the readme:
> > Boorom => Bootrom (2 times)
Thanks for catching that.
> > maybe you can add Infos above from my wiki. Btw. how far is the ethernet-driver? then i can replace my 2014-uboot ;)
> >
OK.
Thanks
Ryder
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] Fw: Aw: Re: mt7623 bootup example
[not found] ` <trinity-7cc45333-a7c3-4636-8f19-050a15386b29-1541435132344@3c-app-gmx-bs51>
@ 2018-11-05 16:31 ` Frank Wunderlich
0 siblings, 0 replies; 4+ messages in thread
From: Frank Wunderlich @ 2018-11-05 16:31 UTC (permalink / raw)
To: u-boot
sorry forgot mailing-list on answer
- v3-cmdline-problem is fixed by re-adding init-code (gd->bd->bi_boot_params)
- additional depencies are caused by change to binman
regards Frank
> Gesendet: Montag, 05. November 2018 um 17:25 Uhr
> Von: "Frank Wunderlich" <FrankWu@gmx.de>
> An: "Ryder Lee" <ryder.lee@mediatek.com>
> Betreff: Aw: Re: [U-Boot] mt7623 bootup example
>
> Hi, what is the non-legacy-method?
> i try to make the uenv.txt is compatible between the old and the new uboot ;) i know only this way yet
>
> with these lines added the parameters gets passed again
>
>
> diff --git a/board/mediatek/mt7623/mt7623_rfb.c b/board/mediatek/mt7623/mt7623_rfb.c
> index c3c12243f65..aa501e344cd 100644
> --- a/board/mediatek/mt7623/mt7623_rfb.c
> +++ b/board/mediatek/mt7623/mt7623_rfb.c
> @@ -6,8 +6,13 @@
> #include <common.h>
> #include <mmc.h>
>
> +DECLARE_GLOBAL_DATA_PTR;
> +
> int board_init(void)
> {
> + /* address of boot parameters */
> + gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
> +
> return 0;
> }
>
> regards Frank
>
>
> > Gesendet: Montag, 05. November 2018 um 03:17 Uhr
> > Von: "Ryder Lee" <ryder.lee@mediatek.com>
> > An: "Frank Wunderlich" <FrankWu@gmx.de>
> > Cc: "Frank Wunderlich" <frank-w@public-files.de>, sjg at chromium.org, u-boot at lists.denx.de, "Weijie Gao" <weijie.gao@mediatek.com>, "Roy Luo" <cheng-hao.luo@mediatek.com>, "Steven Liu" <steven.liu@mediatek.com>
> > Betreff: Re: Aw: [U-Boot] mt7623 bootup example
> >
> > On Sun, 2018-11-04 at 11:38 +0100, Frank Wunderlich wrote:
> > > Just to be clear...i tested v2 patches on rc1 (https://github.com/frank-w/u-boot/tree/bpi-r2_v2) they working well.
> > >
> > > v3 have additional depencies (swig,python-dev same on rc1&rc3) and bootargs seems not to be passed to kernel (rc1=bpi-r2_v3_old and rc3 = bpi-r2_v3)
> >
> > That's because I remove 'gd->bd->bi_boot_params' in v3, but it seems you
> > use legacy method (ATAGs) to pass parameters. I will add it back.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-11-05 16:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-03 8:46 [U-Boot] mt7623 bootup example Frank Wunderlich
2018-11-04 10:38 ` Frank Wunderlich
2018-11-05 2:17 ` Ryder Lee
[not found] ` <trinity-7cc45333-a7c3-4636-8f19-050a15386b29-1541435132344@3c-app-gmx-bs51>
2018-11-05 16:31 ` [U-Boot] Fw: Aw: " Frank Wunderlich
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.