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 $this->bbcode_second_pass_code('', '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 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

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
$this->bbcode_second_pass_code('', '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 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Problem with defconfig at Kernel building

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

I'm make a cross compiling.
$this->bbcode_second_pass_code('', '
make ARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabihf- menuconfig
')
In this menu I can found ALSA support, but not see the I2S driver.
$this->bbcode_second_pass_code('', '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
$this->bbcode_second_pass_code('', '/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: 6807
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 ..?

$this->bbcode_second_pass_code('', ' 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.
$this->bbcode_second_pass_code('', '&& (ARCH_SUN4I [=n] || ARCH_SUN5I [=n])')
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 9 guests

cron