Hello,
I've encountered a Kernel Panic error after modifying the UBOOT config and re-flashing an SD card for the LS1028ARDB. Here are the steps I took:
1. In Linux, modified ls1028ardb_tfa_defconfig and re-built the image with flex-builder:
flex-builder -c firmware -m ls1028ardb -b sd
flex-builder -i mkfw -m ls1043ardb -b sd
2. In Windows, combined the partition table with the new firmware image:
copy /b sd_pt_4k.img + firmware_ls1028ardb_sdboot.img firmware_ls1028ardb_sdboot_4k.img
3. Used DD for Windows to flash the image to an SD card
4. Put the SD card in the LS1028ARDB and ran the following after interrupting autoboot:
run_sdbootcmd
This is the boot output I'm seeing in the serial console:
U-Boot 2021.04-dirty (Dec 20 2024 - 10:47:12 -0800)
SoC: LS1028AE Rev1.0 (0x870b0010)
Clock Configuration:
CPU0(A72):1500 MHz CPU1(A72):1500 MHz
Bus: 400 MHz DDR: 1600 MT/s
Reset Configuration Word (RCW):
00000000: 3c004010 00000030 00000000 00000000
00000010: 00000000 018f0000 0030c000 00000000
00000020: 020031a0 00002580 00000000 00003296
00000030: 00000000 00000010 00000000 00000000
00000040: 00000000 00000000 00000000 00000000
00000050: 00000000 00000000 00000000 00000000
00000060: 00000000 00000000 200e705a 00000000
00000070: bb580000 00000000
Model: NXP Layerscape 1028a RDB Board
Board: LS1028AE Rev1.0-RDB, Version: C, boot from SD
FPGA: v8 (RDB)
SERDES1 Reference : Clock1 = 100.00MHz Clock2 = 100.00MHz
DRAM: 3.9 GiB
DDR 3.9 GiB (DDR4, 32-bit, CL=11, ECC on)
Using SERDES1 Protocol: 47960 (0xbb58)
PCIe1: pcie@3400000 Root Complex: no link
PCIe2: pcie@3500000 Root Complex: no link
WDT: Started with servicing (60s timeout)
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment
EEPROM: Invalid ID (ff ff ff ff)
In: serial
Out: serial
Err: serial
SEC0: RNG instantiated
Net:
Warning: enetc-0 (eth0) using random MAC address - 12:6e:5e:4a:b1:98
eth0: enetc-0
Warning: enetc-2 (eth1) using random MAC address - 86:b2:7c:cf:b1:3a
, eth1: enetc-2, eth2: swp0, eth3: swp1, eth4: swp2, eth5: swp3
Hit any key to stop autoboot: 0
...
...
...
[ 9.928843] No filesystem could mount root, tried:
[ 9.928846] ext3
[ 9.933746] ext4
[ 9.935669] ext2
[ 9.937596] squashfs
[ 9.939519] vfat
[ 9.941802] fuseblk
[ 9.943727] btrfs
[ 9.945916]
[ 9.949417] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
[ 9.957709] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.10.35 #1
[ 9.963732] Hardware name: LS1028A RDB Board (DT)
[ 9.968448] Call trace:
[ 9.970904] dump_backtrace+0x0/0x1a8
[ 9.974574] show_stack+0x18/0x68
[ 9.977895] dump_stack+0xd0/0x12c
[ 9.981304] panic+0x16c/0x334
[ 9.984365] mount_block_root+0x234/0x250
[ 9.988382] mount_root+0x10c/0x144
[ 9.991876] prepare_namespace+0x130/0x170
[ 9.995980] kernel_init_freeable+0x210/0x23c
[ 10.000347] kernel_init+0x14/0x118
[ 10.003842] ret_from_fork+0x10/0x34
[ 10.007425] SMP: stopping secondary CPUs
[ 10.011363] Kernel Offset: 0x210213a80000 from 0xffff800010000000
[ 10.017473] PHYS_OFFSET: 0xffffd99400000000
[ 10.021664] CPU features: 0x0240022,21806008
[ 10.025942] Memory Limit: none
[ 10.029004] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0) ]---
This is my bootargs:
bootargs=console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 ramdisk_size=0x2000000 default_hugepagesz=2m hugepagesz=2m hugepages=256 video=1920x1080-32@60 cma=256M ip=192.168.3.201::192.168.3.1:255.255.255.0::eth0:none
Could I get some guidance towards resolving this?
Thank you!