Login  Register

Re: [FIRMWARE] Itus Networks Shield Firmware Upgrade *WIP*

Posted by Roadrunnere42 on Jun 15, 2019; 3:39pm
URL: https://itus.accessinnov.com/FIRMWARE-Itus-Networks-Shield-Firmware-Upgrade-WIP-tp1726p1759.html

Great work Grommish, you must be spending sometime on this project.
On the question of things to add I would say intrusion prevention (snort or equivalent) this was one of the advantages of using the shields cpu, Web Filters, vpn,  not sure if it's possible to have traffic management not qos but speed throttling seen it on tomato firmware routers, you just select the ip address and assign a download speed, not sure if this is part of openwrt or not.
keep up the great work.

Roadrunnere42

On Sat, 15 Jun 2019 at 03:12, Grommish [via Itus Networks Owners Forum] <[hidden email]> wrote:
Update 6/14/2019:

I finally got the blasted MMC block to mount!  I can finally start the real fun stuff. The good news is that the *core* image seems to be about finished and changes to the extroot survive reboots! *happy dance*.  Now i just have to get the image set for multi-boot.

Serious question time - I need to get info from anyone with an opinion on what to add.  Also, I'm going to start thinking on ways to make it user proof.  Updates to follow.

Also, for anything NOT kernel related, the posted image will work for tests.  It still isn't destructive, but that means nothing survives reboots.  There is way more setup I've got to do in the scripts to make it an all-in-one.

late_board_init ..
ITUS: SW1 3 Gateway (OUTER)  
Hit any key to stop autoboot:  0
mmc1(part 0) is current device
reading ItusgatewayImage
42393744 bytes read in 3628 ms (11.1 MiB/s)
argv[2]: mem=0
argv[3]: numcores=2
argv[4]: serial#=752011191521-36409
Allocating memory for ELF segment: addr: 0xffffffff81100000 (adjusted to: 0x1100000), size 0x39b6df0
## Loading big-endian Linux kernel with entry point: 0xffffffff81607720 ...
Bootloader: Done loading app on coremask: 0x3
Starting cores:
 0x3
