[PATCH v2] image-board: fix wrong implementation ram disk address setup from cmdline

2021-11-24 Thread Artem Lapkin
Signed-off-by: Artem Lapkin --- V2 changes _ rebase to master _ from https://patchwork.ozlabs.org/project/uboot/patch/20211016051915.4157293-1-...@khadas.com/ --- boot/image-board.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/boot/image-board.c b/boot/image-board.c

[PATCH v2 2/2] test: env: deep resolve value testing

2021-11-18 Thread Artem Lapkin
Add new tests for `setenv -r` options (setup env variable with additional resolving vars inside value). test.py -k test_env Signed-off-by: Artem Lapkin --- test/py/tests/test_env.py | 24 1 file changed, 24 insertions(+) diff --git a/test/py/tests/test_env.py b/test

[PATCH v2 1/2] env: setenv add resolve value option

2021-11-18 Thread Artem Lapkin
ot;${c}! ${a}..."); /* d="hello world! hello..." */ Signed-off-by: Artem Lapkin --- V2 changes: _ fix comments style _ add comment include/exports.h _ remake strcpy to strdup _ env_resolve minimize --- cmd/nvedit.c | 43 ++- include/_ex

[PATCH v2 0/2] env: setenv add resolve value option

2021-11-18 Thread Artem Lapkin
ot;${c}! ${a}..."); /* d="hello world! hello..." */ Artem Lapkin (2): env: setenv add resolve value option test: env: deep resolve value testing --- V2 changes: _ fix comments style _ add comment include/exports.h _ remake strcpy to strdup _ env_resolve minimize _ test added: test

[PATCH v1] env: setenv add resolve value option

2021-11-02 Thread Artem Lapkin
;, "${c}! ${a}..."); /* d="hello world! hello..." */ Notes Resolving works only for ${var} "bracket" and didn't workd for "unbracket" $var => setenv -r d '$c! $a...' => printenv d d=$c! $a... Signed-off-by: Artem Lapkin --- cmd/nvedit.c |

[PATCH] image-board: fix wrong implementation ram disk address setup from cmdline

2021-10-15 Thread Artem Lapkin
Come-from: https://patchwork.ozlabs.org/project/uboot/patch/20211015101501.4091141-1-...@khadas.com/ Signed-off-by: Artem Lapkin --- common/image-board.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/image-board.c b/common/image-board.c index e7660352e9

[PATCH] image: fix select_ramdisk for raw initrd

2021-10-15 Thread Artem Lapkin
Problem We have unbootable raw initrd images because, select_ramdisk for raw initrd images ignore submited select addr and setup rd_datap value to 0 Solution: setup rd_datap value from select Signed-off-by: Artem Lapkin --- common/image-board.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH] cmd: sysboot: dont overwrite bootfile env

2021-10-12 Thread Artem Lapkin
e the incorrect path "/boot/extlinux/" from the bootfile env. Solution sysboot must care about bootfile and restore default value after usage. Come from: https://patchwork.ozlabs.org/project/uboot/patch/20211012085544.3206394-1-...@khadas.com/ Signed-off-by: Artem L

[PATCH] distro_boot: Fix bootfile env after calling boot_extlinux

2021-10-12 Thread Artem Lapkin
rnet@ff3f device TFTP from server 192.168.11.1; our IP address is 192.168.11.151 Filename '/boot/extlinux/pxelinux.cfg/default'. Not retrying... ======== Signed-off-by: Artem Lapkin --- include/config_distro_bootcmd.h | 2 ++ 1 file change

[PATCH] image: add lz4 zstd compression magic map

2021-08-31 Thread Artem Lapkin
Add lz4 and zstd compression magic map. Already can decompress images with lz4 and zstd compression type. Signed-off-by: Artem Lapkin --- common/image.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/image.c b/common/image.c index 59c52a1f9a..e199d61a4c 100644 --- a/common/image.c

