uuu using u-boot-with-spl.imx

Hi Fabio and Marek
Trying to understand the reason why I can boot using imx_usb loader and not the uuu tool
If I do:
./imx_usb SPL ./imx_usb u-boot-dtb.img
It works
U-Boot SPL 2022.07-rc5-00075-g01d253835a-dirty (Jul 04 2022 - 12:39: 11 +0200)
SPL: board_init_r()
spl_init Trying to boot from USB SDP SDP: initialize... SDP: handle requests... Downloading file of size 594824 to 0x877fffc0... done Jumping to header at 0x877fffc0 Header Tag is not an IMX image Found header at 0x877fffc0 image entry point: 0x87800000
U-Boot 2022.07-rc5-00075-g01d253835a-dirty (Jul 04 2022 - 12:39:11 + 0200)
CPU: Freescale i.MX6ULL rev1.1 528 MHz (running at 396 MHz) CPU: Commercial temperature grade (0C to 95C) at 37C Reset cause: POR Model: BSH SMM M2 DRAM: 128 MiB Core: 29 devices, 14 uclasses, devicetree: separate NAND: 256 MiB MMC: FSL_SDHC: 1 Loading Environment from NAND... *** Warning - bad CRC, using defaul t environment
In: serial@21f0000 Out: serial@21f0000 Err: serial@21f0000 Net: CPU Net Initialization Failed No ethernet found. Hit any key to stop autoboot
If I tried with the combined image using uuu it does not work like that.
U-Boot SPL 2022.07-rc5-00075-g01d253835a-dirty (Jul 04 2022 - 12:39: 11 +0200)
SPL: board_init_r()
spl_init Trying to boot from USB SDP SDP: initialize... SDP: handle requests... Downloading file of size 594824 to 0x877fffc0... done Jumping to header at 0x877fffc0 Header Tag is not an IMX image Found header at 0x877fffc0 image entry point: 0x87800000
Any idea?
Michael

Hi Fabio
I have managed to boot with this lts
uuu_version 1.2.39
# @_flash.bin | bootloader # @_uboot.bin | uboot.dtb # @_image [_flash.bin] | image burn to nand, default is the same as bootloader
# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ SDP: boot -f _flash.bin
# These commands will be run when use SPL and will be skipped if no spl # if (SPL support SDPV) # { SDPV: delay 1000 SDPV: write -f _uboot.bin SDPV: jump # }
FB: ucmd setenv fastboot_buffer ${loadaddr} FB: download -f _image FB: ucmd if test -z "$fastboot_bytes"; then setenv fastboot_bytes $filesize; fi # Burn image to nandfit partition if needed FB: ucmd if env exists nandfit_part; then nand erase.part nandfit; nand write ${fastboot_buffer} nandfit ${fastboot_bytes}; else true; fi; FB: ucmd nandbcb init ${fastboot_buffer} nandboot ${fastboot_bytes} FB: Done
and using sudo uuu -b nand_spl.lst SPL u-boot-dtb.img u-boot-with-spl.imx
I need to arrange the UBOOT_OFFS and OFFS_REDUNT position to take into account the padding of 0x11000 and the two copies of nandbcb tools.
Do you know how others are flashing nand on the imx6 family?
Michael
On Mon, Jul 4, 2022 at 1:00 PM Michael Nazzareno Trimarchi michael@amarulasolutions.com wrote:
Hi Fabio and Marek
Trying to understand the reason why I can boot using imx_usb loader and not the uuu tool
If I do:
./imx_usb SPL ./imx_usb u-boot-dtb.img
It works
U-Boot SPL 2022.07-rc5-00075-g01d253835a-dirty (Jul 04 2022 - 12:39: 11 +0200)
SPL: board_init_r()
spl_init Trying to boot from USB SDP SDP: initialize... SDP: handle requests... Downloading file of size 594824 to 0x877fffc0... done Jumping to header at 0x877fffc0 Header Tag is not an IMX image Found header at 0x877fffc0 image entry point: 0x87800000
U-Boot 2022.07-rc5-00075-g01d253835a-dirty (Jul 04 2022 - 12:39:11 + 0200)
CPU: Freescale i.MX6ULL rev1.1 528 MHz (running at 396 MHz) CPU: Commercial temperature grade (0C to 95C) at 37C Reset cause: POR Model: BSH SMM M2 DRAM: 128 MiB Core: 29 devices, 14 uclasses, devicetree: separate NAND: 256 MiB MMC: FSL_SDHC: 1 Loading Environment from NAND... *** Warning - bad CRC, using defaul t environment
In: serial@21f0000 Out: serial@21f0000 Err: serial@21f0000 Net: CPU Net Initialization Failed No ethernet found. Hit any key to stop autoboot
If I tried with the combined image using uuu it does not work like that.
U-Boot SPL 2022.07-rc5-00075-g01d253835a-dirty (Jul 04 2022 - 12:39: 11 +0200)
SPL: board_init_r()
spl_init Trying to boot from USB SDP SDP: initialize... SDP: handle requests... Downloading file of size 594824 to 0x877fffc0... done Jumping to header at 0x877fffc0 Header Tag is not an IMX image Found header at 0x877fffc0 image entry point: 0x87800000
Any idea?
Michael

