Re: [U-Boot] CycloneV kernel hang with big zImage over tftpboot

2018-11-02 Thread Clément Péron
Hi Marek,

On Fri, 2 Nov 2018 at 14:23, Marek Vasut  wrote:
>
> On 11/02/2018 02:10 PM, Clément Péron wrote:
> > Hi,
>
> Hi,
>
> > I'm on top of U-Boot 2018.11-rc3 and try to boot using TFTP to load a
> > Kernel 4.9.130
> > My board is a custom SoCFPGA CycloneV with 512MiB and I try to load :
> > -zImage (kernel + rootfs) @ 0x100 (the size is around 29MiB kernel
> > is compressed with gzip)
> > -DeviceTree @ 0x1800
>
> Doesn't the kernel overwrite itself while decompressing ? Or maybe it
> overwrites the DT ?

That's why I thought also but I tried to move the DT at end of DDR
0x1E00 and at the middle 0x1000 but same issue.
And maybe I'm wrong but if I remember correctly as my Kernel is also
build with the ATAG parameters fallback and I have the earlyprintk
enabled the error should be something like this :

# Starting kernel ...
# Uncompressing Linux... done, booting the kernel.
# Error: unrecognized/unsupported machine ID (r1 = ???).

(This is an issue I have already encountered with a previous board
here https://lists.denx.de/pipermail/u-boot/2018-February/321031.html)

I tried also to load the kernel @1000 and DT @1800 but still
stuck at "Starting kernel ..."

I will try to boot a more recent kernel and see if this still happen.

Thanks,
Clement



>
> > The SDRAM should be mapped from 0x0 to 0x1FFF
> >
> > But the boot of big zImage makes the kernel hang.
> > I have enabled the earlycon and earlyprintk and the boot stop at
> > # Starting kernel ...
> >
> > I tried to increase the CONFIG_SYS_BOOTMAPSZ to 128MiB but didn't change
> >
> > Do you have any clue on what's going wrong here ?
> >
> > Thanks,
> > Clement
> >
> > Log when I boot a big zImage :
> >
> > U-Boot SPL 2018.11-rc3_3.0.0-00030-gcbcb645514-dirty (Oct 31 2018 -
> > 15:21:25 +0100)
> > Trying to boot from SPI
> >
> >
> > U-Boot 2018.11-rc3_3.0.0-00030-gcbcb645514-dirty (Oct 31 2018 - 15:21:25 
> > +0100)
> >
> > CPU:   Altera SoCFPGA Platform
> > FPGA:  Altera Cyclone V, SE/A4 or SX/C4, version 0x0
> > BOOT:  QSPI Flash (3.0V)
> > DRAM:  512 MiB
> > MMC:   dwmmc0@ff704000: 0
> > Loading Environment from MMC... OK
> > In:serial1@ffc03000
> > Out:   serial1@ffc03000
> > Err:   serial1@ffc03000
> > Net:
> > Warning: ethernet@ff702000 (eth0) using random MAC address - 
> > 7c:c4:ef:00:06:e5
> > eth0: ethernet@ff702000
> > Hit any key to stop autoboot:  0
> > Booting debug
> > Speed: 1000, full duplex
> > BOOTP broadcast 1
> > BOOTP broadcast 2
> > BOOTP broadcast 3
> > BOOTP broadcast 4
> > DHCP client bound to address 192.168.1.146 (3016 ms)
> > Speed: 1000, full duplex
> > 192.168.1.4
> > Speed: 1000, full duplex
> > Using ethernet@ff702000 device
> > TFTP from server 192.168.1.4; our IP address is 192.168.1.146
> > Filename '/boot/zImage'.
> > Load address: 0x100
> > Loading: #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  #
> >  

Re: [U-Boot] CycloneV kernel hang with big zImage over tftpboot

2018-11-02 Thread Marek Vasut
On 11/02/2018 02:10 PM, Clément Péron wrote:
> Hi,

Hi,

> I'm on top of U-Boot 2018.11-rc3 and try to boot using TFTP to load a
> Kernel 4.9.130
> My board is a custom SoCFPGA CycloneV with 512MiB and I try to load :
> -zImage (kernel + rootfs) @ 0x100 (the size is around 29MiB kernel
> is compressed with gzip)
> -DeviceTree @ 0x1800

Doesn't the kernel overwrite itself while decompressing ? Or maybe it
overwrites the DT ?

> The SDRAM should be mapped from 0x0 to 0x1FFF
> 
> But the boot of big zImage makes the kernel hang.
> I have enabled the earlycon and earlyprintk and the boot stop at
> # Starting kernel ...
> 
> I tried to increase the CONFIG_SYS_BOOTMAPSZ to 128MiB but didn't change
> 
> Do you have any clue on what's going wrong here ?
> 
> Thanks,
> Clement
> 
> Log when I boot a big zImage :
> 
> U-Boot SPL 2018.11-rc3_3.0.0-00030-gcbcb645514-dirty (Oct 31 2018 -
> 15:21:25 +0100)
> Trying to boot from SPI
> 
> 
> U-Boot 2018.11-rc3_3.0.0-00030-gcbcb645514-dirty (Oct 31 2018 - 15:21:25 
> +0100)
> 
> CPU:   Altera SoCFPGA Platform
> FPGA:  Altera Cyclone V, SE/A4 or SX/C4, version 0x0
> BOOT:  QSPI Flash (3.0V)
> DRAM:  512 MiB
> MMC:   dwmmc0@ff704000: 0
> Loading Environment from MMC... OK
> In:serial1@ffc03000
> Out:   serial1@ffc03000
> Err:   serial1@ffc03000
> Net:
> Warning: ethernet@ff702000 (eth0) using random MAC address - 7c:c4:ef:00:06:e5
> eth0: ethernet@ff702000
> Hit any key to stop autoboot:  0
> Booting debug
> Speed: 1000, full duplex
> BOOTP broadcast 1
> BOOTP broadcast 2
> BOOTP broadcast 3
> BOOTP broadcast 4
> DHCP client bound to address 192.168.1.146 (3016 ms)
> Speed: 1000, full duplex
> 192.168.1.4
> Speed: 1000, full duplex
> Using ethernet@ff702000 device
> TFTP from server 192.168.1.4; our IP address is 192.168.1.146
> Filename '/boot/zImage'.
> Load address: 0x100
> Loading: #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>  #
>