[PATCH 4/4] EFI: console: improve vidconsole unicode output

2021-08-04 Thread Artem Lapkin
If EFI_CONSOLE_UTF_SAFE is enabled and vidconsole is active, unicode characters will be replaced with "." for all console outputs. Vidconsole does not support unicode output, and your console will suffer display issues if EFI_CONSOLE_UTF_SAFE is disabled. Signed-off-by: Artem Lapkin

[PATCH 3/4] EFI: console: max rows and cols user limit

2021-08-04 Thread Artem Lapkin
Setup the max rows and columns limit for the EFI console output. Signed-off-by: Artem Lapkin --- lib/efi_loader/Kconfig | 12 lib/efi_loader/efi_console.c | 5 + 2 files changed, 17 insertions(+) diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig index

[PATCH 2/4] EFI: console: query_console_size: multiplex adaptation

2021-08-04 Thread Artem Lapkin
Multiplexed adaptation of the query_console_size() function; automatically determine the minimal console area that will fit all outputs properly. Signed-off-by: Artem Lapkin --- lib/efi_loader/efi_console.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git

[PATCH 1/4] EFI: console: query_vidconsole: multiplex adaptation

2021-08-04 Thread Artem Lapkin
Fixed detection of vidconsole from within a multiplexed stdout string. As you know, a user can use a comma-separated list of devices to set stdin, stdout and stderr. For example, "setenv stdout serial,vidconsole" is a multiplexed string. Signed-off-by: Artem Lapkin --- lib/

[PATCH 0/4] EFI: console: improves

2021-08-04 Thread Artem Lapkin
will suffer display issues if EFI_CONSOLE_UTF_SAFE is disabled. Artem Lapkin (4): EFI: console: query_vidconsole: multiplex adaptation EFI: console: query_console_size: multiplex adaptation EFI: console: max rows and cols user limit EFI: console: improve vidconsole unicode output li

[PATCH] configs: Enable SMBIOS for Khadas VIM boards

2021-07-26 Thread Artem Lapkin
Enable configs to support SMBIOS for all Khadas VIM boards Reviewed-by: Neil Armstrong Signed-off-by: Artem Lapkin --- configs/khadas-vim2_defconfig | 2 ++ configs/khadas-vim3_defconfig | 2 ++ configs/khadas-vim3l_defconfig | 2 ++ configs/khadas-vim_defconfig | 2 ++ 4 files changed, 8

[PATCH] ARM: dts: meson: Use devicetree for SMBIOS settings for Khadas VIM boards

2021-07-26 Thread Artem Lapkin
Khadas vim series: Use devicetree for SMBIOS settings Add settings and enable the default sysinfo driver so that these can come from the device tree. Reviewed-by: Neil Armstrong Signed-off-by: Artem Lapkin --- .../meson-g12b-a311d-khadas-vim3-u-boot.dtsi | 23 +++ .../meson

[PATCH] net: designware: improve ethernet DMA reset

2021-07-21 Thread Artem Lapkin
(maybe). Note: same need explore real problem why its happens! because this patch may be just hack. Signed-off-by: Artem Lapkin --- drivers/net/designware.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/designware.c b/drivers/net/designware.c index 5d92257e..6485c46

[PATCH] configs: khadas-edge series: Enable SMBIOS

2021-07-14 Thread Artem Lapkin
Enable configs to support SMBIOS for all Khadas Edge* boards Signed-off-by: Artem Lapkin --- configs/khadas-edge-captain-rk3399_defconfig | 2 ++ configs/khadas-edge-rk3399_defconfig | 2 ++ configs/khadas-edge-v-rk3399_defconfig | 2 ++ 3 files changed, 6 insertions(+) diff

[PATCH] dts: khadas Edge: Use devicetree for SMBIOS settings

