[PATCH] rockchip: rk3328: nanopi-r2s: Use the sdcard for the env

2022-05-03 Thread Emmanuel Vadot
The NanoPi-R2S doesn't have eMMC so use the sdcard as the device to save the environment variables Signed-off-by: Emmanuel Vadot --- configs/nanopi-r2s-rk3328_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/nanopi-r2s-rk3328_defconfig b/configs/nanopi-r2s-rk3328_defconfig

Re: [PATCH] Fix MMC numbering issue for Raspberry Pi 3

2021-10-28 Thread Emmanuel Vadot
-137,7 +137,8 @@ > #if CONFIG_IS_ENABLED(CMD_MMC) > #define BOOT_TARGET_MMC(func) \ > func(MMC, mmc, 0) \ > - func(MMC, mmc, 1) > + func(MMC, mmc, 1) \ > + func(MMC, mmc, 2) > #else > #define BOOT_TARGET_M

Re: patch for rpi3 on FreeBSD

2021-10-27 Thread Emmanuel Vadot
@@ > #if CONFIG_IS_ENABLED(CMD_MMC) > #define BOOT_TARGET_MMC(func) \ > func(MMC, mmc, 0) \ > - func(MMC, mmc, 1) > + func(MMC, mmc, 1) \ > + func(MMC, mmc, 2) > #else > #define BOOT_TARGET_MMC(func) > #endif -- Emmanuel Vadot

Re: [PATCH 00/28] Initial implementation of bootmethod/bootflow

2021-08-25 Thread Emmanuel Vadot
g the environment. And for a one-off boot from a different > device they can simply run an appropriate boot command. The > boot_targets variable in particular is documented in various install > documents so it would probably be good of the new "bootmethod" code > would respect this variable. > > For OpenBSD I'm not really interested in the bootflow part. As I > explained in the past, that part of the problem is solved in a > (mostly) uniform way across platforms by the OpenBSD bootloader which > can read an /etc/boot.conf that allows bootflow customization. So as > long as the default of the new code still results in > \EFI\BOOT\BOOT{machine type short-name}.EFI being loaded and run if > there is no U-Boot specific bootflow configured, I'm happy. Mostly the same for FreeBSD, as long as the efi boot.efi is loaded and run by default (respecting the boot_targets order) we will be fine. > I can't speak for the other BSDs, but my impression is that they are > pretty much in the same position. The FreeBSD bootloader for example > supports a high-degree of "bootflow" customization and I doubt that > taking it out of the loop is a viable option for most users. > > > -- > > Tom > > > > [2:application/pgp-signature Show Save:signature.asc (659B)] > > -- Emmanuel Vadot

Re: [PATCH v4 07/27] rockchip: Enable building a SPI ROM image on bob

2020-11-08 Thread Emmanuel Vadot
Hi Simon, On Tue, 3 Nov 2020 08:11:59 -0700 Simon Glass wrote: > Hi Hugh, > > On Wed, 14 Oct 2020 at 12:37, Hugh Cole-Baker wrote: > > > > Hello, > > > On 11 Oct 2020, at 16:39, Emmanuel Vadot wrote: > > > > > > > > > Hi Simon, &

Re: [PATCH v4 07/27] rockchip: Enable building a SPI ROM image on bob

2020-10-11 Thread Emmanuel Vadot
}; > diff --git a/arch/arm/mach-rockchip/rk3399/Kconfig > b/arch/arm/mach-rockchip/rk3399/Kconfig > index 254b9c5b4d..17628f9171 100644 > --- a/arch/arm/mach-rockchip/rk3399/Kconfig > +++ b/arch/arm/mach-rockchip/rk3399/Kconfig > @@ -5,6 +5,8 @@ choice > > config TARGET_CHROMEBOOK_BOB > bool "Asus Flip C101PA Chromebook (RK3399)" > + select HAS_ROM > + select ROCKCHIP_SPI_IMAGE > help > Bob is a small RK3299-based device similar in apperance to Minnie. > It has two USB 3.0 type-C ports, 4GB of SDRAM, WiFi and a 10.1", > -- > 2.28.0.rc0.105.gf9edc3c819-goog > -- Emmanuel Vadot

Re: [PATCH 10/11] rockpro-rk3399: Enable SPI Flash

2019-12-30 Thread Emmanuel Vadot
t; +++ b/configs/rockpro64-rk3399_defconfig > @@ -46,6 +46,8 @@ CONFIG_RAM_RK3399_LPDDR4=y > CONFIG_BAUDRATE=150 > CONFIG_DEBUG_UART_SHIFT=2 > CONFIG_SYSRESET=y > +CONFIG_SPI_FLASH_GIGADEVICE=y > +CONFIG_ROCKCHIP_SPI=y > CONFIG_USB=y > CONFIG_USB_XHCI_HCD=y > CONFIG_USB_XHCI_DWC3=y > -- > 2.18.0.321.gffc6fa0e3 -- Emmanuel Vadot

[U-Boot] [PATCH] rockchip: dts: rk3328: rock64: Add same-as-spl order

2019-10-08 Thread Emmanuel Vadot
rk3328 can use same-as-spl option so next loaders are loaded from the same medium. Add the boot order in the rock64 dts otherwise booting from sdcard will result in u-boot looking into the eMMC. Signed-off-by: Emmanuel Vadot --- arch/arm/dts/rk3328-rock64-u-boot.dtsi | 5 + 1 file changed

[U-Boot] [PATCH] net: sun8i_emac: Test the correct phy

2019-07-19 Thread Emmanuel Vadot
) Signed-off-by: Emmanuel Vadot --- drivers/net/sun8i_emac.c | 29 + 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c index c0a440886e..0629b16e57 100644 --- a/drivers/net/sun8i_emac.c +++ b/drivers/net

