Ubuntu Image fails to boot on Clearfog LX2K

I downloaded the lx2160acex7_2000_700_3200_8_5_2-2fff64e.img from solid run website. I know my RAM is 3200 which should match the listed image.

I cannot get this image to boot and get the error as seen in below console log.

Ultimately, I am looking to get VxWorks running on this board, but when that didn’t work I wanted to verify the board with a known working image.
NOTICE: BL2: v1.5(release):LSDK-20.12-8-gcab7d26
NOTICE: BL2: Built : 17:36:59, Feb 18 2021
NOTICE: UDIMM KHX3200C20S4/16GX
NOTICE: DDR4 UDIMM with 2-rank 64-bit bus (x8)

NOTICE: 32 GB DDR4, 64-bit, CL=20, ECC off, 256B, CS0+CS1
NOTICE: BL2: Booting BL31
NOTICE: BL31: v1.5(release):LSDK-20.12-8-gcab7d26
NOTICE: BL31: Built : 17:36:59, Feb 18 2021
NOTICE: Welcome to LX2160 BL31 Phase

U-Boot 2020.04-00026-g2ad74828 (Feb 18 2021 - 17:36:55 +0000)

SoC: LX2160ACE Rev2.0 (0x87360020)
Clock Configuration:
CPU0(A72):2000 MHz CPU1(A72):2000 MHz CPU2(A72):2000 MHz
CPU3(A72):2000 MHz CPU4(A72):2000 MHz CPU5(A72):2000 MHz
CPU6(A72):2000 MHz CPU7(A72):2000 MHz CPU8(A72):2000 MHz
CPU9(A72):2000 MHz CPU10(A72):2000 MHz CPU11(A72):2000 MHz
CPU12(A72):2000 MHz CPU13(A72):2000 MHz CPU14(A72):2000 MHz
CPU15(A72):2000 MHz
Bus: 700 MHz DDR: 3200 MT/s
Reset Configuration Word (RCW):
00000000: 50838338 24500050 00000000 00000000
00000010: 00000000 0e010000 00000000 00000000
00000020: 0fc001a0 00002580 00000000 08000086
00000030: 09240000 00000001 00000000 00000000
00000040: 00000000 00000000 00000000 00000000
00000050: 00000000 00000000 00000000 00000000
00000060: 00000000 00000000 00027000 00000000
00000070: 08a80001 00151020
Model: SolidRun LX2160ACEX7 COM express type 7 based board
Board: LX2160ACE Rev2.0-CEX7, SD
SERDES1 Reference: Clock1 = 161.13MHz Clock2 = 100MHz
SERDES2 Reference: Clock1 = 100MHz Clock2 = 100MHz
SERDES3 Reference: Clock1 = 100MHz Clock2 = 100Hz
DRAM: 31.9 GiB
DDR 31.9 GiB (DDR4, 64-bit, CL=20, ECC off)
DDR Controller Interleaving Mode: 256B
DDR Chip-Select Interleaving Mode: CS0+CS1
WDT: Started with servicing (30s timeout)
Using SERDES1 Protocol: 8 (0x8)
Using SERDES2 Protocol: 5 (0x5)
Using SERDES3 Protocol: 2 (0x2)
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC… OK
In: serial_pl01x
Out: serial_pl01x
Err: serial_pl01x
Net: Setting up retimer channels 1…4 as 10Gbps
EEPROM: TlvInfo v1 len=114
PCIe1: pcie@3400000 disabled
PCIe2: pcie@3500000 disabled
PCIe3: pcie@3600000 Root Complex: no link
PCIe4: pcie@3700000 disabled
PCIe5: pcie@3800000 Root Complex: no link
PCIe6: pcie@3900000 disabled
DPMAC3@xgmii, DPMAC4@xgmii
Warning: DPMAC4@xgmii (eth1) using random MAC address - 26:64:7d:6c:69:ef
, DPMAC5@xgmii



