Welcome! Log In Create A New Profile

Advanced

Can I use SWAT on my PogoV4 & E02

Posted by BobM 
Can I use SWAT on my PogoV4 & E02
October 12, 2020 06:13PM
Hi all, Thought I would reawaken my Unix skills with a NAS project and some hardware hacks, I have successfully updated uBoot to the latest version and Linux 5.8.3 Kirkwood on an SDCARD in a Pogo V4 thanks to all the instructions on this forum. All seems to be well so far and I have installed Samba onto the box with apt-get.

I wanted to simplify every day management of the Samba Server using SWAT or a similar web page interface so I can mount USB sticks and create shares. If I try and download the SWAT package, apt-get Install swat I get an unable to locate package error. Has SWAT been installed with the Samba package and if so how do I enable it. If not, is it the best tool to use or should I be looking for something else?

I have not installed a webserver package yet on the device and was also hoping for recommendations on a small footprint web server package that wont swamp the processor.

Thanks - Bob
Re: Can I use SWAT on my PogoV4 & E02
October 21, 2020 06:17PM
Just thought I would do an update on this post for anyone else who is trying to make a simple front end for a pogo NAS.

In the end, I went for an compact installation of Webmin and then installed the modules for the items I wanted to manage which includes Samba. I used the following instructions to do the install

1 - Install Perl
sudo apt-get install libnet-ssleay-perl

2 - Get the latest minimal install (I had already downloaded the latest file and copied it over my network with SMB)
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.9xx-minimal.tar.gz

3 - Extract the files
sudo tar -zxvf webmin-1.9xx-minimal.tar.gz

4 - make the install point and install
sudo mkdir /var/www/webmin
cd webmin-1.9xx
sudo sh setup.sh /var/www/webmin

Follow the instructions in the install script (defaults will be fine) and then when its installed, run a browser and go to
https://<IP address>:10000/

From the webmin menu, you should find an add module option which will allow you to download the SAMBA server management and any other module you want.

I cant take credit for this - I found all the info on https://putokaz.wordpress.com/2015/02/25/installing-minimal-webmin-on-raspbian/

Bob
Re: Can I use SWAT on my PogoV4 & E02
January 23, 2021 12:24PM
Are there any caveats to this? I'm booting my pogo from a 4Gb SD card and webmin seems to just grind everything to a halt almost.

I had to set ssl=0 in the /etc/webmin/miniserv.conf file before it would even start. When it does start it's really slow, I can count the seconds between command and response to ssh commands while it's running. If I issue a top command it doesn't look that bad though.
 2235 root      20   0   35932  10660    660 R  32.2   9.2   0:05.12 apt                                                                                                                                                            
 2228 root      20   0   37700  25452    588 R  30.7  22.1   0:14.01 apt                                                                                                                                                            
 2242 root      20   0   25308  20604   2312 S  13.4  17.9   0:01.40 /var/www/webmin                                                                                                                                                
  176 root       0 -20       0      0      0 I   3.0   0.0   0:03.27 kworker/0:1H-mmc_complete                                                                                                                                      
    9 root      20   0       0      0      0 S   1.8   0.0   0:03.03 ksoftirqd/0                                                                                                                                                    
  106 root      20   0       0      0      0 S   1.5   0.0   0:01.33 kswapd0                                                                                                                                                        
 2013 root      20   0    5524   1116    664 R   0.9   1.0   0:01.06 top                                                                                                                                                            
 1463 avahi     20   0    6072   1308    632 S   0.6   1.1   6:06.04 avahi-daemon                                                                                                                                                   
 1935 root      20   0   21624  16032   1204 S   0.3  13.9   0:00.36 miniserv.pl                                                                                                                                                    
 1939 root       0 -20       0      0      0 I   0.3   0.0   0:00.32 kworker/0:0H-kblockd                                                                                                                                           
 2249 root      20   0    1892   1072   1012 S   0.3   0.9   0:00.01 sh
