Problem with defconfig at Kernel building

Discussion about U-Boot and the kernel.

Problem with defconfig at Kernel building

Postby atex » Fri Mar 17, 2017 12:15 pm

Hello,
I try to build a kernel from latest sources LinuxSunxi, but have problem with .config file.
After command
Code: Select all
make ARCH=arm linux_sun7i_defconfig

Got back message "configuration written to .config"
But the .config file not have my kernel definitions.
Why is this happening?
atex
 
Posts: 6
Joined: Thu Mar 09, 2017 2:38 pm

Re: Problem with defconfig at Kernel building

Postby moonman » Fri Mar 17, 2017 5:00 pm

You effectively reset the config to defaults with that command so all changes you did previously are gone
Pogoplug V4 | GoFlex Home | Raspberry Pi B 512 | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | |[armv5] How to install my.pogoplug.com service | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3089
Joined: Sat Jan 15, 2011 3:36 am
Location: Calgary, Canada

Re: Problem with defconfig at Kernel building

Postby atex » Fri Mar 17, 2017 11:46 pm

OK, after execute make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 uImage the .config file automatically be modified, for example this option will be removed CONFIG_SND_SUNXI_SOC_I2S_INTERFACE=y.
How to resolve it?
My build script
Code: Select all
cd linux-sunxi/
cp linux-sun7i-defconfig .config
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 uImage
atex
 
Posts: 6
Joined: Thu Mar 09, 2017 2:38 pm

Re: Problem with defconfig at Kernel building

Postby moonman » Sun Mar 19, 2017 2:01 am

Run make menuconfig and see if it is enabled. If it gets disabled automatically there must be a dependency that is not met
Pogoplug V4 | GoFlex Home | Raspberry Pi B 512 | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | |[armv5] How to install my.pogoplug.com service | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3089
Joined: Sat Jan 15, 2011 3:36 am
Location: Calgary, Canada

Re: Problem with defconfig at Kernel building

Postby atex » Sun Mar 19, 2017 5:01 pm

I'm make a cross compiling.
Code: Select all
make ARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabihf- menuconfig

In this menu I can found ALSA support, but not see the I2S driver.
Code: Select all
ALSA for SoC audio support
--- ALSA for SoC audio
<*>   SOUND driver for  sunxi
<*>   APB On-Chip sun4i and sun5i Codec
<*>   HDMI Audio for the AllWinner sun4i and sun5i chips
<*>   sun4i and sun5i On-Chip spdif
<*>   Build all ASoC CODEC drivers

Soureces of I2S
Code: Select all
/home/atex/linux-sunxi/sound/soc/sunxi/i2s# ls
Kconfig
Makefile
sndi2s.c
sndi2s.h
sunxi-i2s.c
sunxi-i2sdma.c
sunxi-i2sdma.h
sunxi-i2s.h
sunxi-sndi2s.c
sunxi-sndi2s.h


Maybe wrong dependency?
atex
 
Posts: 6
Joined: Thu Mar 09, 2017 2:38 pm

Re: Problem with defconfig at Kernel building

Postby WarheadsSE » Mon Mar 20, 2017 12:01 pm

From menuconfig, you can search. I will not provide instruction.

Search for item you want to configure, it will tell you location. If not found, no longer exists in kernel sources.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6730
Joined: Mon Oct 18, 2010 2:12 pm

Re: Problem with defconfig at Kernel building

Postby atex » Mon Mar 20, 2017 4:31 pm

Thanks WarheadsSE, With the searching I found I2S options needed for me.
But I don't know why SND_SUNXI_SOC_I2S_INTERFACE have value N ..?

Code: Select all
 Symbol: SND_SUNXI_SOC_I2S_INTERFACE [=n]
 Type  : tristate
 Prompt: SoC i2s interface for the AllWinner sun4i and sun5i chips
 Defined at sound/soc/sunxi/i2s/Kconfig:1
 Depends on: SOUND [=y] && !M68K && !UML && SND [=y] && SND_SOC [=y] && SOUND_SUNXI [=y] && (ARCH_SUN4I [=n] || ARCH_SUN5I [=n]) Location:
 -> Device Drivers
   -> Sound card support (SOUND [=y])
      -> Advanced Linux Sound Architecture (SND [=y])
         -> ALSA for SoC audio support (SND_SOC [=y])
            -> SOUND driver for sunxi (SOUND_SUNXI [=y])
atex
 
Posts: 6
Joined: Thu Mar 09, 2017 2:38 pm

Re: Problem with defconfig at Kernel building

Postby WarheadsSE » Mon Mar 20, 2017 4:47 pm

The dependency walk is right there.
Code: Select all
&& (ARCH_SUN4I [=n] || ARCH_SUN5I [=n])
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6730
Joined: Mon Oct 18, 2010 2:12 pm


Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 1 guest