Problem making bootable SD card for LS1028A RDB

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

Problem making bootable SD card for LS1028A RDB

822 Views
ovri
Contributor I

Hello,

I am trying to build and boot an SD card with Ubuntu userland. I am using the following command on host:

sudo flex-installer -b bootpartition_LS_arm64_lts_5.4.tgz -r rootfs_lsdk2004_ubuntu_main_arm64.tgz -f firmware_ls1028ardb_uboot_sdboot.img -d /dev/sdc

I get the following message for the img file which looks strange:

/dev/sdc4:            8470
0+0 records in
0+0 records out
0 bytes copied, 0.000323003 s, 0.0 kB/s
Program firmware_ls1028ardb_uboot_sdboot.img into /dev/sdc startblock=8     [Done]

When I insert the SD in the RDB (all dip switches set to default), I get the following message:

MMC read: dev # 0, block # 32768, count 102400 ... 102400 blocks read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image!

What am I doing wrong?

0 Kudos
5 Replies

809 Views
ovri
Contributor I

Thank you for your response. Unfortunately this did not go too well. I get a lot of errors about o Space on target Device, here is the start up to the first few errors:

/dev/sdc: 31 GB
Partitioning /dev/sdc ...
NOTICE: Appears /mnt/sdc4 contains the existing data
Are you sure to drop the data in /mnt/sdc4 partition to proceed now? [y/n] y
Cleaning data in /mnt/sdc4
Formatting partitions ...
/dev/sdc1 contains a ext4 file system labelled 'misc'
 last mounted on Wed Dec  2 12:00:25 2020
/dev/sdc2 contains a ext4 file system labelled 'boot'
 last mounted on /mnt/sdc2 on Wed Dec  2 12:00:26 2020
Model: Generic- SD/MMC (scsi)
Disk /dev/sdc: 31.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number  Start   End     Size    Type     File system  Flags
 1      71.3MB  176MB   105MB   primary  ext4
 2      177MB   1251MB  1074MB  primary  ext4
 3      1252MB  1776MB  524MB   primary  ext4
 4      1777MB  31.9GB  30.1GB  primary  ext4
partition and format /dev/sdc     [Done]
firmware_ls1028ardb_uboot_sdboot.img already exists
bootpartition_LS_arm64_lts_5.4.tgz already exists
rootfs_lsdk2004_ubuntu_main_arm64.tgz already exists
Downloaded distro images [Done]
0+0 records in
0+0 records out
0 bytes copied, 0.000113567 s, 0.0 kB/s
Program firmware_ls1028ardb_uboot_sdboot.img into /dev/sdc startblock=8     [Done]
Installing bootpartition_LS_arm64_lts_5.4.tgz to /dev/sdc2, waiting ...
tar: modules/5.4.3/kernel/drivers/cpufreq/cppc_cpufreq.ko: Wrote only 4096 of 10240 bytes
tar: modules/5.4.3/kernel/drivers/cpufreq/cpufreq_conservative.ko: Cannot write: No space left on device
tar: modules/5.4.3/kernel/drivers/cpufreq/cpufreq_powersave.ko: Cannot write: No space left on device
 
It seemed to go better when I only ran this command, but this is equivalent to what I did previously, that did not work. And the 0 bytes in/out for the img file still looks suspicious. Please advise.
flex-installer -i auto -m ls1028ardb -d /dev/sdc
[sudo] password for xxx:
/dev/sdc: 31 GB
Partitioning /dev/sdc ...
NOTICE: Appears /mnt/sdc4 contains the existing data
Are you sure to drop the data in /mnt/sdc4 partition to proceed now? [y/n] y
Cleaning data in /mnt/sdc4
Formatting partitions ...
/dev/sdc1 contains a ext4 file system labelled 'misc'
 last mounted on Wed Dec  2 09:26:58 2020
/dev/sdc2 contains a ext4 file system labelled 'boot'
 last mounted on /media/ori/boot on Wed Dec  2 09:26:58 2020
/dev/sdc3 contains a ext4 file system labelled 'backup'
 last mounted on Wed Dec  2 09:26:58 2020
/dev/sdc4 contains a ext4 file system labelled 'system'
 last mounted on /media/ori/system on Wed Dec  2 09:26:58 2020
Model: Generic- SD/MMC (scsi)
Disk /dev/sdc: 31.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number  Start   End     Size    Type     File system  Flags
 1      71.3MB  176MB   105MB   primary  ext4
 2      177MB   2325MB  2147MB  primary  ext4
 3      2326MB  7694MB  5369MB  primary  ext4
 4      7695MB  31.9GB  24.2GB  primary  ext4
partition and format /dev/sdc     [Done]
firmware_ls1028ardb_uboot_sdboot.img already exists
bootpartition_LS_arm64_lts_5.4.tgz already exists
rootfs_lsdk2004_ubuntu_main_arm64.tgz already exists
Downloaded distro images [Done]
0+0 records in
0+0 records out
0 bytes copied, 0.000126924 s, 0.0 kB/s
Program firmware_ls1028ardb_uboot_sdboot.img into /dev/sdc startblock=8     [Done]
Installing bootpartition_LS_arm64_lts_5.4.tgz to /dev/sdc2, waiting ...
Install bootpartition_LS_arm64_lts_5.4.tgz in /dev/sdc2     [Done]
Installing rootfs_lsdk2004_ubuntu_main_arm64.tgz to /dev/sdc4, waiting ...
Install rootfs_lsdk2004_ubuntu_main_arm64.tgz in /dev/sdc4     [Done]
setting PARTUUID for boot partition ...
Installation completed successfully

 