Re: [U-Boot] [PATCH] rockchip: make_fit_atf: Use BL31 environ variable for file location

2019-04-27 Thread Emmanuel Vadot
Hi Jagan, On Sun, 21 Apr 2019 22:42:45 +0530 Jagan Teki wrote: > On Tue, Feb 5, 2019 at 4:24 PM Emmanuel Vadot wrote: > > > > Other make_fit script (like imx or sunxi) use the BL31 environment > > variable to indicate the location of the file. > > Also do that fo

[U-Boot] [PATCH] sun8i: h3: NanoPi M1 Plus: Add emac configuration

2019-04-16 Thread Emmanuel Vadot
NanoPi M1 plus have a 10/100/1000M ethernet with external phy. Phy power is controlled by PD6. Add the required configuration for it. Signed-off-by: Emmanuel Vadot --- configs/nanopi_m1_plus_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/nanopi_m1_plus_defconfig b

Re: [U-Boot] [U-Boot, v2, 7/9] rockchip: defconfig: Clean the unused pinctrl config

2019-02-05 Thread Emmanuel Vadot
changed, 42 deletions(-) > > > > Applied to u-boot-rockchip, thanks! Looks like you also added some .rej files (see [1]). This cause some problem each time we run make clean as it delete the files etc ... [1] : http://git.denx.de/?p=u-boot.git;a=commit;h=2ec3d25f8faab51c2334174a582a96ad28d96344 -- Emmanuel Vadot ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] rockchip: make_fit_atf: Use BL31 environ variable for file location

2019-02-05 Thread Emmanuel Vadot
On Tue, 5 Feb 2019 12:05:57 +0100 Philipp Tomsich wrote: > > > > On 05.02.2019, at 11:54, Emmanuel Vadot wrote: > > > > Other make_fit script (like imx or sunxi) use the BL31 environment > > variable to indicate the location of the file. > > Also do that f

[U-Boot] [PATCH] rockchip: make_fit_atf: Use BL31 environ variable for file location

2019-02-05 Thread Emmanuel Vadot
Other make_fit script (like imx or sunxi) use the BL31 environment variable to indicate the location of the file. Also do that for rockchip so we don't need to copy the file in the source directory. Signed-off-by: Emmanuel Vadot --- arch/arm/mach-rockchip/make_fit_atf.py | 2 +- 1 file changed

Re: [U-Boot] [PATCH 1/1] efi_loader: remove efi_exit_caches()

2018-11-24 Thread Emmanuel Vadot
ct_boot) > >> - cleanup_before_linux(); > >> -#endif > >> -} > >> - > >> /** > >> * efi_exit_boot_services() - stop all boot services > >> * @image_handle: handle of the loaded image > >> @@ -1863,9 +1838,6 @@

Re: [U-Boot] [PATCH 2/5] arm: socfpga: fix device trees to work with DM serial

2018-08-06 Thread Emmanuel Vadot
ocrates.dts > > > index 0d452ae300..7f9b48a839 100644 > > > --- a/arch/arm/dts/socfpga_cyclone5_socrates.dts > > > +++ b/arch/arm/dts/socfpga_cyclone5_socrates.dts > > > @@ -11,6 +11,7 @@ > > > > > > chosen { > > > bootargs = "co

Re: [U-Boot] [PATCH] rpi: Set the default mmc max device to 2

2018-07-04 Thread Emmanuel Vadot
On Wed, 4 Jul 2018 09:25:16 +0200 Alexander Graf wrote: > On 07/04/2018 09:08 AM, Emmanuel Vadot wrote: > > When running with special configuration (OF_BOARD and mmc overlay) > > RPI have the SD card as id 1. > > This make device enumeration fails when using the AP

[U-Boot] [PATCH] rpi: Set the default mmc max device to 2

2018-07-04 Thread Emmanuel Vadot
When running with special configuration (OF_BOARD and mmc overlay) RPI have the SD card as id 1. This make device enumeration fails when using the API. Signed-off-by: Emmanuel Vadot --- include/configs/rpi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/rpi.h b/include

[U-Boot] [PATCH] rpi: Add mmc 1 as a boot target

2018-07-02 Thread Emmanuel Vadot
When booting with the rpi-firmware "mmc" overlay that disable the SDHOST controller and use the SDHCI one for the sd card, mmc 1 because a viable boot target. Add it to the list Signed-off-by: Oleksandr Tymoshenko Signed-off-by: Emmanuel Vadot --- include/configs/rpi.h | 1 + 1 file

[U-Boot] [PATCH] usb: dwc2: Add brcm,bcm2708-usb compatible

2018-07-02 Thread Emmanuel Vadot
When using CONFIG_OF_BOARD on rpi to use the dtb provided by the RaspberryPi Fundation, the compatible string isn't the same, resulting in not-functional usb from u-boot. Signed-off-by: Oleksandr Tymoshenko Signed-off-by: Emmanuel Vadot --- drivers/usb/host/dwc2.c | 1 + 1 file changed, 1

[U-Boot] [PATCH] video: arm: rpi: Add brcm,bcm2708-fb compatible

2018-07-02 Thread Emmanuel Vadot
When using CONFIG_OF_BOARD on rpi to use the dtb provided by the RaspberryPi Fundation, the compatible string isn't the same, resulting in not-functional video in u-boot. Signed-off-by: Oleksandr Tymoshenko Signed-off-by: Emmanuel Vadot --- drivers/video/bcm2835.c | 1 + 1 file changed, 1

Re: [U-Boot] [PATCH 1/2] arm: timer: factor out FSL arch timer erratum workaround

2018-06-29 Thread Emmanuel Vadot
Cheers, Andre. For fixing the issue we also need to add the compat to the timer in the dts so kernels will also Apply the errata. Booting is cool but if you boot a kernel that will have timer issue it's not that great. -- Emmanuel Vadot ___ U-Boot

Re: [U-Boot] [PATCH v2] arm64: zynqmp: accept an absolute path for PMUFW_INIT_FILE

2018-06-09 Thread Emmanuel Vadot
as if PMUFW_INIT_FILE were empty. > > > > Tested in the 12 possible combinations of: > > - PMUFW_INIT_FILE empty, relative, absolute, non-existing > > - building in-tree, in subdir, in other directory > > > > Signed-off-by: Luca Ceresoli > > Cc: M

Re: [U-Boot] [PATCH] arm64: zynqmp: accept an absolute path for PMUFW_INIT_FILE

2018-06-04 Thread Emmanuel Vadot
Hi Luca, On Mon, 4 Jun 2018 12:23:17 +0200 Luca Ceresoli wrote: > Hi Emmanuel, > > On 31/05/2018 17:14, Emmanuel Vadot wrote: > > On Thu, 31 May 2018 16:28:46 +0200 > > Michal Simek wrote: > > > >> On 31.5.2018 14:58, Luca Ceresoli wrote: > >&

Re: [U-Boot] [PATCH] arm64: zynqmp: accept an absolute path for PMUFW_INIT_FILE

2018-05-31 Thread Emmanuel Vadot
who build u-boot on BSD system? > I would like to know if this readlink -m works there. > > Thanks, > Michal > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot We don't have -m on FreeBSD and after checking they don't either on OpenBSD and NetBSD. Cheers, -- Emmanuel Vadot ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 0/5] Add KConfig option for cache maintenance availability

