Linux BSP37.0 bringing in SD Card

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

Linux BSP37.0 bringing in SD Card

Jump to solution
1,616 Views
Atkinson
Contributor IV

Hi @chenyin_h

I am trying to bring BSP37.0 linux software into the Bootable SD card I am trying to do it via S32G VNP RDB2 Board I am facing up some issue in the installation how can i resolve this issue 

I tried installing in different supporting package this error persist 
due to this error the Expected image file is not getting created so i am unable to keep the files into the BSP Package into the SD card
What are the others steps need to be taken here ??
what are the supporting packages need to be added ??

image.png

 

 

 

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,062 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Atkinson 

Thanks for the sharing.

I just checked the pictures you shared, seems issues on the switches settings, would you mind resetting them referencing the picture I attached?

 

BR

Chenyin

View solution in original post

0 Kudos
Reply
18 Replies
1,225 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Atkinson 

Thanks for your reply.

So you are working with UART0, but still no output from the terminal?

Additionally, I found that you are building the Yocto by bitbake fsl-image-base, but the binary that flashed is from fsl-image-auto, I suggest firstly try bitbake fsl-image-auto -c cleanall and bitbake fsl-image-base -c cleanall, then rebuild the binaries using bitbake fsl-image-base, after it, flash the generated fsl-image-base-s32g274ardb2.sdcard to the SD card to have another test.

 

BR

Chenyin

0 Kudos
Reply
1,219 Views
Atkinson
Contributor IV

Hi @chenyin_h 

I have tried the steps as you mentioned it when i connect the SD card. Turned Power ON 

I have used UART0 port Micro USB cable.
when i start the terminal, it's not showing anything when i click some key its gives some flaw values.

▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒>▒▒>▒▒>>▒
This was the thing which comes every time when i press some keys nothing is showing up 
so what could be the root cause 
I have followed up the procedure as mentioned and copied the binary into the SD card using the command which i mentioned earlier.
but this issue continuous i could sense these errors are not because of baud Rate i am currently maintaining 115200 do you think somewhere baud Rate need to be changed ??

i am also seeing whenever i type some keys the S32G Board gives an LED is blinking in red/green 

So what might be the root cause where i need to check for the issue 

Regards
Atkinson

Tags (1)
0 Kudos
Reply
1,174 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Atkinson 

Thanks for your reply.

I do not see obvious issue from the steps you mentioned, except for the following:

You had used the bitbake fsl-image-base to generate images, but at last, you flashed fsl-image-auto-s32g274ardb2.sdcard to the SD card, which should not be the image just generated, I suggest double checking on it.

Furthermore, if no specific modification on it, even  fsl-image-auto-s32g274ardb2.sdcard is able to boot the board, would you mind taking a photo on the board you used?(with the board version included)

 

BR

Chenyin

0 Kudos
Reply
1,169 Views
Atkinson
Contributor IV

Hi @chenyin_h 

Thanks for the reply 
Yes as you mentioned it i have followed up the same procedure mentioned in BSP43.0 
even after making the 
bitbake fsl-image-auto -c cleanall
bitbake fsl-image-base -c cleanall then after 
bitbake fsl-image-base
fsl-image-base-s32g274ardb2.sdcard

So after i did the process even changes has been reflected in the images directory
jawadhur@CN4C00427:~/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/deploy/images/s32g274ardb2$ ls
Image
Image--6.6.52-r0-s32g274ardb2-20250901040350.bin
Image-s32g274ardb2.bin
bl2_w_dtb.s32-qspi
bl2_w_dtb.s32-sdcard
fip.bin-qspi
fip.bin-sdcard
fsl-image-base-s32g274ardb2-20250909095233.rootfs.cpio.gz
fsl-image-base-s32g274ardb2-20250909095233.rootfs.cpio.gz.u-boot
fsl-image-base-s32g274ardb2-20250909095233.rootfs.ext4
fsl-image-base-s32g274ardb2-20250909095233.rootfs.manifest
fsl-image-base-s32g274ardb2-20250909095233.rootfs.sdcard
fsl-image-base-s32g274ardb2-20250909095233.rootfs.tar.gz
fsl-image-base-s32g274ardb2-20250909095233.testdata.json
fsl-image-base-s32g274ardb2.cpio.gz
fsl-image-base-s32g274ardb2.cpio.gz.u-boot
fsl-image-base-s32g274ardb2.ext4
fsl-image-base-s32g274ardb2.manifest
fsl-image-base-s32g274ardb2.sdcard
fsl-image-base-s32g274ardb2.tar.gz
fsl-image-base-s32g274ardb2.testdata.json
modules--6.6.52-r0-s32g274ardb2-20250901040350.tgz
modules-s32g274ardb2.tgz
s32g274a-rdb2--6.6.52-r0-s32g274ardb2-20250901040350.dtb
s32g274a-rdb2-s32g274ardb2.dtb
s32g274a-rdb2.dtb
tools
u-boot-flashenv-s32g274ardb2-1.0+fslgit-r0.bin
u-boot-flashenv-s32g274ardb2.bin
u-boot-flashenv-sd-s32g274ardb2-1.0+fslgit-r0.bin
u-boot-flashenv-sd-s32g274ardb2.bin
u-boot-nodtb.bin-qspi
u-boot-nodtb.bin-sdcard
u-boot-qspi-2022.04-r0.bin
u-boot-s32g274ardb2.bin
u-boot-s32g274ardb2.bin-qspi
u-boot-s32g274ardb2.bin-sdcard
u-boot-sdcard-2022.04-r0.bin
u-boot.bin
u-boot.bin-qspi
u-boot.bin-sdcard

Do you want to share the picture of board for view the pins which gets setted up in the S32G-VNP-RDB2 Board?
FYI, i have setted up the pins mentioned in document BSP43.0 User manual where SW3, SW4, SW5, SW6, SW7, SW9, SW10 so these pins has been setted up according to the Manual 

I am not sure what the other pin status should i need to bring the switch pins to default configuration. if it needs to be brought to default configuration what is the pin status for default configuration.

Regards
Atkinson

Tags (1)
0 Kudos
Reply
1,124 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Atkinson 

Thanks for the reply.

Well, it is odd

The reason I want to check the photo of your board is to check the board version and the switch settings on it. it is preferred for sharing a photo of your board used.

I have the following suggestions:

1. Do you have any other binaries that could ever boot this board correctly?

2. Have you tested it with the default pre-built BSP43 image from NXP? which could be downloaded from your NXP account.

 

BR

Chenyin

0 Kudos
Reply
1,084 Views
Atkinson
Contributor IV

Hi @chenyin_h 

I have sent you the Bard Pictures 

1.)"Do you have any other binaries that could ever boot this board correctly?"
Currently i didn't have any binaries inside the Board. if you have any working binary can you share that binary that would be great help.

2.)"Have you tested it with the default pre-built BSP43 image from NXP? which could be downloaded from your NXP account."
No i didn't test that, but i have sawn a SD card which comes with component of S32G board in the box which contains some image file inside but that also gives the same issue which i mentioned earlier 

can you check with the pin configuration setted up in S32G Board once if any changes is there let me know 

Regards
Atkinson






Tags (1)
0 Kudos
Reply
1,063 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Atkinson 

Thanks for the sharing.

I just checked the pictures you shared, seems issues on the switches settings, would you mind resetting them referencing the picture I attached?

 

BR

Chenyin

0 Kudos
Reply
1,047 Views
Atkinson
Contributor IV

Hi @chenyin_h 

As you mentioned it i have setted up in the default configuration you mentioned in picture when i tried booting the device it was able to boot it on the configuration from SD card. and it was working fine 

