Skip to content

mvebu: add support for Fortinet FortiGate 30E - #13601

Merged
openwrt-bot merged 1 commit into
openwrt:mainfrom
musashino205:devadd/fg-30e
Oct 29, 2023
Merged

openwrt-bot merged 1 commit into
openwrt:mainfrom
musashino205:devadd/fg-30e

Conversation

@musashino205

@musashino205 musashino205 commented Oct 4, 2023 •

Copy link
Copy Markdown
Contributor

Fortinet FortiGate 30E (FG-30E) is a UTM, based on Armada 385 (88F6820).

Specification:

  • SoC : Marvell Armada 385 88F6820
  • RAM : DDR3 1 GiB (4x Micron MT41K256M8DA-125, "D9PSH")
  • Flash : SPI-NOR 128 MiB (Macronix MX66L1G45GMI-10G)
  • Ethernet : 5x 10/100/1000 Mbps
    • Switch : Marvell 88E6176
  • LEDs/Keys : 16x/1x
  • UART : "CONSOLE" port (RJ-45, RS-232C level)
    • port : ttyS0
    • settings : 9600bps 8n1
    • assignment : 1:NC , 2:NC , 3:TXD, 4:GND,
      5:GND, 6:RXD, 7:NC , 8:NC
    • note : compatible with Cisco console cable
  • HW Monitoring: nuvoTon NCT7802Y
  • Power : 12 VDC, 2 A
    • plug : Modex 5557-02R

Flash instruction using initramfs image:

  1. Power on FG-30E and interrupt to show bootmenu

  2. Call "[I]: System information." -> "[S]: Set serial port baudrate." and set baudrate to 9600 bps

  3. Call "[R]: Review TFTP parameters.", check TFTP parameters and connect computer to "Image download port" in the parameters

  4. Prepare TFTP server with the parameters obtained above

  5. Rename OpenWrt initramfs image to "image.out" and put to TFTP directory

  6. Call "[T]: Initiate TFTP firmware transfer." to download initramfs image from TFTP server

  7. Type "r" key when the following message is showed, to boot initramfs image without flashing to spi-nor flash

    "Save as Default firmware/Backup firmware/Run image without saving:[D/B/R]?"

  8. On initramfs image, backup mtd if needed

    minimum:

    • "firmware-info"
    • "kernel"
    • "rootfs"
  9. On initramfs image, upload sysupgrade image to the device and perform sysupgrade

  10. Wait ~200 seconds to complete flashing and rebooting. If the device is booted with stock firmware, login to bootmenu and call "[B]: Boot with backup firmware and set as default." to set the first OS image as default and boot it.

Notes:

  • Both colors of Bi-color LEDs on the front panel cannot be turned on at the same time.

  • "PWR" and "Logo" LEDs are connected to power source directly.

  • The following partitions are added for OpenWrt. These partitions are contained in "uboot" partition (0x0-0x1fffff) on stock firmware.

    • "firmware-info"
    • "dtb"
    • "u-boot-env"
    • "board-info"

Image header for bootmenu tftp:

  0x0 - 0xf  : ?
 0x10 - 0x2f : Image Name
 0x30 - 0x17f: ?
0x180 - 0x183: Kernel Offset*
0x184 - 0x187: Kernel Length*
0x188 - 0x18b: RootFS Offset (ext2)*
0x18c - 0x18f: RootFS Length (ext2)*
0x190 - 0x193: DTB Offset
0x194 - 0x197: DTB Length
0x198 - 0x19b: Data Offset (jffs2)
0x19c - 0x19f: Data Length (jffs2)
0x1a0 - 0x1ff: ?

*: required for initramfs image

MAC addresses:

(eth0): 70:4C:A5:xx:xx:CE (board-info, 0xd880 (hex))
WAN   : 70:4C:A5:xx:xx:CF
LAN 1 : 70:4C:A5:xx:xx:D0
LAN 2 : 70:4C:A5:xx:xx:D1
LAN 3 : 70:4C:A5:xx:xx:D2
LAN 4 : 70:4C:A5:xx:xx:D3

@github-actions github-actions Bot added kernel pull request/issue with Linux kernel related changes target/mvebu pull request/issue for mvebu target labels Oct 4, 2023
@musashino205

