imx6qsabresd not working with Yocto Scarthgap 5.0

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

imx6qsabresd not working with Yocto Scarthgap 5.0

552 Views
marcocavallini
Contributor V

I built a linux system using Yocto Project 5.0 'scarthgap' for imx6qsabresd

MACHINE = 'imx6qsabresd'
DISTRO = 'fsl-imx-wayland'

The build is successful but the target system is not working.

The u-boot generated has messy environment and the kernel hangs with errors.

I wonder if imx6qsabresd is still supported on recent Yocto versions.

Thanks

 

 

0 Kudos
Reply
8 Replies

537 Views
marcocavallini
Contributor V

More details on the issue.
I started following the NXP user guide UG10164


mkdir yocto-mx6-scarthgap; cd yocto-mx6-scarthgap

repo init -u https://github.com/nxp-imx/imx-manifest \
-b imx-linux-scarthgap -m imx-6.6.52-2.2.0.xml

repo sync -j8

DISTRO=fsl-imx-wayland MACHINE=imx6qsabresd source imx-setup-release.sh -b build

bitbake core-image-minimal
0 Kudos
Reply

527 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Are you programming a SD? make sure the DISP switches are ok.

Regards 

0 Kudos
Reply

520 Views
marcocavallini
Contributor V

Sorry if I wasn't clear.
The system compiled and I programmed the SD card.
When it starts, it's already clear that the U-Boot environment is not correct.

U-Boot 2024.04-lf_v2024.04+g6c4545203d1+p0 (Nov 15 2024 - 04:02:13 +0000)

CPU:   i.MX6Q rev1.2 996 MHz (running at 792 MHz)
CPU:   Automotive temperature grade (-40C to 125C) at 46C
Reset cause: POR
Model: i.MX6 Quad SABRE Smart Device Board
DRAM:  1 GiB
Core:  107 devices, 24 uclasses, devicetree: separate
PMIC: PFUZE100! DEV_ID=0x10 REV_ID=0x11
MMC:   FSL_SDHC: 1, FSL_SDHC: 2, FSL_SDHC: 3
Loading Environment from MMC... *** Warning - bad CRC, using default environment

No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In:    serial
Out:   serial
Err:   serial
SEC0:  RNG instantiated
switch to partitions #0, OK
mmc2 is current device
flash target is MMC:2
Net:   eth0: ethernet@2188000 [PRIME]
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  0 

Shouldn't everything already be properly set up for an official NXP evaluation board?
See the attached file.

 

0 Kudos
Reply

518 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi,

The bootloader is ok, but it can not enter to the kernel, that's your error, please check you have a valid kernel.

Regards

0 Kudos
Reply

467 Views
marcocavallini
Contributor V

Please find attached the boot log

Consider that I needed to manually enter the fdt_file because surprisingly was not populated by the build

 

0 Kudos
Reply

514 Views
marcocavallini
Contributor V

Hello,
just to be clear: I didn't make any modifications. I followed the instructions at the beginning of this thread exactly. I expect a standard NXP system to work out of the box, but it doesn't.
The kernel is present.


=> ls mmc 2:1
    54646   imx6q-sabresd-btwifi.dtb
    53782   imx6q-sabresd-enetirq.dtb
    53654   imx6q-sabresd-hdcp.dtb
    53573   imx6q-sabresd-ldo.dtb
    53649   imx6q-sabresd-pcie-ep.dtb
    53649   imx6q-sabresd-pcie.dtb
    53737   imx6q-sabresd-uart.dtb
    53653   imx6q-sabresd.dtb
   442392   tee.bin
   442456   uTee-6qsdb
  9475000   zImage

11 file(s), 0 dir(s)

=> ls mmc 2:2
<DIR>       1024 .
<DIR>       1024 ..
<DIR>      12288 lost+found
<SYM>          7 bin
<DIR>       1024 boot
<DIR>       1024 dev
<DIR>       3072 etc
<DIR>       1024 home
<SYM>          7 lib
<DIR>       1024 media
<DIR>       1024 mnt
<DIR>       1024 proc
<DIR>       1024 root
<DIR>       1024 run
<SYM>          8 sbin
<DIR>       1024 srv
<DIR>       1024 sys
<DIR>       1024 tmp
<DIR>       1024 usr
<DIR>       1024 var
0 Kudos
Reply

448 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Please check if the board works with the image without modification it look like you don't have any kernel on it, forget about the ftd files, please check it.

Regards

0 Kudos
Reply

444 Views
marcocavallini
Contributor V

Hello, thank you for answering.

I replaced the SDcard just to be sure it is not the problem.


My board is MCIMX6Q-SDB SCH 27516 Rev C2

I don't understand why you say "it look like you don't have any kernel on it" because as you can see in the TXT file I attached last time the Kernel is booting

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 6.6.52-lts-next-ge0f9e2afd4cf (oe-user@oe-host) (arm-poky-linux-gnueabi-gcc (GCC) 13.3.0, GNU ld (GNU Binutils) 2.42.0.20240723) #1 SMP PREEMPT Tue Nov 19 23:01:49 UTC 2024

 

However this is the sequence I followed in "verbatim mode":

  1. I started following the NXP user guide UG10164
  2. mkdir yocto-mx6-scarthgap; cd yocto-mx6-scarthgap
  3. repo init -u https://github.com/nxp-imx/imx-manifest \
    -b imx-linux-scarthgap -m imx-6.6.52-2.2.0.xml
  4. repo sync -j8
  5. DISTRO=fsl-imx-wayland MACHINE=imx6qsabresd source imx-setup-release.sh -b build
  6. bitbake core-image-minimal

then I flashed the image on the SDCARD

core-image-minimal-imx6qsabresd.rootfs-20250804102423.wic.bmap
core-image-minimal-imx6qsabresd.rootfs-20250804102423.wic.zst

 

then I verified DIP Switch SW6 to boot form SDcard in slot SD3
OFF-ON-OFF-OFF-OFF-OFF-ON-OFF

 

Then I powered the board on: See the new file attached

0 Kudos
Reply