Can you confirm me once is this the configuration setup for the Board or its just a default configuration of the device setup 
But anyway it was able to boot it from SD card 

Regards
Atkinson

0 Kudos
Reply
1,043 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Atkinson 

Glad to hear that the issue had been solved.

The settings I provided is the default switch settings for booting the RDB2 via SD, if you want to boot the RDB2 via QSPI or other method, the switches should be changed.

 

BR

Chenyin 

0 Kudos
Reply
917 Views
Atkinson
Contributor IV

Hi @chenyin_h 

In the Xen Hypervisor whether it is possible to bring multiple domU ?
1.)Here i could able to trigger one configuration at a time having a file /etc/xen/domU1_mmc.cfg 
whether it is possible to create multiple like domU1,domU2,domU3 so for the should we need to create a separate file in the directory domU2_mmc.cfg , domU3_mmc.cfg ?? it shows some erro when i tried creating like this 

2.) when bringing up the /etc/xen/domU1_mmc.cfg its getting booted as a similar Linux BSP so whether it is possible to change it as Zephyr RTOS/FreeRTOS so how can we do it where this changes need to be done ?

Tags (1)
0 Kudos
Reply
1,235 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Atkinson 

Thanks for your reply.

From the steps you mentioned, I see that the UART1 is used? by default, the UART0 is used for console output.

 

BR

Chenyin

0 Kudos
Reply
1,231 Views
Atkinson
Contributor IV

Hi @chenyin_h 

Sorry i was using the UART0 i mentioned it wrong 
It's my mistake 
Thanks for making a Note!!

Regards
Atkinson 

0 Kudos
Reply
1,485 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Atkinson 

Thanks for your reply.

1. If it is OK for using BSP43, then I suggest using it for a trail, there would be no issues from my assumption.

2. If you insist using the BSP37, and the issue still arise after applying the modification I provided, would you mind also sharing the content of meta/recipes-extended/cracklib/cracklib_2.9.8.bb?

 

BR

Chenyin

0 Kudos
Reply
1,511 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Atkinson 

Thanks for your clarification.

It is possibly caused on the repo changes from the 3rd packages from the web, would you mind trying the following modifications?

diff --git a/meta/recipes-extended/cracklib/cracklib_2.9.8.bb b/meta/recipes-extended/cracklib/cracklib_2.9.8.bb
index 786940a7e0..a3db6eb394 100644
--- a/meta/recipes-extended/cracklib/cracklib_2.9.8.bb
+++ b/meta/recipes-extended/cracklib/cracklib_2.9.8.bb
@@ -9,7 +9,7 @@ DEPENDS = "cracklib-native zlib"

EXTRA_OECONF = "--without-python --libdir=${base_libdir}"

-SRC_URI = "git://github.com/cracklib/cracklib;protocol=https;branch=master \
+SRC_URI = "git://github.com/cracklib/cracklib;protocol=https;branch=main \
           file://0001-packlib.c-support-dictionary-byte-order-dependent.patch \
           file://0002-craklib-fix-testnum-and-teststr-failed.patch \
           "

If additional issues, try installing the following packages with the apt command, and then rebuild it for another trial

sudo apt-get install swig python3-dev meson ninja-build

I hope it will help.

 

BR

Chenyin

0 Kudos
Reply
1,498 Views
Atkinson
Contributor IV

Hi @chenyin_h

I am still facing up with the same issue 
What are the other possibility to resolve this issue 
can you give me step wise installing and changes ? whether for BSP43.0 version whether it is resolved there??

The below is the terminal output

