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.

Customize boot.cmd

Featured Replies

Hello guys

 

is there a way to customize boot.cmd without changing any git-controlled files ? For example, I would like to setenv console to null. 

I found the file lib/config/bootenv/sunxi-default.txt but I have no idea how to override it in my userpaches folder.

 

Thanks

 

20 minutes ago, ssuloev said:

I found the file lib/config/bootenv/sunxi-default.txt but I have no idea how to override it in my userpaches folder.

In customize-image.sh you can use echo or sed -i to add/change the environment file (/boot/armbianEnv.txt) or the boot script itself (/boot/boot.cmd). I would not recommend to try to change the whole boot script, but it's possible - if you put your version in userpatches/overlay/ it will be accessible from /tmp/overlay from customize-image.sh

  • Author

Thanks for the answer..

But it seems like I can't go that way.

I need to disable console and I thought I would be able to do that by setting console=null but after analyzing boot.cmd I see that it is not possible.

So now the question  is: how can I disable console so that boot messages are not displayed and login prompt is not visible ?

I should be able to only login by ssh. I need to run a linuxfb application and so I don't need the console.

  • Author
1 hour ago, zador.blood.stained said:

In customize-image.sh you can use echo or sed -i to add/change the environment file (/boot/armbianEnv.txt) or the boot script itself (/boot/boot.cmd). I would not recommend to try to change the whole boot script, but it's possible - if you put your version in userpatches/overlay/ it will be accessible from /tmp/overlay from customize-image.sh

If I replace boot.cmd  in customize-image.sh will  *.scr file be built too ?

  • Author

I have finally ended up with the following patch:

 

diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index 9b514ff..a09a3da 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -518,6 +518,7 @@ extern int soft_i2c_gpio_scl;
 #endif
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
+       "silent=1\0" \
        CONSOLE_ENV_SETTINGS \
        MEM_LAYOUT_ENV_SETTINGS \
        DFU_ALT_INFO_RAM \
@@ -532,4 +533,8 @@ extern int soft_i2c_gpio_scl;
 #define CONFIG_EXTRA_ENV_SETTINGS
 #endif
 
+#define CONFIG_SILENT_CONSOLE
+#define CONFIG_SYS_DEVICE_NULLDEV
+#define CONFIG_SILENT_CONSOLE_UPDATE_ON_RELOC
+
 #endif /* _SUNXI_COMMON_CONFIG_H */
 

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.