Keresés

Új hozzászólás Aktív témák

  • attilav2

    őstag

    válasz roti86 #19772 üzenetére

    mount -o remount,ro /
    mount -o remount,ro /overlay
    cd /tmp
    dd if=factory.bin bs=1M count=4 | mtd write - kernel
    dd if=factory.bin bs=1M skip=4 | mtd -r write - ubi
    Ha megcsinálom a fenti átpartícionálást(AX3200) (a snapshot factory image felrakásával), akkor a szokásos sysupgrade -n módon vissza tudok térni snapshotról a 23.05.5-re ?
    Ha a fenti műveleteket megcsinálom és megjelenik a 24.x verzió a 6-os kernellel, akkor már elég lesz csak simán sysupgrade -n módon frissíteni a 24.x sysupgrade image-jával ?
    A mostani AX3200 snapshotokban benne van a luci ? A firmware selectorban úgy láttam igen, legalábbis mikor egyedi összeállítást választottam akkor láttam a felsorolásban a luci-t. Itt említenek egy TFTP-s módszert a 6.x kerneles openwrt-re való áttérésre:
    Or, flash the 2nd u-boot via mtd and upload the firmware
    to the 2nd u-boot using tftp:
    1. prepare a tftp server at 192.168.1.254 to serve the
       sysupgrade image:
       openwrt-mediatek-mt7622-xiaomi_redmi-router-ax6s-squashfs-sysupgrade.itb
    2. upload the ubi-loader.itb to OpenWrt /tmp, and flash it to
       the old kernel partition:
       mtd -r write openwrt-mediatek-mt7622-xiaomi_redmi-router-ax6s-ubi-loader.itb
    3. The router should reboot and flash the sysupgrade image via TFTP.

    Ez téglázás szempontjából mennyire biztonságos ? TFTP-re a jounin féle windowsos szervert szoktam általában használni mert látom vizuálisan ha megtörténik az image leszippantása. Ez a TFTP szerver használható(kompatibilis) a fenti eljárás esetében ?

    Ennél a lépésnél nem kellene paraméterben az mtd-nek megadni hogy a kernel partícióra történjen a flashelés ez így ebben a formában jó?
    and flash it to
       the old kernel partition:
       mtd -r write openwrt-mediatek-mt7622-xiaomi_redmi-router-ax6s-ubi-loader.itb

    Ha megcsinálom a TFTP-s módszerrel snapshotra áttérést és utána visszatérek a stabilra, ha megjelenik a 24.x verzió akkor ugyanúgy elég lesz az áttéréshez a sysupgrade -n ?
    Van valakinek lementve olyan snapshot image ami biztosan működik és nem lesz tégla tőle a router ? Honnan lehet megtudni az aktuális snapshot image-ról hogy működik e ?
    Tartalék routert nem szívesen vennék ha nem muszáj, úgyis csak ott porosodna a szekrényben, helyette inkább vennék 1TB-os nvme ssd-t, az is kb 25-30e körül már kapható.

  • attilav2

    őstag

    válasz roti86 #19772 üzenetére

    Ha 23.05.2-ről 23.05.3-ra akarok frissíteni akkor is el kell végezni az átpartícionálást, vagy az csak a snapshotnak kell ?

  • xabolcs

    őstag

    válasz roti86 #19772 üzenetére

    Mar csak egy TFTP kell neki. :)

    # ./mtk_uartboot --brom-load-baudrate 115200 -s /dev/ttyUSB0 -p bl2-mt7622-1ddr-ram.bin --aarch64 -f openwrt-mediatek-mt7622-xiaomi_redmi-router-ax6s-bl31-uboot-1ddr.fip && minicom -D /dev/ttyUSB0
    mtk_uartboot - 0.1.1
    Using serial port: /dev/ttyUSB0
    Handshake...
    hw code: 0x7622
    hw sub code: 0x8a00
    hw ver: 0xcb00
    sw ver: 0x100
    Baud rate set to 115200
    sending payload to 0x201000...
    Checksum: 0xfcf1
    Setting baudrate back to 115200
    Jumping to 0x201000 in aarch64...
    Waiting for BL2. Message below:
    ==================================
    NOTICE: BL2: v2.10.0 (release):v2.10.0-mtk
    NOTICE: BL2: Built : 13:17:01, Mar 1 2024
    NOTICE: WDT: Cold boot
    NOTICE: CPU: MT7622
    NOTICE: WDT: disabled
    NOTICE: Starting UART download handshake ...
    ==================================
    BL2 UART DL version: 0x10
    Baudrate set to: 921600
    FIP sent.
    ==================================
    NOTICE: Received FIP 0xb110c @ 0x40400000 ...
    ==================================


    Welcome to minicom 2.8

    OPTIONS: I18n
    Port /dev/ttyUSB0, 23:10:08

    Press CTRL-A Z for help on special keys

    ù°NOTICE: BL31: v2.9.0(release):OpenWrt v2023.10.13~0ea67d76-1 (mt7622-snand-ubi-1ddr)
    NOTICE: BL31: Built : 17:36:51, Mar 23 2024
    serial_mtk serial@11002000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19

    U-Boot 2024.01-OpenWrt-r25627-92c21b2e18 (Mar 23 2024 - 17:36:51 +0000)

    CPU: MediaTek MT7622
    Model: Xiaomi Redmi Router AX6S
    DRAM: 256 MiB
    Core: 37 devices, 16 uclasses, devicetree: separate
    Loading Environment from nowhere... OK
    In: serial@11002000
    Out: serial@11002000
    Err: serial@11002000
    reset button found
    Net:
    Warning: ethernet@1b100000 (eth0) using random MAC address - 9a:b5:09:59:c1:59
    eth0: ethernet@1b100000
    Autoboot in 0 seconds
    SPI-NAND: Failed to enable quad spi
    SPI-NAND: F50L1G41LB (128MB)
    Volume fit not found!
    Using ethernet@1b100000 device
    TFTP from server 192.168.1.254; our IP address is 192.168.1.1
    Filename 'openwrt-mediatek-mt7622-xiaomi_redmi-router-ax6s-squashfs-sysupgrade.itb'.
    Load address: 0x46000000
    Loading: *
    ARP Retry count exceeded; starting again
    MT7622>

Új hozzászólás Aktív témák