On 7/4/2022 7:00 PM, Michael Nazzareno Trimarchi wrote:
Hi Fabio and Marek
Trying to understand the reason why I can boot using imx_usb loader and not the uuu tool
How do you use uuu? uuu -b sd flash.bin?
Regards, Peng.
If I do:
./imx_usb SPL ./imx_usb u-boot-dtb.img
It works
U-Boot SPL 2022.07-rc5-00075-g01d253835a-dirty (Jul 04 2022 - 12:39: 11 +0200)
SPL: board_init_r()
spl_init Trying to boot from USB SDP SDP: initialize... SDP: handle requests... Downloading file of size 594824 to 0x877fffc0... done Jumping to header at 0x877fffc0 Header Tag is not an IMX image Found header at 0x877fffc0 image entry point: 0x87800000
U-Boot 2022.07-rc5-00075-g01d253835a-dirty (Jul 04 2022 - 12:39:11 + 0200)
CPU: Freescale i.MX6ULL rev1.1 528 MHz (running at 396 MHz) CPU: Commercial temperature grade (0C to 95C) at 37C Reset cause: POR Model: BSH SMM M2 DRAM: 128 MiB Core: 29 devices, 14 uclasses, devicetree: separate NAND: 256 MiB MMC: FSL_SDHC: 1 Loading Environment from NAND... *** Warning - bad CRC, using defaul t environment
In: serial@21f0000 Out: serial@21f0000 Err: serial@21f0000 Net: CPU Net Initialization Failed No ethernet found. Hit any key to stop autoboot
If I tried with the combined image using uuu it does not work like that.
U-Boot SPL 2022.07-rc5-00075-g01d253835a-dirty (Jul 04 2022 - 12:39: 11 +0200)
SPL: board_init_r()
spl_init Trying to boot from USB SDP SDP: initialize... SDP: handle requests... Downloading file of size 594824 to 0x877fffc0... done Jumping to header at 0x877fffc0 Header Tag is not an IMX image Found header at 0x877fffc0 image entry point: 0x87800000
Any idea?
Michael

Hi
On Tue, Jul 5, 2022 at 3:20 AM Peng Fan peng.fan@oss.nxp.com wrote:
On 7/4/2022 7:00 PM, Michael Nazzareno Trimarchi wrote:
Hi Fabio and Marek
Trying to understand the reason why I can boot using imx_usb loader and not the uuu tool
How do you use uuu? uuu -b sd flash.bin?
sudo uuu -b nand u-boot-with-spl.imx
U-Boot SPL 2022.07-rc5-00075-gf7d0e40577-dirty (Jul 05 2022 - 06:29)
SPL: board_init_r()
spl_init Trying to boot from USB SDP SDP: initialize... SDP: handle requests... Downloading file of size 624512 to 0x877fffc0... done Jumping to header at 0x877fffc0 Header Tag is not an IMX image Found header at 0x877fffc0 mkimage signature not found - ih_magic = 0 image entry point: 0x87800000
Does not depend on SDP_ADDRESS even because default has no sense now is 0. I have chosen TEXT_BASE - HEADERSIZE
Michael
Regards, Peng.
If I do:
./imx_usb SPL ./imx_usb u-boot-dtb.img
It works
U-Boot SPL 2022.07-rc5-00075-g01d253835a-dirty (Jul 04 2022 - 12:39: 11 +0200)
SPL: board_init_r()
spl_init Trying to boot from USB SDP SDP: initialize... SDP: handle requests... Downloading file of size 594824 to 0x877fffc0... done Jumping to header at 0x877fffc0 Header Tag is not an IMX image Found header at 0x877fffc0 image entry point: 0x87800000
U-Boot 2022.07-rc5-00075-g01d253835a-dirty (Jul 04 2022 - 12:39:11 + 0200)
CPU: Freescale i.MX6ULL rev1.1 528 MHz (running at 396 MHz) CPU: Commercial temperature grade (0C to 95C) at 37C Reset cause: POR Model: BSH SMM M2 DRAM: 128 MiB Core: 29 devices, 14 uclasses, devicetree: separate NAND: 256 MiB MMC: FSL_SDHC: 1 Loading Environment from NAND... *** Warning - bad CRC, using defaul t environment
In: serial@21f0000 Out: serial@21f0000 Err: serial@21f0000 Net: CPU Net Initialization Failed No ethernet found. Hit any key to stop autoboot
If I tried with the combined image using uuu it does not work like that.
U-Boot SPL 2022.07-rc5-00075-g01d253835a-dirty (Jul 04 2022 - 12:39: 11 +0200)
SPL: board_init_r()
spl_init Trying to boot from USB SDP SDP: initialize... SDP: handle requests... Downloading file of size 594824 to 0x877fffc0... done Jumping to header at 0x877fffc0 Header Tag is not an IMX image Found header at 0x877fffc0 image entry point: 0x87800000
Any idea?
Michael
-- Michael Nazzareno Trimarchi Co-Founder & Chief Executive Officer M. +39 347 913 2170 michael@amarulasolutions.com __________________________________
Amarula Solutions BV Joop Geesinkweg 125, 1114 AB, Amsterdam, NL T. +31 (0)85 111 9172 info@amarulasolutions.com www.amarulasolutions.com

