u-boot 2025.04 setting CONFIG_SYS_DEVICE_NULLDEV - where and how! Yocto 6.12.20

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

u-boot 2025.04 setting CONFIG_SYS_DEVICE_NULLDEV - where and how! Yocto 6.12.20

Jump to solution
685 Views
edwardtyrrell
Senior Contributor I

Hi All,

We're having great difficulty in setting a few of the u-boot build configuration parameters in particular CONFIG_SYS_DEVICE_NULLDEV=y which needs to be off i.e. # CONFIG_SYS_DEVICE_NULLDEV is not set    

BTW The build is Yocto 6.12.20 and apparently there is an issue in not being able to use bitbake u-boot-imx -c menuconfig; which we can't. After fixing the KCONFIG_CONFIG_ENABLE_MENUCONFIG error the pop-up menuconfig window still fails. 

 

My actual question is where can I set CONFIG_SYS_DEVICE_NULLDEV (without using the GUI menuconfig as above)? I have tried a number of config files within tmp/work/imx7dsabresd-poky-linux-gnueabi/u-boot-imx but after compiling and deploying all the contents within the config files get overwritten.  Where is the source for these CONFIG settings? I've grep'd the entire build but cannot find a reliable file to change so the 'changes' are passed on to the autogenerated configs. 

 A number of the config files state "Automatically generated file; DO NOT EDIT." what and where are these files being generated?

 

Kind regards.

 

0 Kudos
Reply
1 Solution
569 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Then for this target you'll need to modify the following defconfig:
https://github.com/nxp-imx/uboot-imx/blob/lf_v2025.04/configs/mx7dsabresd_defconfig

Secondly for configuring yocto for an specific target that you'll be using then you'll need to create a patch and then create a layer which will then apply the patch to the source, this would be the clean way to do it, at least for me.

But as it is yocto there is many ways to do it you may want to have a look here:
https://stackoverflow.com/questions/47047209/how-to-change-the-config-of-u-boot-in-yocto

Best regards/Saludos,
Aldo.

View solution in original post

0 Kudos
Reply
4 Replies
645 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Could you share for which device are you trying to enable this Config?
Also, are you looking for only building Uboot?

Best regards/Saludos,
Aldo.

0 Kudos
Reply
642 Views
edwardtyrrell
Senior Contributor I

Hi @AldoG 

It's the imx7dsabresd.

Thanks.

 

0 Kudos
Reply
570 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Then for this target you'll need to modify the following defconfig:
https://github.com/nxp-imx/uboot-imx/blob/lf_v2025.04/configs/mx7dsabresd_defconfig

Secondly for configuring yocto for an specific target that you'll be using then you'll need to create a patch and then create a layer which will then apply the patch to the source, this would be the clean way to do it, at least for me.

But as it is yocto there is many ways to do it you may want to have a look here:
https://stackoverflow.com/questions/47047209/how-to-change-the-config-of-u-boot-in-yocto

Best regards/Saludos,
Aldo.

0 Kudos
Reply
551 Views
edwardtyrrell
Senior Contributor I

Hi @AldoG 

Good reply, I've tried some of that already but have now decided to use the imx7s uboot for our debugging - its a simple serial output.

Kind regards. 

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2162384%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Eu-boot%202025.04%20setting%20CONFIG_SYS_DEVICE_NULLDEV%20-%20where%20and%20how!%20Yocto%206.12.20%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2162384%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3EWe're%20having%20great%20difficulty%20in%20setting%20a%20few%20of%20the%20u-boot%20build%20configuration%20parameters%20in%20particular%26nbsp%3BCONFIG_SYS_DEVICE_NULLDEV%3Dy%20which%20needs%20to%20be%20off%20i.e.%20%23%26nbsp%3BCONFIG_SYS_DEVICE_NULLDEV%20is%20not%20set%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3EBTW%20The%20build%20is%20Yocto%206.12.20%20and%20apparently%20there%20is%20an%20issue%20in%20not%20being%20able%20to%20use%20bitbake%20u-boot-imx%20-c%20menuconfig%3B%20which%20we%20can't.%20After%20fixing%20the%26nbsp%3B%3CSPAN%3EKCONFIG_CONFIG_ENABLE_MENUCONFIG%20error%20the%20pop-up%20menuconfig%20window%20still%20fails.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3EMy%20actual%20question%20is%20where%20can%20I%20set%26nbsp%3BCONFIG_SYS_DEVICE_NULLDEV%20(without%20using%20the%20GUI%20menuconfig%20as%20above)%3F%20I%20have%20tried%20a%20number%20of%20config%20files%20within%26nbsp%3Btmp%2Fwork%2Fimx7dsabresd-poky-linux-gnueabi%2Fu-boot-imx%20but%20after%20compiling%20and%20deploying%20all%20the%20contents%20within%20the%20config%20files%20get%20overwritten.%26nbsp%3B%20Where%20is%20the%20source%20for%20these%20CONFIG%20settings%3F%20I've%20grep'd%20the%20entire%20build%20but%20cannot%20find%20a%20reliable%20file%20to%20change%20so%20the%20'changes'%20are%20passed%20on%20to%20the%20autogenerated%20configs.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3BA%20number%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Eof%20the%20config%20files%20state%20%22Automatically%20generated%20file%3B%20DO%20NOT%20EDIT.%22%20what%20and%20where%20are%20these%20files%20being%20generated%3F%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3EKind%20regards.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2165773%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20u-boot%202025.04%20setting%20CONFIG_SYS_DEVICE_NULLDEV%20-%20where%20and%20how!%20Yocto%206.12.20%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2165773%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F171173%22%20target%3D%22_blank%22%3E%40AldoG%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGood%20reply%2C%20I've%20tried%20some%20of%20that%20already%20but%20have%20now%20decided%20to%20use%20the%20imx7s%20uboot%20for%20our%20debugging%20-%20its%20a%20simple%20serial%20output.%3C%2FP%3E%3CP%3EKind%20regards.%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2165479%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20u-boot%202025.04%20setting%20CONFIG_SYS_DEVICE_NULLDEV%20-%20where%20and%20how!%20Yocto%206.12.20%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2165479%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThen%20for%20this%20target%20you'll%20need%20to%20modify%20the%20following%20defconfig%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fuboot-imx%2Fblob%2Flf_v2025.04%2Fconfigs%2Fmx7dsabresd_defconfig%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx%2Fuboot-imx%2Fblob%2Flf_v2025.04%2Fconfigs%2Fmx7dsabresd_defconfig%3C%2FA%3E%3C%2FP%3E%0A%3CP%3ESecondly%20for%20configuring%20yocto%20for%20an%20specific%20target%20that%20you'll%20be%20using%20then%20you'll%20need%20to%20create%20a%20patch%20and%20then%20create%20a%20layer%20which%20will%20then%20apply%20the%20patch%20to%20the%20source%2C%20this%20would%20be%20the%20clean%20way%20to%20do%20it%2C%20at%20least%20for%20me.%3CBR%20%2F%3E%3CBR%20%2F%3EBut%20as%20it%20is%20yocto%20there%20is%20many%20ways%20to%20do%20it%20you%20may%20want%20to%20have%20a%20look%20here%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fstackoverflow.com%2Fquestions%2F47047209%2Fhow-to-change-the-config-of-u-boot-in-yocto%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F47047209%2Fhow-to-change-the-config-of-u-boot-in-yocto%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20regards%2FSaludos%2C%3CBR%20%2F%3EAldo.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2163937%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20u-boot%202025.04%20setting%20CONFIG_SYS_DEVICE_NULLDEV%20-%20where%20and%20how!%20Yocto%206.12.20%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2163937%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3ECould%20you%20share%20for%20which%20device%20are%20you%20trying%20to%20enable%20this%20Config%3F%3CBR%20%2F%3EAlso%2C%20are%20you%20looking%20for%20only%20building%20Uboot%3F%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20regards%2FSaludos%2C%3CBR%20%2F%3EAldo.%3C%2FP%3E%3C%2FLINGO-BODY%3E