2018-05-23 Thread Emmanuel Vadot
Hi Faiz, On Tue, 22 May 2018 11:47:41 +0530 Faiz Abbas <faiz_ab...@ti.com> wrote: > Hi, > > On Monday 30 April 2018 02:03 PM, Emmanuel Vadot wrote: > > Hi, > > > > In order to correctly exectute some binaries on some arch we need to flush > > the data

Re: [U-Boot] [PATCH 3/5] api: Flush cache when closing api

2018-05-04 Thread Emmanuel Vadot
On Mon, 30 Apr 2018 10:37:50 +0200 "Dr. Philipp Tomsich" <philipp.toms...@theobroma-systems.com> wrote: > > > On 30 Apr 2018, at 10:34, Emmanuel Vadot <m...@freebsd.org> wrote: > > > > Signed-off-by: Emmanuel Vadot <m...@freebsd.org> > > --

Re: [U-Boot] [PATCH v3 13/20] Revert: arm64: allwinner: a64: pine64: Use dcdc1 regulator for mmc0

2018-03-04 Thread Emmanuel Vadot
t try to avoid them in the future. > > Cheers, > Andre. > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot -- Emmanuel Vadot <m...@bidouilliste.com> <m...@freebsd.org> ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] api: bootelf: go: flush cache before starting

2018-01-12 Thread Emmanuel Vadot
On Tue, 9 Jan 2018 15:59:23 -0500 Tom Rini <tr...@konsulko.com> wrote: > On Mon, Dec 04, 2017 at 07:33:45PM +0100, Emmanuel Vadot wrote: > > > From: Warner Losh <i...@freebsd.org> > > > > Some application might load some code at location that contain sta

Re: [U-Boot] [PATCH 2/2] sysboot: Call bootm booti bootz then go on label_boot

2018-01-08 Thread Emmanuel Vadot
On Sun, 7 Jan 2018 21:39:01 -0700 Simon Glass <s...@chromium.org> wrote: > Hi Emmanuel, > > On 2 January 2018 at 14:27, Emmanuel Vadot <m...@freebsd.org> wrote: > > As do_bootm/do_booti/do_bootz will not return if the boot succeded, always > > call them if e

Re: [U-Boot] [PATCH 1/2] cmd: go: Make do_go available to outside boot.c

2018-01-08 Thread Emmanuel Vadot
Hello Simon, On Sun, 7 Jan 2018 21:38:29 -0700 Simon Glass <s...@chromium.org> wrote: > Hi Emmanuel, > > On 2 January 2018 at 14:27, Emmanuel Vadot <m...@freebsd.org> wrote: > > Some commands (like sysboot) might want to call go as they can encounter > > a ra

[U-Boot] [PATCH 2/2] sysboot: Call bootm booti bootz then go on label_boot

2018-01-02 Thread Emmanuel Vadot
As do_bootm/do_booti/do_bootz will not return if the boot succeded, always call them if enable by the config. Also add a fallback to go if the binary is a raw one. Signed-off-by: Emmanuel Vadot <m...@freebsd.org> --- cmd/pxe.c | 12 +++- 1 file changed, 7 insertions(+), 5 del

[U-Boot] [PATCH 1/2] cmd: go: Make do_go available to outside boot.c

2018-01-02 Thread Emmanuel Vadot
Some commands (like sysboot) might want to call go as they can encounter a raw binary. Make do_go callable for everyone. Signed-off-by: Emmanuel Vadot <m...@freebsd.org> --- cmd/boot.c| 2 +- include/command.h | 4 2 files changed, 5 insertions(+), 1 deletion(-) diff --git

Re: [U-Boot] ARM64 Allwinner Binary Size

2017-12-20 Thread Emmanuel Vadot
trong opinion about unzip, lzma is one of the valid/likelu compressions > > > > for an Image (and aside, I, or someone, needs to look into having > > > > 'booti' recognize various compression algorithms and automatically > > > > decompress them) so I don't think we

Re: [U-Boot] [PULL] efi patch queue 2017-12-17

