boot/at91bootstrap3: migrate to pkg-kconfig
Sorry, didn't send to the list.
My problem may be because I patched at91bootstrap3, and I probably missed something there. I was changing some of its configuration to enable SDRAM and NOR flash for this board.
Patrick
---------- Forwarded Message ----------
Subject: Re: [Buildroot] [git commit] boot/at91bootstrap3: migrate to pkg- kconfig
Date: Tuesday, April 07, 2015, 12:40:48 PM
From: Patrick Noffke <[email protected]>
To: Yann E. MORIN <[email protected]>
Quoted 7 lines · you
Patrick, All,
see what it's doing in:
package/pkg-kconfig.mk, and it's basically:cp $(YOUR_CONFIG_FILE) $(AT91BOOTSTRAP3_DIR)/.config make oldconfig
This is my problem. I didn't know about oldconfig -- I thought defconfig was getting run.
make oldconfig is replacing some of my settings for the at91bootstrap3 package.
In particular, in my custom config, I have
#CONFIG_MACH_TYPE="1830"CONFIG_MACH_TYPE="0xFFFFFFFF"CONFIG_SDRAM=y
and these are getting replaced with
CONFIG_MACH_TYPE="1830"
# CONFIG_SDRAM is not set
Should oldconfig be doing this?
Quoted 8 lines
Well, it's pretty easy to see if this patch is the culprit:
git checkout 2016cb30f103024a8dfb50bcfe9a68bfac2f1118^then test your config and see if it works. If it does, then the patch may be the culprit (i.e. uncover a bug somewhere, maybe in Buildroot, maybe in at91bootstrap3 itself); if the config does not work, then the bug pre-existed that patch.
When I checkout this revision, the package builds fine.
Thanks,
Patrick
-----------------------------------------
Quoted 4 lines · Patrick Noffke
Sorry, didn't send to the list.
My problem may be because I patched at91bootstrap3, and I probably missed something there. I was changing some of its configuration to enable SDRAM
and
Quoted 10 lines
NOR flash for this board.
Quoted 4 lines
cp $(YOUR_CONFIG_FILE) $(AT91BOOTSTRAP3_DIR)/.config make oldconfigThis is my problem. I didn't know about oldconfig -- I thought defconfig was getting run.
make oldconfig is replacing some of my settings for the at91bootstrap3
package.
Quoted 7 lines
In particular, in my custom config, I have
#CONFIG_MACH_TYPE="1830"
CONFIG_MACH_TYPE="0xFFFFFFFF"CONFIG_SDRAM=y
Quoted 7 lines
and these are getting replaced with
CONFIG_MACH_TYPE="1830"
#CONFIG_SDRAMis not setShould oldconfig be doing this?
If I add:
select CONFIG_SDRAM
to output/build/at91bootstrap3-v3.7.1/board/at91sam9m10g45ek/Config.in.board, then the CONFIG_SDRAM=y line is not replaced when oldconfig is run.
I don't understand oldconfig, but from a bit of Googling it sounds like it should only write config options that don't already exist in the current .config file. Is that correct? If so, is it a bug in the at91bootstrap3 kconfig code?
Thanks,
Patrick