Re: [PATCH v2 00/14] Introduce the lwIP network stack
On Mon, May 27, 2024 at 02:45:01PM +0200, Jerome Forissier wrote: > That certainly would work but again, isn't it a decision to be made > by the device manufacturer or more generally the one who builds u-boot > for the device? Very true, and if you get the verification part working, your full solution is better! Martin
Re: [PATCH v2 00/14] Introduce the lwIP network stack
On Mon, May 27, 2024 at 11:36:26AM +0200, Jerome Forissier wrote: > You're correct. The point I am making is about using a secure > (authenticated) connection, and I should have clarified that. While using > HTTPS might not be critical on a local network, things are different when > downloading from the internet (think man-in-the-middle attacks). (Sorry if this sounds like nitpkicking, but I am genuinely curious) How is it supposed to work? You need not only https but also verify the presented certificate chain, and for that you need up-to-date root certificates (e.g. the bundle available from mozilla). This sounds a bit outside the scope of u-boot to me (or you should avoid the man-in-the-middle argument, which leaves the still valid "sites stop offering plain http" argument). If you really worry about man-in-the-middle you need to download via https in an environment that does certificate validation, and then even better verify the hash of the downloaded image. After that you can offer the image locally - via http, https or tftp - for installations. Martin
Re: [PATCH 01/18] bootm: netbds: Drop passing of arguments
On Mon, Dec 04, 2023 at 11:48:17AM +0100, Mark Kettenis wrote: > That said, I'm not sure to what extent the bootm command is used to > boot NetBSD these days. So this may not really matter. It is used on most 32bit ARM platforms. Martin
Re: Adapteva Parallella board
On Fri, Oct 28, 2022 at 07:20:36PM +0200, Martin Husemann wrote: > Is my dtb not correct for this purpose? How can I easily make the u-boot > build regen it from .dts? I found the slightly hidden dts/.*.cmd files, > do I need to clone one of that and adjust? It was a toolchain issue and with a bit of help I now have a boot.bin and a u-boot.img from 2022.10, but both are happily ignored by the board when booting. Do I need to set something special to make it boot from SD card instead of SPI flash? Martin
Re: Adapteva Parallella board
On Thu, Oct 27, 2022 at 11:14:01AM +0200, Michal Simek wrote: > add DT to tree. If you have ps7_init create folder in board/xilinx/zynq/ > folder I didn't find a ps7_init in the parallela u-boot fork, so skipped that part... > export DEVICE_TREE=... I put the zynq-parallella.dtb that I had in my tftp dir (and use for regular booting) into arch/arm/dts and set DEVICE_TREE=zynq-parallella > xilinx_zynq_virt_defconfig and that gets me to: [..] AR spl/drivers/built-in.o LD spl/u-boot-spl OBJCOPY spl/u-boot-spl-nodtb.bin SYM spl/u-boot-spl.sym CAT spl/u-boot-spl-dtb.bin COPYspl/u-boot-spl.bin gmake[1]: *** [scripts/Makefile.spl:248: spl/u-boot-spl-align.bin] Error 1 gmake: *** [Makefile:2106: spl/u-boot-spl] Error 2 gmake: *** Deleting file 'spl/u-boot-spl' Is my dtb not correct for this purpose? How can I easily make the u-boot build regen it from .dts? I found the slightly hidden dts/.*.cmd files, do I need to clone one of that and adjust? Martin
Adapteva Parallella board
Hey folks, the other day I was asked to test some changes on my Adapteva Parallella board, which I hadn't used for ages. I noticed it has an ancient u-boot: U-Boot 2012.10-3-g792c31c (Jan 03 2014 - 12:24:08) I2C: ready DRAM: 992 MiB WARNING: Caches not enabled MMC: SDHCI: 0 SF: Detected N25Q128 with page size 64 KiB, total 16 MiB In:serial Out: serial Err: serial Net: zynq_gem Hit any key to stop autoboot: ... and a quick search turned up lots of supported similar boards in u-boot mainline under board/xilinx/zynq - but no concrete instructions or test results for the Parallella. Anyone know what would be missing or is it just something simple like "take u-boot for z702 and replace the dtb"? Martin
Re: [U-Boot] ROCK64 fails to boot using U-Boot TPL
On Fri, Sep 20, 2019 at 01:07:12PM +0300, Matwey V. Kornilov wrote: > Do you have an idea where is correct FDT supposed to came from in > NetBSD case? For Linux, the file is placed on the boot partition and > retrieved by u-boot while looking for EFI application, etc. Same for NetBSD. Assuming that other parts have not been changed, Simon's experiments should have used the same .dtb for all tests. Martin ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] Jetson TX2 hangs during dhcp boot
On Sun, Jun 16, 2019 at 09:27:12PM +0200, Mian Yousaf Kaukab wrote: > > Hmm. Are you building your own copy of ATF (you mentioned 2.1; I can't > > recall what version we ship)? > No, I am using the one shipped with R32.1. That did not work at all for me with mainline u-boot (u-boot would hang early), so I went back to some older release (28.?) and all was fine again. Martin ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] paralella board support
On Tue, Mar 26, 2019 at 12:29:11PM +0100, Belisko Marek wrote: > Hi, > > I became owner or parallella board and it seems they still have custom fork > of u-boot [1] (not up to date). Does anyone work on mainlining this device? > I can give some hand. Thanks. Not working on it myself, but would be interested (and can test). Martin ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [U-Boot, v2] Enable expression support for CONFIG_BOARD_SIZE_LIMIT
On Fri, Mar 08, 2019 at 12:17:09PM -0500, Tom Rini wrote: > OK, so a few thoughts here. > - What's the portable way to do hex-based math? If we really need it? Use printf(3) to convert to/from hex, and standard shell arithmetic with $(( )). Looks horrible, but something like: v=$(( $( printf "%d\n" 0xa0 ) + $( printf "%d\n" 0x10 ) )) printf "v = %d (%x)\n" $v $v ... maybe arranged into some sh helper functions. Martin ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
[U-Boot] board/amlogic/odroid-c2/README - how to make the instructions more portable?
Hi folks, I am trying to get a new u-boot on my Odroid C2 following the instructions in board/amlogic/odroid-c2/README. Unfortunately these tell me to use not only the vendor provided blobs, but also their tools. This is painfull: file $DIR/fip/fip_create odroid-c2/fip/fip_create: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=0dc4b0e1bd118ffc3c0f77e815b6d86acc1f25c2, not stripped so I need to set up an environment where I can run that. There are alternatives, so the instructions should probably be updated to use them. I have "fiptool" from ARM trusted firmware v2.0, and "fiptool create" should be able to do what fip_create did. Also I have meson-tools installed, providing amlbootsig which could replace aml_encrypt_gxb. Has someone used these alternate tools instead of the vendor binaries? How do the fip_create options from the README translate to fiptool? Martin ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
[U-Boot] [PATCH] tools: improve portability of imx_cntr_image.sh
Replace non-portable operator == with = The operator == in sh(1) / test(1) is non-POSIX and only implemented by some shells (like bash). It is equivalent to the standard defined operator =. --- tools/imx_cntr_image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/imx_cntr_image.sh b/tools/imx_cntr_image.sh index 4c629e8694..972b95ccbe 100755 --- a/tools/imx_cntr_image.sh +++ b/tools/imx_cntr_image.sh @@ -10,7 +10,7 @@ file=$1 blobs=`awk '/^APPEND/ {print $2} /^IMAGE/ || /^DATA/ {print $3}' $file` for f in $blobs; do tmp=$srctree/$f - if [ $f == "u-boot-dtb.bin" ]; then + if [ $f = "u-boot-dtb.bin" ]; then continue fi -- 2.19.1 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
[U-Boot] Portability of sh scripts
Hey folks, I noticed that tools/imx_cntr_image.sh contains non-portable code: if [ $f == "u-boot-dtb.bin" ]; then This is a "bash-ism", the operator "==" is not implemented by most test(1) or sh(1) impmlementations. Simply replacing it with "=" fixes this. Should I send a trivial patch or do you just fix it? Thanks, Martin ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
[U-Boot] Adapteva Parallella support
Hey folks, has anyone here tried to create a newer u-boot version for Adapteva Parallella boards? There is a fork that goes up to 2015.4 on github (https://github.com/parallella/parallella-uboot) ... but I'd prefer (a) a newer version and (b) something already tested - as I don't currently have the xilinc jtag cable (and not sure I could easily get one). Anyone? Martin ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH] cmd/ubi.c: Fix format warning
On Thu, Jul 26, 2018 at 11:32:25AM -0400, Tom Rini wrote: > - printf("Read %u bytes from volume %s to %p\n", size, volume, buf); > + printf("Read %zd bytes from volume %s to %p\n", size, volume, buf); Why make it signed? "%zu bytes" should be better. Martin ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] Anyone using recentish u-boot on a GuruPlug?
I tested the RAM version now and indeed it does not work either. With my old u-boot I get: U-Boot 2013.10 (Oct 21 2013 - 20:54:41) Marvell-GuruPlug SoC: Kirkwood 88F6281_A1 DRAM: 512 MiB WARNING: Caches not enabled NAND: 512 MiB In:serial Out: serial Err: serial Net: egiga0, egiga1 Warning: failed to set MAC address 88E1121 Initialized on egiga0 88E1121 Initialized on egiga1 Hit any key to stop autoboot: 3 while the new one: U-Boot 2017.11 (Dec 05 2017 - 14:52:54 +0100) Marvell-GuruPlug SoC: Kirkwood 88F6281_A1 DRAM: 512 MiB WARNING: Caches not enabled NAND: <--- hangs here Anyone got an idea where to look? Martin ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
[U-Boot] Anyone using recentish u-boot on a GuruPlug?
I naively compiled a 2017.11 u-boot for GuruPlug and wrote the u-boot.kwb to nand, but that bricked the GuruPlug (should have tested with a ram version first, yes, I know). I have a jtag for it and was able to recover, but I wonder if i did something wrong in my local build or if support just bitrotted silently. I am not familiar with .kwb and early kirkwood bootstrap, so not sure how I could debug this, besides the jtag is "slightly fragile" and using it a bit inconvenient. Anyone used recentish u-boot on Sheeva/Guruplug lately? Martin ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot