Help needed trying to get OpenWRT LS1028A todo SD Card Boot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help needed trying to get OpenWRT LS1028A todo SD Card Boot

1,619 Views
michael_at_ovyl
Contributor I

Hello,

I'm currently working with a LS1028A from Forlinx (https://www.forlinx.net/product/ls1028a-system-on-module-110.html). I've read through a lot of docs from NXP trying to get this chip to at least show the serial console and boot my vanilla openwrt image (v23.05). This version of openWRT has support for the LS1028ARDB (https://github.com/openwrt/openwrt/tree/main/target/linux/layerscape). When I write the image to the SD card it only has 2 partitions instead 4 like the one flex-builder produces. It has a boot partition that has a FIT image and a rootfs partition. 

 

 

=> iminfo ${kernel_load}
## Checking Image at a0000000 ..
FIT image found
FIT description: ARM64 OpenWrt FIT (Flattened Image Tree)
Created: 2023-07-14 9:44:21 UTC
Image 0 (kernel-1)
Description: ARM64 OpenWrt Linux-5.15.120
Created: 9:44:21 UTC
Type: Kernel Image
Compression:
Data Start: 0xa00000ec
Data Size: 7528056 Bytes = 7.2 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x80000000
Entry Point: 0x80000000
Hash algo: crc32
Hash value: 11872b44
Hash algo: sha1
Hash value: 1ce2b360e60a8fb03add7df8bda2b36a853db4f9

Image 1 (fdt-1)
Description: ARM64 OpenWrt fsl_ls1028a-rdb-sdboot device tree blob
Created: 2023-07-14 9:44:21 UTC
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0xa072e0ac
Data Size: 23458 Bytes = 22.9 KiB
Architecture: AArch64
Hash algo: crc32
Hash value: 70ff4772
Hash algo: sha1
Hash value: c9428570aa6a68e13e21f45b004deafaac53a755

Default Configuration: 'config-1'
Configuration 0 (config-1)
Description: OpenWrt fsl_ls1028a-rdb-sdboot
Kernel: kernel-1
FDT: fdt-1

## Checking hash (es) for FIT Image at a0000000
Hash (es) for Image (kernel-1): crc32+ sha1+
Hash (es) for Image 1 (fdt-1): crc32+ sha1+

 

 

It seems like it parsed the kernel and device tree correctly.

 

When I try booting the kernel from the ${kernel_load} address (0xa0000000) I get this error: 

 

Verifying Hash Integrity ... crc32+ shal+ OK
Booting using the fdt blob at 0xa072e0ac
Uncompressing Kernel Image
Loading Device Tree to 000000008fff7000, end 000000008ffffbal ... OK
NOTICE: SEC is disabled.
WARNING: No random number to set kaslr-seed
WARNING could not find node fsl,ls1028a-gpu: FDT_ERR_NOTFOUND.
Starting kernel ...
"Synchronous Abort" handler, esr 0x02000000
elr: 000000000a50be40 lr : 000000000b353004 (reloc)
elr: 0000000080028e40 lr : 0000000080e70004
x0 : 0000000080ef6000 x1 : 0000000080ef6020
x2 : 0000000000000000 x3 : 0000000000000000
X4 : 0000000080000000 x5 : 0000000000000001
X6 : 0000000000000008 x7 : 0000000000000000
x8 : 00000000f7915208 x9 : 0000010000000000
X10: 000000000a200023 x11: 0000000000000002
x12: 0000000000000002 x13: 000000008ffffba1
x14: 000000008fff7000 x15: 00000000f7b1f82c
x16: 00000000f7b6e0e8 x17: 00000000f79268f0
x18: 00000000f7918d90 x19: 00000000f7be4168
x20: 0000000000000000 x21: 000000008fff7000
x22: 0000000000000001 x23: 00000000f791d688
x24: 00000000f791d688 x25: 00000000f7bcff18
x26: 0000000000000000 x27: 00000000f7b229fc
x28: 00000000a00000ec x29: 00000000f7b2299c
Code: 00000000 00000000 0000 0000 00000000 (00000000)
Resetting CPU ...
### ERROR ### Please RESET the board ###

 

 

 

If I try booting the kernel from ${scriptaddr} (0x80000000) I get this error:

 

=> bootm ${scriptaddr} 
## Loading kernel from FIT Image at 80000000 ...
   Using 'config-1' configuration
   Trying 'kernel-1' kernel subimage
     Description:  ARM64 OpenWrt Linux-5.15.120
     Created:      2023-07-14   9:44:21 UTC
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x800000ec
     Data Size:    7528056 Bytes = 7.2 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x80000000
     Entry Point:  0x80000000
     Hash algo:    crc32
     Hash value:   11872b44
     Hash algo:    sha1
     Hash value:   1ce2b360e60a8fb03add7df8bda2b36a853db4f9
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 80000000 ...
   Using 'config-1' configuration
   Trying 'fdt-1' fdt subimage
     Description:  ARM64 OpenWrt fsl_ls1028a-rdb-sdboot device tree blob
     Created:      2023-07-14   9:44:21 UTC
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x8072e0ac
     Data Size:    23458 Bytes = 22.9 KiB
     Architecture: AArch64
     Hash algo:    crc32
     Hash value:   70ff4772
     Hash algo:    sha1
     Hash value:   c9428570aa6a68e13e21f45b004deafaac53a755
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x8072e0ac
   Uncompressing Kernel Image
Error: inflate() returned -5
gzip compressed: uncompress error -1
Must RESET board to recover
resetting ...

 

 

Ultimately I'm trying to just get a simple console working and then I will start working on integrating the custom drivers.  Could anyone help me achieve this? Please and Thank you. 



0 Kudos
Reply
1 Reply

1,591 Views
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

You can try this. Flashing the SD an image from OpenWrt Firmware Selector.

Regards

0 Kudos
Reply