Sometimes the webpage wont even load
Re: Can I use SWAT on my PogoV4 & E02
January 23, 2021 03:52PM
Rhodess,

When you run any app that logs constantly to a slow disk such as the SD card it will grind slowly. You can move the logging to /tmp, like this:

mkdir -p /tmp/var/log
cp -aR /var/log/* /tmp/var/log/
mount -o bind /tmp/var/log /var/log

The drawback is whenever the system crashes, you cannot see the last log of what's going on. However, that's a good compromise.

You can also find out if the webmin log is on a different folder (not in /var/log) then move that log to /tmp, too.

When you have log files on /tmp, you also need to use logrotate to compress the log files periodically to avoid /tmp growing when something goes wrong and eating up all RAM (/tmp is in RAM).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Can I use SWAT on my PogoV4 & E02
January 23, 2021 06:05PM
Thanks bodhi,

I created a swapfile on another USB using this post Swapfile on disk, so I may try and log to that later, in the meantime I will create in /tmp as per your suggestion
Re: Can I use SWAT on my PogoV4 & E02
January 23, 2021 06:18PM
WOW!

What a difference that makes, It's running great now.

I imaged my SD card to a USB and then extended the partition also. Here's my dmesg, it looks like I was running out of memory
root@debian:/# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.9-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Pogoplug v4
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    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: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 104836K/131072K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 26236K reserved, 0K cma-reserved)
[    0.000000] random: get_random_u32 called from cache_alloc_refill+0x38c/0x928 with crng_init=0
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000012] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000073] Switching to timer-based delay loop, resolution 6ns
[    0.001197] Console: colour dummy device 80x30
[    0.001274] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.001312] pid_max: default: 32768 minimum: 301
[    0.001866] LSM: Security Framework initializing
[    0.002146] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002189] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.003485] *** VALIDATE proc ***
[    0.003886] *** VALIDATE cgroup1 ***
[    0.003925] *** VALIDATE cgroup2 ***
[    0.004075] CPU: Testing write buffer coherency: ok
[    0.006703] Setting up static identity map for 0x100000 - 0x100058
[    0.007149] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.007588] rcu: Hierarchical SRCU implementation.
[    0.012647] devtmpfs: initialized
[    0.020251] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.020303] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.020685] xor: measuring software checksum speed
[    0.120172]    arm4regs  :   720.400 MB/sec
[    0.220117]    8regs     :   435.600 MB/sec
[    0.320118]    32regs    :   633.200 MB/sec
[    0.320146] xor: using function: arm4regs (720.400 MB/sec)
[    0.320179] prandom: seed boundary self test passed
[    0.326445] prandom: 100 self tests passed
[    0.326463] pinctrl core: initialized pinctrl subsystem
[    0.328631] NET: Registered protocol family 16
[    0.329510] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.330849] audit: initializing netlink subsys (disabled)
[    0.332819] audit: type=2000 audit(0.330:1): state=initialized audit_enabled=0 res=1
[    0.333005] cpuidle: using governor ladder
[    0.333122] cpuidle: using governor menu
[    0.333939] Feroceon L2: Enabling L2
[    0.334011] Feroceon L2: Cache support initialised.
[    0.342430] No ATAGs?
[    2.560083] random: fast init done
[    9.236000] alg: No test for lzo-rle (lzo-rle-generic)
[    9.236484] alg: No test for lzo-rle (lzo-rle-scomp)
[    9.420713] raid6: int32x8  gen()    86 MB/s
[    9.590700] raid6: int32x8  xor()    58 MB/s
[    9.760689] raid6: int32x4  gen()    88 MB/s
[    9.930183] raid6: int32x4  xor()    57 MB/s
[   10.100605] raid6: int32x2  gen()    94 MB/s
[   10.270320] raid6: int32x2  xor()    66 MB/s
[   10.440564] raid6: int32x1  gen()    75 MB/s
[   10.610516] raid6: int32x1  xor()    50 MB/s
[   10.610533] raid6: using algorithm int32x2 gen() 94 MB/s
[   10.610545] raid6: .... xor() 66 MB/s, rmw enabled
[   10.610557] raid6: using intx1 recovery algorithm
[   10.610926] vgaarb: loaded
[   10.611674] SCSI subsystem initialized
[   10.612024] libata version 3.00 loaded.
[   10.612390] usbcore: registered new interface driver usbfs
[   10.612479] usbcore: registered new interface driver hub
[   10.612614] usbcore: registered new device driver usb
[   10.612867] pps_core: LinuxPPS API ver. 1 registered
[   10.612884] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[   10.612923] PTP clock support registered
[   10.614818] clocksource: Switched to clocksource orion_clocksource
[   12.159925] VFS: Disk quotas dquot_6.6.0
[   12.160059] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   12.173712] NET: Registered protocol family 2
[   12.175002] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[   12.175056] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[   12.175091] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[   12.175122] TCP: Hash tables configured (established 1024 bind 1024)
[   12.175269] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   12.175309] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   12.175635] NET: Registered protocol family 1
[   12.176578] RPC: Registered named UNIX socket transport module.
[   12.176597] RPC: Registered udp transport module.
[   12.176610] RPC: Registered tcp transport module.
[   12.176623] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   12.176644] PCI: CLS 0 bytes, default 32
[   12.176998] Trying to unpack rootfs image as initramfs...
[   13.421332] Freeing initrd memory: 9488K
[   13.421611] NetWinder Floating Point Emulator V0.97 (double precision)
[   13.423365] Initialise system trusted keyrings
[   13.423445] Key type blacklist registered
[   13.423774] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[   13.423931] zbud: loaded
[   13.425725] NFS: Registering the id_resolver key type
[   13.425771] Key type id_resolver registered
[   13.425785] Key type id_legacy registered
[   13.425813] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   13.425838] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   13.426255] jffs2: version 2.2. (NAND) (SUMMARY)  \xc2\xa9 2001-2006 Red Hat, Inc.
[   13.426603] fuse: init (API version 7.31)
[   13.427172] orangefs_debugfs_init: called with debug mask: :none: :0:
[   13.427444] orangefs_init: module version upstream loaded
[   13.427462] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[   13.452415] async_tx: api initialized (async)
[   13.452452] Key type asymmetric registered
[   13.452466] Asymmetric key parser 'x509' registered
[   13.452575] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   13.454008] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 47
[   13.454036] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 49
[   13.454550] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   13.457558] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   13.457594] pci_bus 0000:00: root bus resource [bus 00-ff]
[   13.457617] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   13.457638] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   13.457659] pci_bus 0000:00: scanning bus
[   13.457788] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[   13.457849] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   13.459537] pci_bus 0000:00: fixups for bus
[   13.459556] PCI: bus0: Fast back to back transfers disabled
[   13.459583] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[   13.459596] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   13.459625] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[   13.459813] pci_bus 0000:01: scanning bus
[   13.459868] pci 0000:01:00.0: [1b73:1009] type 00 class 0x0c0330
[   13.459928] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x0000ffff 64bit]
[   13.459963] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x00000fff 64bit]
[   13.459996] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x00000fff 64bit]
[   13.460116] pci 0000:01:00.0: supports D1
[   13.460138] pci 0000:01:00.0: PME# supported from D0 D1 D3hot
[   13.460161] pci 0000:01:00.0: PME# disabled
[   13.460232] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[   13.486228] pci_bus 0000:01: fixups for bus
[   13.486246] PCI: bus1: Fast back to back transfers disabled
[   13.486269] pci_bus 0000:01: bus scan returning with max=01
[   13.486287] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   13.486313] pci_bus 0000:00: bus scan returning with max=01
[   13.486591] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[   13.486618] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[   13.486649] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe000ffff 64bit]
[   13.486684] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0010000-0xe0010fff 64bit]
[   13.486717] pci 0000:01:00.0: BAR 4: assigned [mem 0xe0011000-0xe0011fff 64bit]
[   13.486748] pci 0000:00:01.0: PCI bridge to [bus 01]
[   13.486774] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[   13.486910] pcieport 0000:00:01.0: assign IRQ: got 0
[   13.486937] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[   13.486977] pcieport 0000:00:01.0: enabling bus mastering
[   13.487037] pci 0000:00:01.0: enabling bus mastering
[   13.487055] pci 0000:01:00.0: enabling device (0140 -> 0142)
[   13.487866] mv_xor f1060800.xor: Marvell shared XOR driver
[   13.546024] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   13.548991] mv_xor f1060900.xor: Marvell shared XOR driver
[   13.606044] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   13.609409] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   13.611303] printk: console [ttyS0] disabled
[   13.611412] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 10416666) is a 16550A
[   14.567940] printk: console [ttyS0] enabled
[   14.583881] loop: module loaded
[   14.588242] sata_mv f1080000.sata: version 1.28
[   14.588607] sata_mv f1080000.sata: slots 32 ports 2
[   14.598195] scsi host0: sata_mv
[   14.602886] scsi host1: sata_mv
[   14.607248] ata1: SATA max UDMA/133 irq 32
[   14.612029] ata2: SATA max UDMA/133 irq 32
[   14.618442] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[   14.625601] nand: Hynix H27U1G8F2BTR-BC
[   14.630122] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   14.638404] Scanning device for bad blocks
[   14.727544] 5 cmdlinepart partitions found on MTD device orion_nand
[   14.734481] Creating 5 MTD partitions on "orion_nand":
[   14.740325] 0x000000000000-0x000000200000 : "u-boot"
[   14.747930] 0x000000200000-0x000000500000 : "uImage"
[   14.755400] 0x000000500000-0x000000800000 : "uImage2"
[   14.762877] 0x000000800000-0x000001000000 : "failsafe"
[   14.770559] 0x000001000000-0x000008000000 : "root"
[   14.780121] libphy: Fixed MDIO Bus: probed
[   14.786128] libphy: orion_mdio_bus: probed
[   14.811712] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   14.820033] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[   14.946559] ata1: SATA link down (SStatus 0 SControl F300)
[   15.286744] ata2: SATA link down (SStatus 0 SControl F300)
[   15.545757] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:05:f5:25
[   15.555361] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   15.562594] ehci-pci: EHCI PCI platform driver
[   15.567829] ehci-orion: EHCI orion driver
[   15.572812] orion-ehci f1050000.ehci: EHCI Host Controller
[   15.579050] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   15.587649] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[   15.614873] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   15.621961] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[   15.630934] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   15.638852] usb usb1: Product: EHCI Host Controller
[   15.644406] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[   15.651716] usb usb1: SerialNumber: f1050000.ehci
[   15.657977] hub 1-0:1.0: USB hub found
[   15.662463] hub 1-0:1.0: 1 port detected
[   15.668164] xhci_hcd 0000:01:00.0: assign IRQ: got 37
[   15.668277] xhci_hcd 0000:01:00.0: enabling bus mastering
[   15.668295] xhci_hcd 0000:01:00.0: xHCI Host Controller
[   15.674224] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[   15.683809] xhci_hcd 0000:01:00.0: hcc params 0x200073a1 hci version 0x100 quirks 0x0000000000080010
[   15.693690] xhci_hcd 0000:01:00.0: enabling Mem-Wr-Inval
[   15.694390] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[   15.703366] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   15.711283] usb usb2: Product: xHCI Host Controller
[   15.716862] usb usb2: Manufacturer: Linux 5.2.9-kirkwood-tld-1 xhci-hcd
[   15.724145] usb usb2: SerialNumber: 0000:01:00.0
[   15.730247] hub 2-0:1.0: USB hub found
[   15.734741] hub 2-0:1.0: 2 ports detected
[   15.740265] xhci_hcd 0000:01:00.0: xHCI Host Controller
[   15.746270] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[   15.754350] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[   15.761478] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[   15.770473] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.02
[   15.779574] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   15.787502] usb usb3: Product: xHCI Host Controller
[   15.793058] usb usb3: Manufacturer: Linux 5.2.9-kirkwood-tld-1 xhci-hcd
[   15.800368] usb usb3: SerialNumber: 0000:01:00.0
[   15.806452] hub 3-0:1.0: USB hub found
[   15.810948] hub 3-0:1.0: 2 ports detected
[   15.816772] usbcore: registered new interface driver usb-storage
[   15.823943] mousedev: PS/2 mouse device common for all mice
[   16.034869] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   16.236152] usb 1-1: New USB device found, idVendor=0781, idProduct=5571, bcdDevice= 1.00
[   16.245039] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   16.252872] usb 1-1: Product: Cruzer Fit
[   16.257502] usb 1-1: Manufacturer: SanDisk
[   16.262279] usb 1-1: SerialNumber: 4C530302040606121535
[   16.269170] usb-storage 1-1:1.0: USB Mass Storage device detected
[   16.276610] scsi host2: usb-storage 1-1:1.0
[   16.884872] rtc-mv f1010300.rtc: internal RTC not ticking
[   16.891189] i2c /dev entries driver
[   16.896347] device-mapper: uevent: version 1.0.3
[   16.902027] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[   16.911752] device-mapper: multipath round-robin: version 1.2.0 loaded
[   16.919048] device-mapper: multipath queue-length: version 0.2.0 loaded
[   16.926388] device-mapper: multipath service-time: version 0.3.0 loaded
[   16.933765] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   16.940561] device-mapper: raid: Loading target version 1.14.0
[   16.948653] hidraw: raw HID events driver (C) Jiri Kosina
[   16.955262] drop_monitor: Initializing network drop monitor service
[   16.962655] NET: Registered protocol family 17
[   16.968171] Key type dns_resolver registered
[   16.974288] registered taskstats version 1
[   16.979119] Loading compiled-in X.509 certificates
[   16.984691] zswap: loaded using pool lzo/zbud
[   17.122681] Key type big_key registered
[   17.188400] Key type encrypted registered
[   17.196097] hctosys: unable to open rtc device (rtc0)
[   17.206904] Freeing unused kernel memory: 1024K
[   17.215948] Checked W+X mappings: passed, no W+X pages found
[   17.222283] Run /init as init process
[   17.286192] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[   17.304477] sd 2:0:0:0: [sda] 15630336 512-byte logical blocks: (8.00 GB/7.45 GiB)
[   17.321374] sd 2:0:0:0: [sda] Write Protect is off
[   17.344431] sd 2:0:0:0: [sda] Mode Sense: 43 00 00 00
[   17.345382] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   17.370323]  sda: sda1
[   17.383481] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   18.604385] usbcore: registered new interface driver uas
[   18.733825] mvsdio f1090000.mvsdio: Got CD GPIO
[   29.522360] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   29.576004] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   33.501628] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   33.834328] systemd-udevd[412]: Using default interface naming scheme 'v240'.
[   33.969439] systemd-udevd[412]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   34.101192] random: crng init done
[   34.218030] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   34.406345] watchdog: f1020300.watchdog-timer: falling back to default timeout (25)
[   34.576796] orion_wdt: Initial timeout 25 sec
[   34.726967] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   34.752420] marvell-cesa f1030000.crypto: CESA device successfully registered
[   35.048824] systemd-udevd[393]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   36.888870] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   38.354862] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[   45.669929] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   50.045419] NET: Registered protocol family 10
[   50.059154] Segment Routing with IPv6
[   52.454862] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[  330.440201] ntpd invoked oom-killer: gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0
[  330.450341] CPU: 0 PID: 1576 Comm: ntpd Not tainted 5.2.9-kirkwood-tld-1 #1
[  330.465911] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[  330.472917] [<c010f6ac>] (unwind_backtrace) from [<c010bb00>] (show_stack+0x10/0x14)
[  330.481404] [<c010bb00>] (show_stack) from [<c0211180>] (dump_header+0x54/0x258)
[  330.489515] [<c0211180>] (dump_header) from [<c02116d4>] (oom_kill_process+0xd8/0x32c)
[  330.498141] [<c02116d4>] (oom_kill_process) from [<c02122e8>] (out_of_memory+0x348/0x3dc)
[  330.507111] [<c02122e8>] (out_of_memory) from [<c024dffc>] (__alloc_pages_nodemask+0xb0c/0xcc0)
[  330.516967] [<c024dffc>] (__alloc_pages_nodemask) from [<c020bc90>] (pagecache_get_page+0x214/0x308)
[  330.526989] [<c020bc90>] (pagecache_get_page) from [<c020ce38>] (filemap_fault+0x27c/0x5e8)
[  330.536505] [<c020ce38>] (filemap_fault) from [<c031b198>] (ext4_filemap_fault+0x28/0x3c)
[  330.545570] [<c031b198>] (ext4_filemap_fault) from [<c0237adc>] (__do_fault+0xf4/0x194)
[  330.554468] [<c0237adc>] (__do_fault) from [<c023beec>] (handle_mm_fault+0x460/0xa5c)
[  330.563113] [<c023beec>] (handle_mm_fault) from [<c01102f8>] (do_page_fault+0x1d4/0x338)
[  330.576338] [<c01102f8>] (do_page_fault) from [<c0110668>] (do_PrefetchAbort+0x38/0x88)
[  330.591797] [<c0110668>] (do_PrefetchAbort) from [<c01026e4>] (ret_from_exception+0x0/0x1c)
[  330.601000] Exception stack(0xc7b2ffb0 to 0xc7b2fff8)
[  330.606871] ffa0:                                     00000000 bea2b6b4 00000136 04140200
[  330.616141] ffc0: bea2b6b4 0051e56c 0051fc44 00572f58 00000000 bea2b708 00523660 bea2b7ac
[  330.625123] ffe0: 00000000 bea2b6a0 004dbd90 004674e0 20000010 ffffffff
[  330.632492] Mem-Info:
[  330.635687] active_anon:23655 inactive_anon:281 isolated_anon:0
                active_file:39 inactive_file:96 isolated_file:0
                unevictable:0 dirty:0 writeback:0 unstable:0
                slab_reclaimable:1445 slab_unreclaimable:1278
                mapped:276 shmem:320 pagetables:316 bounce:0
                free:458 free_pcp:39 free_cma:0
[  330.671874] Node 0 active_anon:94620kB inactive_anon:1124kB active_file:156kB inactive_file:384kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:1104kB dirty:0kB writeback:0kB shmem:1280kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes
[  330.695294] Normal free:1832kB min:1292kB low:1612kB high:1932kB active_anon:94620kB inactive_anon:1124kB active_file:156kB inactive_file:384kB unevictable:0kB writepending:0kB present:131072kB managed:115348kB mlocked:0kB kernel_stack:616kB pagetables:1264kB bounce:0kB free_pcp:156kB local_pcp:156kB free_cma:0kB
[  330.724134] lowmem_reserve[]: 0 0
[  330.728395] Normal: 82*4kB (UM) 26*8kB (UM) 15*16kB (UM) 11*32kB (UM) 9*64kB (UM) 1*128kB (M) 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1832kB
[  330.742297] 500 total pagecache pages
[  330.746896] 0 pages in swap cache
[  330.751071] Swap cache stats: add 0, delete 0, find 0/0
[  330.757154] Free swap  = 0kB
[  330.760899] Total swap = 0kB
[  330.764542] 32768 pages RAM
[  330.768118] 0 pages HighMem/MovableOnly
[  330.773217] 3931 pages reserved
[  330.777206] Tasks state (memory values in pages):
[  330.782699] [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name
[  330.792270] [    349]     0   349     4424      139    18432        0             0 systemd-udevd
[  330.801955] [   1119]     0  1119     1973      213    14336        0             0 dhclient
[  330.811552] [   1240]   111  1240     1621       85    14336        0             0 rpcbind
[  330.821157] [   1268]   105  1268     1227      178    12288        0             0 rpc.statd
[  330.830523] [   1280]     0  1280      744       41    10240        0             0 rpc.idmapd
[  330.839968] [   1378]     0  1378      710       51    10240        0             0 syslogd
[  330.849400] [   1405]     0  1405      678       72    10240        0             0 klogd
[  330.858436] [   1436]   102  1436     1625       91    14336        0             0 dbus-daemon
[  330.867950] [   1461]   103  1461     1451      100    16384        0             0 avahi-daemon
[  330.877627] [   1462]   103  1462     1420       61    14336        0             0 avahi-daemon
[  330.887213] [   1548]     0  1548     6840      349    34816        0             0 nmbd
[  330.896095] [   1576]   104  1576     1957       96    14336        0             0 ntpd
[  330.905676] [   1614]     0  1614    10994      706    51200        0             0 smbd
[  330.914584] [   1621]     0  1621    10263      469    49152        0             0 smbd-notifyd
[  330.924275] [   1622]     0  1622    10261      467    47104        0             0 cleanupd
[  330.933504] [   1639]     0  1639    10994      483    49152        0             0 lpqd
[  330.942371] [   1647]     0  1647     2670      144    16384        0         -1000 sshd
[  330.951578] [   1689]     0  1689      493       23     8192        0             0 getty
[  330.960585] [   1691]     0  1691     2934      188    18432        0             0 sshd
[  330.969479] [   1697]     0  1697      841       79    10240        0             0 bash
[  330.978824] [   1700]     0  1700    12432     2663    57344        0             0 apt-get
[  330.987989] [   1710]     0  1710     1236      298    12288        0             0 dpkg
[  330.996873] [   1711]     0  1711      473       17    10240        0             0 apt-show-versio
[  331.006792] [   1712]     0  1712    28698    18232   122880        0             0 apt-show-versio
[  331.016625] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),task=apt-show-versio,pid=1712,uid=0
[  331.026467] Out of memory: Killed process 1712 (apt-show-versio) total-vm:114792kB, anon-rss:72896kB, file-rss:32kB, shmem-rss:0kB
[  331.091349] oom_reaper: reaped process 1712 (apt-show-versio), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
[  485.625822] usb 2-1: new high-speed USB device number 2 using xhci_hcd
[  485.806486] usb 2-1: New USB device found, idVendor=0781, idProduct=5571, bcdDevice= 1.27
[  485.815337] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  485.823632] usb 2-1: Product: Cruzer Fit
[  485.828526] usb 2-1: Manufacturer: SanDisk
[  485.833303] usb 2-1: SerialNumber: 4C530010170427123361
[  485.846079] usb-storage 2-1:1.0: USB Mass Storage device detected
[  485.854497] scsi host3: usb-storage 2-1:1.0
[  486.917287] scsi 3:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.27 PQ: 0 ANSI: 6
[  486.933976] sd 3:0:0:0: Attached scsi generic sg1 type 0
[  486.942159] sd 3:0:0:0: [sdb] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[  486.966623] sd 3:0:0:0: [sdb] Write Protect is off
[  486.972117] sd 3:0:0:0: [sdb] Mode Sense: 43 00 00 00
[  486.976465] sd 3:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  487.008894]  sdb: sdb1
[  487.019128] sd 3:0:0:0: [sdb] Attached SCSI removable disk
[  658.143113] FAT-fs (sdb1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[  658.225903] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 1508.384550] Adding 1048540k swap on /tmp/usb/swapfile.img.  Priority:-2 extents:8 across:1516528k FS
[ 1572.489446] Adding 1048540k swap on /tmp/usb/swapfile.img.  Priority:-2 extents:8 across:1516528k FS
[ 8056.969677] usb 2-1: USB disconnect, device number 2
[ 9684.925510] usb 2-1: new high-speed USB device number 3 using xhci_hcd
[ 9685.106179] usb 2-1: New USB device found, idVendor=0781, idProduct=5571, bcdDevice= 1.27
[ 9685.115031] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 9685.123290] usb 2-1: Product: Cruzer Fit
[ 9685.128180] usb 2-1: Manufacturer: SanDisk
[ 9685.132964] usb 2-1: SerialNumber: 4C530010170427123361
[ 9685.150920] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 9685.159558] scsi host3: usb-storage 2-1:1.0
[ 9686.196961] scsi 3:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.27 PQ: 0 ANSI: 6
[ 9686.213651] sd 3:0:0:0: Attached scsi generic sg1 type 0
[ 9686.221791] sd 3:0:0:0: [sdb] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[ 9686.238477] sd 3:0:0:0: [sdb] Write Protect is off
[ 9686.243965] sd 3:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 9686.251459] sd 3:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 9686.281491]  sdb: sdb1
[ 9686.292544] sd 3:0:0:0: [sdb] Attached SCSI removable disk
[ 9807.531639] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[ 9807.598619] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[ 9914.313731] Adding 1048572k swap on /media/data/swapfile.img.  Priority:-2 extents:17 across:1132608k FS
root@debian:/#

Thanks again
Re: Can I use SWAT on my PogoV4 & E02
January 23, 2021 06:30PM
Rhodess,

Do you have the swap file in fstab?

cat /etc/fstab

Quote

/swapfile1 swap swap defaults 0 0

And what is your sysctrl vm memory?

cat /etc/sysctl.conf | grep vm
or
cat /etc/sysctl.d/local.conf | grep vm

Quote

vm.min_free_kbytes = 16384

Note that for box with little RAM like this Pogo V4 (128MB), the vm.min_free_kbytes should be 16384

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Can I use SWAT on my PogoV4 & E02
January 23, 2021 07:52PM
I didn't have the swap in /etc/fstab, so I just added it (and mounted the USB that it sits on):
root@debian:/# echo "/media/data/swapfile.img none swap sw,nofail 0 0" >> /etc/fstab
root@debian:/# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
LABEL=rootfs    /               ext3    noatime,errors=remount-ro 0 1
tmpfs          /tmp            tmpfs   defaults          0       0
LABEL=data /media/data ext3 defaults 0 0
/media/data/swapfile.img none swap sw,nofail 0 0

I get no response to the first command:
root@debian:/# cat /etc/sysctl.conf | grep vm
root@debian:/# cat /etc/sysctl.d/local.conf | grep vm
cat: /etc/sysctl.d/local.conf: No such file or directory

I also tried:
cat /etc/sysctl.d/99-sysctl.conf | grep vm
root@debian:/etc/sysctl.d#
but got no response

Re your comment about logging, I had to add another line for the webmin, but they don't survive a reboot, isn't that what the -p is supposed to do?
mkdir -p /tmp/var/log
cp -aR /var/log/* /tmp/var/log
mount -o bind /tmp/var/log /var/log
 cp /var/webmin/miniserv.log /tmp/var/log/
mount -o bind /tmp/var/log/miniserv.log /var/webmin/miniserv.log



Edited 4 time(s). Last edit at 01/24/2021 01:16AM by Rhodess.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: