Post Go back to editing

Stuck in "Starting kernel" using NFSBoot in SC598

Category: Software
Software Version: CCES2.11.0

I followed the procedure to build the bitbake source using this link.

In that i used the list of images for booting in SC598-Ezkit

adsp-sc5xx-full-adsp-sc598-som-ezkit.tar.xz
sc598-som-ezkit.dtb
fitImage
u-boot-proper-sc598-som-ezkit.elf
For booting i followed the same procedure using the link which attached above, When using the "run nfsboot"
it's loading the "fitImage" but after it's stuck in the "Starting kernel" for long time

This is my log

U-Boot 2020.10 (Sep 29 2022 - 07:08:35 +0000)

Model: ADI sc598-som-ezkit
       Watchdog enabled
I2C:   ready
DRAM:  224 MiB
MMC:   mmc@310C7000: 0
Loading Environment from SPIFlash...
SF: Detected is25lp512 with page size 256 Bytes, erase size 64 KiB, total 64 MiB
*** Warning - bad CRC, using default environment

In:    serial@0x31003000
Out:   serial@0x31003000
Err:   serial@0x31003000
Net:   eth0: eth@0x31040000
Hit any key to stop autoboot:  0
=> setenv serverip 172.21.3.17
=> setenv tftpserverip 172.21.3.17
=> run nfsboot
Speed: 1000, full duplex
Using eth@0x31040000 device
TFTP from server 172.21.3.17; our IP address is 172.21.3.8
Filename 'fitImage'.
Load address: 0x96000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###########################
         4 MiB/s
done
Bytes transferred = 13740714 (d1aaaa hex)
## Loading kernel from FIT Image at 96000000 ...
   Using 'conf@1' configuration
   Verifying Hash Integrity ... OK
   Trying 'kernel@1' kernel subimage
     Description:  Linux kernel
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x960000e4
     Data Size:    13711872 Bytes = 13.1 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x9a080000
     Entry Point:  0x9a080000
     Hash algo:    sha1
     Hash value:   d87ebed66571b550be1bec2d197a8c8facdc8268
     Sign algo:    sha1,rsa2048:
     Sign value:   unavailable
   Verifying Hash Integrity ... sha1+ sha1,rsa2048:- OK
## Loading fdt from FIT Image at 96000000 ...
   Using 'conf@1' configuration
   Verifying Hash Integrity ... OK
   Trying 'fdt@2' fdt subimage
     Description:  Flattened Device Tree Blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x96d13c1c
     Data Size:    26826 Bytes = 26.2 KiB
     Architecture: AArch64
     Load Address: 0x99000000
     Hash algo:    sha1
     Hash value:   793732ab2b23b686647256d9ab25cd44006a2ccb
     Sign algo:    sha1,rsa2048:
     Sign value:   unavailable
   Verifying Hash Integrity ... sha1+ sha1,rsa2048:- OK
   Loading fdt from 0x96d13c1c to 0x99000000
   Booting using the fdt blob at 0x99000000
   Loading Kernel Image
   Using Device Tree in place at 0000000099000000, end 00000000990098c9

Starting kernel ...

This is the log of setup environments

=> printenv
addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:eth0:off
autoload=no
baudrate=115200
bootargs=root=/dev/nfs rw nfsroot=172.16.4.177:/romfs,tcp,nfsvers=3 earlycon=adi_uart,0x31003000 console=ttySC0,115200 ip=172.21.3.8:172.16.4.177:172.21.2.1:255.255.254.0:sc59x:eth0:off
bootcmd=run qspiboot
bootdelay=2
bootfile=EFI\\Boot\\bootx64.efi
dnsip=172.16.10.100
dtbaddr=0x99000000
dtbfile=sc598-som-ezkit.dtb
dtbsize=0x20000
emmc_boot=run emmcargs; bootm;
emmc_boot_sc598=run emmcload; run emmc_boot
emmc_setup_falcon=run emmcargs; mmc read ${loadaddr} 0x800 0x100; fdt addr ${loadaddr}; fdt resize 0x10000; fdt boardsetup; fdt chosen; mmc erase 0x800 0x400; mmc write ${loadaddr} 0x800 0x100
emmcargs=setenv bootargs root=/dev/mmcblk0p1 rootfstype=ext4 rootwait earlycon=adi_uart,0x31003000 console=ttySC0,115200
emmcboot=run emmc_boot_sc598
emmcload=ext4load mmc 0:1 ${loadaddr} /boot/fitImage;
ethact=eth@0x31040000
ethaddr=02:80:ad:20:31:e8
fdt_high=0xFFFFFFFFFFFFFFFF
fdtcontroladdr=9dfce4d0
gatewayip=172.21.2.1
hostname=sc59x
imagefile=fitImage
imagesize=0xF00000
init_ethernet=mii info; dhcp; setenv serverip ${tftpserverip};
initramaddr=0x9c000000
initramfile=ramdisk.cpio.xz.u-boot
initramfs_file=initramfs.cpio.gz.uboot
initrd_high=0xFFFFFFFFFFFFFFFF
ipaddr=172.21.3.8
loadaddr=0x96000000
loads_echo=1
nc=setenv ncip ${serverip};setenv stdin nc;setenv stdout nc;setenv stderr nc
netmask=255.255.254.0
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath},tcp,nfsvers=3 earlycon=adi_uart,0x31003000 console=ttySC0,115200
nfsboot=tftp ${loadaddr} ${nfsfile};run nfsargs;run addip;bootm ${loadaddr};
nfsfile=fitImage
norboot=tftp ${loadaddr} ${ramfile};run ramargs;run addip;bootm ${loadaddr};
ospi_boot_sc598=run ospiargs; sf probe ${sfdev};sf read ${loadaddr} 0x160000 ${imagesize}; bootm ${loadaddr};
ospiargs=setenv bootargs root=/dev/mtdblock4 rootfstype=jffs2 earlycon=adi_uart,0x31003000 console=ttySC0,115200
ospiboot=run ospi_boot_sc598
qspi_boot_sc598=run qspiargs; sf probe ${sfdev};sf read ${loadaddr} 0x160000 ${imagesize}; bootm ${loadaddr};
qspiargs=setenv bootargs root=/dev/mtdblock4 rootfstype=jffs2 earlycon=adi_uart,0x31003000 console=ttySC0,115200
qspiboot=run qspi_boot_sc598
ramargs=setenv bootargs root=/dev/mtdblock2 rw rootfstype=jffs2 earlycon=adi_uart,0x31003000 console=ttySC0,115200
ramboot=run init_ethernet; tftp ${loadaddr} ${ramfile}; tftp ${initramaddr} ${initramfile}; run ramargs; bootm ${loadaddr} ${initramaddr}
ramboot_emmc=mmc rescan;mmc dev 0 0;ext2load mmc 0:1 ${loadaddr} /boot/${ramfile};ext2load mmc 0:1 ${initramaddr} /boot/${initramfile};run sdcardargs;run addip;bootm ${loadaddr} ${initramaddr};
ramfile=fitImage
rfsfile=adsp-sc5xx-minimal-adsp-sc598-som-ezkit.jffs2
rootpath=/romfs
sdcardargs=setenv bootargs root=/dev/mmcblk0p1 rw earlycon=adi_uart,0x31003000 console=ttySC0,115200
sdcardboot=mmc rescan;mmc dev 0 0;ext2load mmc 0:1 ${loadaddr} /boot/${ramfile};run sdcardargs;bootm ${loadaddr};
serveraddr=54:86:bc:85:1a:50
serverip=172.21.3.17
stage1file=stage1-boot.ldr
stage2file=stage2-boot.ldr
stderr=serial@0x31003000
stdin=serial@0x31003000
stdout=serial@0x31003000
tftpserverip=172.21.3.17
ubootfile=u-boot-sc598-som-ezkit.ldr
update=tftp ${loadaddr} ${ubootfile};
update_emmc_sc598=setenv bootcmd 'run emmcboot'; saveenv; run ramboot
update_ospi_sc598=setenv sfdev 0:0; setenv sfsize 0x4000000; setenv bootcmd 'run ospiboot'; setenv argscmd ospiargs; run update_spi_sc598;
update_qspi_sc598=setenv sfdev 2:1; setenv sfsize 0x4000000; setenv bootcmd 'run qspiboot'; setenv argscmd qspiargs; run update_spi_sc598;
update_spi_fit=tftp ${loadaddr} ${imagefile}; sf probe ${sfdev}; sf write ${loadaddr} 0x160000 ${filesize}; setenv imagesize ${filesize};
update_spi_image=tftp ${loadaddr} ${imagefile}; sf probe ${sfdev}; sf write ${loadaddr} 0x100000 ${filesize}; setenv imagesize ${filesize};
update_spi_rfs=tftp ${loadaddr} ${rfsfile}; sf probe ${sfdev}; sf write ${loadaddr} 0x1000000 ${filesize};
update_spi_sc598=run init_ethernet; sf probe ${sfdev}; sf erase 0 ${sfsize}; run update_spi_uboot; run update_spi_fit; run update_spi_rfs; sleep 3; saveenv
update_spi_uboot=run update_spi_uboot_stage1; run update_spi_uboot_stage2;
update_spi_uboot_stage1=tftp ${loadaddr} ${stage1file}; sf probe ${sfdev}; sf write ${loadaddr} 0x0 ${filesize};
update_spi_uboot_stage2=tftp ${loadaddr} ${stage2file}; sf probe ${sfdev}; sf write ${loadaddr} 0x20000 ${filesize};