[    0.000000] Linux version 4.14.123 (grommish@norwits) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r10050-df6e8c8771)) #0 SMP Mon Jun 3 15:00:29 2019
[    0.000000] Skipping L2 locking due to reduced L2 cache size
[    0.000000] CVMSEG size: 8 cache lines (1024 bytes)
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 000d9602 (Cavium Octeon III)
[    0.000000] FPU revision is: 00739600
[    0.000000] Checking for the multiply/shift bug... no.
[    0.000000] Checking for the daddiu bug... no.
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 000000000a400000 @ 0000000004b00000 (usable)
[    0.000000]  memory: 0000000000c00000 @ 000000000f200000 (usable)
[    0.000000]  memory: 000000002f000000 @ 0000000020000000 (usable)
[    0.000000]  memory: 00000000039b6df0 @ 0000000001100000 (usable)
[    0.000000] Wasting 243712 bytes for tracking 4352 unused pages
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Using passed Device Tree.
[    0.000000] software IO TLB: mapped [mem 0x04b15000-0x04b55000] (0MB)
[    0.000000] Primary instruction cache 78kB, virtually tagged, 39 way, 16 sets, linesize 128 bytes.
[    0.000000] Primary data cache 32kB, 32-way, 8 sets, linesize 128 bytes.
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000000000000-0x00000000efffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000004ab5fff]
[    0.000000]   node   0: [mem 0x0000000004b00000-0x000000000eefffff]
[    0.000000]   node   0: [mem 0x000000000f200000-0x000000000fdfffff]
[    0.000000]   node   0: [mem 0x0000000020000000-0x000000004effffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000004effffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x94/0x4fc with crng_init=0
[    0.000000] percpu: Embedded 19 pages/cpu s39600 r8192 d30032 u77824
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 253184
[    0.000000] Kernel command line:  bootoctlinux 0x20000000 numcores=2 serial#=752011191521-36409 console=ttyS0,115200
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.000000] Memory: 933848K/1026776K available (5177K kernel code, 322K rwdata, 1284K rodata, 35636K init, 16667K bss, 92928K reserved, 0K cma-)
[    0.000000] SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  CONFIG_RCU_FANOUT set to non-default value of 32
[    0.000000]  RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 127
[    0.000000] CIB interrupt controller probed: 800107000000e000 23
[    0.000000] CIB interrupt controller probed: 800107000000e200 12
[    0.000000] CIB interrupt controller probed: 800107000000e400 6
[    0.000000] CIB interrupt controller probed: 800107000000ec00 15
[    0.000000] CIB interrupt controller probed: 800107000000e600 4
[    0.000000] CIB interrupt controller probed: 800107000000e800 11
[    0.000000] CIB interrupt controller probed: 800107000000e900 11
[   22.984276] clocksource: OCTEON_CVMCOUNT: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[   22.995332] Calibrating delay loop (skipped) preset value.. 2000.00 BogoMIPS (lpj=1000000)
[   23.003582] pid_max: default: 32768 minimum: 301
[   23.008241] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[   23.014865] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[   23.022408] Checking for the daddi bug... no.
[   23.027053] Hierarchical SRCU implementation.
[   23.031597] smp: Bringing up secondary CPUs ...
[   23.036235] SMP: Booting CPU01 (CoreId  1)...
[   23.040543] CPU1 revision is: 000d9602 (Cavium Octeon III)
[   23.040547] FPU revision is: 00739600
[   23.040656] smp: Brought up 1 node, 2 CPUs
[   23.056119] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[   23.065737] futex hash table entries: 512 (order: 4, 65536 bytes)
[   23.072105] NET: Registered protocol family 16
[   23.081144] PCIe: Initializing port 0
[   23.087886] PCIe: BIST2 FAILED for port 0 (0x0000000000000003)
[   23.190950] random: fast init done
[   25.093580] PCIe: Link timeout on port 0, probably the slot is empty
[   25.099881] PCIe: Initializing port 1
[   25.106752] PCIe: BIST FAILED for port 1 (0xffffffffffffffff)
[   27.117421] PCIe: Link timeout on port 1, probably the slot is empty
[   27.129761] SCSI subsystem initialized
[   27.133559] usbcore: registered new interface driver usbfs
[   27.138951] usbcore: registered new interface driver hub
[   27.144251] usbcore: registered new device driver usb
[   27.149381] PCI host bridge to bus 0000:00
[   27.153331] pci_bus 0000:00: root bus resource [mem 0x1000000000000]
[   27.159665] pci_bus 0000:00: root bus resource [io  0x0000]
[   27.165229] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[   27.172011] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[   27.181117] clocksource: Switched to clocksource OCTEON_CVMCOUNT
[   27.187552] NET: Registered protocol family 2
[   27.192173] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[   27.199161] TCP bind hash table entries: 8192 (order: 6, 262144 bytes)
[   27.205740] TCP: Hash tables configured (established 8192 bind 8192)
[   27.212012] UDP hash table entries: 512 (order: 3, 49152 bytes)
[   27.217885] UDP-Lite hash table entries: 512 (order: 3, 49152 bytes)
[   27.224344] NET: Registered protocol family 1
[   27.419414] Crashlog allocated RAM at address 0x3f00000
[   27.425083] workingset: timestamp_bits=62 max_order=18 bucket_order=0
[   27.435292] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[   27.441165] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[   27.452529] io scheduler noop registered
[   27.456329] io scheduler deadline registered (default)
[   27.461836] octeon_gpio 1070000000800.gpio-controller: OCTEON GPIO driver probed.
[   27.469389] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   27.476038] console [ttyS0] disabled
[   27.479496] 1180000000800.serial: ttyS0 at MMIO 0x1180000000800 (irq = 44, base_baud = 37500000) is a OCTEON
[   27.489297] console [ttyS0] enabled
[   27.489297] console [ttyS0] enabled
[   27.496241] bootconsole [early0] disabled
[   27.496241] bootconsole [early0] disabled
[   27.504521] 1180000000c00.serial: ttyS1 at MMIO 0x1180000000c00 (irq = 45, base_baud = 37500000) is a OCTEON
[   27.514632] octeon_rng octeon_rng: Octeon Random Number Generator
[   27.520915] cacheinfo: Failed to find cpu0 device node
[   27.526081] cacheinfo: Unable to detect cache hierarchy for CPU 0
[   27.534875] loop: module loaded
[   27.538528] libphy: mdio_octeon: probed
[   27.542419] [Firmware Warn]: /soc@0/mdio@1180000001800/ethernet-phy@0: Whitelisted compatible string. Please remove
[   27.559325] irq: :soc@0:gpio-controller@1070000000800 didn't like hwirq-0x7 to VIRQ48 mapping (rc=-22)
[   27.568779] [Firmware Warn]: /soc@0/mdio@1180000001800/ethernet-phy@1: Whitelisted compatible string. Please remove
[   27.584964] irq: :soc@0:gpio-controller@1070000000800 didn't like hwirq-0x7 to VIRQ48 mapping (rc=-22)
[   27.594417] [Firmware Warn]: /soc@0/mdio@1180000001800/ethernet-phy@2: Whitelisted compatible string. Please remove
[   27.610500] irq: :soc@0:gpio-controller@1070000000800 didn't like hwirq-0x7 to VIRQ48 mapping (rc=-22)
[   27.619957] [Firmware Warn]: /soc@0/mdio@1180000001800/ethernet-phy@3: Whitelisted compatible string. Please remove
[   27.636196] irq: :soc@0:gpio-controller@1070000000800 didn't like hwirq-0x7 to VIRQ48 mapping (rc=-22)
[   27.645640] mdio_octeon 1180000001800.mdio: Probed
[   27.650667] libphy: Fixed MDIO Bus: probed
[   27.654869] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   27.661419] ehci-pci: EHCI PCI platform driver
[   27.665911] ehci-platform: EHCI generic platform driver
[   27.671234] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   27.677451] ohci-platform: OHCI generic platform driver
[   27.682818] usbcore: registered new interface driver usb-storage
[   27.688878] octeon_wdt: Initial granularity 5 Sec
[   27.694008] sdhci: Secure Digital Host Controller Interface driver
[   27.700226] sdhci: Copyright(c) Pierre Ossman
[   28.591240] usbcore: registered new interface driver ushc
[   28.598059] Interface 0 has 4 ports (SGMII)
[   28.602302] Interface 1 has 4 ports (SGMII)
[   28.607055] Interface 3 has 4 ports (LOOP)
[   28.617372] NET: Registered protocol family 10
[   28.623732] Segment Routing with IPv6
[   28.627484] NET: Registered protocol family 17
[   28.631977] 8021q: 802.1Q VLAN Support v1.8
[   28.636908] OF: fdt: not creating '/sys/firmware/fdt': CRC check failed
[   28.658689] Freeing unused kernel memory: 35636K
[   28.663336] This architecture does not have kernel memory protection.
Waiting for extroot dev : /dev/mmcblk1p3 : 0
[   29.827134] random: crng init done
Waiting for extroot dev : /dev/mmcblk1p3 : 1
Waiting for extroot dev : /dev/mmcblk1p3 : 2
Waiting for extroot dev : /dev/mmcblk1p3 : 3
Waiting for extroot dev : /dev/mmcblk1p3 : 4
Waiting for extroot dev : /dev/mmcblk1p3 : 5
Waiting for extroot dev : /dev/mmcblk1p3 : 6
Waiting for extroot dev : /dev/mmcblk1p3 : 7
Waiting for extroot dev : /dev/mmcblk1p3 : 8
Waiting for extroot dev : /dev/mmcblk1p3 : 9
Waiting for extroot dev : /dev/mmcblk1p3 : 10
Waiting for extroot dev : /dev/mmcblk1p3 : 11
Waiting for extroot dev : /dev/mmcblk1p3 : 12
Waiting for extroot dev : /dev/mmcblk1p3 : 13
Waiting for extroot dev : /dev/mmcblk1p3 : 14
Waiting for extroot dev : /dev/mmcblk1p3 : 15
Waiting for extroot dev : /dev/mmcblk1p3 : 16
Waiting for extroot dev : /dev/mmcblk1p3 : 17
[   47.352102] mmc1: new DDR MMC card at address 0001
[   47.357243] mmcblk1: mmc1:0001 P1XXXX 3.60 GiB
[   47.361917] mmcblk1boot0: mmc1:0001 P1XXXX partition 1 2.00 MiB
[   47.367969] mmcblk1boot1: mmc1:0001 P1XXXX partition 2 2.00 MiB
[   47.374019] mmcblk1rpmb: mmc1:0001 P1XXXX partition 3 128 KiB
[   47.380517]  mmcblk1: p1 p2 p3 p4
Waiting for extroot dev : /dev/mmcblk1p3 : 18
Found /sys/block/mmcblk1/mmcblk1p3 : 19
Creating /dev/mmcblk1p3
Mounting /dev/mmcblk1p3 on /extroot
[   47.747670] F2FS-fs (mmcblk1p3): Found nat_bits in checkpoint
[   47.773481] F2FS-fs (mmcblk1p3): Mounted with checkpoint version = 4ea2e7e4
Found /extroot/init
[   47.964327] init: Console is alive
[   47.967885] init: - watchdog -
[   48.069062] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[   48.088967] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[   48.102357] init: - preinit -
[   48.282050] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
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
[   51.352574] mount_root: mounting /dev/root
[   51.367973] urandom-seed: Seeding with /etc/urandom.seed
[   51.397469] procd: - early -
[   51.400434] procd: - watchdog -
[   51.928849] procd: - watchdog -
[   51.932227] procd: - ubus -
[   51.986490] procd: - init -
Please press Enter to activate this console.
[   52.224548] kmodloader: loading kernel modules from /etc/modules.d/*
[   52.234762] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   52.243608] ip_tables: (C) 2000-2006 Netfilter Core Team
[   52.252137] nf_conntrack version 0.5.0 (7680 buckets, 30720 max)
[   52.272003] usbcore: registered new interface driver ums-alauda
[   52.278366] usbcore: registered new interface driver ums-cypress
[   52.284827] usbcore: registered new interface driver ums-datafab
[   52.291271] usbcore: registered new interface driver ums-freecom
[   52.297810] usbcore: registered new interface driver ums-isd200
[   52.304234] usbcore: registered new interface driver ums-jumpshot
[   52.310776] usbcore: registered new interface driver ums-karma
[   52.317183] usbcore: registered new interface driver ums-sddr09
[   52.323597] usbcore: registered new interface driver ums-sddr55
[   52.330023] usbcore: registered new interface driver ums-usbat
[   52.341431] xt_time: kernel timezone is -0000
[   52.349471] PPP generic driver version 2.4.2
[   52.354461] NET: Registered protocol family 24
[   52.360341] kmodloader: done loading kernel modules from /etc/modules.d/*
[   53.695552] [DEBUG] Shield is in Gateway Mode - Using /dev/mmcblk1p3 as f2fs
[   53.706272] [TODO] Mount /extroot is empty! Populate it with stuff!
[   53.712805] [DEBUG] TEST TEST TEST!
[   54.948490] br-lan: port 1(eth1) entered blocking state
[   54.953769] br-lan: port 1(eth1) entered disabled state
[   54.959239] device eth1 entered promiscuous mode
[   54.972510] br-lan: port 1(eth1) entered blocking state
[   54.977773] br-lan: port 1(eth1) entered forwarding state
[   54.983313] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   54.995106] br-lan: port 2(eth2) entered blocking state
[   55.000400] br-lan: port 2(eth2) entered disabled state
[   55.005866] device eth2 entered promiscuous mode
[   55.010617] br-lan: port 2(eth2) entered blocking state
[   55.015878] br-lan: port 2(eth2) entered forwarding state
[   55.046608] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   55.966448] br-lan: port 1(eth1) entered disabled state
[   55.971920] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   55.979559] br-lan: port 2(eth2) entered disabled state
[   58.088296] eth2: 1000 Mbps Full duplex, port 2, queue 2
[   58.093654] br-lan: port 2(eth2) entered blocking state
[   58.098903] br-lan: port 2(eth2) entered forwarding state
[   58.151300] eth0: 1000 Mbps Full duplex, port 0, queue 0
[   58.156651] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready



BusyBox v1.30.1 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r10127-3209f5ae3d
 -----------------------------------------------------
=== 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.
--------------------------------------------------
root@OpenWrt:/#



If you reply to this email, your message will be added to the discussion below:
http://itus.accessinnov.com/FIRMWARE-Itus-Networks-Shield-Firmware-Upgrade-WIP-tp1726p1758.html
To start a new topic under Technical Discussion, email [hidden email]
To unsubscribe from Itus Networks Owners Forum, click here.
NAML