とりあえず part1 パーティションをmtd-concatでrootfsに統合した最小ビルド(LuCI無し)
拡大後(セカンダリになっていた為プライマリに切り替えてからのブート):
FortiGate-50E (17:37-01.31.2017)
Ver:05000016
Serial number: FGT50E3U17013352
CPU(00): 1600MHz
Total RAM: 2GB
Initializing boot device...
Initializing MAC... egiga1
Please wait for OS to boot, or press any key to display configuration menu.
[C]: Configure TFTP parameters.
[R]: Review TFTP parameters.
[T]: Initiate TFTP firmware transfer.
[F]: Format boot device.
[I]: System information.
[B]: Boot with backup firmware and set as default.
[Q]: Quit menu and continue to boot.
[H]: Display this list of options.
Enter C,R,T,F,I,B,Q,or H:
Loading backup firmware from boot device...
Booting OS...
.
Reading boot image... 3952128 bytes.
Initializing firewall...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 6.6.85 (musashino205@TAIHA.NET) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 13.3.0 r29144+1-a947be41b7) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Sat Apr 5 08:49:33 2025
[ 0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Fortinet FortiGate 50E
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x000000002fffffff]
[ 0.000000] HighMem [mem 0x0000000030000000-0x000000007fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000007fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[ 0.000000] percpu: Embedded 12 pages/cpu s18964 r8192 d21996 u49152
[ 0.000000] Kernel command line:
[ 0.000000] Bootloader command line not present
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 522560
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 2063512K/2097152K available (9216K kernel code, 658K rwdata, 2148K rodata, 1024K init, 236K bss, 33640K reserved, 0K cma-reserved, 1310720K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] L2C: DT/platform modifies aux control register: 0x06070000 -> 0x16070000
[ 0.000000] L2C-310 enabling early BRESP for Cortex-A9
[ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[ 0.000000] L2C-310 D prefetch enabled, offset 1 lines
[ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[ 0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[ 0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000001] sched_clock: 64 bits at 800MHz, resolution 1ns, wraps every 4398046511103ns
[ 0.000013] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0xb881274fa3, max_idle_ns: 440795210636 ns
[ 0.000027] Switching to timer-based delay loop, resolution 1ns
[ 0.000151] Ignoring duplicate/late registration of read_current_timer delay
[ 0.000155] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[ 0.000314] Calibrating delay loop (skipped), value calculated using timer frequency.. 1600.00 BogoMIPS (lpj=8000000)
[ 0.000321] CPU: Testing write buffer coherency: ok
[ 0.000339] CPU0: Spectre v2: using BPIALL workaround
[ 0.000342] pid_max: default: 32768 minimum: 301
[ 0.003801] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.003808] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.006873] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.007246] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=2.
[ 0.007306] Setting up static identity map for 0x100000 - 0x100060
[ 0.007378] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[ 0.007450] mvebu-pmsu: Initializing Power Management Service Unit
[ 0.007521] rcu: Hierarchical SRCU implementation.
[ 0.007523] rcu: Max phase no-delay instances is 1000.
[ 0.007676] smp: Bringing up secondary CPUs ...
[ 0.007854] Booting CPU 1
[ 0.007975] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.007982] CPU1: Spectre v2: using BPIALL workaround
[ 0.008038] smp: Brought up 1 node, 2 CPUs
[ 0.008042] SMP: Total of 2 processors activated (3200.00 BogoMIPS).
[ 0.008046] CPU: All CPU(s) started in SVC mode.
[ 0.011022] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 0.011090] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.011098] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.012898] pinctrl core: initialized pinctrl subsystem
[ 0.014213] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.014687] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.015154] thermal_sys: Registered thermal governor 'step_wise'
[ 0.015188] cpuidle: using governor ladder
[ 0.015307] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[ 0.015312] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[ 0.016875] /soc: Fixed dependency cycle(s) with /soc/internal-regs/interrupt-controller@d000
[ 0.020621] cryptd: max_cpu_qlen set to 1000
[ 0.023018] SCSI subsystem initialized
[ 0.023227] usbcore: registered new interface driver usbfs
[ 0.023243] usbcore: registered new interface driver hub
[ 0.023260] usbcore: registered new device driver usb
[ 0.024056] clocksource: Switched to clocksource arm_global_timer
[ 0.027883] NET: Registered PF_INET protocol family
[ 0.028002] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.028826] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.028839] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.028846] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.028883] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[ 0.028997] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.029238] MPTCP token hash table entries: 1024 (order: 2, 16384 bytes, linear)
[ 0.029389] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.029424] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.029691] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.029710] PCI: CLS 0 bytes, default 64
[ 0.030879] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[ 0.035721] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.035725] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.038126] bounce: pool size: 64 pages
[ 0.039331] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[ 0.040033] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 0.040129] debugfs: Directory 'f1018100.gpio' with parent 'regmap' already present!
[ 0.040376] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 0.040459] debugfs: Directory 'f1018140.gpio' with parent 'regmap' already present!
[ 0.040882] mv_xor f1060800.xor: Marvell shared XOR driver
[ 0.094565] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[ 0.094742] mv_xor f1060900.xor: Marvell shared XOR driver
[ 0.154545] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[ 0.154749] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.155191] printk: console [ttyS0] disabled
[ 0.175365] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 38, base_baud = 15625000) is a 16550A
[ 0.175395] printk: console [ttyS0] enabled
[ 8.492619] loop: module loaded
[ 8.533871] spi-nor spi1.0: mx66l1g45g (131072 Kbytes)
[ 8.595665] 12 fixed-partitions partitions found on MTD device spi1.0
[ 8.672935] Creating 12 MTD partitions on "spi1.0":
[ 8.731396] 0x000000000000-0x0000001c0000 : "u-boot"
[ 8.791124] 0x0000001c0000-0x0000001d0000 : "firmware-info"
[ 8.858293] 0x0000001d0000-0x0000001e0000 : "dtb"
[ 8.914854] 0x0000001e0000-0x0000001f0000 : "u-boot-env"
[ 8.978811] 0x0000001f0000-0x000000200000 : "board-info"
[ 9.042780] OF: Bad cell count for /soc/spi@10680/flash@0/partitions
[ 9.119063] 0x000000200000-0x000000800000 : "kernel"
[ 9.178850] 0x000000800000-0x000002000000 : "rfs1"
[ 9.236567] 0x000002000000-0x000002600000 : "kn2"
[ 9.293225] 0x000002600000-0x000003e00000 : "rfs2"
[ 9.350938] 0x000003e00000-0x000005000000 : "part1"
[ 9.409672] 0x000005000000-0x000006200000 : "part2"
[ 9.468428] 0x000006200000-0x000008000000 : "config"
[ 9.584181] hwmon hwmon0: temp1_input not attached to any thermal zone
[ 9.714144] hwmon hwmon1: temp1_input not attached to any thermal zone
[ 9.793452] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[ 9.883849] mvneta f1070000.ethernet eth0: Using device tree mac address 70:4c:a5:26:4d:7c
[ 9.984292] mvneta f1030000.ethernet eth1: Using device tree mac address 70:4c:a5:26:4d:7d
[ 10.084684] mvneta f1034000.ethernet eth2: Using device tree mac address 70:4c:a5:26:4d:7e
[ 10.184256] xhci-hcd f10f0000.usb3: xHCI Host Controller
[ 10.247939] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[ 10.337788] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000000010
[ 10.448385] xhci-hcd f10f0000.usb3: irq 44, io mem 0xf10f0000
[ 10.517366] xhci-hcd f10f0000.usb3: xHCI Host Controller
[ 10.581047] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[ 10.670802] xhci-hcd f10f0000.usb3: Host supports USB 3.0 SuperSpeed
[ 10.747396] hub 1-0:1.0: USB hub found
[ 10.792365] hub 1-0:1.0: 1 port detected
[ 10.839600] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 10.936870] hub 2-0:1.0: USB hub found
[ 10.981798] hub 2-0:1.0: 1 port detected
[ 11.029060] usbcore: registered new interface driver usb-storage
[ 11.101585] armada38x-rtc f10a3800.rtc: registered as rtc0
[ 11.167411] armada38x-rtc f10a3800.rtc: setting system clock to 2025-04-05T10:27:34 UTC (1743848854)
[ 11.277085] i2c_dev: i2c /dev entries driver
[ 11.328658] pca953x 0-0024: supply vcc not found, using dummy regulator
[ 11.408021] pca953x 0-0024: using no AI
[ 11.457398] orion_wdt: Initial timeout 171 sec
[ 11.510886] sdhci: Secure Digital Host Controller Interface driver
[ 11.584980] sdhci: Copyright(c) Pierre Ossman
[ 11.637284] sdhci-pltfm: SDHCI platform and OF driver helper
[ 11.715424] marvell-cesa f1090000.crypto: CESA device successfully registered
[ 11.801871] NET: Registered PF_INET6 protocol family
[ 11.862221] Segment Routing with IPv6
[ 11.906121] In-situ OAM (IOAM) with IPv6
[ 11.953180] NET: Registered PF_PACKET protocol family
[ 12.013747] 8021q: 802.1Q VLAN Support v1.8
[ 12.063891] Registering SWP/SWPB emulation handler
[ 12.135871] Concatenating MTD devices:
[ 12.180821] (0): "rfs1"
[ 12.210107] (1): "part1"
[ 12.240436] into device "virtual-flash"
[ 12.287030] 1 fixed-partitions partitions found on MTD device virtual-flash
[ 12.370511] Creating 1 MTD partitions on "virtual-flash":
[ 12.435225] 0x000000000000-0x000002a00000 : "rootfs"
[ 12.494980] mtd: setting mtd12 (rootfs) as root device
[ 12.556679] 1 squashfs-split partitions found on MTD device rootfs
[ 12.630773] 0x0000003b0000-0x000002a00000 : "rootfs_data"
[ 12.696293] clk: Disabling unused clocks
[ 12.767381] VFS: Mounted root (squashfs filesystem) readonly on device 31:12.
[ 12.853533] Freeing unused kernel image (initmem) memory: 1024K
[ 12.924666] Run /sbin/init as init process
[ 13.929582] init: Console is alive
[ 13.970437] init: - watchdog -
[ 16.045777] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 16.208758] pps_core: LinuxPPS API ver. 1 registered
[ 16.268267] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 16.378718] PTP clock support registered
[ 16.426210] gpio_button_hotplug: loading out-of-tree module taints kernel.
[ 16.534233] mv88e6085 f1072004.mdio-mii:02: switch 0x1760 detected: Marvell 88E6176, revision 1
[ 16.820787] hwmon hwmon3: temp1_input not attached to any thermal zone
[ 16.931556] hwmon hwmon4: temp1_input not attached to any thermal zone
[ 17.046584] hwmon hwmon5: temp1_input not attached to any thermal zone
[ 17.165567] hwmon hwmon6: temp1_input not attached to any thermal zone
[ 17.282929] hwmon hwmon7: temp1_input not attached to any thermal zone
[ 18.133792] mv88e6085 f1072004.mdio-mii:02: configuring for fixed/rgmii-id link mode
[ 18.234338] mv88e6085 f1072004.mdio-mii:02: Link is Up - 1Gbps/Full - flow control off
[ 18.444082] mv88e6085 f1072004.mdio-mii:02 lan5 (uninitialized): PHY [mv88e6xxx-0:00] driver [Marvell 88E1540] (irq=61)
[ 18.754082] mv88e6085 f1072004.mdio-mii:02 lan4 (uninitialized): PHY [mv88e6xxx-0:01] driver [Marvell 88E1540] (irq=62)
[ 19.064080] mv88e6085 f1072004.mdio-mii:02 lan3 (uninitialized): PHY [mv88e6xxx-0:02] driver [Marvell 88E1540] (irq=63)
[ 19.374084] mv88e6085 f1072004.mdio-mii:02 lan2 (uninitialized): PHY [mv88e6xxx-0:03] driver [Marvell 88E1540] (irq=64)
[ 19.684080] mv88e6085 f1072004.mdio-mii:02 lan1 (uninitialized): PHY [mv88e6xxx-0:04] driver [Marvell 88E1540] (irq=65)
[ 19.818123] mvneta f1070000.ethernet eth0: entered promiscuous mode
[ 19.893275] DSA: tree 0 setup
[ 19.929062] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 20.016483] init: - preinit -
[ 25.974061] random: crng init done
Cannot parse config file '/etc/fw_env.config': No such file or directory
Failed to find NVMEM device
[ 26.719355] mvneta f1070000.ethernet eth0: configuring for fixed/rgmii-id link mode
[ 26.811577] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[ 26.814338] mv88e6085 f1072004.mdio-mii:02 lan1: configuring for phy/gmii link mode
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 31.441469] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 31.543891] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 31.860816] procd: - early -
[ 31.895383] procd: - watchdog -
[ 32.526789] procd: - watchdog -
[ 32.564743] procd: - ubus -
[ 32.769944] procd: - init -
Please press Enter to activate this console.
[ 33.467986] kmodloader: loading kernel modules from /etc/modules.d/*
[ 33.689828] Loading modules backported from Linux version v6.12.6-0-ge9d65b48ce1a
[ 33.779566] Backport generated by backports.git v6.1.110-1-35-g410656ef04d2
[ 34.110401] urngd: v1.0.2 started.
[ 34.404277] PPP generic driver version 2.4.2
[ 34.459249] NET: Registered PF_PPPOX protocol family
[ 34.546903] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 43.551104] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 43.728629] jffs2_build_filesystem(): unlocking the mtd device...
[ 43.729810] done.
[ 43.827028] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 44.109156] mvneta f1070000.ethernet eth0: Link is Down
[ 44.277841] mvneta f1070000.ethernet eth0: configuring for fixed/rgmii-id link mode
[ 44.369785] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[ 44.535465] mv88e6085 f1072004.mdio-mii:02 lan1: configuring for phy/gmii link mode
[ 44.667311] br-lan: port 1(lan1) entered blocking state
[ 44.729952] br-lan: port 1(lan1) entered disabled state
[ 44.792601] mv88e6085 f1072004.mdio-mii:02 lan1: entered allmulticast mode
[ 44.875030] mvneta f1070000.ethernet eth0: entered allmulticast mode
[ 45.014400] mv88e6085 f1072004.mdio-mii:02 lan1: entered promiscuous mode
[ 45.308226] mv88e6085 f1072004.mdio-mii:02 lan2: configuring for phy/gmii link mode
[ 45.432783] br-lan: port 2(lan2) entered blocking state
[ 45.495423] br-lan: port 2(lan2) entered disabled state
[ 45.558067] mv88e6085 f1072004.mdio-mii:02 lan2: entered allmulticast mode
[ 45.665890] mv88e6085 f1072004.mdio-mii:02 lan2: entered promiscuous mode
[ 45.833594] mv88e6085 f1072004.mdio-mii:02 lan3: configuring for phy/gmii link mode
[ 45.959613] br-lan: port 3(lan3) entered blocking state
[ 46.022247] br-lan: port 3(lan3) entered disabled state
[ 46.084892] mv88e6085 f1072004.mdio-mii:02 lan3: entered allmulticast mode
[ 46.231718] mv88e6085 f1072004.mdio-mii:02 lan3: entered promiscuous mode
[ 46.508134] mv88e6085 f1072004.mdio-mii:02 lan4: configuring for phy/gmii link mode
[ 46.640153] br-lan: port 4(lan4) entered blocking state
[ 46.702789] br-lan: port 4(lan4) entered disabled state
[ 46.765438] mv88e6085 f1072004.mdio-mii:02 lan4: entered allmulticast mode
[ 46.873854] mv88e6085 f1072004.mdio-mii:02 lan4: entered promiscuous mode
[ 47.039121] mv88e6085 f1072004.mdio-mii:02 lan5: configuring for phy/gmii link mode
[ 47.173510] br-lan: port 5(lan5) entered blocking state
[ 47.236146] br-lan: port 5(lan5) entered disabled state
[ 47.298789] mv88e6085 f1072004.mdio-mii:02 lan5: entered allmulticast mode
[ 47.407265] mv88e6085 f1072004.mdio-mii:02 lan5: entered promiscuous mode
[ 47.884176] mvneta f1030000.ethernet eth1: PHY [f1072004.mdio-mii:00] driver [Marvell 88E1510] (irq=39)
[ 47.998079] mvneta f1030000.ethernet eth1: configuring for phy/sgmii link mode
[ 48.088167] br-wan: port 1(eth1) entered blocking state
[ 48.150825] br-wan: port 1(eth1) entered disabled state
[ 48.213486] mvneta f1030000.ethernet eth1: entered allmulticast mode
[ 48.289788] mvneta f1030000.ethernet eth1: entered promiscuous mode
[ 48.614179] mvneta f1034000.ethernet eth2: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510] (irq=40)
[ 48.732667] mvneta f1034000.ethernet eth2: configuring for phy/sgmii link mode
[ 48.821132] br-wan: port 2(eth2) entered blocking state
[ 48.883786] br-wan: port 2(eth2) entered disabled state
[ 48.946441] mvneta f1034000.ethernet eth2: entered allmulticast mode
[ 49.022724] mvneta f1034000.ethernet eth2: entered promiscuous mode
[ 51.385316] mvneta f1034000.ethernet eth2: Link is Up - 1Gbps/Full - flow control off
[ 51.479242] br-wan: port 2(eth2) entered blocking state
[ 51.541874] br-wan: port 2(eth2) entered forwarding state
[ 202.628247] done.
[ 202.651289] jffs2: notice: (1969) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 202.911822] overlayfs: upper fs does not support tmpfile.
BusyBox v1.37.0 (2025-04-05 08:49:33 UTC) built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r29144+1-a947be41b7
-----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
OpenWrt recently switched to the "apk" package manager!
OPKG Command APK Equivalent Description
------------------------------------------------------------------
opkg install <pkg> apk add <pkg> Install a package
opkg remove <pkg> apk del <pkg> Remove a package
opkg upgrade apk upgrade Upgrade all packages
opkg files <pkg> apk info -L <pkg> List package contents
opkg list-installed apk info List installed packages
opkg update apk update Update package lists
opkg search <pkg> apk search <pkg> Search for packages
------------------------------------------------------------------
For more https://openwrt.org/docs/guide-user/additional-software/opkg-to-apk-cheatsheet
root@OpenWrt:~# ubus call system board
{
"kernel": "6.6.85",
"hostname": "OpenWrt",
"system": "ARMv7 Processor rev 1 (v7l)",
"model": "Fortinet FortiGate 50E",
"board_name": "fortinet,fg-50e",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "SNAPSHOT",
"firmware_url": "https://downloads.openwrt.org/",
"revision": "r29144+1-a947be41b7",
"target": "mvebu/cortexa9",
"description": "OpenWrt SNAPSHOT r29144+1-a947be41b7",
"builddate": "1743842973"
}
}
root@OpenWrt:~# cat /proc/mtd
dev: size erasesize name
mtd0: 001c0000 00010000 "u-boot"
mtd1: 00010000 00010000 "firmware-info"
mtd2: 00010000 00010000 "dtb"
mtd3: 00010000 00010000 "u-boot-env"
mtd4: 00010000 00010000 "board-info"
mtd5: 00600000 00010000 "kernel"
mtd6: 01800000 00010000 "rfs1"
mtd7: 00600000 00010000 "kn2"
mtd8: 01800000 00010000 "rfs2"
mtd9: 01200000 00010000 "part1"
mtd10: 01200000 00010000 "part2"
mtd11: 01e00000 00010000 "config"
mtd12: 02a00000 00010000 "rootfs"
mtd13: 02650000 00010000 "rootfs_data"
root@OpenWrt:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 3840 3840 0 100% /rom
tmpfs 1032268 212 1032056 0% /tmp
tmpfs 1032268 32 1032236 0% /tmp/root
tmpfs 512 0 512 0% /dev
/dev/mtdblock13 39232 1060 38172 3% /overlay
overlayfs:/overlay 39232 1060 38172 3% /
root@OpenWrt:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 3.8M 3.8M 0 100% /rom
tmpfs 1008.1M 212.0K 1007.9M 0% /tmp
tmpfs 1008.1M 32.0K 1008.0M 0% /tmp/root
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mtdblock13 38.3M 1.0M 37.3M 3% /overlay
overlayfs:/overlay 38.3M 1.0M 37.3M 3% /
root@OpenWrt:~#