Panasonic Switch-M24eG PN28240KにOpenWrtを入れる
Posted on by おきん(blog)
概要
Panasonic Switch-M24eG PN28240KのOpenWrtインストールについて、アップデートによるものかいろいろ初期値が変わっていて手順そのままでは動かなかったのでうまくいった手順を公開する。
前提環境
- Panasonic Switch-M24eG PN28240K
- 他のモデルでは未確認だが16ポートのSwitch-M16eG PN28160KとSwitch-M48eG PN28480Kも同じ手順でいけるはず
- 各種IPアドレス
- TFTPサーバー: 192.168.1.111/24
- Panasonic Switch-M24eG: 192.168.1.110/24
- 各種ファームウェアバージョン
- OpenWrt 23.05.4:
- initramfs: openwrt-23.05.4-realtek-rtl838x-panasonic_m24eg-pn28240k-initramfs-kernel.bin
- sysupgrade: openwrt-23.05.4-realtek-rtl838x-panasonic_m24eg-pn28240k-squashfs-sysupgrade.bin
- 公式ファームウェア Ver.3.0.0.06: pn28240k_v30006.rom
- OpenWrt 23.05.4:
注意事項
- OpenWrtが起動すると初期状態でIPアドレスとして192.168.1.1/24が付いているため実環境で192.168.1.1を使っている場合は接続先に気をつける。OpenWrtの起動直前(bootmやsysupgrade直後)にLANケーブルを抜けば安全。
手順
- 前準備(ファームウェアのダウンロードとtftpサーバーへの配置)
- OpenWrtのinitramfs image(openwrt-23.05.4-realtek-rtl838x-panasonic_m24eg-pn28240k-initramfs-kernel.bin)とアップデート用公式ファームウェア(pn28240k_v30006.rom)をダウンロードしてtftpサーバーのフォルダに配置する
- (※Ubuntuの場合) tftp-hpaを入れて/srv/tftpに配置
- 元ガイドに合わせてinitramfs imageは0101A8C0.imgとしたが39文字以下なら好きな名前で問題ないはず(未確認)
- OpenWrtのinitramfs image(openwrt-23.05.4-realtek-rtl838x-panasonic_m24eg-pn28240k-initramfs-kernel.bin)とアップデート用公式ファームウェア(pn28240k_v30006.rom)をダウンロードしてtftpサーバーのフォルダに配置する
- 純正ファームウェアのバックアップ on OpenWrt initramfs image
- u-bootの起動中にCtrl-C
U-Boot 2011.12.pre45842-1.00.22-svn5720 (Mar 12 2015 – 19:04:09)Board: RTL838x CPU:500MHz LXB:200MHz MEM:300MHzDRAM: 128 MBSPI-F: 1×32 MBLoading 65536B env. variables from offset 0x80000#### Periphery Devices Init Successfully ####Switch Model: RTL8382M_8218B_INTPHY_8218FB (Port Count: 24)Switch Chip: RTL8382M**************************************************#### RTL8218B config – MAC ID = 0 ####Now External 8218B**************************************************#### RTL8218B config – MAC ID = 8 ####Now Internal PHY///////////////////////////////////////////////////////////Now External 8218FBRTL838x# # <INTERRUPT>RTL838x# # - ネットワークを有効化
Shell1rtk network onRTL838x# # rtk network onEnable networkForce port28 link up 1GPlease wait for PHY init-time … - IPアドレスを設定
Shell1setenv ipaddr 192.168.1.110RTL838x# # setenv ipaddr 192.168.1.110 - tftpサーバーからOpenWrt initramfs imageを取得
1tftpboot 0x81000000 192.168.1.111:0101A8C0.imgRTL838x# # tftpboot 0x81000000 192.168.1.111:0101A8C0.imgUsing rtl8380#0 deviceTFTP from server 192.168.1.111; our IP address is 192.168.1.110Filename ‘0101A8C0.img’.Load address: 0x81000000Loading: ###############################################################################################################################################################################################################################################################################################################################################################################################################################################################doneBytes transferred = 6559691 (6417cb hex) - OpenWrt initramfs imageを起動
Shell1bootmRTL838x# # bootm## Booting kernel from Legacy ImageVerifying Checksum … OKUncompressing Kernel Image … OKStarting kernel …[ 0.000000] Linux version 5.15.162 (builder@buildhost) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r24012-d8dd03c46f) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 Mon Jul15 22:14:18 2024[ 0.000000] RTL838X model is 83826800[ 0.000000] SoC Type: RTL8382[ 0.000000] printk: bootconsole [early0] enabled[ 0.000000] CPU0 revision is: 00019070 (MIPS 4KEc)[ 0.000000] MIPS: machine is Panasonic Switch-M24eG PN28240K[ 0.000000] earlycon: ns16550a0 at MMIO 0x18002000 (options ‘9600n8’)[ 0.000000] printk: bootconsole [ns16550a0] enabled[ 0.000000] Initrd not found or empty – disabling initrd[ 0.000000] Using appended Device Tree.[ 0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.[ 0.000000] Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 bytes[ 0.000000] Zone ranges:[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff][ 0.000000] Movable zone start for each node[ 0.000000] Early memory node ranges[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff][ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff][ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768[ 0.000000] pcpu-alloc: [0] 0[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480[ 0.000000] Kernel command line: earlycon[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off[ 0.000000] Memory: 109084K/131072K available (6234K kernel code, 616K rwdata, 780K rodata, 12780K init, 219K bss, 21988K reserved, 0K cma-reserved)[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1[ 0.000000] NR_IRQS: 256[ 0.000000] rtl83xx-clk: initialized, CPU 500 MHz, MEM 300 MHz (8 Bit DDR3), LXB 200 MHz[ 0.000000] clocksource: realtek_otto_timer: mask: 0xfffffff max_cycles: 0xfffffff, max_idle_ns: 38225208801 ns[ 0.000005] sched_clock: 28 bits at 3125kHz, resolution 320ns, wraps every 42949672800ns[ 0.106991] Calibrating delay loop… 498.89 BogoMIPS (lpj=2494464)[ 0.309172] pid_max: default: 32768 minimum: 301[ 0.372421] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 0.468829] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 0.600418] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns[ 0.730052] futex hash table entries: 256 (order: -1, 3072 bytes, linear)[ 0.819914] pinctrl core: initialized pinctrl subsystem[ 0.892578] NET: Registered PF_NETLINK/PF_ROUTE protocol family[ 1.005037] rtl83xx-clk clock-controller: rate setting enabled, CPU 300-625 MHz, MEM 300-300 MHz, LXB 200-200 MHz, OVERCLOCK AT OWN RISK[ 1.172187] clocksource: Switched to clocksource realtek_otto_timer[ 1.259031] NET: Registered PF_INET protocol family[ 1.324006] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)[ 1.421589] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 1.533026] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)[ 1.635124] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 1.736208] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 1.829189] TCP: Hash tables configured (established 1024 bind 1024)[ 1.913615] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)[ 1.999760] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)[ 2.092700] NET: Registered PF_UNIX/PF_LOCAL protocol family[ 2.789800] workingset: timestamp_bits=14 max_order=15 bucket_order=1[ 2.895144] squashfs: version 4.0 (2009/01/31) Phillip Lougher[ 2.972146] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.[ 3.113536] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)[ 3.216056] pinctrl-single 1b001000.pinmux: 32 pins, size 4[ 3.290497] pinctrl-single 1b00a000.pinmux: 32 pins, size 4[ 3.367878] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled[ 3.460675] printk: console [ttyS0] disabled[ 3.517149] 18002000.uart: ttyS0 at MMIO 0x18002000 (irq = 31, base_baud = 12500000) is a 16550A[ 3.633065] printk: console [ttyS0] enabled[ 3.633065] printk: console [ttyS0] enabled[ 3.743296] printk: bootconsole [early0] disabled[ 3.743296] printk: bootconsole [early0] disabled[ 3.867232] printk: bootconsole [ns16550a0] disabled[ 3.867232] printk: bootconsole [ns16550a0] disabled[ 4.141168] brd: module loaded[ 4.195136] spi-nor spi0.0: mx25l25635e (32768 Kbytes)[ 4.263067] 8 fixed-partitions partitions found on MTD device spi0.0[ 4.346980] OF: Bad cell count for /soc/spi@1200/flash@0/partitions[ 4.429734] OF: Bad cell count for /soc/spi@1200/flash@0/partitions[ 4.512919] Creating 8 MTD partitions on “spi0.0”:[ 4.576212] 0x000000000000-0x000000080000 : “u-boot”[ 4.649855] 0x000000080000-0x000000090000 : “u-boot-env”[ 4.723428] 0x000000090000-0x0000000a0000 : “u-boot-env2”[ 4.803087] 0x0000000a0000-0x000000100000 : “sysinfo”[ 4.873285] 0x000000100000-0x000000e00000 : “fs_reserved”[ 4.952875] 0x000000e00000-0x000001e00000 : “firmware”[ 5.052712] 0x000001e00000-0x000001f00000 : “vlog_data”[ 5.125090] 0x000001f00000-0x000002000000 : “elog_data”[ 5.227274] Probing RTL838X eth device pdev: 820afe00, dev: 820afe10[ 5.361675] Found SoC ID: 8382: RTL8382, family 8380[ 5.427302] rtl8380_init_mac[ 5.465245] Using MAC 0000000000010000[ 5.647190] Phy on MAC 0: 1cc981[ 5.700732] Realtek RTL8218B (external) mdio-bus:00: Detected external RTL8218B[ 5.797266] Firmware loaded. Size 1168, magic: 83808380[ 6.012561] Realtek RTL8218B (external) mdio-bus:00: Detected chip revision 0002[ 7.642350] Realtek RTL8218B (internal) mdio-bus:08: Detected internal RTL8218B[ 7.738829] Firmware loaded. Size 1184, magic: 83808380[ 10.912452] i2c_dev: i2c /dev entries driver[ 10.978082] NET: Registered PF_INET6 protocol family[ 11.070781] Segment Routing with IPv6[ 11.119343] In-situ OAM (IOAM) with IPv6[ 11.171427] NET: Registered PF_PACKET protocol family[ 11.238193] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.[ 11.410688] 8021q: 802.1Q VLAN Support v1.8[ 11.470554] pca953x 0-0020: using no AI[ 11.525608] pca953x 0-0075: using no AI[ 11.596399] gpio-470 (portled-sregister-reset): hogged as output/high[ 11.681797] gpio-468 (ext-switch-reset): hogged as output/high[ 11.759839] i2c-gpio i2c-gpio-0: using lines 489 (SDA) and 488 (SCL)[ 11.845756] i2c-gpio i2c-gpio-1: using lines 501 (SDA) and 500 (SCL)[ 11.990517] Phy on MAC 0: 1cc981[ 12.043971] Realtek RTL8218B (external) rtl838x slave mii-0:00: Detected external RTL8218B[ 12.153093] Firmware loaded. Size 1168, magic: 83808380[ 12.372565] Realtek RTL8218B (external) rtl838x slave mii-0:00: Detected chip revision 0002[ 14.013512] Realtek RTL8218B (internal) rtl838x slave mii-0:08: Detected internal RTL8218B[ 14.122599] Firmware loaded. Size 1184, magic: 83808380[ 17.475777] In rtl83xx_vlan_setup[ 17.519545] UNKNOWN_MC_PMASK: 000000001fffffff[ 17.578104] VLAN profile 0: L2 learning: 1, UNKN L2MC FLD PMSK 511, UNKN IPMC FLD PMSK 511, UNKN IPv6MC FLD PMSK: 511[ 18.662230] rtl83xx_enable_phy_polling: ffffff[ 19.943021] rtl83xx-switch switch@1b000000: configuring for fixed/internal link mode[ 20.046158] rtl83xx-switch switch@1b000000: Link is Up – 1Gbps/Full – flow control off[ 20.151544] rtl83xx-switch switch@1b000000 lan1 (uninitialized): PHY [mdio-bus:00] driver [Realtek RTL8218B (external)] (irq=POLL)[ 20.310419] rtl83xx-switch switch@1b000000 lan2 (uninitialized): PHY [mdio-bus:01] driver [Realtek RTL8218B (external)] (irq=POLL)[ 20.472513] rtl83xx-switch switch@1b000000 lan3 (uninitialized): PHY [mdio-bus:02] driver [Realtek RTL8218B (external)] (irq=POLL)[ 20.631403] rtl83xx-switch switch@1b000000 lan4 (uninitialized): PHY [mdio-bus:03] driver [Realtek RTL8218B (external)] (irq=POLL)[ 20.793751] rtl83xx-switch switch@1b000000 lan5 (uninitialized): PHY [mdio-bus:04] driver [Realtek RTL8218B (external)] (irq=POLL)[ 20.952684] rtl83xx-switch switch@1b000000 lan6 (uninitialized): PHY [mdio-bus:05] driver [Realtek RTL8218B (external)] (irq=POLL)[ 21.115486] rtl83xx-switch switch@1b000000 lan7 (uninitialized): PHY [mdio-bus:06] driver [Realtek RTL8218B (external)] (irq=POLL)[ 21.276327] rtl83xx-switch switch@1b000000 lan8 (uninitialized): PHY [mdio-bus:07] driver [Realtek RTL8218B (external)] (irq=POLL)[ 21.435224] rtl83xx-switch switch@1b000000 lan9 (uninitialized): PHY [mdio-bus:08] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 21.597562] rtl83xx-switch switch@1b000000 lan10 (uninitialized): PHY [mdio-bus:09] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 21.757514] rtl83xx-switch switch@1b000000 lan11 (uninitialized): PHY [mdio-bus:0a] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 21.920844] rtl83xx-switch switch@1b000000 lan12 (uninitialized): PHY [mdio-bus:0b] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 22.081079] rtl83xx-switch switch@1b000000 lan13 (uninitialized): PHY [mdio-bus:0c] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 22.244408] rtl83xx-switch switch@1b000000 lan14 (uninitialized): PHY [mdio-bus:0d] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 22.406441] rtl83xx-switch switch@1b000000 lan15 (uninitialized): PHY [mdio-bus:0e] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 22.566602] rtl83xx-switch switch@1b000000 lan16 (uninitialized): PHY [mdio-bus:0f] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 22.729761] rtl83xx-switch switch@1b000000 lan17 (uninitialized): PHY [mdio-bus:10] driver [REALTEK RTL8218D] (irq=POLL)[ 22.877517] rtl83xx-switch switch@1b000000 lan18 (uninitialized): PHY [mdio-bus:11] driver [REALTEK RTL8218D] (irq=POLL)[ 23.028270] rtl83xx-switch switch@1b000000 lan19 (uninitialized): PHY [mdio-bus:12] driver [REALTEK RTL8218D] (irq=POLL)[ 23.175829] rtl83xx-switch switch@1b000000 lan20 (uninitialized): PHY [mdio-bus:13] driver [REALTEK RTL8218D] (irq=POLL)[ 23.326520] rtl83xx-switch switch@1b000000 lan21 (uninitialized): PHY [mdio-bus:14] driver [REALTEK RTL8218D] (irq=POLL)[ 23.475686] rtl83xx-switch switch@1b000000 lan22 (uninitialized): PHY [mdio-bus:15] driver [REALTEK RTL8218D] (irq=POLL)[ 23.625140] rtl83xx-switch switch@1b000000 lan23 (uninitialized): PHY [mdio-bus:16] driver [REALTEK RTL8218D] (irq=POLL)[ 23.772932] rtl83xx-switch switch@1b000000 lan24 (uninitialized): PHY [mdio-bus:17] driver [REALTEK RTL8218D] (irq=POLL)[ 23.919072] DSA: tree 0 setup[ 23.958352] LINK state irq: 20[ 23.998736] In rtl83xx_setup_qos[ 24.041314] Setting up RTL838X QoS[ 24.086107] RTL838X_PRI_SEL_TBL_CTRL(i): 00033112[ 24.148159] Current Intprio2queue setting: 00000000[ 24.212451] QM_PKT2CPU_INTPRI_MAP: 00fac688[ 24.267832] rtl838x_dbgfs_init called[ 24.317152] rtl83xx_fib_event_work_do: FIB4 default rule failed[ 24.398555] rtl83xx_fib_event_work_do: FIB4 default rule failed[ 24.493524] clk: Disabling unused clocks[ 24.702749] Freeing unused kernel image (initmem) memory: 12780K[ 24.782055] This architecture does not have kernel memory protection.[ 24.867014] Run /init as init process[ 24.915259] with arguments:[ 24.954322] /init[ 24.984234] with environment:[ 25.025633] HOME=/[ 25.056686] TERM=linux[ 26.554946] init: Console is alive[ 26.600982] init: – watchdog –[ 26.680163] kmodloader: loading kernel modules from /etc/modules-boot.d/*[ 26.779447] kmodloader: done loading kernel modules from /etc/modules-boot.d/*[ 26.885916] init: – preinit –[ 27.421851] random: jshn: uninitialized urandom read (4 bytes read)[ 27.662518] random: jshn: uninitialized urandom read (4 bytes read)[ 29.887565] random: jshn: uninitialized urandom read (4 bytes read)[ 30.070096] random: jshn: uninitialized urandom read (4 bytes read)[ 30.418050] random: jshn: uninitialized urandom read (4 bytes read)[ 31.489438] RESETTING 8380, CPU_PORT 28[ 31.740736] rtl838x-eth 1b00a300.ethernet eth0: configuring for fixed/internal link mode[ 31.847418] In rtl838x_mac_config, mode 1[ 31.903410] rtl83xx-switch switch@1b000000 lan1: configuring for phy/qsgmii link mode[ 32.007027] rtl838x-eth 1b00a300.ethernet eth0: Link is Up – 1Gbps/Full – flow control off[ 32.116634] 8021q: adding VLAN 0 to HW filter on device lan1[ 32.202290] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready[ 32.285137] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 32.371382] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 32.494832] RTL8380 Link change: status: 1, ports 1[ 32.585586] random: procd: uninitialized urandom read (4 bytes read)[ 32.801353] rtl83xx_fib_event_work_do: FIB4 failedPress the [f] key and hit [enter] to enter[ 32.925226] rtl83xx_fib_event_work_do: FIB4 failed[ 32.988897] rtl83xx_fib_event_work_do: FIB4 failedfailsafe modePress the [1], [2], [3] or [4] key and hit [enter] to select the debug level[ 34.102315] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 35.083339] rtl83xx_fib4_del: no such gateway: 0.0.0.0[ 35.182686] rtl83xx_fib4_del: no such gateway: 0.0.0.0[ 35.250555] rtl83xx_fib4_del: no such gateway: 0.0.0.0[ 35.339280] procd: – early –[ 35.377912] procd: – watchdog –[ 36.318792] procd: – watchdog –[ 36.361436] procd: – ubus –[ 36.418819] random: ubusd: uninitialized urandom read (4 bytes read)[ 36.506181] random: ubusd: uninitialized urandom read (4 bytes read)[ 36.591161] random: ubusd: uninitialized urandom read (4 bytes read)[ 36.682657] procd: – init –Please press Enter to activate this console.[ 37.907849] random: jshn: uninitialized urandom read (4 bytes read)[ 38.125759] kmodloader: loading kernel modules from /etc/modules.d/*[ 38.335750] GACT probability on[ 38.424614] Mirror/redirect action on[ 38.575844] u32 classifier[ 38.611591] input device check on[ 38.659930] Actions configured[ 39.194531] kmodloader: done loading kernel modules from /etc/modules.d/*[ 40.933246] urngd: v1.0.2 started.[ 44.549711] random: crng init done[ 44.594568] random: 20 urandom warning(s) missed due to ratelimiting[ 49.160468] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supportedBusyBox v1.36.1 (2024-07-15 22:14:18 UTC) built-in shell (ash)_______ ________ __| |.—–.—–.—–.| | | |.—-.| |_| – || _ | -__| || | | || _|| _||_______|| __|_____|__|__||________||__| |____||__| W I R E L E S S F R E E D O M—————————————————–OpenWrt 23.05.4, r24012-d8dd03c46f—————————————————–=== WARNING! =====================================There is no root password defined on this device!Use the “passwd” command to set up a new passwordin order to prevent unauthorized SSH logins.————————————————–root@OpenWrt:/# - (scpなどで)各mtdブロックをバックアップ
mtdブロックのバックアップ12345678dd if=/dev/mtd0 of=/tmp/mtd0-u-boot.imgdd if=/dev/mtd1 of=/tmp/mtd1-u-boot-env.imgdd if=/dev/mtd2 of=/tmp/mtd2-u-boot-env2.imgdd if=/dev/mtd3 of=/tmp/mtd3-sysinfo.imgdd if=/dev/mtd4 of=/tmp/mtd4-fs_reserved.imgdd if=/dev/mtd5 of=/tmp/mtd5-firmware.imgdd if=/dev/mtd6 of=/tmp/mtd6-vlog_data.imgdd if=/dev/mtd7 of=/tmp/mtd7-elog_data.imgリモートマシンからscpで取り出すコマンド例
Shell12# -Oオプションでsftp-serverがないOpenWrtでも使えるscpにフォールバックするscp -O root@192.168.1.110:/tmp/* ./root@OpenWrt:/# cat /proc/mtddev: size erasesize namemtd0: 00080000 00010000 “u-boot”mtd1: 00010000 00010000 “u-boot-env”mtd2: 00010000 00010000 “u-boot-env2”mtd3: 00060000 00010000 “sysinfo”mtd4: 00d00000 00010000 “fs_reserved”mtd5: 01000000 00010000 “firmware”mtd6: 00100000 00010000 “vlog_data”mtd7: 00100000 00010000 “elog_data”root@OpenWrt:/# df -hFilesystem Size Used Available Use% Mounted ontmpfs 59.5M 13.7M 45.8M 23% /tmpfs 59.5M 32.0K 59.5M 0% /tmptmpfs 512.0K 0 512.0K 0% /devroot@OpenWrt:/# dd if=/dev/mtd0 of=/tmp/mtd0-u-boot.img1024+0 records in1024+0 records outroot@OpenWrt:/# dd if=/dev/mtd1 of=/tmp/mtd1-u-boot-env.img128+0 records in128+0 records outroot@OpenWrt:/# dd if=/dev/mtd2 of=/tmp/mtd2-u-boot-env2.img128+0 records in128+0 records outroot@OpenWrt:/# dd if=/dev/mtd3 of=/tmp/mtd3-sysinfo.img768+0 records in768+0 records outroot@OpenWrt:/# dd if=/dev/mtd4 of=/tmp/mtd4-fs_reserved.img26624+0 records in26624+0 records outroot@OpenWrt:/# dd if=/dev/mtd5 of=/tmp/mtd5-firmware.img32768+0 records in32768+0 records outroot@OpenWrt:/# dd if=/dev/mtd6 of=/tmp/mtd6-vlog_data.img2048+0 records in2048+0 records outroot@OpenWrt:/# dd if=/dev/mtd7 of=/tmp/mtd7-elog_data.img2048+0 records in2048+0 records out
- u-bootの起動中にCtrl-C
- インストール
- 再起動&u-bootでCrtl-C
root@OpenWrt:/# rebootroot@OpenWrt:/# [ 1177.360320] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 1177.500794] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 1177.588232] rtl83xx_fib4_del: found a route with id 1, nh-id 0[ 1177.665222] rtl83xx-switch switch@1b000000: unknown nexthop, id 0[ 1177.747844] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 1177.834086] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 1177.920331] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 1178.007229] rtl83xx-switch switch@1b000000: unknown nexthop, id 0[ 1178.088061] rtl83xx_fib4_del: no such gateway: 0.0.0.0[ 1178.163043] switch: port 1(lan1) entered disabled state[ 1178.349990] device lan1 left promiscuous mode[ 1178.407835] switch: port 1(lan1) entered disabled state[ 1178.559594] rtl83xx-switch switch@1b000000 lan1: Link is Down[ 1178.650148] RTL8380 Link change: status: 1, ports 1[ 1178.875980] device lan10 left promiscuous mode[ 1178.934950] switch: port 2(lan10) entered disabled state[ 1179.186360] device lan11 left promiscuous mode[ 1179.245296] switch: port 3(lan11) entered disabled state[ 1179.454455] device lan12 left promiscuous mode[ 1179.513392] switch: port 4(lan12) entered disabled state[ 1179.668469] device lan13 left promiscuous mode[ 1179.727379] switch: port 5(lan13) entered disabled state[ 1179.885741] device lan14 left promiscuous mode[ 1179.944742] switch: port 6(lan14) entered disabled state[ 1180.100508] device lan15 left promiscuous mode[ 1180.159487] switch: port 7(lan15) entered disabled state[ 1180.318137] device lan16 left promiscuous mode[ 1180.377138] switch: port 8(lan16) entered disabled state[ 1180.573473] device lan17 left promiscuous mode[ 1180.632499] switch: port 9(lan17) entered disabled state[ 1180.787530] device lan18 left promiscuous mode[ 1180.846528] switch: port 10(lan18) entered disabled state[ 1181.005734] device lan19 left promiscuous mode[ 1181.064699] switch: port 11(lan19) entered disabled state[ 1181.223639] device lan2 left promiscuous mode[ 1181.281489] switch: port 12(lan2) entered disabled state[ 1181.435580] device lan20 left promiscuous mode[ 1181.494598] switch: port 13(lan20) entered disabled state[ 1181.681413] device lan21 left promiscuous mode[ 1181.740431] switch: port 14(lan21) entered disabled state[ 1181.912142] device lan22 left promiscuous mode[ 1181.971248] switch: port 15(lan22) entered disabled state[ 1182.129284] device lan23 left promiscuous mode[ 1182.188291] switch: port 16(lan23) entered disabled state[ 1182.344628] device lan24 left promiscuous mode[ 1182.403657] switch: port 17(lan24) entered disabled state[ 1182.561291] device lan3 left promiscuous mode[ 1182.619124] switch: port 18(lan3) entered disabled state[ 1182.785804] device lan4 left promiscuous mode[ 1182.843656] switch: port 19(lan4) entered disabled state[ 1182.994904] device lan5 left promiscuous mode[ 1183.052740] switch: port 20(lan5) entered disabled state[ 1183.203209] device lan6 left promiscuous mode[ 1183.261027] switch: port 21(lan6) entered disabled state[ 1183.412070] device lan7 left promiscuous mode[ 1183.469954] switch: port 22(lan7) entered disabled state[ 1183.621530] device lan8 left promiscuous mode[ 1183.679340] switch: port 23(lan8) entered disabled state[ 1183.830992] device lan9 left promiscuous mode[ 1183.888861] switch: port 24(lan9) entered disabled state[ 1183.972929] device eth0 left promiscuous mode[ 1184.031879] in rtl838x_eth_stop[ 1184.074238] rtl838x-eth 1b00a300.ethernet eth0: Link is Down[ 1184.651719] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 1184.737974] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 1184.824142] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 1184.910346] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 1185.183241] rtl83xx_fib4_del: no such gateway: 0.0.0.0[ 1185.252916] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 1185.339109] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 1185.562317] rtl83xx_fib4_del: no such gateway: 0.0.0.0[ 1185.712312] rtl83xx_fib4_del: no such gateway: 0.0.0.0[ 1190.254406] reboot: Restarting systemU-Boot 2011.12.pre45842-1.00.22-svn5720 (Mar 12 2015 – 19:04:09)Board: RTL838x CPU:500MHz LXB:200MHz MEM:300MHzDRAM: 128 MBSPI-F: 1×32 MBLoading 65536B env. variables from offset 0x80000#### Periphery Devices Init Successfully ####Switch Model: RTL8382M_8218B_INTPHY_8218FB (Port Count: 24)Switch Chip: RTL8382M**************************************************#### RTL8218B config – MAC ID = 0 ####Now External 8218B**************************************************#### RTL8218B config – MAC ID = 8 ####Now Internal PHY///////////////////////////////////////////////////////////Now External 8218FBRTL838x# # <INTERRUPT>RTL838x# # - ファイルシステムを再作成する(初期化?)
ffsfmtは4分くらい掛かる
Shell12ffsmount c:/ffsfmt c:/RTL838x# # ffsmount c:/File system initialization doneRTL838x# # ffsfmt c:/FFS Format success - IPアドレスを設定してtftpサーバーからアップデート用公式ファームウェアを読み込む
40秒くらい掛かる
12setenv ipaddr 192.168.1.110updatert 192.168.1.111:pn28240k_v30006.romRTL838x# # setenv ipaddr 192.168.1.110RTL838x# # updatert 192.168.1.111:pn28240k_v30006.romEnable networkForce port28 link up 1GPlease wait for PHY init-time …Using rtl8380#0 deviceTFTP from server 192.168.1.111; our IP address is 192.168.1.110Filename ‘pn28240k_v30006.rom’.Load address: 0x81000000Loading: ##################################################################################################################################################################################################################################doneBytes transferred = 3307960 (3279b8 hex)Verifying Checksum … OK### Start updating runtime firmware…Saving Environment to SPI Flash…Erasing SPI flash…Writing to SPI flash…done### Successfully to upgrade runtime firmware!### Please reboot the device…(Power-off, then power-on) - u-bootに環境変数を設定して保存
123setenv loadaddr 0xb4e00000setenv bootcmd bootmsaveenvRTL838x# # setenv loadaddr 0xb4e00000RTL838x# # setenv bootcmd bootmRTL838x# # saveenvSaving Environment to SPI Flash…Erasing SPI flash…Writing to SPI flash…done - initramfs imageを読み込んで起動する
Shell12tftpboot 0x81000000 192.168.1.111:0101A8C0.imgbootmRTL838x# # tftpboot 0x81000000 192.168.1.111:0101A8C0.imgUsing rtl8380#0 deviceTFTP from server 192.168.1.111; our IP address is 192.168.1.110Filename ‘0101A8C0.img’.Load address: 0x81000000Loading: ###############################################################################################################################################################################################################################################################################################################################################################################################################################################################doneBytes transferred = 6559691 (6417cb hex)RTL838x# # bootm## Booting kernel from Legacy ImageVerifying Checksum … OKUncompressing Kernel Image … OKStarting kernel …[ 0.000000] Linux version 5.15.162 (builder@buildhost) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r24012-d8dd03c46f) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 Mon Jul15 22:14:18 2024[ 0.000000] RTL838X model is 83826800[ 0.000000] SoC Type: RTL8382[ 0.000000] printk: bootconsole [early0] enabled[ 0.000000] CPU0 revision is: 00019070 (MIPS 4KEc)[ 0.000000] MIPS: machine is Panasonic Switch-M24eG PN28240K[ 0.000000] earlycon: ns16550a0 at MMIO 0x18002000 (options ‘9600n8’)[ 0.000000] printk: bootconsole [ns16550a0] enabled[ 0.000000] Initrd not found or empty – disabling initrd[ 0.000000] Using appended Device Tree.[ 0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.[ 0.000000] Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 bytes[ 0.000000] Zone ranges:[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff][ 0.000000] Movable zone start for each node[ 0.000000] Early memory node ranges[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff][ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff][ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768[ 0.000000] pcpu-alloc: [0] 0[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480[ 0.000000] Kernel command line: earlycon[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off[ 0.000000] Memory: 109084K/131072K available (6234K kernel code, 616K rwdata, 780K rodata, 12780K init, 219K bss, 21988K reserved, 0K cma-reserved)[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1[ 0.000000] NR_IRQS: 256[ 0.000000] rtl83xx-clk: initialized, CPU 500 MHz, MEM 300 MHz (8 Bit DDR3), LXB 200 MHz[ 0.000000] clocksource: realtek_otto_timer: mask: 0xfffffff max_cycles: 0xfffffff, max_idle_ns: 38225208801 ns[ 0.000005] sched_clock: 28 bits at 3125kHz, resolution 320ns, wraps every 42949672800ns[ 0.106992] Calibrating delay loop… 498.89 BogoMIPS (lpj=2494464)[ 0.309172] pid_max: default: 32768 minimum: 301[ 0.372416] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 0.468829] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 0.600484] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns[ 0.730156] futex hash table entries: 256 (order: -1, 3072 bytes, linear)[ 0.820013] pinctrl core: initialized pinctrl subsystem[ 0.892699] NET: Registered PF_NETLINK/PF_ROUTE protocol family[ 1.004935] rtl83xx-clk clock-controller: rate setting enabled, CPU 300-625 MHz, MEM 300-300 MHz, LXB 200-200 MHz, OVERCLOCK AT OWN RISK[ 1.172079] clocksource: Switched to clocksource realtek_otto_timer[ 1.258933] NET: Registered PF_INET protocol family[ 1.323908] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)[ 1.421493] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 1.532921] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)[ 1.635017] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 1.736101] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 1.829084] TCP: Hash tables configured (established 1024 bind 1024)[ 1.913507] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)[ 1.999655] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)[ 2.092596] NET: Registered PF_UNIX/PF_LOCAL protocol family[ 2.790551] workingset: timestamp_bits=14 max_order=15 bucket_order=1[ 2.895890] squashfs: version 4.0 (2009/01/31) Phillip Lougher[ 2.972871] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.[ 3.114177] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)[ 3.216679] pinctrl-single 1b001000.pinmux: 32 pins, size 4[ 3.291120] pinctrl-single 1b00a000.pinmux: 32 pins, size 4[ 3.368517] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled[ 3.461160] printk: console [ttyS0] disabled[ 3.517669] 18002000.uart: ttyS0 at MMIO 0x18002000 (irq = 31, base_baud = 12500000) is a 16550A[ 3.633585] printk: console [ttyS0] enabled[ 3.633585] printk: console [ttyS0] enabled[ 3.743814] printk: bootconsole [early0] disabled[ 3.743814] printk: bootconsole [early0] disabled[ 3.867750] printk: bootconsole [ns16550a0] disabled[ 3.867750] printk: bootconsole [ns16550a0] disabled[ 4.143797] brd: module loaded[ 4.196302] spi-nor spi0.0: mx25l25635e (32768 Kbytes)[ 4.264213] 8 fixed-partitions partitions found on MTD device spi0.0[ 4.348123] OF: Bad cell count for /soc/spi@1200/flash@0/partitions[ 4.430878] OF: Bad cell count for /soc/spi@1200/flash@0/partitions[ 4.514065] Creating 8 MTD partitions on “spi0.0”:[ 4.577357] 0x000000000000-0x000000080000 : “u-boot”[ 4.650908] 0x000000080000-0x000000090000 : “u-boot-env”[ 4.726214] 0x000000090000-0x0000000a0000 : “u-boot-env2”[ 4.804272] 0x0000000a0000-0x000000100000 : “sysinfo”[ 4.876098] 0x000000100000-0x000000e00000 : “fs_reserved”[ 4.954321] 0x000000e00000-0x000001e00000 : “firmware”[ 5.054541] 0x000001e00000-0x000001f00000 : “vlog_data”[ 5.126828] 0x000001f00000-0x000002000000 : “elog_data”[ 5.229015] Probing RTL838X eth device pdev: 820af200, dev: 820af210[ 5.363350] Found SoC ID: 8382: RTL8382, family 8380[ 5.428968] rtl8380_init_mac[ 5.466908] Using MAC 0000000000010000[ 5.649513] Phy on MAC 0: 1cc981[ 5.703115] Realtek RTL8218B (external) mdio-bus:00: Detected external RTL8218B[ 5.799658] Firmware loaded. Size 1168, magic: 83808380[ 6.012451] Realtek RTL8218B (external) mdio-bus:00: Detected chip revision 0002[ 7.643608] Realtek RTL8218B (internal) mdio-bus:08: Detected internal RTL8218B[ 7.740085] Firmware loaded. Size 1184, magic: 83808380[ 10.913652] i2c_dev: i2c /dev entries driver[ 10.979234] NET: Registered PF_INET6 protocol family[ 11.071890] Segment Routing with IPv6[ 11.120488] In-situ OAM (IOAM) with IPv6[ 11.172580] NET: Registered PF_PACKET protocol family[ 11.239332] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.[ 11.411840] 8021q: 802.1Q VLAN Support v1.8[ 11.471873] pca953x 0-0020: using no AI[ 11.526861] pca953x 0-0075: using no AI[ 11.597714] gpio-470 (portled-sregister-reset): hogged as output/high[ 11.683161] gpio-468 (ext-switch-reset): hogged as output/high[ 11.761184] i2c-gpio i2c-gpio-0: using lines 489 (SDA) and 488 (SCL)[ 11.847136] i2c-gpio i2c-gpio-1: using lines 501 (SDA) and 500 (SCL)[ 11.992247] Phy on MAC 0: 1cc981[ 12.045709] Realtek RTL8218B (external) rtl838x slave mii-0:00: Detected external RTL8218B[ 12.154863] Firmware loaded. Size 1168, magic: 83808380[ 12.372457] Realtek RTL8218B (external) rtl838x slave mii-0:00: Detected chip revision 0002[ 14.014308] Realtek RTL8218B (internal) rtl838x slave mii-0:08: Detected internal RTL8218B[ 14.123431] Firmware loaded. Size 1184, magic: 83808380[ 17.487000] In rtl83xx_vlan_setup[ 17.530698] UNKNOWN_MC_PMASK: 000000001fffffff[ 17.589257] VLAN profile 0: L2 learning: 1, UNKN L2MC FLD PMSK 511, UNKN IPMC FLD PMSK 511, UNKN IPv6MC FLD PMSK: 511[ 18.652122] rtl83xx_enable_phy_polling: ffffff[ 19.932944] rtl83xx-switch switch@1b000000: configuring for fixed/internal link mode[ 20.036048] rtl83xx-switch switch@1b000000: Link is Up – 1Gbps/Full – flow control off[ 20.141438] rtl83xx-switch switch@1b000000 lan1 (uninitialized): PHY [mdio-bus:00] driver [Realtek RTL8218B (external)] (irq=POLL)[ 20.300321] rtl83xx-switch switch@1b000000 lan2 (uninitialized): PHY [mdio-bus:01] driver [Realtek RTL8218B (external)] (irq=POLL)[ 20.462496] rtl83xx-switch switch@1b000000 lan3 (uninitialized): PHY [mdio-bus:02] driver [Realtek RTL8218B (external)] (irq=POLL)[ 20.621380] rtl83xx-switch switch@1b000000 lan4 (uninitialized): PHY [mdio-bus:03] driver [Realtek RTL8218B (external)] (irq=POLL)[ 20.783742] rtl83xx-switch switch@1b000000 lan5 (uninitialized): PHY [mdio-bus:04] driver [Realtek RTL8218B (external)] (irq=POLL)[ 20.942672] rtl83xx-switch switch@1b000000 lan6 (uninitialized): PHY [mdio-bus:05] driver [Realtek RTL8218B (external)] (irq=POLL)[ 21.105488] rtl83xx-switch switch@1b000000 lan7 (uninitialized): PHY [mdio-bus:06] driver [Realtek RTL8218B (external)] (irq=POLL)[ 21.266335] rtl83xx-switch switch@1b000000 lan8 (uninitialized): PHY [mdio-bus:07] driver [Realtek RTL8218B (external)] (irq=POLL)[ 21.425291] rtl83xx-switch switch@1b000000 lan9 (uninitialized): PHY [mdio-bus:08] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 21.587576] rtl83xx-switch switch@1b000000 lan10 (uninitialized): PHY [mdio-bus:09] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 21.747518] rtl83xx-switch switch@1b000000 lan11 (uninitialized): PHY [mdio-bus:0a] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 21.910887] rtl83xx-switch switch@1b000000 lan12 (uninitialized): PHY [mdio-bus:0b] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 22.071149] rtl83xx-switch switch@1b000000 lan13 (uninitialized): PHY [mdio-bus:0c] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 22.234434] rtl83xx-switch switch@1b000000 lan14 (uninitialized): PHY [mdio-bus:0d] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 22.396615] rtl83xx-switch switch@1b000000 lan15 (uninitialized): PHY [mdio-bus:0e] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 22.556805] rtl83xx-switch switch@1b000000 lan16 (uninitialized): PHY [mdio-bus:0f] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 22.719960] rtl83xx-switch switch@1b000000 lan17 (uninitialized): PHY [mdio-bus:10] driver [REALTEK RTL8218D] (irq=POLL)[ 22.867738] rtl83xx-switch switch@1b000000 lan18 (uninitialized): PHY [mdio-bus:11] driver [REALTEK RTL8218D] (irq=POLL)[ 23.018534] rtl83xx-switch switch@1b000000 lan19 (uninitialized): PHY [mdio-bus:12] driver [REALTEK RTL8218D] (irq=POLL)[ 23.166082] rtl83xx-switch switch@1b000000 lan20 (uninitialized): PHY [mdio-bus:13] driver [REALTEK RTL8218D] (irq=POLL)[ 23.316834] rtl83xx-switch switch@1b000000 lan21 (uninitialized): PHY [mdio-bus:14] driver [REALTEK RTL8218D] (irq=POLL)[ 23.466003] rtl83xx-switch switch@1b000000 lan22 (uninitialized): PHY [mdio-bus:15] driver [REALTEK RTL8218D] (irq=POLL)[ 23.615476] rtl83xx-switch switch@1b000000 lan23 (uninitialized): PHY [mdio-bus:16] driver [REALTEK RTL8218D] (irq=POLL)[ 23.763191] rtl83xx-switch switch@1b000000 lan24 (uninitialized): PHY [mdio-bus:17] driver [REALTEK RTL8218D] (irq=POLL)[ 23.909310] DSA: tree 0 setup[ 23.948507] LINK state irq: 20[ 23.988929] In rtl83xx_setup_qos[ 24.031514] Setting up RTL838X QoS[ 24.076306] RTL838X_PRI_SEL_TBL_CTRL(i): 00033112[ 24.138357] Current Intprio2queue setting: 00000000[ 24.202652] QM_PKT2CPU_INTPRI_MAP: 00fac688[ 24.258032] rtl838x_dbgfs_init called[ 24.307351] rtl83xx_fib_event_work_do: FIB4 default rule failed[ 24.420348] clk: Disabling unused clocks[ 24.615086] Freeing unused kernel image (initmem) memory: 12780K[ 24.694368] This architecture does not have kernel memory protection.[ 24.779331] Run /init as init process[ 24.827592] with arguments:[ 24.866655] /init[ 24.896589] with environment:[ 24.937955] HOME=/[ 24.969014] TERM=linux[ 26.471029] init: Console is alive[ 26.517124] init: – watchdog –[ 26.596296] kmodloader: loading kernel modules from /etc/modules-boot.d/*[ 26.703176] kmodloader: done loading kernel modules from /etc/modules-boot.d/*[ 26.809601] init: – preinit –[ 27.348501] random: jshn: uninitialized urandom read (4 bytes read)[ 27.589098] random: jshn: uninitialized urandom read (4 bytes read)[ 29.817262] random: jshn: uninitialized urandom read (4 bytes read)[ 30.000192] random: jshn: uninitialized urandom read (4 bytes read)[ 30.349567] random: jshn: uninitialized urandom read (4 bytes read)[ 31.418239] RESETTING 8380, CPU_PORT 28[ 31.669540] rtl838x-eth 1b00a300.ethernet eth0: configuring for fixed/internal link mode[ 31.776222] In rtl838x_mac_config, mode 1[ 31.832042] rtl83xx-switch switch@1b000000 lan1: configuring for phy/qsgmii link mode[ 31.935683] rtl838x-eth 1b00a300.ethernet eth0: Link is Up – 1Gbps/Full – flow control off[ 32.045231] 8021q: adding VLAN 0 to HW filter on device lan1[ 32.120579] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready[ 32.203389] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 32.289653] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 32.450035] random: procd: uninitialized urandom read (4 bytes read)Press the [f] key and hit [enter] to enter [ 32.728552] rtl83xx_fib_event_work_do: FIB4 failedf[ 32.792279] rtl83xx_fib_event_work_do: FIB4 faileda[ 32.856396] rtl83xx_fib_event_work_do: FIB4 failedilsafe modePress the [1], [2], [3] or [4] key and hit [enter] to select the debug level[ 34.572252] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 34.885146] rtl83xx_fib4_del: no such gateway: 0.0.0.0[ 34.993531] rtl83xx_fib4_del: no such gateway: 0.0.0.0[ 35.061411] rtl83xx_fib4_del: no such gateway: 0.0.0.0[ 35.140759] procd: – early –[ 35.179422] procd: – watchdog –[ 36.121581] procd: – watchdog –[ 36.164124] procd: – ubus –[ 36.221846] random: ubusd: uninitialized urandom read (4 bytes read)[ 36.309176] random: ubusd: uninitialized urandom read (4 bytes read)[ 36.394125] random: ubusd: uninitialized urandom read (4 bytes read)[ 36.485613] procd: – init –Please press Enter to activate this console.[ 37.703909] random: jshn: uninitialized urandom read (4 bytes read)[ 37.927492] kmodloader: loading kernel modules from /etc/modules.d/*[ 38.140200] GACT probability on[ 38.234339] Mirror/redirect action on[ 38.379069] u32 classifier[ 38.414788] input device check on[ 38.463125] Actions configured[ 39.000140] kmodloader: done loading kernel modules from /etc/modules.d/*[ 40.752869] urngd: v1.0.2 started.[ 44.402918] random: crng init done[ 44.447808] random: 20 urandom warning(s) missed due to ratelimiting[ 48.985080] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supportedBusyBox v1.36.1 (2024-07-15 22:14:18 UTC) built-in shell (ash)_______ ________ __| |.—–.—–.—–.| | | |.—-.| |_| – || _ | -__| || | | || _|| _||_______|| __|_____|__|__||________||__| |____||__| W I R E L E S S F R E E D O M—————————————————–OpenWrt 23.05.4, r24012-d8dd03c46f—————————————————–=== WARNING! =====================================There is no root password defined on this device!Use the “passwd” command to set up a new passwordin order to prevent unauthorized SSH logins.————————————————–root@OpenWrt:/# - Sysupgrade imageを転送してsysupgradeを実行
リモートマシンからscpでSysupgrade imageを転送する例
1scp -O openwrt-23.05.4-realtek-rtl838x-panasonic_m24eg-pn28240k-squashfs-sysupgrade.bin root@192.168.1.110:/tmp/
sysupgradeの実行例
1sysupgrade /tmp/openwrt-23.05.4-realtek-rtl838x-panasonic_m24eg-pn28240k-squashfs-sysupgrade.binroot@OpenWrt:/# sysupgrade /tmp/openwrt-23.05.4-realtek-rtl838x-panasonic_m24eg-pn28240k-squashfs-sysupgrade.binCannot save config while running from ramdisk.Mon Jul 15 22:21:29 UTC 2024 upgrade: Commencing upgrade. Closing all shell sessions.CommandWatchdog handover: fd=3– watchdog –Watchdog does not have CARDRESET supportMon Jul 15 22:21:30 UTC 2024 upgrade: Sending TERM to remaining processes …Mon Jul 15 22:21:30 UTC 2024 upgrade: Sending signal TERM to ntpd (2293)Mon Jul 15 22:21:30 UTC 2024 upgrade: Sending signal TERM to ntpd (2296)Mon Jul 15 22:21:34 UTC 2024 upgrade: Sending KILL to remaining processes …[ 479.878498] stage2 (2781): drop_caches: 3Mon Jul 15 22:21:41 UTC 2024 upgrade: Switching to ramdisk…Mon Jul 15 22:21:46 UTC 2024 upgrade: Performi[ 485.746440] do_stage2 (2781): drop_caches: 3ng system upgrade…Unlocking firmware …Writing from to firmware … [w][ 505.658027] RTL8380 Link change: status: 1, ports 1[ 505.722471] rtl83xx-switch switch@1b000000 lan1: Link is Down[ 505.876040] switch: port 1(lan1) entered disabled state[e][ 506.061649] rtl83xx-switch switch@1b000000 lan1: Link is Up – 1Gbps/Full – flow control off[w][ 506.335550] switch: port 1(lan1) entered blocking state[ 506.404528] switch: port 1(lan1) entered forwarding state[e][ 506.697085] rtl83xx-switch switch@1b000000 lan1: Link is Down[w][ 506.889025] switch: port 1(lan1) entered disabled stateAppending jffs2 data from /tmp/sysupgrade.tgz to firmware...File /tmp/sysupgrade.tgz does not existMon Jul 15 22:22:29 UTC 2024 upgrade: Upgrade completedMon Jul 15 22:22:30 UTC 2024 upgrade: [ 528.891274] reboot: Restarting systemU-Boot 2011.12.pre45842-1.00.22-svn5720 (Mar 12 2015 – 19:04:09)Board: RTL838x CPU:500MHz LXB:200MHz MEM:300MHzDRAM: 128 MBSPI-F: 1×32 MBLoading 65536B env. variables from offset 0x80000#### Periphery Devices Init Successfully ####Switch Model: RTL8382M_8218B_INTPHY_8218FB (Port Count: 24)Switch Chip: RTL8382M**************************************************#### RTL8218B config – MAC ID = 0 ####Now External 8218B**************************************************#### RTL8218B config – MAC ID = 8 ####Now Internal PHY///////////////////////////////////////////////////////////Now External 8218FBFile system initialization doneStart to check runtime code(1)## Booting kernel from Legacy ImageVerifying Checksum … OKUncompressing Kernel Image … OKStarting kernel …[ 0.000000] Linux version 5.15.162 (builder@buildhost) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r24012-d8dd03c46f) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 Mon Jul15 22:14:18 2024[ 0.000000] RTL838X model is 83826800[ 0.000000] SoC Type: RTL8382[ 0.000000] printk: bootconsole [early0] enabled[ 0.000000] CPU0 revision is: 00019070 (MIPS 4KEc)[ 0.000000] MIPS: machine is Panasonic Switch-M24eG PN28240K[ 0.000000] earlycon: ns16550a0 at MMIO 0x18002000 (options ‘9600n8’)[ 0.000000] printk: bootconsole [ns16550a0] enabled[ 0.000000] Initrd not found or empty – disabling initrd[ 0.000000] Using appended Device Tree.[ 0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.[ 0.000000] Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 bytes[ 0.000000] Zone ranges:[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff][ 0.000000] Movable zone start for each node[ 0.000000] Early memory node ranges[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff][ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff][ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768[ 0.000000] pcpu-alloc: [0] 0[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480[ 0.000000] Kernel command line: earlycon[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off[ 0.000000] Memory: 120604K/131072K available (6234K kernel code, 616K rwdata, 780K rodata, 1260K init, 219K bss, 10468K reserved, 0K cma-reserved)[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1[ 0.000000] NR_IRQS: 256[ 0.000000] rtl83xx-clk: initialized, CPU 500 MHz, MEM 300 MHz (8 Bit DDR3), LXB 200 MHz[ 0.000000] clocksource: realtek_otto_timer: mask: 0xfffffff max_cycles: 0xfffffff, max_idle_ns: 38225208801 ns[ 0.000005] sched_clock: 28 bits at 3125kHz, resolution 320ns, wraps every 42949672800ns[ 0.106992] Calibrating delay loop… 498.89 BogoMIPS (lpj=2494464)[ 0.309173] pid_max: default: 32768 minimum: 301[ 0.372432] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 0.468832] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 0.600619] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns[ 0.730263] futex hash table entries: 256 (order: -1, 3072 bytes, linear)[ 0.820122] pinctrl core: initialized pinctrl subsystem[ 0.892801] NET: Registered PF_NETLINK/PF_ROUTE protocol family[ 1.005378] rtl83xx-clk clock-controller: rate setting enabled, CPU 300-625 MHz, MEM 300-300 MHz, LXB 200-200 MHz, OVERCLOCK AT OWN RISK[ 1.172622] clocksource: Switched to clocksource realtek_otto_timer[ 1.259465] NET: Registered PF_INET protocol family[ 1.324427] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)[ 1.421998] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 1.533445] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)[ 1.635647] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 1.736728] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 1.829709] TCP: Hash tables configured (established 1024 bind 1024)[ 1.914135] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)[ 2.000283] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)[ 2.093241] NET: Registered PF_UNIX/PF_LOCAL protocol family[ 2.179257] workingset: timestamp_bits=14 max_order=15 bucket_order=1[ 2.285014] squashfs: version 4.0 (2009/01/31) Phillip Lougher[ 2.361973] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.[ 2.503354] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)[ 2.606000] pinctrl-single 1b001000.pinmux: 32 pins, size 4[ 2.680426] pinctrl-single 1b00a000.pinmux: 32 pins, size 4[ 2.757859] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled[ 2.850617] printk: console [ttyS0] disabled[ 2.907084] 18002000.uart: ttyS0 at MMIO 0x18002000 (irq = 31, base_baud = 12500000) is a 16550A[ 3.022999] printk: console [ttyS0] enabled[ 3.022999] printk: console [ttyS0] enabled[ 3.133212] printk: bootconsole [early0] disabled[ 3.133212] printk: bootconsole [early0] disabled[ 3.257170] printk: bootconsole [ns16550a0] disabled[ 3.257170] printk: bootconsole [ns16550a0] disabled[ 3.531240] brd: module loaded[ 3.585506] spi-nor spi0.0: mx25l25635e (32768 Kbytes)[ 3.653421] 8 fixed-partitions partitions found on MTD device spi0.0[ 3.737330] OF: Bad cell count for /soc/spi@1200/flash@0/partitions[ 3.820086] OF: Bad cell count for /soc/spi@1200/flash@0/partitions[ 3.903274] Creating 8 MTD partitions on “spi0.0”:[ 3.966568] 0x000000000000-0x000000080000 : “u-boot”[ 4.040256] 0x000000080000-0x000000090000 : “u-boot-env”[ 4.114060] 0x000000090000-0x0000000a0000 : “u-boot-env2”[ 4.193643] 0x0000000a0000-0x000000100000 : “sysinfo”[ 4.263870] 0x000000100000-0x000000e00000 : “fs_reserved”[ 4.343465] 0x000000e00000-0x000001e00000 : “firmware”[ 4.418595] 2 uimage-fw partitions found on MTD device firmware[ 4.496714] Creating 2 MTD partitions on “firmware”:[ 4.562273] 0x000000000000-0x000000320000 : “kernel”[ 4.633698] 0x000000320000-0x000001000000 : “rootfs”[ 4.702399] mtd: setting mtd7 (rootfs) as root device[ 4.771625] 1 squashfs-split partitions found on MTD device rootfs[ 4.853246] 0x0000005d0000-0x000001000000 : “rootfs_data”[ 4.930333] 0x000001e00000-0x000001f00000 : “vlog_data”[ 5.002808] 0x000001f00000-0x000002000000 : “elog_data”[ 5.109808] Probing RTL838X eth device pdev: 820af600, dev: 820af610[ 5.244195] Found SoC ID: 8382: RTL8382, family 8380[ 5.309856] rtl8380_init_mac[ 5.347835] Using MAC 0000000000010000[ 5.501523] Phy on MAC 0: 1cc981[ 5.555148] Realtek RTL8218B (external) mdio-bus:00: Detected external RTL8218B[ 5.651692] Firmware loaded. Size 1168, magic: 83808380[ 5.862992] Realtek RTL8218B (external) mdio-bus:00: Detected chip revision 0002[ 7.220024] Realtek RTL8218B (internal) mdio-bus:08: Detected internal RTL8218B[ 7.316511] Firmware loaded. Size 1184, magic: 83808380[ 9.980033] i2c_dev: i2c /dev entries driver[ 10.045593] NET: Registered PF_INET6 protocol family[ 10.138400] Segment Routing with IPv6[ 10.186970] In-situ OAM (IOAM) with IPv6[ 10.239054] NET: Registered PF_PACKET protocol family[ 10.305836] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.[ 10.478215] 8021q: 802.1Q VLAN Support v1.8[ 10.538179] pca953x 0-0020: using no AI[ 10.593113] pca953x 0-0075: using no AI[ 10.663943] gpio-470 (portled-sregister-reset): hogged as output/high[ 10.749382] gpio-468 (ext-switch-reset): hogged as output/high[ 10.827524] i2c-gpio i2c-gpio-0: using lines 489 (SDA) and 488 (SCL)[ 10.913643] i2c-gpio i2c-gpio-1: using lines 501 (SDA) and 500 (SCL)[ 11.024031] Phy on MAC 0: 1cc981[ 11.077473] Realtek RTL8218B (external) rtl838x slave mii-0:00: Detected external RTL8218B[ 11.186626] Firmware loaded. Size 1168, magic: 83808380[ 11.402999] Realtek RTL8218B (external) rtl838x slave mii-0:00: Detected chip revision 0002[ 12.769804] Realtek RTL8218B (internal) rtl838x slave mii-0:08: Detected internal RTL8218B[ 12.878966] Firmware loaded. Size 1184, magic: 83808380[ 15.549824] In rtl83xx_vlan_setup[ 15.593594] UNKNOWN_MC_PMASK: 000000001fffffff[ 15.652223] VLAN profile 0: L2 learning: 1, UNKN L2MC FLD PMSK 511, UNKN IPMC FLD PMSK 511, UNKN IPv6MC FLD PMSK: 511[ 16.742673] rtl83xx_enable_phy_polling: ffffff[ 18.023368] rtl83xx-switch switch@1b000000: configuring for fixed/internal link mode[ 18.126436] rtl83xx-switch switch@1b000000: Link is Up – 1Gbps/Full – flow control off[ 18.231817] rtl83xx-switch switch@1b000000 lan1 (uninitialized): PHY [mdio-bus:00] driver [Realtek RTL8218B (external)] (irq=POLL)[ 18.390662] rtl83xx-switch switch@1b000000 lan2 (uninitialized): PHY [mdio-bus:01] driver [Realtek RTL8218B (external)] (irq=POLL)[ 18.552829] rtl83xx-switch switch@1b000000 lan3 (uninitialized): PHY [mdio-bus:02] driver [Realtek RTL8218B (external)] (irq=POLL)[ 18.711997] rtl83xx-switch switch@1b000000 lan4 (uninitialized): PHY [mdio-bus:03] driver [Realtek RTL8218B (external)] (irq=POLL)[ 18.874161] rtl83xx-switch switch@1b000000 lan5 (uninitialized): PHY [mdio-bus:04] driver [Realtek RTL8218B (external)] (irq=POLL)[ 19.033237] rtl83xx-switch switch@1b000000 lan6 (uninitialized): PHY [mdio-bus:05] driver [Realtek RTL8218B (external)] (irq=POLL)[ 19.195875] rtl83xx-switch switch@1b000000 lan7 (uninitialized): PHY [mdio-bus:06] driver [Realtek RTL8218B (external)] (irq=POLL)[ 19.356453] rtl83xx-switch switch@1b000000 lan8 (uninitialized): PHY [mdio-bus:07] driver [Realtek RTL8218B (external)] (irq=POLL)[ 19.516428] rtl83xx-switch switch@1b000000 lan9 (uninitialized): PHY [mdio-bus:08] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 19.688130] rtl83xx-switch switch@1b000000 lan10 (uninitialized): PHY [mdio-bus:09] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 19.859996] rtl83xx-switch switch@1b000000 lan11 (uninitialized): PHY [mdio-bus:0a] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 20.032105] rtl83xx-switch switch@1b000000 lan12 (uninitialized): PHY [mdio-bus:0b] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 20.203892] rtl83xx-switch switch@1b000000 lan13 (uninitialized): PHY [mdio-bus:0c] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 20.376503] rtl83xx-switch switch@1b000000 lan14 (uninitialized): PHY [mdio-bus:0d] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 20.548655] rtl83xx-switch switch@1b000000 lan15 (uninitialized): PHY [mdio-bus:0e] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 20.720304] rtl83xx-switch switch@1b000000 lan16 (uninitialized): PHY [mdio-bus:0f] driver [Realtek RTL8218B (internal)] (irq=POLL)[ 20.892400] rtl83xx-switch switch@1b000000 lan17 (uninitialized): PHY [mdio-bus:10] driver [REALTEK RTL8218D] (irq=POLL)[ 21.051698] rtl83xx-switch switch@1b000000 lan18 (uninitialized): PHY [mdio-bus:11] driver [REALTEK RTL8218D] (irq=POLL)[ 21.210999] rtl83xx-switch switch@1b000000 lan19 (uninitialized): PHY [mdio-bus:12] driver [REALTEK RTL8218D] (irq=POLL)[ 21.370295] rtl83xx-switch switch@1b000000 lan20 (uninitialized): PHY [mdio-bus:13] driver [REALTEK RTL8218D] (irq=POLL)[ 21.529398] rtl83xx-switch switch@1b000000 lan21 (uninitialized): PHY [mdio-bus:14] driver [REALTEK RTL8218D] (irq=POLL)[ 21.688847] rtl83xx-switch switch@1b000000 lan22 (uninitialized): PHY [mdio-bus:15] driver [REALTEK RTL8218D] (irq=POLL)[ 21.848475] rtl83xx-switch switch@1b000000 lan23 (uninitialized): PHY [mdio-bus:16] driver [REALTEK RTL8218D] (irq=POLL)[ 22.007883] rtl83xx-switch switch@1b000000 lan24 (uninitialized): PHY [mdio-bus:17] driver [REALTEK RTL8218D] (irq=POLL)[ 22.154242] DSA: tree 0 setup[ 22.193477] LINK state irq: 20[ 22.233893] In rtl83xx_setup_qos[ 22.276487] Setting up RTL838X QoS[ 22.321271] RTL838X_PRI_SEL_TBL_CTRL(i): 00033112[ 22.383307] Current Intprio2queue setting: 00000000[ 22.447611] QM_PKT2CPU_INTPRI_MAP: 00fac688[ 22.503059] rtl838x_dbgfs_init called[ 22.551464] rtl83xx_fib_event_work_do: FIB4 default rule failed[ 22.632221] rtl83xx_fib_event_work_do: FIB4 default rule failed[ 22.741930] clk: Disabling unused clocks[ 22.805421] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.[ 22.912435] Freeing unused kernel image (initmem) memory: 1260K[ 22.990522] This architecture does not have kernel memory protection.[ 23.075485] Run /sbin/init as init process[ 23.129448] with arguments:[ 23.168557] /sbin/init[ 23.204201] with environment:[ 23.245568] HOME=/[ 23.276627] TERM=linux[ 23.962961] init: Console is alive[ 24.008934] init: – watchdog –[ 24.519115] kmodloader: loading kernel modules from /etc/modules-boot.d/*[ 24.660633] kmodloader: done loading kernel modules from /etc/modules-boot.d/*[ 24.767081] init: – preinit –[ 26.292850] random: jshn: uninitialized urandom read (4 bytes read)[ 26.568321] random: jshn: uninitialized urandom read (4 bytes read)[ 28.771489] random: jshn: uninitialized urandom read (4 bytes read)[ 28.954265] random: jshn: uninitialized urandom read (4 bytes read)[ 29.302386] random: jshn: uninitialized urandom read (4 bytes read)[ 30.839536] RESETTING 8380, CPU_PORT 28[ 31.090852] rtl838x-eth 1b00a300.ethernet eth0: configuring for fixed/internal link mode[ 31.197534] In rtl838x_mac_config, mode 1[ 31.253536] rtl83xx-switch switch@1b000000 lan1: configuring for phy/qsgmii link mode[ 31.357153] rtl838x-eth 1b00a300.ethernet eth0: Link is Up – 1Gbps/Full – flow control off[ 31.466794] 8021q: adding VLAN 0 to HW filter on device lan1[ 31.542115] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready[ 31.624901] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 31.711172] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 31.871167] random: procd: uninitialized urandom read (4 bytes read)Press the [f] key and hit [enter] to enter fail[ 32.159513] rtl83xx_fib_event_work_do: FIB4 faileds[ 32.223648] rtl83xx_fib_event_work_do: FIB4 faileda[ 32.287916] rtl83xx_fib_event_work_do: FIB4 failedfe modePress the [1], [2], [3] or [4] key and hit [enter] to select the debug level[ 33.622754] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported[ 34.418847] mount_root: jffs2 not ready yet, using temporary tmpfs overlay[ 34.519358] urandom-seed: Seed file not found (/etc/urandom.seed)[ 34.740058] rtl83xx_fib4_del: no such gateway: 0.0.0.0[ 34.854013] rtl83xx_fib4_del: no such gateway: 0.0.0.0[ 34.921893] rtl83xx_fib4_del: no such gateway: 0.0.0.0[ 34.998184] procd: – early –[ 35.036847] procd: – watchdog –[ 36.052335] procd: – watchdog –[ 36.095746] procd: – ubus –[ 36.222009] random: ubusd: uninitialized urandom read (4 bytes read)[ 36.309669] random: ubusd: uninitialized urandom read (4 bytes read)[ 36.394692] random: ubusd: uninitialized urandom read (4 bytes read)[ 36.486310] procd: – init –Please press Enter to activate this console.[ 37.259308] random: jshn: uninitialized urandom read (4 bytes read)[ 38.400441] kmodloader: loading kernel modules from /etc/modules.d/*[ 38.652822] i2c i2c-1: Added multiplexed i2c bus 2[ 38.716796] i2c i2c-1: Added multiplexed i2c bus 3[ 38.780740] i2c i2c-1: Added multiplexed i2c bus 4[ 38.844878] i2c i2c-1: Added multiplexed i2c bus 5[ 38.908135] pca954x 1-0070: registered 4 multiplexed busses for I2C switch pca9545[ 39.019458] sfp sfp-p23: Host maximum power 1.0W[ 39.085032] sfp sfp-p24: Host maximum power 1.0W[ 39.545153] GACT probability on[ 39.635137] Mirror/redirect action on[ 39.787155] u32 classifier[ 39.822921] input device check on[ 39.871251] Actions configured[ 40.434098] kmodloader: done loading kernel modules from /etc/modules.d/*[ 41.605294] urngd: v1.0.2 started.[ 45.296047] random: crng init done[ 45.340977] random: 20 urandom warning(s) missed due to ratelimitingBusyBox v1.36.1 (2024-07-15 22:14:18 UTC) built-in shell (ash)_______ ________ __| |.—–.—–.—–.| | | |.—-.| |_| – || _ | -__| || | | || _|| _||_______|| __|_____|__|__||________||__| |____||__| W I R E L E S S F R E E D O M—————————————————–OpenWrt 23.05.4, r24012-d8dd03c46f—————————————————–=== WARNING! =====================================There is no root password defined on this device!Use the “passwd” command to set up a new passwordin order to prevent unauthorized SSH logins.————————————————–root@OpenWrt:/# - Enjoy your OpenWrt Life!
- 再起動&u-bootでCrtl-C
補足
OpenWrtの起動後いつコンソールが使えるようになるの?
Please press Enter to activate this console.が出た後使用可能。起動後50秒あたりで一旦ログが落ち着くがポート数が多いためか70秒から130秒あたりでポート関連のログが流れる傾向にある。
OpenWrtのコンソールなどでネットワーク設定を入れる方法は?
uciを使って以下のようにアドレスを設定出来る。
1 2 3 4 5 6 7 8 |
uci set network.lan.ipaddr=192.168.1.110 uci set network.lan.netmask=255.255.255.0 uci set network.lan.gateway=192.168.1.1 uci set network.lan.dns='192.168.1.1' '9.9.9.10' # uci commit networkでも可 uci commit # service network reloadでも可 /etc/init.d/network reload |
DHCPクライアントを使いたい場合は以下のようにする
1 2 3 4 5 6 7 8 9 10 11 12 |
uci delete network.lan.ipaddr uci delete network.lan.netmask # gateway/dnsは初期値にはないが念のため消す # 存在しなければ'uci: Entry not found'と出る uci delete network.lan.gateway uci delete network.lan.dns # StaticからDHCPにする uci set network.lan.proto=dhcp # uci commit networkでも可 uci commit # service network reloadでも可 /etc/init.d/network reload |
参考ページ
https://mi.okin-jp.net/@okin_p(Misskey)
https://fi.okin-jp.net/@okin_p(Firefish)
https://si.okin-jp.net/@okin_p(Mastodon)
https://fedifile.net/@okin_p/profile/
https://twpf.jp/okin_p
http://profile.hatena.ne.jp/okin_p/
名前:おきん
やってること:面倒なことをPHPにやらせる、IPv6でなにかする、車で移動する
主なガジェット:Google Pixel 4a (5G) ,iPhone XS(ジャンク), iPad mini5, その他
種別:猫 over IPv6 run on PHP
パソコンやガジェットについて書いていく…予定。