Hi Peng
On Tue, Jul 5, 2022 at 6:44 AM Michael Nazzareno Trimarchi michael@amarulasolutions.com wrote:
Hi
On Tue, Jul 5, 2022 at 3:20 AM Peng Fan peng.fan@oss.nxp.com wrote:
On 7/4/2022 7:00 PM, Michael Nazzareno Trimarchi wrote:
Hi Fabio and Marek
Trying to understand the reason why I can boot using imx_usb loader and not the uuu tool
How do you use uuu? uuu -b sd flash.bin?
sudo uuu -b nand u-boot-with-spl.imx
U-Boot SPL 2022.07-rc5-00075-gf7d0e40577-dirty (Jul 05 2022 - 06:29)
SPL: board_init_r()
spl_init Trying to boot from USB SDP SDP: initialize... SDP: handle requests... Downloading file of size 624512 to 0x877fffc0... done Jumping to header at 0x877fffc0 Header Tag is not an IMX image Found header at 0x877fffc0 mkimage signature not found - ih_magic = 0 image entry point: 0x87800000
Does not depend on SDP_ADDRESS even because default has no sense now is 0. I have chosen TEXT_BASE - HEADERSIZE
I have made some change on lst and now I can flash much better
from nand standard I must
change this one
These commands will be run when use SPL and will be skipped if no spl # if (SPL support SDPV) # { SDPV: delay 1000 SDPV: write -f _flash.bin -skipspl SDPV: jump # }
To
These commands will be run when use SPL and will be skipped if no spl # if (SPL support SDPV) # { SDPV: delay 1000 SDPV: write -f _flash.bin -offset 0x11000 SDPV: jump # }
then I need to use SDP_ADDRESS
CONFIG_SDP_LOADADDR=0x877fffc0
0x110000 is the padding on mkimage
After that I can boot using
sudo uuu -v -b nand_test.lst u-boot-with-spl.imx
Michael
Michael
Michael
Regards, Peng.
If I do:
./imx_usb SPL ./imx_usb u-boot-dtb.img
It works
U-Boot SPL 2022.07-rc5-00075-g01d253835a-dirty (Jul 04 2022 - 12:39: 11 +0200)
SPL: board_init_r()
spl_init Trying to boot from USB SDP SDP: initialize... SDP: handle requests... Downloading file of size 594824 to 0x877fffc0... done Jumping to header at 0x877fffc0 Header Tag is not an IMX image Found header at 0x877fffc0 image entry point: 0x87800000
U-Boot 2022.07-rc5-00075-g01d253835a-dirty (Jul 04 2022 - 12:39:11 + 0200)
CPU: Freescale i.MX6ULL rev1.1 528 MHz (running at 396 MHz) CPU: Commercial temperature grade (0C to 95C) at 37C Reset cause: POR Model: BSH SMM M2 DRAM: 128 MiB Core: 29 devices, 14 uclasses, devicetree: separate NAND: 256 MiB MMC: FSL_SDHC: 1 Loading Environment from NAND... *** Warning - bad CRC, using defaul t environment
In: serial@21f0000 Out: serial@21f0000 Err: serial@21f0000 Net: CPU Net Initialization Failed No ethernet found. Hit any key to stop autoboot
If I tried with the combined image using uuu it does not work like that.
U-Boot SPL 2022.07-rc5-00075-g01d253835a-dirty (Jul 04 2022 - 12:39: 11 +0200)
SPL: board_init_r()
spl_init Trying to boot from USB SDP SDP: initialize... SDP: handle requests... Downloading file of size 594824 to 0x877fffc0... done Jumping to header at 0x877fffc0 Header Tag is not an IMX image Found header at 0x877fffc0 image entry point: 0x87800000
Any idea?
Michael
-- Michael Nazzareno Trimarchi Co-Founder & Chief Executive Officer M. +39 347 913 2170 michael@amarulasolutions.com __________________________________
Amarula Solutions BV Joop Geesinkweg 125, 1114 AB, Amsterdam, NL T. +31 (0)85 111 9172 info@amarulasolutions.com www.amarulasolutions.com
-- Michael Nazzareno Trimarchi Co-Founder & Chief Executive Officer M. +39 347 913 2170 michael@amarulasolutions.com __________________________________
Amarula Solutions BV Joop Geesinkweg 125, 1114 AB, Amsterdam, NL T. +31 (0)85 111 9172 info@amarulasolutions.com www.amarulasolutions.com
participants (2)
-
Michael Nazzareno Trimarchi
-
Peng Fan