2021-07-14 Thread Artem Lapkin
Khadas Edge series: Use devicetree for SMBIOS settings Add settings and enable the default sysinfo driver so that these can come from the device tree. Signed-off-by: Artem Lapkin --- arch/arm/dts/rk3399-khadas-edge-u-boot.dtsi | 21 + 1 file changed, 21 insertions(+) diff

[PATCH] configs: khadas-vim*: Enable SMBIOS

2021-07-14 Thread Artem Lapkin
Enable configs to support SMBIOS for all Khadas vim* boards Signed-off-by: Artem Lapkin --- configs/khadas-vim2_defconfig | 2 ++ configs/khadas-vim3_defconfig | 2 ++ configs/khadas-vim3l_defconfig | 2 ++ configs/khadas-vim_defconfig | 2 ++ 4 files changed, 8 insertions(+) diff --git

[PATCH] dts: khadas vim series: Use devicetree for SMBIOS settings

2021-07-14 Thread Artem Lapkin
Khadas vim series: Use devicetree for SMBIOS settings Add settings and enable the default sysinfo driver so that these can come from the device tree. Signed-off-by: Artem Lapkin --- .../meson-g12b-a311d-khadas-vim3-u-boot.dtsi | 23 +++ .../meson-gxl-s905x-khadas-vim-u

[PATCH] board: amlogic: vim3: fix phy-names property setup

2021-07-13 Thread Artem Lapkin
phy-names was improperly implemented resulting in an inoperable USB-OTG port. - phy-names = "usb2-phy0\0\0usb2-phy1\0"; + phy-names = "usb2-phy0\0usb2-phy1"; Signed-off-by: Artem Lapkin --- board/amlogic/vim3/vim3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH 2/2] configs: rockchip: rk3399: Khadas Edge add USB OHCI

2021-06-06 Thread Artem Lapkin
Wired Keyboard Signed-off-by: Artem Lapkin --- configs/khadas-edge-captain-rk3399_defconfig | 2 ++ configs/khadas-edge-rk3399_defconfig | 2 ++ configs/khadas-edge-v-rk3399_defconfig | 2 ++ 3 files changed, 6 insertions(+) diff --git a/configs/khadas-edge-captain-rk3399_defconfig b

[PATCH 1/2] ARM64: rockchip: evb_rk3399: add usb ohci definations

2021-06-06 Thread Artem Lapkin
Wired Keyboard Signed-off-by: Artem Lapkin --- include/configs/evb_rk3399.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/evb_rk3399.h b/include/configs/evb_rk3399.h index b7e850370b..492b7b4df1 100644 --- a/include/configs/evb_rk3399.h +++ b/include/configs/evb_rk3399.h

[PATCH 0/2] ARM64: rockchip: evb_rk3399: Khadas Edge add USB OHCI

2021-06-06 Thread Artem Lapkin
Problem: USB2.0 port can recognize any USB1.1 devices (like usb keyboard) Add missed USB OHCI configuration Artem Lapkin (2): ARM64: rockchip: evb_rk3399: add usb ohci definations configs: rockchip: rk3399: Khadas Edge add USB OHCI configs/khadas-edge-captain-rk3399_defconfig | 2

[PATCH] DTS: khadas-vim2 spi-flash change spi-max-frequency v2

2021-05-27 Thread Artem Lapkin
change max freq to 104Mhz for SPI-NOR flash Signed-off-by: Artem Lapkin --- arch/arm/dts/meson-gxm-khadas-vim2-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/meson-gxm-khadas-vim2-u-boot.dtsi b/arch/arm/dts/meson-gxm-khadas-vim2-u-boot.dtsi index c1763336cf

[PATCH] VIM3: mmc_get_env_dev correct non emmc boot sources

2021-05-27 Thread Artem Lapkin
need return -1 if boot source is not EMMC or SD ( for example it will be useful if we have multy env sources configuration and device was booted from SPI flash and env need read from SPI not from mmc ) Signed-off-by: Artem Lapkin --- board/amlogic/vim3/vim3.c | 10 -- 1 file changed, 8

