Skip to content

boot linux wrong #1

@n1ptune

Description

@n1ptune

when i try to run Functionality Prototype on FVP, i got trouble in booting linux image.I build linux by default config. BL31 and BL32 are working fine.

U-Boot 2019.07-rc4-00001-gc17c4a2963-dirty (Sep 29 2022 - 20:25:47 +0800) vexpress_aemv8a fvp aarch64 semi

DRAM:  2 GiB
Flash: 64 MiB
*** Warning - bad CRC, using default environment

In:    serial_pl01x
Out:   serial_pl01x
Err:   serial_pl01x
Net:   SMC91111-0
Hit any key to stop autoboot:  0 
smh_open: ERROR fd -1 for file 'devtree.dtb'
semihosting load failed, try booting with contents of DRAM
## Loading init Ramdisk from Legacy Image at 84000000 ...
   Image Name:   Dummy ramdisk
   Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
   Data Size:    512 Bytes = 512 Bytes
   Load Address: 84000000
   Entry Point:  84000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 82000000
   Booting using the fdt blob at 0x82000000
   Using Device Tree in place at 0000000082000000, end 0000000082005bbb

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd0f0]
[    0.000000] Linux version 5.3.0 (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11)) #1 SMP PREEMPT Thu Jul 18 15:59:17 CST 2024
[    0.000000] Machine model: FVP Base
[    0.000000] earlycon: pl11 at MMIO 0x000000001c090000 (options '')
[    0.000000] printk: bootconsole [pl11] enabled
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created DMA memory pool at 0x0000000018000000, size 8 MiB
[    0.000000] OF: reserved mem: initialized node vram@18000000, compatible id shared-dma-pool
[    0.000000] cma: Reserved 1024 MiB at 0x0000000084400000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x00000000feffffff]
[    0.000000] NUMA: NODE_DATA [mem 0xfed28840-0xfed29fff]
[    0.000000] SError Interrupt on CPU0, code 0xbe000000 -- SError
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.3.0 #1
[    0.000000] Hardware name: FVP Base (DT)
[    0.000000] pstate: 20000089 (nzCv daIf -PAN -UAO)
[    0.000000] pc : __memset+0x16c/0x188
[    0.000000] lr : vmemmap_alloc_block_zero.constprop.1+0x2c/0x3c
[    0.000000] sp : ffff000011c13d30
[    0.000000] x29: ffff000011c13d30 x28: 000000000000000a 
[    0.000000] x27: ffff80007ed255c0 x26: ffff7e0000000000 
[    0.000000] x25: ffff7e0000ffffff x24: 00000000ff0ffff0 
[    0.000000] x23: 0000000000f0000f x22: ffff7e0001000000 
[    0.000000] x21: ffff000011485000 x20: ffff0000114857e0 
[    0.000000] x19: ffff80007cd24000 x18: ffffffffffffffff 
[    0.000000] x17: 0000000000000001 x16: 0000000000000000 
[    0.000000] x15: ffff000011c196c8 x14: 00000000fed2a300 
[    0.000000] x13: 0000000400000000 x12: 000000000000002f 
[    0.000000] x11: 00000000fed2a2d0 x10: 0000000400000000 
[    0.000000] x9 : 0000000000000000 x8 : ffff80007cd24400 
[    0.000000] x7 : 0000000000000000 x6 : 00000000000003ff 
[    0.000000] x5 : 0000000000000400 x4 : 0000000000000000 
[    0.000000] x3 : 0000000000000008 x2 : 0000000000000800 
[    0.000000] x1 : 0000000000000000 x0 : ffff80007cd24000 
[    0.000000] Kernel panic - not syncing: Asynchronous SError Interrupt
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.3.0 #1
[    0.000000] Hardware name: FVP Base (DT)
[    0.000000] Call trace:
[    0.000000]  dump_backtrace+0x0/0x188
[    0.000000]  show_stack+0x24/0x30
[    0.000000]  dump_stack+0x9c/0xc4
[    0.000000]  panic+0x148/0x34c
[    0.000000]  __stack_chk_fail+0x0/0x28
[    0.000000]  arm64_serror_panic+0x80/0x90
[    0.000000]  do_serror+0x94/0x150
[    0.000000]  el1_error+0x84/0xf8
[    0.000000]  __memset+0x16c/0x188
[    0.000000]  vmemmap_pgd_populate+0x34/0xa4
[    0.000000]  vmemmap_populate+0x5c/0x1b4
[    0.000000]  __populate_section_memmap+0x44/0x6c
[    0.000000]  sparse_init_nid+0x1b0/0x328
[    0.000000]  sparse_init+0x1ac/0x1c4
[    0.000000]  bootmem_init+0x74/0xe8
[    0.000000]  setup_arch+0x1f0/0x5d0
[    0.000000]  start_kernel+0x90/0x510

did i use wrong u-boot or build linux wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions