undefined reference to `gpio_get_list_count' when spl is enabled in u-boot

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

undefined reference to `gpio_get_list_count' when spl is enabled in u-boot

1,031 Views
sheraz_ali
Contributor II

I am trying to build u-boot for i.MX 8QuadMax, when i build after enabling spl 

I get the following error

drivers/built-in.o: In function `iw_gpio_probe':
/home/iwave/Desktop/Patch-1.1/B-testing/drivers/gpio/gpio-unused.c:50: undefined reference to `gpio_get_list_count'
/home/iwave/Desktop/Patch-1.1/B-testing/drivers/gpio/gpio-unused.c:54: undefined reference to `gpio_request_list_by_name'
scripts/Makefile.spl:346: recipe for target 'spl/u-boot-spl' failed
make[1]: *** [spl/u-boot-spl] Error 1
Makefile:1447: recipe for target 'spl/u-boot-spl' failed
make: *** [spl/u-boot-spl] Error 2

I captured the log using the following command 

#make 2>&1 | tee make_log.txt

I have attached the build log for your reference

0 Kudos
3 Replies

978 Views
joanxie
NXP TechSupport
NXP TechSupport

what's your enable spl steps? could you share your test steps?

0 Kudos

978 Views
sheraz_ali
Contributor II

uboot base imx_v2018.03_4.14.98_2.0.0_ga

source /opt/fsl-imx-xwayland/4.14-sumo/environment-setup-aarch64-poky-linux
export ARCH=arm64
make clean
make imx8qm_xx_defconfig
make

0 Kudos

978 Views
joanxie
NXP TechSupport
NXP TechSupport

you don't use nxp board and nxp bsp, right? did you use the third party board and software?

0 Kudos