Loading cache: 100% |########################################################################################################################| Time: 0:00:00
Loaded 5388 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################| Time: 0:00:03
Parsing of 3572 .bb files complete (3569 cached, 3 parsed). 5393 targets, 596 skipped, 7 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-fsl-linux"
MACHINE = "s32g274ardb2"
DISTRO = "fsl-auto"
DISTRO_VERSION = "37.0"
TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "HEAD:65dafea22018052fe7b2e17e6e4d7eb754224d38"
meta-oe
meta-multimedia
meta-python = "HEAD:571e36e20e9d1f27af0eb4545291beeb64f280e2"
meta-python2 = "HEAD:f02882e2aa9279ca7becca8d0cedbffe88b5a253"
meta-networking
meta-gnome
meta-filesystems
meta-webserver
meta-perl
meta-xfce = "HEAD:571e36e20e9d1f27af0eb4545291beeb64f280e2"
meta-virtualization = "HEAD:bfa6727718bc4eb550c24e2c03a4118b4e7bc842"
meta-security = "HEAD:cc20e2af2ae1c74e306f6c039c4963457c4cbd0f"
meta-freescale = "HEAD:82cbf4e5adac1017adc1e4a2ce056c57b3148ba0"
meta-alb = "HEAD:631692274bab3d986b3ffec0389b8cdb20f956bc"

Initialising tasks: 100% |###################################################################################################################| Time: 0:00:03
Sstate summary: Wanted 1675 Local 0 Mirrors 0 Missed 1675 Current 254 (0% match, 13% complete)
NOTE: Executing Tasks
WARNING: cracklib-2.9.8-r0 do_fetch: Failed to fetch URL git://github.com/cracklib/cracklib;protocol=https;branch=master, attempting MIRRORS if available
ERROR: cracklib-2.9.8-r0 do_fetch: Fetcher failure: Unable to find revision d9e8f9f47718539aeba80f90f4e072549926dc9c in branch master even from upstream
ERROR: cracklib-2.9.8-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/cracklib/cracklib;protocol=https;branch=master')
ERROR: Logfile of failure stored in: /home/jawadhur/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/cracklib/2.9.8-r0/temp/log.do_fetch.15552
ERROR: Task (/home/jawadhur/fsl-auto-yocto-bsp/sources/poky/meta/recipes-extended/cracklib/cracklib_2.9.8.bb:do_fetch) failed with exit code '1'
WARNING: cracklib-native-2.9.8-r0 do_fetch: Failed to fetch URL git://github.com/cracklib/cracklib;protocol=https;branch=master, attempting MIRRORS if available
ERROR: cracklib-native-2.9.8-r0 do_fetch: Fetcher failure: Unable to find revision d9e8f9f47718539aeba80f90f4e072549926dc9c in branch master even from upstream
ERROR: cracklib-native-2.9.8-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/cracklib/cracklib;protocol=https;branch=master')
ERROR: Logfile of failure stored in: /home/jawadhur/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/x86_64-linux/cracklib-native/2.9.8-r0/temp/log.do_fetch.15560
ERROR: Task (virtual:native:/home/jawadhur/fsl-auto-yocto-bsp/sources/poky/meta/recipes-extended/cracklib/cracklib_2.9.8.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1408 tasks of which 1159 didn't need to be rerun and 2 failed.

Summary: 2 tasks failed:
/home/jawadhur/fsl-auto-yocto-bsp/sources/poky/meta/recipes-extended/cracklib/cracklib_2.9.8.bb:do_fetch
virtual:native:/home/jawadhur/fsl-auto-yocto-bsp/sources/poky/meta/recipes-extended/cracklib/cracklib_2.9.8.bb:do_fetch
Summary: There were 2 WARNING messages.
Summary: There were 4 ERROR messages, returning a non-zero exit code.



0 Kudos
Reply
1,533 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Atkinson 

Thanks for your post.

1. May I know if you had such issue during building pure BSP37 BSP? any modifications on the source?

2. Ubuntu version on your building host is?

 

BR

Chenyin

0 Kudos
Reply
1,243 Views
Atkinson
Contributor IV

Hi @chenyin_h 

The below process has been carried out in the Ubuntu20.04
1.) I am currently using BSP43.0 followed up the procedure i build up the images for S32G-VNP-RDB2 Board source nxp-setup-alb.sh -m s32g274ardb2 after doing this 

 bitbake fsl-image-base