2017-12-18 Thread Emmanuel Vadot
6 files changed, 214 insertions(+), 137 deletions(-) > > ___ > > U-Boot mailing list > > U-Boot@lists.denx.de > > https://lists.denx.de/listinfo/u-boot > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot -- Emmanuel Vadot <m...@bidouilliste.com> <m...@freebsd.org> ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 1/2] distro_bootcmd: Add command to run FreeBSD

2017-12-12 Thread Emmanuel Vadot
On Tue, 12 Dec 2017 20:29:42 +0100 Heinrich Schuchardt <xypron.g...@gmx.de> wrote: > On 12/12/2017 10:03 AM, Emmanuel Vadot wrote: > > > > Hi Heinrich, > > > > On Mon, 4 Dec 2017 20:18:22 +0100 > > Heinrich Schuchardt <xypron.g...@gmx.de> wrote: >

Re: [U-Boot] [PATCH 1/2] distro_bootcmd: Add command to run FreeBSD

2017-12-12 Thread Emmanuel Vadot
Hi Heinrich, On Mon, 4 Dec 2017 20:18:22 +0100 Heinrich Schuchardt <xypron.g...@gmx.de> wrote: > On 12/04/2017 08:06 PM, Emmanuel Vadot wrote: > > Add commands that scans for the FreeBSD loader and run it if found. > > FreeBSD has two loader: ubldr which is an ELF binar

[U-Boot] [PATCH] efi_loader: Setup logical_partition media information

2017-12-11 Thread Emmanuel Vadot
When adding a partition, set the logical_partition member in the media structure as mandated by the UEFI spec. Signed-off-by: Emmanuel Vadot <m...@freebsd.org> --- lib/efi_loader/efi_disk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/efi_loader/efi_disk.c b/lib/efi_

[U-Boot] [PATCH 2/2] kconfig: Add a DISTRO_FREEBSD option

2017-12-04 Thread Emmanuel Vadot
Add a FreeBSD option that enables the API and the data cache command as both are needed to boot the FreeBSD loader. Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- common/Kconfig | 11 +++ 1 file changed, 11 insertions(+) diff --git a/common/Kconfig b/common/Kconfig

[U-Boot] [PATCH 1/2] distro_bootcmd: Add command to run FreeBSD

2017-12-04 Thread Emmanuel Vadot
Add commands that scans for the FreeBSD loader and run it if found. FreeBSD has two loader: ubldr which is an ELF binary and ubldr.bin which is a PIE binary. Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- include/config_distro_bootcmd.h | 32

[U-Boot] [PATCH] api: bootelf: go: flush cache before starting

2017-12-04 Thread Emmanuel Vadot
From: Warner Losh <i...@freebsd.org> Some application might load some code at location that contain stale cache entries. Before running a elf or raw binary, flush the caches if they are enabled. Reviewed-by: Tom Rini <tr...@konsulko.com> Signed-off-by: Emmanuel Vadot <m...@b

Re: [U-Boot] [PATCH 3/4] sunxi: Add default partition scheme

2017-11-20 Thread Emmanuel Vadot
ghest part :) > > AFAIK, u-boot is not able to format any filesystem. We could just > flash a raw FAT filesystem though, but looking into it might help for > the environment discussion. Also note that if we go to 16MB for the size you need to tweek clusters an

Re: [U-Boot] [PATCH 3/4] sunxi: Add default partition scheme

2017-11-16 Thread Emmanuel Vadot
s in the root filesystem. > > > > Do you feel that's too big? We are talking about at least 8GB eMMCs > > mostly here, right? > > > >>> It's debatable whether we need a system partition defined at this stage. > >>> Can't this just left be unpartitioned, to be actually populated later? > >> This would break the cases I talked about earlier. > > Fair enough. > > The reason I'm not fully comfortable with prepopulated system partitions > is mostly because I'm not sure all installers will deal with them > properly. Some might decide you're better off resizing a system > partition rather than removing it - and if there's nothing useful inside > that may be the wrong choice. > > But that's nothing earth shattering. If you do need a system partition > to have other installers work well, that's ok too I guess. > > > > >>> In a MBR/GPT scenario I would expect a big partition covering the whole > >>> device causes headache later on. > >> What kind of headaches? > > Just thinking if an installer wants to add partitions (swap, /home, ...) > > it might be easier if some space is actually left unpartitioned. > > But that's just my non-embedded experience, where adding partitions is > > easier and safer, compared to deleting or resizing an existing partition. > > Yup, exactly that :) > > > Alex > > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot -- Emmanuel Vadot <m...@bidouilliste.com> <m...@freebsd.org> ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] bch: Fix build on FreeBSD host

2017-07-19 Thread Emmanuel Vadot
On Wed, 19 Jul 2017 16:26:13 +1000 Jonathan Gray <j...@jsg.id.au> wrote: > On Tue, Jun 20, 2017 at 09:02:29AM +0200, Emmanuel Vadot wrote: > > endian.h on FreeBSD system exist in sys/ subdirectory. > > FreeBSD already have a fls function defined in strings.h which is inc

[U-Boot] [PATCH] dtc: mkimage: Add the possibility to specify DTC

2017-06-25 Thread Emmanuel Vadot
FreeBSD recently switch to it's BSDL dtc. While it support most of the features of the GPL one it still lacks the incbin directive. Add the possibility to specify which dtc we want to use for compiling dts and generating fit image. Signed-off-by: Emmanuel Vadot <m...@bidouilliste.

Re: [U-Boot] [PATCH v2] efi: Export mbr partition for EFI.

2017-06-20 Thread Emmanuel Vadot
On Tue, 20 Jun 2017 14:08:08 +0200 Alexander Graf <ag...@suse.de> wrote: > > > On 20.06.17 14:02, Ard Biesheuvel wrote: > > On 20 June 2017 at 13:55, Alexander Graf <ag...@suse.de> wrote: > >> > >> > >> On 20.06.17 08:35, Emmanuel Vadot

