U-Boot sama5d3 xplained issue
Hello everyone,
System: sama5d3_xplained board
I have a question regarding the configuration and build of u-boot.
We have a build that was implemented earlier. I am trying to make some changes to it.
Change 1: Change the auto boot delay to 1 second.
Change 2: Add an auto boot command to set a gpio.
I am aware of the environment variables: CONFIG_BOOTDELAY and CONFIG_BOOTCOMMAND (needed for the changes above.) I tried modifying the " configs/sama5d3_xplained_nandflash_defconfig "
Question 1: Do I need to create an *.config file using the make menuconfig?
Question 2: How do I create the u-boot.bin . Does this depend on the Linux build?
I know that there is an environment variable: CONFIG_BOOTARGS that needs to be populated.
Signature · 1 line
Pratham Ovalekar
I'm working on this project with Pratham. Let me provide a few more details.
We've defined
UBOOT_MACHINE ?= "sama5d3_xplained_nandflash_config"
Inside
u-boot-at91/sama5d3_xplained_nandflash_config
we change CONFIG_BOOTDELAY, but it has no effect on the newly built image. The boot delay remains the same as it was before we changed it.
Based on the UBOOT_MACHINE, can we be certain we are changing the correct file?
How do we get the build process to include our changes?
Thanks,
David
Quoted 22 lines · Prathamesh Ovalekar
Hello everyone,
System:
sama5d3_xplainedboardI have a question regarding the configuration and build of u-boot.
We have a build that was implemented earlier. I am trying to make some changes to it.Change 1: Change the auto boot delay to 1 second.
Change 2: Add an auto boot command to set a gpio.I am aware of the environment variables:
CONFIG_BOOTDELAYandCONFIG_BOOTCOMMAND(needed for the changes above.) I tried modifying the " configs/sama5d3_xplained_nandflash_defconfig "Question 1: Do I need to create an *.config file using the make menuconfig?
Question 2: How do I create the u-boot.bin . Does this depend on the Linux build?
I know that there is an environment variable:CONFIG_BOOTARGSthat needs to be populated.Signature · 1 line
Pratham Ovalekar
I'm working on this project with Pratham. Let me provide a few more details.
We've defined
UBOOT_MACHINE ?= "sama5d3_xplained_nandflash_config"
Inside
u-boot-at91/sama5d3_xplained_nandflash_config
we change CONFIG_BOOTDELAY, but it has no effect on the newly built image. The boot delay remains the same as it was before we changed it.
Based on the UBOOT_MACHINE, can we be certain we are changing the correct file?
How do we get the build process to include our changes?
Thanks,
David
Quoted 27 lines · Prathamesh Ovalekar
Hello everyone,
System:
sama5d3_xplainedboardI have a question regarding the configuration and build of u-boot. We have a build that was implemented earlier. I am trying to make some changes to it.
Change 1: Change the auto boot delay to 1 second.
Change 2: Add an auto boot command to set a gpio.I am aware of the environment variables:
CONFIG_BOOTDELAYandCONFIG_BOOTCOMMAND(needed for the changes above.)
I tried modifying the " configs/sama5d3_xplained_nandflash_defconfig "Question 1: Do I need to create an *.config file using the make menuconfig?
Question 2: How do I create the u-boot.bin . Does this depend on the Linux build?
I know that there is an environment variable:CONFIG_BOOTARGSthat needs to be populated.
--
Pratham Ovalekar
perhaps asking it on https://github.com/linux4sam/u-boot-at91 via github issues might be helpful too.
Quoted 51 lines · David Novak
I'm working on this project with Pratham. Let me provide a few more details.
We've defined
UBOOT_MACHINE?= "sama5d3_xplained_nandflash_config"Inside
u-boot-at91/sama5d3_xplained_nandflash_config
we change
CONFIG_BOOTDELAY, but it has no effect on the newly built image. The boot delay remains the same as it was before we changed it.Based on the
UBOOT_MACHINE, can we be certain we are changing the correct file?How do we get the build process to include our changes?
Thanks,
DavidOn 11/19/2020 5:37 PM, Prathamesh Ovalekar wrote:
Hello everyone,
System:
sama5d3_xplainedboardI have a question regarding the configuration and build of u-boot.
We have a build that was implemented earlier. I am trying to make some changes to it.Change 1: Change the auto boot delay to 1 second.
Change 2: Add an auto boot command to set a gpio.I am aware of the environment variables:
CONFIG_BOOTDELAYandCONFIG_BOOTCOMMAND(needed for the changes above.) I tried modifying the " configs/sama5d3_xplained_nandflash_defconfig "Question 1: Do I need to create an *.config file using the make menuconfig?
Question 2: How do I create the u-boot.bin . Does this depend on the Linux build?
I know that there is an environment variable:CONFIG_BOOTARGSthat needs to be populated.--
Pratham Ovalekar
Hi,
I think it would be interesting information to know "how" you change the value inside "u-boot-at91/sama5d3_xplained_nandflash_config".
As every time you rebuild it may be redownloaded, you should do this via a patch to append to the recipe.
Are you doing this? Or just changing it locally?
If you give some more info probably we can better help!
Cheers,
Federico
Il giorno lun 23 nov 2020 alle ore 08:06 Khem Raj <[email protected]> ha scritto:
Quoted 67 lines
perhaps asking it on https://github.com/linux4sam/u-boot-at91 via github issues might be helpful too.
Quoted 2 lines · David Novak
I'm working on this project with Pratham. Let me provide a few more
details.
Quoted 10 lines
We've defined
UBOOT_MACHINE?= "sama5d3_xplained_nandflash_config"Inside
u-boot-at91/sama5d3_xplained_nandflash_config
we change
CONFIG_BOOTDELAY, but it has no effect on the newly builtimage. The boot delay remains the same as it was before we changed it.
Quoted 2 lines
Based on the
UBOOT_MACHINE, can we be certain we are changing thecorrect file?
Quoted 8 lines
How do we get the build process to include our changes?
Thanks,
DavidQuoted 8 lines
On 11/19/2020 5:37 PM, Prathamesh Ovalekar wrote:
Hello everyone,
System:
sama5d3_xplainedboardI have a question regarding the configuration and build of u-boot. We have a build that was implemented earlier. I am trying to make some
changes to it.
Quoted 5 lines
Change 1: Change the auto boot delay to 1 second.
Change 2: Add an auto boot command to set a gpio.I am aware of the environment variables:
CONFIG_BOOTDELAYand
CONFIG_BOOTCOMMAND(needed for the changes above.)Quoted 3 lines
I tried modifying the " configs/sama5d3_xplained_nandflash_defconfig "
Question 1: Do I need to create an *.config file using the make
menuconfig?
Quoted 2 lines
Question 2: How do I create the u-boot.bin . Does this depend on the
Linux build?
Quoted 1 line
I know that there is an environment variable:
CONFIG_BOOTARGSthat needs to be populated.Quoted 10 lines
--
Pratham Ovalekar
We changed the file directly.
Since it's a custom file, I don't think it is being downloaded. What is the easiest way to determine if it's being downloaded?
Thanks,
David
Quoted 88 lines · Federico Pellegrin
Hi,
I think it would be interesting information to know "how" you change the value inside "u-boot-at91/sama5d3_xplained_nandflash_config".As every time you rebuild it may be redownloaded, you should do this via a patch to append to the recipe.
Are you doing this? Or just changing it locally?
If you give some more info probably we can better help!
Cheers,
FedericoIl giorno lun 23 nov 2020 alle ore 08:06 Khem Raj <[email protected] <mailto:[email protected]>> ha scritto:
perhaps asking it on https://github.com/linux4sam/u-boot-at91 <https://github.com/linux4sam/u-boot-at91> via github issues might be helpful too. On Sat, Nov 21, 2020 at 4:26 AM David Novak <[email protected] <mailto:[email protected]>> wrote: > > I'm working on this project with Pratham. Let me provide a few more details. > > We've defined > > UBOOT_MACHINE ?= "sama5d3_xplained_nandflash_config" > > Inside > > u-boot-at91/sama5d3_xplained_nandflash_config > > we change CONFIG_BOOTDELAY, but it has no effect on the newly built image. The boot delay remains the same as it was before we changed it. > > Based on the UBOOT_MACHINE, can we be certain we are changing the correct file? > > How do we get the build process to include our changes? > > Thanks, > David > > > > On 11/19/2020 5:37 PM, Prathamesh Ovalekar wrote: > > Hello everyone, > > System: sama5d3_xplained board > > I have a question regarding the configuration and build of u-boot. > We have a build that was implemented earlier. I am trying to make some changes to it. > > Change 1: Change the auto boot delay to 1 second. > Change 2: Add an auto boot command to set a gpio. > > I am aware of the environment variables: CONFIG_BOOTDELAY and CONFIG_BOOTCOMMAND (needed for the changes above.) > I tried modifying the " configs/sama5d3_xplained_nandflash_defconfig " > > Question 1: Do I need to create an *.config file using the make menuconfig? > > Question 2: How do I create the u-boot.bin . Does this depend on the Linux build? > I know that there is an environment variable: CONFIG_BOOTARGS that needs to be populated. > > -- > Pratham Ovalekar > > > > > > >
Hi David,
If you change it directly, changes may not be taken into account for the rebuild. And if the package build gets retriggered, then the whole repository is deleted (including your local changes), redownloaded, repatched and so on. So while it may by chance work by modifying locally in certain conditions, it will most likely not.
I would see two ways:
1) Create a patch that does your changes and add it to the recipe (most likely now in a custom layer) as a patch
2) Fork the repository, add all your customizations there, and point the recipe (again most likely now in a custom layer) to that one.
Cheers,
F.
Il giorno ven 27 nov 2020 alle ore 01:35 David Novak <[email protected]> ha scritto:
Quoted 102 lines
We changed the file directly.
Since it's a custom file, I don't think it is being downloaded. What is the easiest way to determine if it's being downloaded?
Thanks,
DavidOn 11/23/2020 2:16 AM, Federico Pellegrin wrote:
Hi,
I think it would be interesting information to know "how" you change the value inside "u-boot-at91/sama5d3_xplained_nandflash_config".As every time you rebuild it may be redownloaded, you should do this via a patch to append to the recipe.
Are you doing this? Or just changing it locally?
If you give some more info probably we can better help!
Cheers,
FedericoIl giorno lun 23 nov 2020 alle ore 08:06 Khem Raj <[email protected]> ha scritto:
Quoted 68 lines
perhaps asking it on https://github.com/linux4sam/u-boot-at91 via github issues might be helpful too.
Quoted 2 lines · David Novak
I'm working on this project with Pratham. Let me provide a few more
details.
Quoted 10 lines
We've defined
UBOOT_MACHINE?= "sama5d3_xplained_nandflash_config"Inside
u-boot-at91/sama5d3_xplained_nandflash_config
we change
CONFIG_BOOTDELAY, but it has no effect on the newly builtimage. The boot delay remains the same as it was before we changed it.
Quoted 2 lines
Based on the
UBOOT_MACHINE, can we be certain we are changing thecorrect file?
Quoted 8 lines
How do we get the build process to include our changes?
Thanks,
DavidQuoted 8 lines
On 11/19/2020 5:37 PM, Prathamesh Ovalekar wrote:
Hello everyone,
System:
sama5d3_xplainedboardI have a question regarding the configuration and build of u-boot. We have a build that was implemented earlier. I am trying to make some
changes to it.
Quoted 5 lines
Change 1: Change the auto boot delay to 1 second.
Change 2: Add an auto boot command to set a gpio.I am aware of the environment variables:
CONFIG_BOOTDELAYand
CONFIG_BOOTCOMMAND(needed for the changes above.)Quoted 3 lines
I tried modifying the " configs/sama5d3_xplained_nandflash_defconfig "
Question 1: Do I need to create an *.config file using the make
menuconfig?
Quoted 2 lines
Question 2: How do I create the u-boot.bin . Does this depend on the
Linux build?
Quoted 1 line
I know that there is an environment variable:
CONFIG_BOOTARGSthat needs to be populated.Quoted 10 lines
--
Pratham Ovalekar