SAMA5D3 hangs at Uncompressing Linux... done, booting the ke

Moderator: nferre

sector
Posts: 12
Joined: Wed Mar 23, 2016 1:29 pm

SAMA5D3 hangs at Uncompressing Linux... done, booting the ke

Wed Mar 23, 2016 2:07 pm

Dear all,

I have built the kernel for my sama5d3 xplained, but when I try to boot it, it hangs like you can see below:

Code: Select all

AT91Bootstrap 3.6.1-00078-g5415d4e (Tue Feb  4 15:36:46 CET 2014)

NAND: ONFI flash detected
NAND: Manufacturer ID: 0x2c Chip ID: 0x32
NAND: Disable On-Die ECC
NAND: Initialize PMECC params, cap: 0x4, sector: 0x200
NAND: Image: Copy 0x80000 bytes from 0x40000 to 0x26f00000
NAND: Done to load image


U-Boot 2013.07 (Feb 04 2014 - 15:36:32)

CPU: SAMA5D36
Crystal frequency:       12 MHz
CPU clock        :      528 MHz
Master clock     :      132 MHz
DRAM:  256 MiB
NAND:  256 MiB
MMC:   mci: 0, mci: 1
In:    serial
Out:   serial
Err:   serial
Net:   gmac0
Warning: failed to set MAC address
, macb0
Warning: failed to set MAC address

Hit any key to stop autoboot:  0 

NAND read: device 0 offset 0x180000, size 0x5047
 20551 bytes read: OK

NAND read: device 0 offset 0x200000, size 0x375fa8
 3628968 bytes read: OK
Kernel image @ 0x22000000 [ 0x000000 - 0x375fa8 ]
## Flattened Device Tree blob at 21000000
   Booting using the fdt blob at 0x21000000
   Loading Device Tree to 2bb12000, end 2bb1a046 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
After, there are no more messages

Any idea to solve it?

Thank you
blue_z
Location: USA
Posts: 2095
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAMA5D3 hangs at Uncompressing Linux... done, booting th

Thu Mar 24, 2016 8:35 pm

The good news is that you're using a verbose kernel (i.e. a message that indicates uncompression has completed), and the kernel should have actually began execution.
So you can use the earlyprintk feature to debug this further.
You'll have to use `make menuconfig` to enable this feature (activated by low-level debug), and insert the earlyprintk parameter into the kernel command line (via the U-Boot bootargs variable).

Regards
sector
Posts: 12
Joined: Wed Mar 23, 2016 1:29 pm

Re: SAMA5D3 hangs at Uncompressing Linux... done, booting th

Wed Mar 30, 2016 3:47 pm

Thank you blue_z for your help.

I have used earlyprintk like you said and this is the result:

Code: Select all

Booting Linux on physical CPU 0x0
Linux version 4.1.0-linux4sam_5.2-00025-g1028912-dirty (miguel@miguel-Lenovo-G50-70) (gcc version 4.9.3 20141031 (prerelease) (Linaro GCC 2014.11) ) #1 Wed Mar 30 15:20:33 CEST 2016
CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: SAMA5D3 Xplained
bootconsole [earlycon0] enabled
cma: Reserved 16 MiB at 0x2f000000
Memory policy: Data cache writeback
CPU: All CPU(s) started in SVC mode.
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: earlyprintk
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 236208K/262144K available (4974K kernel code, 179K rwdata, 1600K rodata, 192K init, 159K bss, 9552K reserved, 16384K cma-reserved)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc0673cb0   (6576 kB)
      .init : 0xc0674000 - 0xc06a4000   ( 192 kB)
      .data : 0xc06a4000 - 0xc06d0d18   ( 180 kB)
       .bss : 0xc06d0d18 - 0xc06f8b88   ( 160 kB)
NR_IRQS:16 nr_irqs:16 16
Kernel panic - not syncing: Could not retrieve syscon regmap
CPU: 0 PID: 0 Comm: swapper Not tainted 4.1.0-linux4sam_5.2-00025-g1028912-dirty #1
Hardware name: Atmel SAMA5
[<c0013f60>] (unwind_backtrace) from [<c0011e98>] (show_stack+0x10/0x14)
[<c0011e98>] (show_stack) from [<c04bac9c>] (panic+0x8c/0x1e0)
[<c04bac9c>] (panic) from [<c069116c>] (of_at91_pmc_setup+0x3c/0x168)
[<c069116c>] (of_at91_pmc_setup) from [<c0690f64>] (of_clk_init+0x100/0x18c)
[<c0690f64>] (of_clk_init) from [<c0678108>] (time_init+0x24/0x2c)
[<c0678108>] (time_init) from [<c0674b00>] (start_kernel+0x244/0x378)
[<c0674b00>] (start_kernel) from [<20008078>] (0x20008078)
---[ end Kernel panic - not syncing: Could not retrieve syscon regmap
Do you know how to solve it?
Thank you very much

Regards
blue_z
Location: USA
Posts: 2095
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAMA5D3 hangs at Uncompressing Linux... done, booting th

Wed Mar 30, 2016 8:10 pm

The stack trace indicates that the panic was invoked by of_at91_pmc_setup(), which (by its of_ prefix) would be a routine retrieving Device Tree configuration info.
Are you using the dtb compiled from this kernel version?
FWIW I've built the Linux4SAM ver. 5.2 release (but not a github pull) without any issues.

Regards
sector
Posts: 12
Joined: Wed Mar 23, 2016 1:29 pm

Re: SAMA5D3 hangs at Uncompressing Linux... done, booting th

Thu Mar 31, 2016 10:51 am

Thank you so so much blue_z, it was that. I was using another dtb.

But now I realize that this kernel doesn't include video utilities I need like ffmpeg or gstreamer. I am trying to build one which has, but I get an error that I explain in this post: discussions/viewtopic.php/f,33/t,25342.html

Do you know how to solve it?
Thank you very much

Regards

Return to “SAMA5-based”

Who is online

Users browsing this forum: No registered users and 1 guest