It took 1 or 2 hours to create the images into the directory i Tried verifying the images files present in the directory or not by <build_directory>/tmp/deploy/images/

Image
Image--6.6.52-r0-s32g274ardb2-20250901040350.bin
Image-s32g274ardb2.bin
bl2_w_dtb.s32-qspi
bl2_w_dtb.s32-sdcard
fip.bin-qspi
fip.bin-sdcard
fsl-image-auto-s32g274ardb2-20250901040350.rootfs.cpio.gz
fsl-image-auto-s32g274ardb2-20250901040350.rootfs.cpio.gz.u-boot
fsl-image-auto-s32g274ardb2-20250901040350.rootfs.ext4
fsl-image-auto-s32g274ardb2-20250901040350.rootfs.manifest
fsl-image-auto-s32g274ardb2-20250901040350.rootfs.sdcard
fsl-image-auto-s32g274ardb2-20250901040350.rootfs.tar.gz
fsl-image-auto-s32g274ardb2-20250901040350.testdata.json
fsl-image-auto-s32g274ardb2.cpio.gz
fsl-image-auto-s32g274ardb2.cpio.gz.u-boot
fsl-image-auto-s32g274ardb2.ext4
fsl-image-auto-s32g274ardb2.manifest
fsl-image-auto-s32g274ardb2.sdcard
fsl-image-auto-s32g274ardb2.tar.gz
fsl-image-auto-s32g274ardb2.testdata.json
modules--6.6.52-r0-s32g274ardb2-20250901040350.tgz
modules-s32g274ardb2.tgz
s32g274a-rdb2--6.6.52-r0-s32g274ardb2-20250901040350.dtb
s32g274a-rdb2-s32g274ardb2.dtb
s32g274a-rdb2.dtb
tools
u-boot-flashenv-s32g274ardb2-1.0+fslgit-r0.bin
u-boot-flashenv-s32g274ardb2.bin
u-boot-flashenv-sd-s32g274ardb2-1.0+fslgit-r0.bin
u-boot-flashenv-sd-s32g274ardb2.bin
u-boot-nodtb.bin-qspi
u-boot-nodtb.bin-sdcard
u-boot-qspi-2022.04-r0.bin
u-boot-s32g274ardb2.bin
u-boot-s32g274ardb2.bin-qspi
u-boot-s32g274ardb2.bin-sdcard
u-boot-sdcard-2022.04-r0.bin
u-boot.bin
u-boot.bin-qspi
u-boot.bin-sdcard


i have copied the file fsl-image-auto-s32g274ardb2.sdcard by the below command

export DEVSD=/dev/sdb
sudo dd if=./ fsl-image-auto-s32g274ardb2.sdcard  of=${DEVSD} bs=1M && sync
sudo cmp ./fsl-image-base-s32g274aevb.sdcard ${DEVSD}

So these commands has been executed 
I have setted up switch configuration according the Board setup as S32GVNPRDB2 board


But when i booted up the board it should boot from SD card i have connected in UART1 cable Opened Teraterm / Putty configured in 115200 baud Rate erro bit and parity is setted!!

But i am not seeing the the linux terminal so How can i resolve the issue!!

Regards
Atkinson

Tags (1)
0 Kudos
Reply
1,531 Views
Atkinson
Contributor IV

Hi @chenyin_h 

Thanks for the reply 
1. Yes, I followed up the procedure according to the BSP37.0 Quick Start Guide and User manual for BS37.0. No more changes followed up the steps as it is same mentioned in the File i tried even Different Laptop but this issue continuous. If possible you can also give me a Valid Procedure steps which works fine

2. I tried building in Ubuntu 20.04 and also i tried in different version Ubuntu22.04 also but this issue occurs 

Regards
Atkinson

Tags (1)
0 Kudos
Reply