=> run sd_bootcmd
Trying load from sd card…
Device: FSL_SDHC
Manufacturer ID: 3
OEM: 5344
Name: SC32G
Bus Speed: 50000000
Mode: SD High Speed (50MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 29.7 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes

MMC read: dev # 0, block # 32768, count 81920 … 81920 blocks read: OK

Loading kernel from FIT Image at a0000000 …

Using ‘lx2160acex7’ configuration
Trying ‘kernel’ kernel subimage
Description: ARM64 Kernel
Created: 2021-02-18 17:40:32 UTC
Type: Kernel Image
Compression: gzip compressed
Data Start: 0xa00000d0
Data Size: 14167789 Bytes = 13.5 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x80080000
Entry Point: 0x80080000
Hash algo: crc32
Hash value: ffc2c7a7
Verifying Hash Integrity … crc32+ OK

Loading ramdisk from FIT Image at a0000000 …

Using ‘lx2160acex7’ configuration
Trying ‘initrd’ ramdisk subimage
Description: initrd for arm64
Created: 2021-02-18 17:40:32 UTC
Type: RAMDisk Image
Compression: uncompressed
Data Start: 0xa0d830a0
Data Size: 11535243 Bytes = 11 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x00000000
Entry Point: 0x00000000
Hash algo: crc32
Hash value: c150f71f
Verifying Hash Integrity … crc32+ OK

Loading fdt from FIT Image at a0000000 …

Using ‘lx2160acex7’ configuration
Trying ‘lx2160acex7-dtb’ fdt subimage
Description: lx2160acex7-dtb
Created: 2021-02-18 17:40:32 UTC
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0xa1883510
Data Size: 28471 Bytes = 27.8 KiB
Architecture: AArch64
Load Address: 0x90000000
Hash algo: crc32
Hash value: 372b1e5b
Verifying Hash Integrity … crc32+ OK
Loading fdt from 0xa1883510 to 0x90000000
Booting using the fdt blob at 0x90000000
Uncompressing Kernel Image
Loading Device Tree to 000000009fff6000, end 000000009fffff36 … OK
Releasing fan controller full speed gpio
fsl-mc: DPL not deployed, DPAA2 ethernet not work

Starting kernel



[ 4.833476] No soundcards found.
[ 4.843496] mmc1: new HS400 MMC card at address 0001
[ 4.848765] mmcblk1: mmc1:0001 DF4064 58.2 GiB
[ 4.853355] hub 3-1.3:1.0: USB hub found
[ 4.853438] mmcblk1boot0: mmc1:0001 DF4064 partition 1 4.00 MiB
[ 4.857310] hub 3-1.3:1.0: 4 ports detected
[ 4.863334] mmcblk1boot1: mmc1:0001 DF4064 partition 2 4.00 MiB
[ 4.873326] mmcblk1rpmb: mmc1:0001 DF4064 partition 3 4.00 MiB, chardev (508:0)
[ 4.917833] RAMDISK: gzip image found at block 0
[ 5.233387] EXT4-fs (ram0): mounted filesystem with ordered data mode. Opts: (null)
[ 5.241062] VFS: Mounted root (ext4 filesystem) on device 1:0.
Bad inittab entry at line 5
can’t open /dev/si: No such file or directory
can’t open /dev/~~: No such file or directory
can’t open /dev/l0: No such file or directory
can’t open /dev/l1: No such file or directory
can’t open /dev/l2: No such file or directory
can’t open /dev/l3: No such file or directory
can’t open /dev/l4: No such file or directory
can’t open /dev/l5: No such file or directory
can’t open /dev/l6: No such file or directory

It wouldn’t allow me to post entire console output.

I see that you are running sd_bootcmd manually. Does the image boot if you just run boot or let u-boot continue the boot process automatically?

NOTICE: BL2: v1.5(release):LSDK-20.12-8-gcab7d26
NOTICE: BL2: Built : 17:36:59, Feb 18 2021
NOTICE: UDIMM KHX3200C20S4/16GX
NOTICE: DDR4 UDIMM with 2-rank 64-bit bus (x8)

NOTICE: 32 GB DDR4, 64-bit, CL=20, ECC off, 256B, CS0+CS1
NOTICE: BL2: Booting BL31
NOTICE: BL31: v1.5(release):LSDK-20.12-8-gcab7d26
NOTICE: BL31: Built : 17:36:59, Feb 18 2021
NOTICE: Welcome to LX2160 BL31 Phase

U-Boot 2020.04-00026-g2ad74828 (Feb 18 2021 - 17:36:55 +0000)

SoC: LX2160ACE Rev2.0 (0x87360020)
Clock Configuration:
CPU0(A72):2000 MHz CPU1(A72):2000 MHz CPU2(A72):2000 MHz
CPU3(A72):2000 MHz CPU4(A72):2000 MHz CPU5(A72):2000 MHz
CPU6(A72):2000 MHz CPU7(A72):2000 MHz CPU8(A72):2000 MHz
CPU9(A72):2000 MHz CPU10(A72):2000 MHz CPU11(A72):2000 MHz
CPU12(A72):2000 MHz CPU13(A72):2000 MHz CPU14(A72):2000 MHz
CPU15(A72):2000 MHz
Bus: 700 MHz DDR: 3200 MT/s
Reset Configuration Word (RCW):
00000000: 50838338 24500050 00000000 00000000
00000010: 00000000 0e010000 00000000 00000000
00000020: 0fc001a0 00002580 00000000 08000086
00000030: 09240000 00000001 00000000 00000000
00000040: 00000000 00000000 00000000 00000000
00000050: 00000000 00000000 00000000 00000000
00000060: 00000000 00000000 00027000 00000000
00000070: 08a80001 00151020
Model: SolidRun LX2160ACEX7 COM express type 7 based board
Board: LX2160ACE Rev2.0-CEX7, SD
SERDES1 Reference: Clock1 = 161.13MHz Clock2 = 100MHz
SERDES2 Reference: Clock1 = 100MHz Clock2 = 100MHz
SERDES3 Reference: Clock1 = 100MHz Clock2 = 100Hz
DRAM: 31.9 GiB
DDR 31.9 GiB (DDR4, 64-bit, CL=20, ECC off)
DDR Controller Interleaving Mode: 256B
DDR Chip-Select Interleaving Mode: CS0+CS1
WDT: Started with servicing (30s timeout)
Using SERDES1 Protocol: 8 (0x8)
Using SERDES2 Protocol: 5 (0x5)
Using SERDES3 Protocol: 2 (0x2)
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC… *** Warning - bad CRC, using default environment

In: serial_pl01x
Out: serial_pl01x
Err: serial_pl01x
Net: Setting up retimer channels 1…4 as 10Gbps
EEPROM: TlvInfo v1 len=114
PCIe1: pcie@3400000 disabled
PCIe2: pcie@3500000 disabled
PCIe3: pcie@3600000 Root Complex: no link
PCIe4: pcie@3700000 disabled
PCIe5: pcie@3800000 Root Complex: no link
PCIe6: pcie@3900000 disabled
DPMAC3@xgmii, DPMAC4@xgmii
Warning: DPMAC4@xgmii (eth1) using random MAC address - 06:e1:16:6b:69:e1
, DPMAC5@xgmii
Warning: DPMAC5@xgmii (eth2) using random MAC address - 0e:03:b7:e4:bb:4a
, DPMAC6@xgmii
Warning: DPMAC6@xgmii (eth3) using random MAC address - 06:74:1c:88:bc:58
, DPMAC7@xgmii
Warning: DPMAC7@xgmii (eth4) using random MAC address - ba:c9:6b:48:1d:38
, DPMAC8@xgmii
Warning: DPMAC8@xgmii (eth5) using random MAC address - 0a:9f:ab:f8:49:b9
, DPMAC9@xgmii
Warning: DPMAC9@xgmii (eth6) using random MAC address - 3e:a8:ff:7c:d6:79
, DPMAC10@xgmii
Warning: DPMAC10@xgmii (eth7) using random MAC address - 2a:a5:52:fa:a1:46
, DPMAC17@rgmii-id [PRIME]
Warning: DPMAC17@rgmii-id (eth8) using random MAC address - fa:05:0c:36:2e:8f
, DPMAC18@rgmii-id
Warning: DPMAC18@rgmii-id (eth9) using random MAC address - fa:35:2d:d1:17:23

MMC read: dev # 0, block # 20480, count 4608 … 4608 blocks read: OK

MMC read: dev # 0, block # 28672, count 2048 … 2048 blocks read: OK
crc32+
fsl-mc: Booting Management Complex … SUCCESS
fsl-mc: Management Complex booted (version: 10.24.0, boot status: 0x1)
Hit any key to stop autoboot: 0
Device: FSL_SDHC
Manufacturer ID: 1b
OEM: 534d
Name: EB1QT
Bus Speed: 50000000
Mode: SD High Speed (50MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 29.8 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes

MMC read: dev # 0, block # 26624, count 2048 … 2048 blocks read: OK
starting USB…
Bus usb3@3100000: Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
Bus usb3@3110000: Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usb3@3100000 for devices… 1 USB Device(s) found
scanning bus usb3@3110000 for devices… 4 USB Device(s) found
scanning usb for storage devices… 0 Storage Device(s) found

Device 0: unknown device
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1…
switch to partitions #0, OK
mmc1(part 0) is current device
** No partition table - mmc 1 **
scanning bus for devices…
SATA link 0 timeout.
AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x1 impl SATA mode
flags: 64bit ncq pm clo only pmp fbss pio slum part ccc apst
Target spinup took 0 ms.
AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x1 impl SATA mode
flags: 64bit ncq pm clo only pmp fbss pio slum part ccc apst
Device 0: (0:0) Vendor: ATA Prod.: CT1000MX500SSD1 Rev: M3CR
Type: Hard Disk
Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
SATA link 0 timeout.
AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x1 impl SATA mode
flags: 64bit ncq pm clo only pmp fbss pio slum part ccc apst
SATA link 0 timeout.
AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x1 impl SATA mode
flags: 64bit ncq pm clo only pmp fbss pio slum part ccc apst

Device 0: (0:0) Vendor: ATA Prod.: CT1000MX500SSD1 Rev: M3CR
Type: Hard Disk
Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
… is now current device
** No partition table - scsi 0 **

Device 0: unknown device
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
DHCP client bound to address 192.168.4.37 (1024 ms)
*** ERROR: serverip' not set Cannot autoload with TFTPGET BOOTP broadcast 1 DHCP client bound to address 192.168.4.37 (3 ms) *** ERROR: serverip’ not set
Cannot autoload with TFTPGET
Trying load from sd card…
Device: FSL_SDHC
Manufacturer ID: 45
OEM: 100
Name: DF406
Bus Speed: 50000000
Mode: MMC High Speed (52MHz)
Rd Block Len: 512
MMC version 5.0
High Capacity: Yes
Capacity: 58.2 GiB
Bus Width: 4-bit
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 58.2 GiB WRREL
Boot Capacity: 4 MiB ENH
RPMB Capacity: 4 MiB ENH

MMC read: dev # 1, block # 32768, count 81920 … 81920 blocks read: OK
Wrong Image Format for bootm command
ERROR: can’t get kernel image!
=>

I have also a error.

NOTICE:  DDR PMU Hardware version-0x1210
NOTICE:  DDR PMU Firmware vision-0x1001 (vA-2019.04)
NOTICE:  DDR4 UDIMM with 1-rank 64-bit bus (x8)

NOTICE:  8 GB DDR4, 64-bit, CL=22, ECC off
NOTICE:  BL2: Booting BL31
NOTICE:  BL31: v2.4(release):LSDK-21.08-8-gc330ead97
NOTICE:  BL31: Built : 18:02:55, Jul  4 2024
NOTICE:  Welcome to lx2160acex7 BL31 Phase


U-Boot 2021.04-00046-g32b5d1ea333 (Jul 04 2024 - 18:02:51 +0000)

SoC:  LX2162AE Rev2.0 (0x87361820)
Clock Configuration:
       CPU0(A72):2000 MHz  CPU1(A72):2000 MHz  CPU2(A72):2000 MHz
       CPU3(A72):2000 MHz  CPU4(A72):2000 MHz  CPU5(A72):2000 MHz
       CPU6(A72):2000 MHz  CPU7(A72):2000 MHz  CPU8(A72):2000 MHz
       CPU9(A72):2000 MHz  CPU10(A72):2000 MHz  CPU11(A72):2000 MHz
       CPU12(A72):2000 MHz  CPU13(A72):2000 MHz  CPU14(A72):2000 MHz
       CPU15(A72):2000 MHz
       Bus:      700  MHz  DDR:      3200 MT/s
Reset Configuration Word (RCW):
       00000000: 50838338 24500050 00000000 00000000
       00000010: 00000000 0e010000 00000000 00000000
       00000020: 10c001a0 00002580 00000000 08000086
       00000030: 09240000 00000001 00000000 00000000
       00000040: 00000000 00000000 00000000 00000000
       00000050: 00000000 00000000 00000000 00000000
       00000060: 00000000 00000000 00027005 00000000
       00000070: 01320034 00153022
Model: SolidRun LX2162A Clearfog
Board: LX2162AE Rev2.0-CEX7, eMMC
SERDES1 Reference: Clock1 = 161.13MHz Clock2 = 100MHz
SERDES2 Reference: Clock1 = 100MHz Clock2 = 100MHz
SERDES3 Reference: Clock1 = 100MHz Clock2 = 100Hz
DRAM:  7.9 GiB
DDR    7.9 GiB (DDR4, 64-bit, CL=22, ECC off)
PCA: failed to select bus 0 channel 8
dev_get_priv: null device
dev_get_priv: null device
Using SERDES1 Protocol: 18 (0x12)
Using SERDES2 Protocol: 9 (0x9)
Using SERDES3 Protocol: 0 (0x0)
SERDES3[PRTCL] = 0x0 is not valid
PCIe1: pcie@3400000 disabled
PCIe2: pcie@3500000 disabled
PCIe5: pcie@3800000 disabled
PCIe6: pcie@3900000 disabled
WDT:   Started with servicing (30s timeout)
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

EEPROM: TlvInfo v1 len=6
In:    serial@21c0000
Out:   serial@21c0000
Err:   serial@21c0000
SEC0:  RNG instantiated
fsl_board_late_init
PCA: failed to select bus 0 channel 11
PCA: failed to select bus 1 channel 11
Setting up retimer channels as 25Gbps
Net:
Warning: DPMAC3@xgmii (eth0) using random MAC address - ee:96:d2:25:a4:04

Warning: DPMAC4@xgmii (eth1) using random MAC address - 32:40:6c:43:b3:69

Warning: DPMAC5@25g-aui (eth2) using random MAC address - de:36:f0:f9:87:ad

Warning: DPMAC6@25g-aui (eth3) using random MAC address - 0e:a8:f7:7a:00:c3

Warning: DPMAC11@rgmii (eth4) using random MAC address - c2:74:3d:ce:8f:dd

Warning: DPMAC12@rgmii (eth5) using random MAC address - c2:7c:fd:c9:31:df

Warning: DPMAC13@rgmii (eth6) using random MAC address - 6a:1b:31:c7:ad:6e

Warning: DPMAC14@rgmii (eth7) using random MAC address - 7e:12:e4:7d:76:68

Warning: DPMAC15@rgmii (eth8) using random MAC address - 5e:64:27:a6:f3:fc

Warning: DPMAC16@rgmii (eth9) using random MAC address - a6:cf:c4:12:c0:ad

Warning: DPMAC17@rgmii (eth10) using random MAC address - 72:7c:7b:ef:be:b9

Warning: DPMAC18@rgmii (eth11) using random MAC address - b6:37:06:c3:5e:e2
eth0: DPMAC3@xgmii, eth1: DPMAC4@xgmii, eth2: DPMAC5@25g-aui, eth3: DPMAC6@25g-aui, eth4: DPMAC11@rgmii, eth5: DPMAC12@rgmii, eth6: DPMAC13@rgmii, eth7: DPMAC14@rgmii, eth8: DPMAC15@rgmii, eth9: DPMAC16@rgmii, ei
switch to partitions #0, OK
mmc1(part 0) is current device

MMC read: dev # 1, block # 20480, count 4608 ... 4608 blocks read: OK

MMC read: dev # 1, block # 28672, count 2048 ... 2048 blocks read: OK

Are the supported these card?

I tried two 128 GB uSD Card from SanDisk and Samsung both doesn’t work

SanDisk Extreme Pro 128GB uSD Card

Samsung Pro Plus 128GB uSD Card

Both with this image

lx2160acex7_2000_700_3200_8_5_2-2a7ab21.img.xz

Cloud you give some update how to fix this error? @jnettlet

you can attach a .log file to include the full log. Thanks

Should I provide a log too? @jnettlet

sure thing. More data is always better…thanks

https://stackoverflow.com/questions/19469747/how-do-i-get-booting-log-for-u-boot

According this link there is no log from u-boot. You mean simply the whole output of the serial console saved a .log file?

yes. Most serial terminal applications support logging to a file.

@jnettlet

Keys OFF | ON | ON | OFF | OFF

First boot cycle with run sd_bootcmd
Second boot cycle with boot from mmc without interrupt autobooot

1.log (57.8 KB)

First boot cycle with keys ON | ON | ON | OFF | OFF

Visually I see nothing in Serial Console but here is no second log because is empty ( 0 bytes)

So I have no log for second boot process with direct boot from SD

@Morta - you are trying to boot with prebuilt ramdisk provided by Solidrun (here is the link lx2160a_build/patches/ramdisk_rootfs_arm64.ext4.gz at master · SolidRun/lx2160a_build · GitHub)
But this image is not valid, since it contains busybox as init and /etc/initab for SystemV init and they are not compatible (check here The Buildroot user manual).
And this is your error about this:

Bad inittab entry at line 5
can’t open /dev/si: No such file or directory
can’t open /dev/~~: No such file or directory
can’t open /dev/l0: No such file or directory
can’t open /dev/l1: No such file or directory
can’t open /dev/l2: No such file or directory
can’t open /dev/l3: No such file or directory
can’t open /dev/l4: No such file or directory
can’t open /dev/l5: No such file or directory
can’t open /dev/l6: No such file or directory

Use this instruction https://solidrun.atlassian.net/wiki/spaces/developer/pages/197494288/HoneyComb+LX2+ClearFog+CX+LX2+Quick+Start+Guide#Booting-from-an-SD-card to boot from prebuilt SolidRun’s image

@dstepanov

I also tried to build a image with Docker

lx2160acex7_2000_700_3200_LX2162A_CLEARFOG_18_9_0-3fbd680.img

Same result with own builded image. I can provide also a log from this image, if necessary?!

So which board are you using? lx2160acex7_2000_700_3200_LX2162A_CLEARFOG_18_9_0-3fbd680.img is for LX2162 ClearFog board which is completely different from LX2160A.
And once again - you can’t boot into Ubuntu just after doing dd of that image to SD card. Some additional manipulations should be done
Check this step-by-step instruction https://solidrun.atlassian.net/wiki/spaces/developer/pages/197494288/HoneyComb+LX2+ClearFog+CX+LX2+Quick+Start+Guide#Booting-from-an-SD-card

@dstepanov

I have a LX2162a!

Why isn’t possible to boot from uSD-Card directly? I don’t want flash the image to eMMC. This works without problem.

I need more space than 8GB…

You can boot from SD card, but not after doing dd of that image to SD card).
Using provided instructions you can also program SD card:

load mmc 0:1 0xa4000000 ubuntu-core.img
# **mmc dev 1** - don't do this, don't switch to eMMC, copy ubuntu-core.img from SD to RAM and then write it to SD
mmc write 0xa4000000 0 0xd2000

Another way to program your SD card - extract correct image from you img file and use it:

sudo mount -o offset=67108864 lx2160acex7_2000_700_3200_LX2162A_CLEARFOG_18_9_0-3fbd680.img /mnt/
ls -l /mnt/
total 424504
drwx------ 2 root root     16384 Jul  4 21:43 lost+found
-rw-r--r-- 1 root root 434110464 Jul  4 21:43 ubuntu-core.img
-rw-r--r-- 1 root root    131072 Jul  4 21:43 xspi_header.img
sudo dd if=/mnt/ubuntu-core.img of=/dev/sda bs=1M conv=fdatasync

where /dev/sda is your SD card of course

@dstepanov

you are my hero!

Thanks for clarification <3

1 Like