Copy link
Copy Markdown
Contributor Author

UPDATE:

  • add missing Signed-off-by:

@RaylynnKnight RaylynnKnight left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have both devices (FortiGate 30E and Fortigate 50E). Will try to find time to test during the next week!

Fortinet FortiGate 30E (FG-30E) is a UTM, based on Armada 385 (88F6820).

Specification:

- SoC          : Marvell Armada 385 88F6820
- RAM          : DDR3 1 GiB (4x Micron MT41K256M8DA-125, "D9PSH")
- Flash        : SPI-NOR 128 MiB (Macronix MX66L1G45GMI-10G)
- Ethernet     : 5x 10/100/1000 Mbps
  - Switch     : Marvell 88E6176
- LEDs/Keys    : 16x/1x
- UART         : "CONSOLE" port (RJ-45, RS-232C level)
  - port       : ttyS0
  - settings   : 9600bps 8n1
  - assignment : 1:NC , 2:NC , 3:TXD, 4:GND,
                5:GND, 6:RXD, 7:NC , 8:NC
  - note       : compatible with Cisco console cable
- HW Monitoring: nuvoTon NCT7802Y
- Power        : 12 VDC, 2 A
  - plug       : Modex 5557-02R

Flash instruction using initramfs image:

 1. Power on FG-30E and interrupt to show bootmenu
 2. Call "[I]: System information." -> "[S]: Set serial port baudrate."
    and set baudrate to 9600 bps
 3. Call "[R]: Review TFTP parameters.", check TFTP parameters and
    connect computer to "Image download port" in the parameters
 4. Prepare TFTP server with the parameters obtained above
 5. Rename OpenWrt initramfs image to "image.out" and put to TFTP
    directory
 6. Call "[T]: Initiate TFTP firmware transfer." to download initramfs
    image from TFTP server
 7. Type "r" key when the following message is showed, to boot initramfs
    image without flashing to spi-nor flash

    "Save as Default firmware/Backup firmware/Run image without saving:[D/B/R]?"

 8. On initramfs image, backup mtd if needed

    minimum:

    - "firmware-info"
    - "kernel"
    - "rootfs"

 9. On initramfs image, upload sysupgrade image to the device and perform
    sysupgrade
10. Wait ~200 seconds to complete flashing and rebooting.
    If the device is booted with stock firmware, login to bootmenu and
    call "[B]: Boot with backup firmware and set as default." to set the
    first OS image as default and boot it.

Notes:

- Both colors of Bi-color LEDs on the front panel cannot be turned on at
  the same time.

- "PWR" and "Logo" LEDs are connected to power source directly.

- The following partitions are added for OpenWrt.
  These partitions are contained in "uboot" partition (0x0-0x1fffff) on
  stock firmware.

  - "firmware-info"
  - "dtb"
  - "u-boot-env"
  - "board-info"

Image header for bootmenu tftp:

  0x0 - 0xf  : ?
 0x10 - 0x2f : Image Name
 0x30 - 0x17f: ?
0x180 - 0x183: Kernel Offset*
0x184 - 0x187: Kernel Length*
0x188 - 0x18b: RootFS Offset (ext2)*
0x18c - 0x18f: RootFS Length (ext2)*
0x190 - 0x193: DTB Offset
0x194 - 0x197: DTB Length
0x198 - 0x19b: Data Offset (jffs2)
0x19c - 0x19f: Data Length (jffs2)
0x1a0 - 0x1ff: ?

*: required for initramfs image

MAC addresses:

(eth0): 70:4C:A5:xx:xx:CE (board-info, 0xd880 (hex))
WAN   : 70:4C:A5:xx:xx:CF
LAN 1 : 70:4C:A5:xx:xx:D0
LAN 2 : 70:4C:A5:xx:xx:D1
LAN 3 : 70:4C:A5:xx:xx:D2
LAN 4 : 70:4C:A5:xx:xx:D3

Signed-off-by: INAGAKI Hiroshi <[email protected]>
@openwrt-bot
openwrt-bot merged commit b7c12a9 into openwrt:main Oct 29, 2023
@musashino205
musashino205 deleted the devadd/fg-30e branch October 29, 2023 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kernel pull request/issue with Linux kernel related changes target/mvebu pull request/issue for mvebu target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants