Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Custom uboot configuration

Featured Replies

Hi,

 

I'm looking for the simplest way to provide a custom uboot configuration to the Armbian build system.

 

I have read (I think I did not miss something obvious) the documentation pages how to customize Armbian build, but the doc is mostly focused on specifying alternate source version or applying custom patches, while I only need a way to specify an already existing uboot config (generated with make menuconfig from the existing, installed Armbian sources).

 

What would be the best way to tell Armbian to use an alternate uboot configuration?

 

Thanks,

Emmanuel.

 

6 hours ago, eblot said:

You mean something like https://docs.armbian.com/Developer-Guide_User-Configurations/#user-provided-kernel-config ?

 

No, I'm not even sure to understand how to name the files for uboot, nor where to look to get this info :-(


Yes.

 

What do you want to achieve with this?

 

10 hours ago, eblot said:

I only need a way to specify an already existing uboot config


You add changes to the basic config with a patch. Like this one:
https://github.com/armbian/build/blob/master/patch/u-boot/u-boot-sunxi/add-a20-optional-eMMC.patch
 

  • Author

> What do you want to achieve with this?

 

I want the most minimalistic uboot bianry to boot from SPI flash, then boot from bootp/tftp and save the environment in the SPI flash.

For now, uboot takes many seconds to enumerate the (for me useless) USB EHCIs, and I cannot save the u-boot environment to the SPI dataflash, so the OrangePiZero device cannot boot w/o MMC or command sent to the serial port.

 

> You add changes to the basic config with a patch.


Ok. It is only possible through a patch.

It seems need to skim all the MMC/USB/... off the default config, and add the SPI write feature for the u-boot environment. 

The patch should be generated against the .config file that can be found in the u-boot source directory after an initial build, shouldn't it?

 

Thanks for your help,

Emmanuel.

  • Author

I still fail to find how I should name the patch and where I should store it:

  * userpatches/linux-$KERNELFAMILY-$KERNELBRANCH.config is for kernel

  * userpatches/sources/$LINUXFAMILY.conf with LINUXFAMILY=sunxi does not seem to address uboot

 

Should I use your example (build/patch/u-boot/u-boot-sunxi/add-a20-optional-eMMC.patch) and replace build/patch with build/userpatches, e.g. build/userpatches/u-boot/u-boot-sunxi/my-custom-conf.patch? Sorry, I'm still confused about how to address u-boot config from https://docs.armbian.com/Developer-Guide_User-Configurations/.

 

Thanks.

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.