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.

FoodGenius

Members
  • Joined

  • Last visited

Reputation Activity

  1. Like
    FoodGenius got a reaction from lanefu in espressobin uboot security concerns switch init portmask   
    as a quick and dirty workaround... without rebuilding the bootloader images....  i fiddle with uboot "switch" command
     
    switch phy_write 1 0 0 0xffff  
    to disable the ports at boot, just by prepending to bootcmd variable. so even if there is no microsd card available or filesystem or kernel image is corrupt, the ports gets deactivated and no traffic ist forwarded.
    so you can use
     
    setenv bootcmd 'switch phy_write 1 0 0 0xffff;for target in ${boot_targets}; do run bootcmd_${target}; done'
     
    but the "2 seconds timeout prompt" is still there, so you have a small window of 2-3 seconds at boot time, where lan/wan still gets forwarded/bridged.... and if uboot itself hangs (memory timing or instability of powersource ).. there is still the problem of forwarding traffic until manually triggered hard reset or shutdown.
     
    also if you enter the uboot console, switch forwarding is still active. so your first command in console should be.
     
    switch phy_write 1 0 0 0xffff

    if you dont won't to set wan port down, use 2 or 3 for the lan0 and lan1.

    switch phy_write 1 0 0 0xffff -> WAN
    switch phy_write 2 0 0 0xffff -> LAN0
    switch phy_write 3 0 0 0xffff -> LAN1
     
    Update: @Igor perhaps you want to mention this alternative bootcmd var at the current armbian infopage?
    https://www.armbian.com/espressobin/

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.