[U-Boot] [PATCH] bch: Fix build on FreeBSD host

2017-06-20 Thread Emmanuel Vadot
endian.h on FreeBSD system exist in sys/ subdirectory. FreeBSD already have a fls function defined in strings.h which is included in string.h if __BSD_VISIBLE is defined, as a check for this. Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- lib/bch.c | 6 ++ 1 file chan

[U-Boot] [PATCH v2] efi: Export mbr partition for EFI.

2017-06-20 Thread Emmanuel Vadot
While MBR partition isn't supposed to work in a EFI environment some board rely partially or fully on MBR (BeagleBone, RPI and probably others). This export the MBR partition as logical partition which is useful to efi application that cannot read raw disks. Signed-off-by: Emmanuel Vadot &l

[U-Boot] [PATCH] api: Define a default mmc max device

2017-06-20 Thread Emmanuel Vadot
Define a default number of 1 for mmc max device if board config didn't specify one. Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- api/api_storage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/api_storage.c b/api/api_storage.c index f858f09f1a..8bed2f3c91

[U-Boot] [PATCH] efi: Export mbr partition for EFI.

2017-06-20 Thread Emmanuel Vadot
While MBR partition isn't supposed to work in a EFI environment some board rely partially or fully on MBR (BeagleBone, RPI and probably others). This export the MBR partition as logical partition which is useful to efi application that cannot read raw disks. Signed-off-by: Emmanuel Vadot &l

Re: [U-Boot] [PATCH] board: ti: am335x: Fix scale_vcore for beaglebones

2017-06-10 Thread Emmanuel Vadot
move extra if condition for selecting voltages which is > done later using a switch case and match usb current limit as > before the commit 0650798824. > > Fixes: 0650798824 ("board: am335x: Introduce scale_vcores") > Reported-by: Emmanuel Vadot <m...@bidouilliste.com> &g

Re: [U-Boot] [U-Boot, v2, 4/4] arm: am33xx: Add support for mulitiple PLL input frequencies

2017-06-09 Thread Emmanuel Vadot
lo Tom, > > >>>> > > >>>>Am 09.06.2017 um 02:45 schrieb Tom Rini: > > >>>>>On Thu, Jun 08, 2017 at 10:17:09AM +0530, Lokesh Vutla wrote: > > >>>>>> > > >>>>>> > > >>>>>>On Thursday 08 June 20

Re: [U-Boot] [U-Boot, v2, 4/4] arm: am33xx: Add support for mulitiple PLL input frequencies

2017-06-08 Thread Emmanuel Vadot
On Thu, 8 Jun 2017 10:17:09 +0530 Lokesh Vutla <lokeshvu...@ti.com> wrote: > > > On Thursday 08 June 2017 12:20 AM, Emmanuel Vadot wrote: > > On Fri, 12 May 2017 13:20:50 -0400 > > Tom Rini <tr...@konsulko.com> wrote: > > > >> On Fri, May

Re: [U-Boot] [U-Boot, v2, 4/4] arm: am33xx: Add support for mulitiple PLL input frequencies

2017-06-07 Thread Emmanuel Vadot
df3a1a8 r7 : 9df3b100 r6 : 9df3b0b8 r5 : 544c4e00 r4 : 9ff9e810 r3 : 9df3b0a8 r2 : r1 : 00000020 r0 : 9ff9e820 Flags: nzCv IRQs off FIQs on Mode SVC_32 Resetting CPU ... resetting ... -- Emmanuel Vadot <m...@bidouilliste.com> <m...@freebsd.org> ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [linux-sunxi] Re: [PATCHv2] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-04 Thread Emmanuel Vadot
from the kernel, and make a > > patch. > Ah fair enough. Easy :) > > Are they any plans to make this nicer/easier? E.g. have the dts files in > a separate repo to be used by both? For the FreeBSD import we use this repo : https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git I don't know if it would make sense to use that for u-boot. > > > > ChenYu > > > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot -- Emmanuel Vadot <m...@bidouilliste.com> <m...@freebsd.org> ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [U-Boot, v4, 3/5] api: bootelf: go: flush cache before starting

2017-02-10 Thread Emmanuel Vadot
On Wed, 8 Feb 2017 10:00:54 -0500 Tom Rini <tr...@konsulko.com> wrote: > On Tue, Jan 31, 2017 at 12:17:06PM +0100, Emmanuel Vadot wrote: > > > From: Warner Losh <i...@freebsd.org> > > > > Some application might load some code at location that contain sta

[U-Boot] [PATCH v4 1/5] kconfig: Add API kconfig file

2017-01-31 Thread Emmanuel Vadot
Add kconfig file to enable API support Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- Kconfig | 2 ++ api/Kconfig | 9 + 2 files changed, 11 insertions(+) create mode 100644 api/Kconfig diff --git a/Kconfig b/Kconfig index 8f9ea97f3d..2a65f07044 100644 --- a/K

[U-Boot] [PATCH v4 3/5] api: bootelf: go: flush cache before starting

2017-01-31 Thread Emmanuel Vadot
From: Warner Losh <i...@freebsd.org> Some application might load some code at location that contain stale cache entries. Before running a elf or raw binary, flush the caches if they are enabled. Reviewed-by: Tom Rini <tr...@konsulko.com> Signed-off-by: Emmanuel Vadot <m...@b

[U-Boot] [PATCH v4 5/5] kconfig: Add a DISTRO_FREEBSD option

2017-01-31 Thread Emmanuel Vadot
Add a FreeBSD option that enables the API and the data cache command as both are needed to boot the FreeBSD loader. Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- common/Kconfig | 11 +++ 1 file changed, 11 insertions(+) diff --git a/common/Kconfig b/common/Kconfig

[U-Boot] [PATCH v4 4/5] distro_bootcmd: Add command to run FreeBSD