0 Kudos

814 Views
Pavel
NXP Employee
NXP Employee

Test your board using the following commands:

 

flex-installer -i auto -m ls1028ardb -d /dev/sdc -b bootpartition_LS_arm64_lts_5.4.tgz -p 4P=100M:1G:500M:-1

 

Is there error message for this command?

 

0 Kudos

790 Views
ovri
Contributor I

Thank you for your response. Unfortunately this did not go too well. I get a lot of errors about o Space on target Device, here is the start up to the first few errors:

/dev/sdc: 31 GB
Partitioning /dev/sdc ...
NOTICE: Appears /mnt/sdc4 contains the existing data
Are you sure to drop the data in /mnt/sdc4 partition to proceed now? [y/n] y
Cleaning data in /mnt/sdc4
Formatting partitions ...
/dev/sdc1 contains a ext4 file system labelled 'misc'
 last mounted on Wed Dec  2 12:00:25 2020
/dev/sdc2 contains a ext4 file system labelled 'boot'
 last mounted on /mnt/sdc2 on Wed Dec  2 12:00:26 2020
Model: Generic- SD/MMC (scsi)
Disk /dev/sdc: 31.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number  Start   End     Size    Type     File system  Flags
 1      71.3MB  176MB   105MB   primary  ext4
 2      177MB   1251MB  1074MB  primary  ext4
 3      1252MB  1776MB  524MB   primary  ext4
 4      1777MB  31.9GB  30.1GB  primary  ext4
partition and format /dev/sdc     [Done]
firmware_ls1028ardb_uboot_sdboot.img already exists
bootpartition_LS_arm64_lts_5.4.tgz already exists
rootfs_lsdk2004_ubuntu_main_arm64.tgz already exists
Downloaded distro images [Done]
0+0 records in
0+0 records out
0 bytes copied, 0.000113567 s, 0.0 kB/s
Program firmware_ls1028ardb_uboot_sdboot.img into /dev/sdc startblock=8     [Done]
Installing bootpartition_LS_arm64_lts_5.4.tgz to /dev/sdc2, waiting ...
tar: modules/5.4.3/kernel/drivers/cpufreq/cppc_cpufreq.ko: Wrote only 4096 of 10240 bytes
tar: modules/5.4.3/kernel/drivers/cpufreq/cpufreq_conservative.ko: Cannot write: No space left on device
tar: modules/5.4.3/kernel/drivers/cpufreq/cpufreq_powersave.ko: Cannot write: No space left on device
 
It seemed to go better when I only ran this command, but this is equivalent to what I did previously, that did not work. And the 0 bytes in/out for the img file still looks suspicious. Please advise.
flex-installer -i auto -m ls1028ardb -d /dev/sdc
[sudo] password for xxx:
/dev/sdc: 31 GB
Partitioning /dev/sdc ...
NOTICE: Appears /mnt/sdc4 contains the existing data
Are you sure to drop the data in /mnt/sdc4 partition to proceed now? [y/n] y
Cleaning data in /mnt/sdc4
Formatting partitions ...
/dev/sdc1 contains a ext4 file system labelled 'misc'
 last mounted on Wed Dec  2 09:26:58 2020
/dev/sdc2 contains a ext4 file system labelled 'boot'
 last mounted on /media/ori/boot on Wed Dec  2 09:26:58 2020
/dev/sdc3 contains a ext4 file system labelled 'backup'
 last mounted on Wed Dec  2 09:26:58 2020
/dev/sdc4 contains a ext4 file system labelled 'system'
 last mounted on /media/ori/system on Wed Dec  2 09:26:58 2020
Model: Generic- SD/MMC (scsi)
Disk /dev/sdc: 31.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number  Start   End     Size    Type     File system  Flags
 1      71.3MB  176MB   105MB   primary  ext4
 2      177MB   2325MB  2147MB  primary  ext4
 3      2326MB  7694MB  5369MB  primary  ext4
 4      7695MB  31.9GB  24.2GB  primary  ext4
partition and format /dev/sdc     [Done]
firmware_ls1028ardb_uboot_sdboot.img already exists
bootpartition_LS_arm64_lts_5.4.tgz already exists
rootfs_lsdk2004_ubuntu_main_arm64.tgz already exists
Downloaded distro images [Done]
0+0 records in
0+0 records out
0 bytes copied, 0.000126924 s, 0.0 kB/s
Program firmware_ls1028ardb_uboot_sdboot.img into /dev/sdc startblock=8     [Done]
Installing bootpartition_LS_arm64_lts_5.4.tgz to /dev/sdc2, waiting ...
Install bootpartition_LS_arm64_lts_5.4.tgz in /dev/sdc2     [Done]
Installing rootfs_lsdk2004_ubuntu_main_arm64.tgz to /dev/sdc4, waiting ...
Install rootfs_lsdk2004_ubuntu_main_arm64.tgz in /dev/sdc4     [Done]
setting PARTUUID for boot partition ...
Installation completed successfully
0 Kudos

777 Views
Pavel
NXP Employee
NXP Employee

Is there problem if only .img file is used for booting?

 

0 Kudos

774 Views
ovri
Contributor I

I get the following message on the development board when I try to use this SD card, with default switch settings and bootloader in internal flash I presume (as delivered by NXP):

 

MMC read: dev # 0, block # 32768, count 102400 ... 102400 blocks read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image!

So something seems to be wrong with the contents of the card.

0 Kudos