[PATCH] DTS: khadas-vim2 spi-flash change spi-max-frequency

2021-05-27 Thread Artem Lapkin
change max freq to 104Mhz for SPI-NOR flash Signed-off-by: Artem Lapkin --- arch/arm/dts/meson-gxm-khadas-vim2.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/meson-gxm-khadas-vim2.dts b/arch/arm/dts/meson-gxm-khadas-vim2.dts index bff8ec2c1c..e2bd9c7c81

[PATCH] meson64: add kernel compression vars

2021-05-27 Thread Artem Lapkin
make possible to load simple compressed linux kernel for meson64 Signed-off-by: Artem Lapkin --- include/configs/meson64.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/meson64.h b/include/configs/meson64.h index e3d25493..552a08c2 100644 --- a/include/configs/meson64.h

[PATCH] rk3399_common: setup fdtoverlay_addr_r value

2021-05-26 Thread Artem Lapkin
fdtoverlay (pxe_utils) require define fdtoverlay_addr_r env variable for example sunxi-common.h meson64.h already have it. Signed-off-by: Artem Lapkin --- include/configs/rk3399_common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/rk3399_common.h b/include/configs

[PATCH] evb_rk3399: add usb ohci definations

2021-05-26 Thread Artem Lapkin
Problem: not possible to use CONFIG_USB_OHCI_HCD=y and CONFIG_USB_OHCI_GENERIC=y options without CONFIG_USB_OHCI_NEW and CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS definations Add missed definations. Signed-off-by: Artem Lapkin --- include/configs/evb_rk3399.h | 3 +++ 1 file changed, 3 insertions

[PATCH] rk3399: boot_devices fix spinor node name

2021-05-26 Thread Artem Lapkin
h@0 > /sdhci@fe33 > /mmc@fe320000 Signed-off-by: Artem Lapkin --- arch/arm/mach-rockchip/rk3399/rk3399.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c b/arch/arm/mach-rockchip/rk3399/rk3399.c index 869d2159..69e0c8c2 100644 -

[RESEND v1] pxe_utils: add localcmd defination

2021-03-01 Thread Artem Lapkin
amp;& script LABEL reset # multiline usage LOCALCMD echo RESET LOCALCMD reset LABEL reset again # multiline alias usage ! echo RESET ! reset LABEL localboot # redefile localcmd for localboot LOCALBOOT 1 LOCALCMD echo temporary redefine localcmd Signed-off-by: Artem Lapkin

[PATCH] net: tftp: setup tftp_remote_ip and tftp_filename env variables

2021-03-01 Thread Artem Lapkin
.80:/ && pxe get ... => printenv tftp_filename tftp_remote_ip serverip tftp_filename=/pxelinux.cfg/default-arm-meson tftp_remote_ip=192.168.100.80 serverip=192.168.100.1 Signed-off-by: Artem Lapkin --- net/tftp.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/net/tftp.c b/ne

[PATCH] pxe_utils: add localcmd defination

2021-02-26 Thread Artem Lapkin
ipt LABEL reset # multiline usage LOCALCMD echo RESET LOCALCMD reset LABEL reset again # multiline alias usage ! echo RESET ! reset LABEL localboot # redefile localcmd for localboot LOCALBOOT 1 LOCALCMD echo temporary redefine localcmd Signed-off-by: Artem Lapkin ---

[PATCH] pxe_utils: improve dftoverlay path

2021-02-26 Thread Artem Lapkin
ethmac_disable pcie_disable vpu_disable # same as # FDTOVERLAYS fdt/ethmac_disable.dtbo fdt/pcie_disable.dtbo fdt/vpu_disable.dtbo Signed-off-by: Artem Lapkin --- cmd/pxe_utils.c | 22 -- cmd/pxe_utils.h | 1 + 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/cmd

[PATCH] cmd: pxe_utils: fix ipappend ip config empty vars