2017-01-31 Thread Emmanuel Vadot
Add commands that scans for the FreeBSD loader and run it if found. FreeBSD has two loader: ubldr which is an ELF binary and ubldr.bin which is a PIE binary. Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- include/config_distro_bootcmd.h | 32

[U-Boot] [PATCH v4 2/5] api: Convert to Kconfig

2017-01-31 Thread Emmanuel Vadot
Now that we have a Kconfig for the API, convert the two boards that are using this to Kconfig and remove CONFIG_API from the whitelist. Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- configs/PMC440_defconfig | 1 + configs/lsxhl_defconfig | 1 + include/configs/PM

[U-Boot] [PATCH v4 0/5] Add FreeBSD kconfig options

2017-01-31 Thread Emmanuel Vadot
in the help of Kconfig API Changes in v2: Remove SYS_DCACHE_OFF option Flush dcache/icache in go/boot command Flush dcache/icache in API closedev Emmanuel Vadot (4): kconfig: Add API kconfig file api: Convert to Kconfig distro_bootcmd: Add command to run FreeBSD kconfig: Add

Re: [U-Boot] [PATCH v3 2/4] kconfig: Add a FREEBSD option

2017-01-26 Thread Emmanuel Vadot
On Thu, 26 Jan 2017 18:08:49 +0100 Alexander Graf <ag...@suse.de> wrote: > On 01/26/2017 05:46 PM, Emmanuel Vadot wrote: > > Add a FreeBSD option that enables the API and the data cache command > > as both are needed to boot the FreeBSD loader. > > > >

Re: [U-Boot] [PATCH v3 1/4] kconfig: Add API kconfig file

2017-01-26 Thread Emmanuel Vadot
On Thu, 26 Jan 2017 18:17:47 +0100 Andreas Färber <afaer...@suse.de> wrote: > Am 26.01.2017 um 17:46 schrieb Emmanuel Vadot: > > Add kconfig file to enable API support > > > > Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> > > --- >

[U-Boot] [PATCH v3 3/4] api: FreeBSD: flush cache before starting

2017-01-26 Thread Emmanuel Vadot
From: Warner Losh <i...@freebsd.org> FreeBSD loader(8) just loaded code to some random location that may contain stale icache entries. FreeBSD Kernel needs the icache and dcache flushed. Before running either one of them, flush the icache and dcache. Signed-off-by: Emmanuel Va

[U-Boot] [PATCH v3 2/4] kconfig: Add a FREEBSD option

2017-01-26 Thread Emmanuel Vadot
Add a FreeBSD option that enables the API and the data cache command as both are needed to boot the FreeBSD loader. Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- common/Kconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/common/Kconfig b/common/Kconfig

[U-Boot] [PATCH v3 4/4] distro_bootcmd: Add command to run FreeBSD

2017-01-26 Thread Emmanuel Vadot
Add commands that scans for the FreeBSD loader and run it if found. FreeBSD has two loader: ubldr which is an ELF binary and ubldr.bin which is a PIE binary. Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- include/config_distro_bootcmd.h | 32

[U-Boot] [PATCH v3 1/4] kconfig: Add API kconfig file

2017-01-26 Thread Emmanuel Vadot
Add kconfig file to enable API support Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- Kconfig | 2 ++ api/Kconfig | 9 + 2 files changed, 11 insertions(+) create mode 100644 api/Kconfig diff --git a/Kconfig b/Kconfig index cb19ce6f87..2073d933d9 100644 --- a/K

[U-Boot] [PATCH v3 0/4] Add FreeBSD kconfig options

2017-01-26 Thread Emmanuel Vadot
closedev Emmanuel Vadot (3): kconfig: Add API kconfig file kconfig: Add a FREEBSD option distro_bootcmd: Add command to run FreeBSD Warner Losh (1): api: FreeBSD: flush cache before starting Kconfig | 2 ++ api/Kconfig | 9 + api/api.c

Re: [U-Boot] [PATCH v2 1/4] kconfig: Add API kconfig file

2017-01-23 Thread Emmanuel Vadot
Hi Tom, On Mon, 23 Jan 2017 09:51:59 -0500 Tom Rini <tr...@konsulko.com> wrote: > On Sat, Jan 21, 2017 at 09:22:47PM -0700, Warner Losh wrote: > > On Fri, Jan 20, 2017 at 8:51 PM, Simon Glass <s...@chromium.org> wrote: > > > Hi, > > > > > >

Re: [U-Boot] [PATCH] Revert "build: Always build the libfdt python module"

2017-01-23 Thread Emmanuel Vadot
kimage-objs) > fit_check_sign.o > > # Build a libfdt Python module if swig is available > # Use 'sudo apt-get install swig libpython-dev' to enable this > -hostprogs-y += \ > +hostprogs-$(CONFIG_SPL_OF_PLATDATA) += \ > $(if $(shell which swig 2> /dev/null),_libfdt.so) &

Re: [U-Boot] [PATCH v2 3/4] api: FreeBSD: flush cache before starting loader/kernel

2017-01-23 Thread Emmanuel Vadot
Hi Simon, On Fri, 20 Jan 2017 20:51:54 -0700 Simon Glass <s...@chromium.org> wrote: > Hi, > > On 17 January 2017 at 08:50, Emmanuel Vadot <m...@bidouilliste.com> wrote: > > From: Warner Losh <i...@freebsd.org> > > > > FreeBSD loader(8) just

Re: [U-Boot] [PATCH v2 1/4] kconfig: Add API kconfig file

2017-01-23 Thread Emmanuel Vadot
On Fri, 20 Jan 2017 20:51:48 -0700 Simon Glass <s...@chromium.org> wrote: > Hi, > > On 17 January 2017 at 08:50, Emmanuel Vadot <m...@bidouilliste.com> wrote: > > Add kconfig file to enable API support > > > > Signed-off-by: Emmanuel Vadot <m...@bido

