uuu using u-boot-with-spl.imx

Michael Nazzareno Trimarchi michael at amarulasolutions.com
Tue Jul 5 07:36:21 CEST 2022


Hi Peng

On Tue, Jul 5, 2022 at 6:44 AM Michael Nazzareno Trimarchi
<michael at amarulasolutions.com> wrote:
>
> Hi
>
>
> On Tue, Jul 5, 2022 at 3:20 AM Peng Fan <peng.fan at 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 at 21f0000
> > > Out:   serial at 21f0000
> > > Err:   serial at 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 at amarulasolutions.com
> __________________________________
>
> Amarula Solutions BV
> Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
> T. +31 (0)85 111 9172
> info at amarulasolutions.com
> www.amarulasolutions.com



--
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
michael at amarulasolutions.com
__________________________________

Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
info at amarulasolutions.com
www.amarulasolutions.com


More information about the U-Boot mailing list