@umiddelb
when, in u-boot, I do these steps…
setenv kernel_loadaddr "0x11000000"
setenv dtb_loadaddr "0x1000000"
setenv initrd_loadaddr "0x13000000"
setenv env_loadaddr "0x20000000"
setenv boot_start booti ${kernel_loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}
ext4load mmc 1:5 ${kernel_loadaddr} boot/kernel.d/linux-5.3.0-rc5-gx-gfce02bef9/Image
ext4load mmc 1:5 ${initrd_loadaddr} boot/kernel.d/linux-5.3.0-rc5-gx-gfce02bef9/uInitrd
ext4load mmc 1:5 ${dtb_loadaddr} boot/kernel.d/linux-5.3.0-rc5-gx-gfce02bef9/meson-gxl-s905x-khadas-vim.dtb
run boot_start
then I cannot boot the kernel, it is stuck w/these messages :
kvim#run boot_start
[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory
Usage:
rsvmem check - check reserved memory
rsvmem dump - dump reserved memory
rsvmem check failed
## Loading init Ramdisk from Legacy Image at 13000000 ...
Image Name: initrd-5.3.0-rc5-gx-gfce02bef9.i
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 14432998 Bytes = 13.8 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
load dtb from 0x1000000 ......
## Flattened Device Tree blob at 01000000
Booting using the fdt blob at 0x1000000
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
[rsvmem] fdt get prop fail.
Loading Ramdisk to 730d7000, end 73e9aae6 ... OK
Loading Device Tree to 000000001fff6000, end 000000001ffff731 ... OK
fdt_instaboot: no instaboot image
Starting kernel ...
uboot time: 66683731 us
domain-0 init dvfs: 4
Do you have any clue why please ? tks
or anyone else’ response welcome as usual !
EDIT : in facts it starts to boot, but $bootargs was not set and thus console did not print its usual traces on the serial port!
so I set those additionnal vars:
> setenv condev "console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0"
> setenv rootdev "LABEL=ROOTFS"
> setenv bootargs "root=${rootdev} rootflags=data=writeback rw ${condev} fsck.repair=yes net.ifnames=0 jtag=disable"
before runing booti
and then I could see …
Starting kernel …
uboot time: 645837623 us
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.3.0-rc5-gx-gfce02bef9 (khadas@Khadas) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)) #2 SMP Tue Aug 20 02:00:52 CST 2019
[ 0.000000] Machine model: Khadas VIM
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000063000000, size 256 MiB
etc…
but again, it gets stuck at :
…
[ 6.964267] xor: measuring software checksum speed
[ 7.056444] 8regs : 2716.800 MB/sec
[ 7.156438] 32regs : 3339.600 MB/sec
[ 7.256438] arm64_neon: 2987.600 MB/sec
[ 7.256457] xor: using function: 32regs (3339.600 MB/sec)
[ 7.295203] Btrfs loaded, crc32c=crc32c-generic
maybe a matter of ROOTFS not getting mounted ?