[U-Boot] [PATCH] bootm: qnx: Disable data cache before booting QNX image

2017-01-19 Thread Emmanuel Vadot
Instead of disabling the data cache in the bootelf command, disabling it in the do_bootm_qnxelf function. Some ELF binary might want the cache enabled. Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- cmd/elf.c | 11 --- common/bootm_os.c | 12 2

Re: [U-Boot] [PATCH v2 3/4] api: FreeBSD: flush cache before starting loader/kernel

2017-01-18 Thread Emmanuel Vadot
On Tue, 17 Jan 2017 21:58:31 +0100 Alexander Graf <ag...@suse.de> wrote: > > > On 17/01/2017 21:45, Emmanuel Vadot wrote: > > On Tue, 17 Jan 2017 21:13:51 +0100 > > Alexander Graf <ag...@suse.de> wrote: > > > >> > >> > >> On

Re: [U-Boot] [PATCH v2 3/4] api: FreeBSD: flush cache before starting loader/kernel

2017-01-17 Thread Emmanuel Vadot
On Tue, 17 Jan 2017 21:13:51 +0100 Alexander Graf <ag...@suse.de> wrote: > > > On 17/01/2017 16:50, Emmanuel Vadot wrote: > > From: Warner Losh <i...@freebsd.org> > > > > FreeBSD loader(8) just loaded code to some random location that may > > con

Re: [U-Boot] [PATCH v2 0/4] Add FreeBSD kconfig options

2017-01-17 Thread Emmanuel Vadot
Hi Stefan, On Tue, 17 Jan 2017 10:08:54 -0800 Stefan Agner <ste...@agner.ch> wrote: > On 2017-01-17 07:50, Emmanuel Vadot wrote: > > This series of patches add the needed bits for booting the FreeBSD > > loader and kernel. > > FreeBSD loader and kernel needs the U

Re: [U-Boot] [PATCH v2 0/4] Add FreeBSD kconfig options

2017-01-17 Thread Emmanuel Vadot
Hi Alexander, On Tue, 17 Jan 2017 20:36:59 +0100 Alexander Graf <ag...@suse.de> wrote: > > > On 17/01/2017 16:50, Emmanuel Vadot wrote: > > This series of patches add the needed bits for booting the FreeBSD > > loader and kernel. > > FreeBSD loader and kerne

Re: [U-Boot] [PATCH v2 1/4] kconfig: Add API kconfig file

2017-01-17 Thread Emmanuel Vadot
Hi Andreas, On Tue, 17 Jan 2017 18:16:58 +0100 Andreas Färber <afaer...@suse.de> wrote: > Am 17.01.2017 um 16:50 schrieb Emmanuel Vadot: > > Add kconfig file to enable API support > > > > Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> > > --- &

[U-Boot] [PATCH v2 0/4] Add FreeBSD kconfig options

2017-01-17 Thread Emmanuel Vadot
the FreeBSD loader if found. Changes in v2: Remove SYS_DCACHE_OFF option Flush dcache/icache in go/boot command Flush dcache/icache in API closedev Emmanuel Vadot (3): kconfig: Add API kconfig file kconfig: Add a FREEBSD option distro_bootcmd: Add command to run FreeBSD Warner Losh (1

[U-Boot] [PATCH v2 2/4] kconfig: Add a FREEBSD option

2017-01-17 Thread Emmanuel Vadot
Add a FreeBSD option that enable the API and enable the data cache command as it is needed to boot the FreeBSD loader. Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- common/Kconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/common/Kconfig b/common/Kconfig

[U-Boot] [PATCH v2 3/4] api: FreeBSD: flush cache before starting loader/kernel

2017-01-17 Thread Emmanuel Vadot
From: Warner Losh <i...@freebsd.org> FreeBSD loader(8) just loaded code to some random location that may contain stale icache entries. FreeBSD Kernel needs the icache and dcache flushed. Before running either one of them, flush the icache and dcache. Signed-off-by: Emmanuel Va

[U-Boot] [PATCH v2 4/4] distro_bootcmd: Add command to run FreeBSD

2017-01-17 Thread Emmanuel Vadot
Add commands that scans for the FreeBSD loader and run it if found. FreeBSD has two loader: ubldr which is an ELF binary and ubldr.bin which is a PIE binary. Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- include/config_distro_bootcmd.h | 32

[U-Boot] [PATCH v2 1/4] kconfig: Add API kconfig file

2017-01-17 Thread Emmanuel Vadot
Add kconfig file to enable API support Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- Kconfig | 2 ++ api/Kconfig | 9 + 2 files changed, 11 insertions(+) create mode 100644 api/Kconfig diff --git a/Kconfig b/Kconfig index 39a4d938d8..6a93d8820f 100644 --- a/K

[U-Boot] [PATCH] binman: add tools directory to the python path

2017-01-15 Thread Emmanuel Vadot
The built _libfdt.so is placed in the /tools dir and need to say here as it contains relative paths. Add the directory to the python path so binman can use this module. Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- tools/binman/binman.py | 1 + 1 file changed, 1 insertion(+)

[U-Boot] [PATCH] build: Always build the libfdt python module

2017-01-15 Thread Emmanuel Vadot
Do not rely on CONFIG_SPL_OF_PLATDATA to build the libfdt python module. If swig is present, this will be build Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- tools/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Makefile b/tools/Makefile

Re: [U-Boot] [U-Boot,v6,11/13] sunxi: Use binman for sunxi boards

2017-01-14 Thread Emmanuel Vadot
On Wed, 11 Jan 2017 22:08:03 -0700 Simon Glass <s...@chromium.org> wrote: > Hi Emmanuel, > > On 28 December 2016 at 03:57, Emmanuel Vadot <m...@bidouilliste.com> wrote: > > On Wed, 28 Dec 2016 11:30:10 +0100 > > Emmanuel Vadot <m...@bidouilliste.co

[U-Boot] [PATCH] api: storage: Test all block device in dev_stor_get

2017-01-04 Thread Emmanuel Vadot
. This patch fixes this by testing all devices for each class. Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- api/api_storage.c | 98 +++ 1 file changed, 34 insertions(+), 64 deletions(-) diff --git a/api/api_storage.c b/api/api_sto

Re: [U-Boot] example: api: ARM example needs memset

2017-01-02 Thread Emmanuel Vadot
On Mon, 2 Jan 2017 16:30:05 -0500 Tom Rini <tr...@konsulko.com> wrote: > On Sat, Dec 31, 2016 at 07:05:50PM +0100, Emmanuel Vadot wrote: > > > Add memset.S to the needed object for the API example and do not > > hardcode powerpc as the arch for library assembly fi

[U-Boot] [PATCH] example: api: ARM example needs memset

2016-12-31 Thread Emmanuel Vadot
Add memset.S to the needed object for the API example and do not hardcode powerpc as the arch for library assembly files. Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- examples/api/Makefile | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/api/Ma

Re: [U-Boot] [U-Boot,v6,11/13] sunxi: Use binman for sunxi boards

2016-12-28 Thread Emmanuel Vadot
On Wed, 28 Dec 2016 11:30:10 +0100 Emmanuel Vadot <m...@bidouilliste.com> wrote: > > Hello Simon, > > On Fri, 23 Dec 2016 01:39:06 -0700 > Simon Glass <s...@chromium.org> wrote: > > > On 18 December 2016 at 19:48, Tom Rini <tr...@konsulko.com> wrote

Re: [U-Boot] [U-Boot,v6,11/13] sunxi: Use binman for sunxi boards

2016-12-28 Thread Emmanuel Vadot
gt; Tom > > Applied to u-boot-dm and now in mainline. Shouldn't all the config for sunxi board defines CONFIG_SPL_OF_PLATDATA=y now so libfdt.so will be built ? -- Emmanuel Vadot <m...@bidouilliste.com> <m...@freebsd.org> ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH] tools: binman: Use /usr/bin/env to find python executable

2016-12-27 Thread Emmanuel Vadot
Some OS (all BSD and probably others) do not have python in /usr/bin but in another directory. It is a common usage to use /usr/bin/env python as shebang for python scripts so use this for binman. Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- tools/binman/binman.py | 2 +-

[U-Boot] [PATCH v2] api: Use hashtable function for API_env_enum

2016-12-26 Thread Emmanuel Vadot
The current code can loop undefinitly as it doesn't parse correctly the env data. Since the env is an hashtable, use the hashtable function for the API_ENV_ENUM api call. Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- Changes in v2: * Explain why the change is needed. api/api.

Re: [U-Boot] [linux-sunxi] Re: [RFC PATCH 0/3] sunxi: video: Add support for HDMI output on H3

2016-12-14 Thread Emmanuel Vadot
Driver Model provides the possibility to use EFI GOP, which > >>> can > >>> be a more standardized replacement of SimpleFB, especially for OSes other > >>> than Linux. (For example, Windows, if we can really get it running ;-) ) > >> > >> We're going to use EFI now? Doesn't EFI mean we have to leave another bit > >> of firmware in memory running under the OS? What about PSCI and ATF on > >> ARMv8? > > > > Until EFI on A64 on U-boot is a real thing, I don't really care to be > > honest. > > How is it not a real thing today? > > Alex We are using it on FreeBSD for Pine64 so it seems pretty real for me. -- Emmanuel Vadot <m...@bidouilliste.com> <m...@freebsd.org> ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] api: Use hashtable function for API_env_enum

2016-11-17 Thread Emmanuel Vadot
On Fri, 11 Nov 2016 09:16:46 -0700 Simon Glass <s...@chromium.org> wrote: > Hi, > > On 5 November 2016 at 15:27, Emmanuel Vadot <m...@bidouilliste.com> wrote: > > > > Since the env is an hashtable, use the hashtable function for the > > API_ENV_ENUM > &

Re: [U-Boot] [PATCH 0/4] config: Add FreeBSD kconfig options

2016-11-17 Thread Emmanuel Vadot
On Fri, 11 Nov 2016 11:07:34 -0500 Tom Rini <tr...@konsulko.com> wrote: > On Mon, Nov 07, 2016 at 09:34:27AM +0100, Emmanuel Vadot wrote: > > > This series of patches add the needed bits for booting the FreeBSD > > loader. > > FreeBSD loader needs the U-Boot API an

[U-Boot] [PATCH v5] efi_loader: console: Correctly report modes

2016-11-07 Thread Emmanuel Vadot
: Add mode switch Report only the modes that we support Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- lib/efi_loader/efi_console.c | 100 --- 1 file changed, 84 insertions(+), 16 deletions(-) diff --git a/lib/efi_loader/efi_console.c

[U-Boot] [PATCH 1/4] kconfig: Add API kconfig file

2016-11-07 Thread Emmanuel Vadot
Add kconfig file to enable API support Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- Kconfig | 2 ++ api/Kconfig | 9 + 2 files changed, 11 insertions(+) create mode 100644 api/Kconfig diff --git a/Kconfig b/Kconfig index 1263d0b..6e7c9b0 100644 --- a/Kconfig

[U-Boot] [PATCH 3/4] kconfig: Add a FREEBSD option

2016-11-07 Thread Emmanuel Vadot
Add a FreeBSD option that enable the API and disable the data cache as it is needed to boot the FreeBSD loader. Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com> --- common/Kconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/common/Kconfig b/common/Kconfig index 9

  1   2   >