2021-01-21 Thread Artem Lapkin
=192.168.2.33::192.168.2.1:255.255.255.0 Signed-off-by: Artem Lapkin --- cmd/pxe_utils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/pxe_utils.c b/cmd/pxe_utils.c index 8716e782..2049c0f3 100644 --- a/cmd/pxe_utils.c +++ b/cmd/pxe_utils.c @@ -395,9 +395,12

[PATCH] video: meson: add HDMI fail-save FullHD option

2021-01-15 Thread Artem Lapkin
or disconnected displays. NOTE: this option disabled by default Signed-off-by: Artem Lapkin --- drivers/video/meson/Kconfig | 10 ++ drivers/video/meson/meson_vpu.c | 19 +-- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/drivers/video/meson/Kconfig b/drivers

[PATCH 2/2] arm64: dts: meson: fix meson-khadas-vim3-u-boot.dtsi

2021-01-15 Thread Artem Lapkin
Add missed include meson-g12-common-u-boot.dtsi PROBLEM: missed hdmi video setup for VIM3 and VIM3L boards Signed-off-by: Artem Lapkin --- arch/arm/dts/meson-khadas-vim3-u-boot.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/meson-khadas-vim3-u-boot.dtsi b/arch/arm/dts

[PATCH 1/2] gpio: gpio-uclass: add OPEN_DRAIN flag parsing

2021-01-15 Thread Artem Lapkin
rm/dts/meson-sm1-sei610.dts: gpio = < GPIOH_8 GPIO_OPEN_DRAIN>; ``` Signed-off-by: Artem Lapkin --- drivers/gpio/gpio-uclass.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c index bad6b71e0c..6225f32457 100644

[PATCH 0/2] fix hdmi video setup for khadas vim3x boards

2021-01-15 Thread Artem Lapkin
next patches add missed parts Artem Lapkin (2): gpio: gpio-uclass: add OPEN_DRAIN flag parsing arm64: dts: meson: fix meson-khadas-vim3-u-boot.dtsi arch/arm/dts/meson-khadas-vim3-u-boot.dtsi | 2 ++ drivers/gpio/gpio-uclass.c | 10 ++ 2 files changed, 12 insertions

[PATCH] board: amlogic: vim3: fix setup ethernet mac from efuse

2021-01-12 Thread Artem Lapkin
Fix reading built-in ethernet MAC address from efuse NOTE: MAC is stored in ASCII format, 1bytes = 2characters by 0 offset if mac from efuse not valid we use meson_generate_serial_ethaddr NOTE: remake odroid-n2.c from Neil Armstrong Signed-off-by: Artem Lapkin --- board/amlogic/vim3/vim3.c

[PATCH] board: amlogic: vim3: fix setup ethernet mac from efuse

2021-01-12 Thread Artem Lapkin
Fix reading built-in ethernet MAC address from efuse NOTE: MAC is stored in ASCII format, 1bytes = 2characters by 0 offset if mac from efuse not valid we use meson_generate_serial_ethaddr NOTE: remake odroid-n2.c variant from Neil Armstrong Signed-off-by: Artem Lapkin --- board/amlogic/vim3

[PATCH] board: amlogic: vim3: setup ethernet mac from efuse

2021-01-11 Thread Artem Lapkin
Add the board specific code for reading built-in ethernet MAC address from efuse NOTE: MAC is stored in ASCII format, 1bytes = 2characters by 0 offset if mac from efuse not valid we use meson_generate_serial_ethaddr NOTE: remake odroid-n2.c variant from Neil Armstrong Signed-off-by: Artem

[PATCH] board: amlogic: vim3: ethernet mac fixed from serial

2021-01-08 Thread Artem Lapkin
Fixed randomly generated ethernet mac address! Used meson_generate_serial_ethaddr for generate mac address from board serial number, if ethaddr variable not defined. Signed-off-by: Artem Lapkin --- board/amlogic/vim3/vim3.c | 9 + 1 file changed, 9 insertions(+) diff --git a/board