Re: Debian on Dell Kace M300 February 20, 2020 07:58AM |
Registered: 4 years ago Posts: 22 |
Re: Debian on Dell Kace M300 February 20, 2020 05:05PM |
Admin Registered: 13 years ago Posts: 18,821 |
Quote
He didn't, but his /proc/cpu/alignment output from his m300 running LMS listed 3 alignment faults - no idea really how to interpret what caused them and as these are in the "system" category vs. the "user" category I'm guessing that these are corrected automatically by the kernel and the entries are just informational - as opposed to the user faults where you can control how faults are handled by echoing the various numeric options to /proc/cpu/alignment. ?
Re: Debian on Dell Kace M300 February 20, 2020 05:57PM |
Registered: 4 years ago Posts: 22 |
root@dellkaceM300:~# cat /proc/cpu/alignment User: 0 System: 0 Skipped: 0 Half: 0 Word: 0 DWord: 0 Multi: 0 User faults: 2 (fixup)
root@dellkaceM300:~# cat /proc/cmdline console=ttyS0,115200 mtdparts=spi_flash:0x7f000@0(uboot),0x1000@0x7f000(u-boot-env)
root@dellkaceM300:/# grep -i alignment /boot/config-2.6.32-5-kirkwood CONFIG_ALIGNMENT_TRAP=y
earlyprintk root=/dev/sda2 alignment=2 console=ttyS0,115200 mtdparts=spi_flash:0x7f000@0(uboot),0x1000@0x7f000(u-boot-env) localhost:~# cat /proc/cpu/alignment User: 0 System: 0 (0x0) Skipped: 0 Half: 0 Word: 0 DWord: 0 Multi: 0 User faults: 2 (fixup)
Re: Debian on Dell Kace M300 February 20, 2020 07:14PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian on Dell Kace M300 February 20, 2020 07:37PM |
Registered: 4 years ago Posts: 22 |
Re: Debian on Dell Kace M300 February 20, 2020 09:45PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian on Dell Kace M300 February 20, 2020 10:41PM |
Registered: 4 years ago Posts: 22 |
Re: Debian on Dell Kace M300 February 21, 2020 01:34AM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian on Dell Kace M300 February 21, 2020 06:30AM |
Registered: 4 years ago Posts: 22 |
Quote
word accesses must be aligned to a multiple of their size
Accesses from non-aligned locations give garbled results
For example, loading a 32-bit word from a non-aligned pointer reads an aligned 32-bit word from the next lowest 32-bit-aligned location (ignoring the lower 2 bits of the pointer) and then rotates the result so that the byte indicated by the pointer ends up in the least significant byte.
This applies to 16-bit, 32-bit and 64-bit data.
You can test for this kind of error without recompiling, using the pseudo-file /proc/cpu/alignment. Catting it tells you whether misaligned user accesses are detected and fixed up or not (the default setting is usually no, 0).
Another mode is "fixup", in which the kernel will quietly perform correct unaligned access for user processes.
Re: Debian on Dell Kace M300 March 22, 2020 07:09PM |
Registered: 4 years ago Posts: 22 |
abuilder:~$ ls abuilder-sodface-home.tar.gz abuilder:~$ rm abuilder-sodface-home.tar.gz abuilder:~$ scp sodface@10.0.0.11:abuilder-sodface-home.tar.gz . sodface@10.0.0.11's password: abuilder-sodface-home.tar.gz 100% 1671MB 9.5MB/s 02:55 abuilder:~$ md5sum abuilder-sodface-home.tar.gz 4f3641e12692c6a1ae74a6b314fd27b0 abuilder-sodface-home.tar.gz abuilder:~$ tar tvf abuilder-sodface-home.tar.gz | wc -l gzip: crc error tar: Child returned status 1 tar: Error is not recoverable: exiting now 44546 abuilder:~$ ls Illegal instruction abuilder:~$ ls Illegal instruction abuilder:~$ sudo reboot Illegal instruction
Re: Debian on Dell Kace M300 March 22, 2020 08:31PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian on Dell Kace M300 March 24, 2020 05:31PM |
Admin Registered: 13 years ago Posts: 18,821 |
kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-2.m300.mtd0.kwb -p
reset
Re: Debian on Dell Kace M300 March 24, 2020 06:29PM |
Registered: 10 years ago Posts: 226 |
Re: Debian on Dell Kace M300 March 26, 2020 09:57PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian on Dell Kace M300 April 10, 2020 07:57AM |
Registered: 4 years ago Posts: 22 |
Re: Debian on Dell Kace M300 April 10, 2020 03:44PM |
Registered: 4 years ago Posts: 22 |
set bootargs_console 'console=ttyS0,115200 mtdparts=spi_flash:0x7f000@0(uboot),0x1000@0x7f000(u-boot-env) earlyprintk root=/dev/sda2'
root@debian:~# uname -a Linux debian 5.5.1-kirkwood-tld-1 #1.0 PREEMPT Sat Feb 1 22:28:36 PST 2020 armv5tel GNU/Linux root@debian:~# cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 10 (buster)" NAME="Debian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
root@debian:~# md5sum m300-kernel-5.4.28-build-dir* 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir2.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir3.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir4.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir5.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir6.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir7.tar.gz
root@debian:~# rm m300-kernel-5.4.28-build-dir7.tar.gz root@debian:~# ls -alh total 3.5G drwx------ 5 root root 4.0K Apr 10 13:13 . drwxr-xr-x 22 root root 4.0K Apr 10 11:41 .. -rw------- 1 root root 2.6K Apr 10 11:58 .bash_history -rw-r--r-- 1 root root 570 Jan 31 2010 .bashrc drwx------ 3 root root 4.0K Apr 10 08:18 .config drwxr-xr-x 2 root root 4.0K Aug 24 2019 .nano -rw-r--r-- 1 root root 481 Jul 20 2017 .profile drwx------ 2 root root 4.0K Apr 10 09:35 .ssh -rw-r--r-- 1 root root 592M Apr 10 09:36 m300-kernel-5.4.28-build-dir.tar.gz -rw-r--r-- 1 root root 592M Apr 10 10:04 m300-kernel-5.4.28-build-dir2.tar.gz -rw-r--r-- 1 root root 592M Apr 10 12:02 m300-kernel-5.4.28-build-dir3.tar.gz -rw-r--r-- 1 root root 592M Apr 10 12:05 m300-kernel-5.4.28-build-dir4.tar.gz -rw-r--r-- 1 root root 592M Apr 10 12:15 m300-kernel-5.4.28-build-dir5.tar.gz -rw-r--r-- 1 root root 592M Apr 10 12:26 m300-kernel-5.4.28-build-dir6.tar.gz
root@debian:~# md5sum m300-kernel-5.4.28-build-dir* e739deca3e8ff148c95d7dab917a7b48 m300-kernel-5.4.28-build-dir.tar.gz 064411bf30702de3c170ecbea247d598 m300-kernel-5.4.28-build-dir2.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir3.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir4.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir5.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir6.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir7.tar.gz
root@debian:~# rm m300-kernel-5.4.28-build-dir3.tar.gz [ 4615.695975][ T1627] BUG: Bad page state in process rm pfn:2b14d [ 4615.702020][ T1627] page:ef55b9a0 refcount:0 mapcount:-2 mapping:00000000 index:0x1 [ 4615.709712][ T1627] raw: 00000000 00000100 00000122 00000000 00000001 00000000 fffffffd 00000000 [ 4615.718529][ T1627] page dumped because: nonzero mapcount [ 4615.723944][ T1627] Modules linked in: ipv6 nf_defrag_ipv6 sg marvell_cesa orion_wdt kirkwood_thermal uio_pdrv_genirq uio [ 4615.734962][ T1627] CPU: 0 PID: 1627 Comm: rm Not tainted 5.5.1-kirkwood-tld-1 #1.0 [ 4615.742650][ T1627] Hardware name: Marvell Kirkwood (Flattened Device Tree) --- snip ---
Re: Debian on Dell Kace M300 April 10, 2020 05:25PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian on Dell Kace M300 April 11, 2020 08:39AM |
Registered: 4 years ago Posts: 22 |
m300-kernel-5.4.28-build-dir.tar.gz 100% 592MB 10.5MB/s 00:56 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir1.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir10.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir2.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir3.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir4.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir5.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir6.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir7.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir8.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir9.tar.gz root@debian:~# ./test.sh m300-kernel-5.4.28-build-dir.tar.gz 100% 592MB 11.3MB/s 00:52 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir1.tar.gz 93e8bb8048807f11be9aee66ff355f72 m300-kernel-5.4.28-build-dir10.tar.gz 250c148216d7b57df3791a1c3aced746 m300-kernel-5.4.28-build-dir2.tar.gz 9fd5871b67477da8b2341667eea24c9c m300-kernel-5.4.28-build-dir3.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir4.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir5.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir6.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir7.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir8.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir9.tar.gz m300-kernel-5.4.28-build-dir.tar.gz 100% 592MB 11.3MB/s 00:52 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir1.tar.gz 93e8bb8048807f11be9aee66ff355f72 m300-kernel-5.4.28-build-dir10.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir2.tar.gz 9fd5871b67477da8b2341667eea24c9c m300-kernel-5.4.28-build-dir3.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir4.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir5.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir6.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir7.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir8.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir9.tar.gz m300-kernel-5.4.28-build-dir.tar.gz 100% 592MB 11.7MB/s 00:50 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir1.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir10.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir2.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir3.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir4.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir5.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir6.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir7.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir8.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir9.tar.gz root@debian:~# uptime 06:40:14 up 13:04, 1 user, load average: 0.00, 0.00, 0.24
Re: Debian on Dell Kace M300 April 11, 2020 04:34PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian on Dell Kace M300 April 11, 2020 05:10PM |
Registered: 4 years ago Posts: 22 |
Re: Debian on Dell Kace M300 April 12, 2020 11:51AM |
Registered: 4 years ago Posts: 22 |
Re: Debian on Dell Kace M300 April 12, 2020 05:18PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian on Dell Kace M300 April 12, 2020 10:52PM |
Registered: 10 years ago Posts: 226 |
Re: Debian on Dell Kace M300 April 12, 2020 11:42PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian on Dell Kace M300 April 13, 2020 08:43AM |
Registered: 10 years ago Posts: 155 |
Re: Debian on Dell Kace M300 April 13, 2020 09:55AM |
Registered: 4 years ago Posts: 22 |
Re: Debian on Dell Kace M300 April 13, 2020 12:13PM |
Registered: 9 years ago Posts: 429 |
Re: Debian on Dell Kace M300 April 13, 2020 02:55PM |
Registered: 4 years ago Posts: 22 |
router:~$ uptime 15:42:46 up 21 days, 19:05, load average: 0.04, 0.01, 0.00
Re: Debian on Dell Kace M300 April 13, 2020 03:16PM |
Registered: 9 years ago Posts: 429 |
Re: Debian on Dell Kace M300 April 13, 2020 03:57PM |
Registered: 4 years ago Posts: 22 |
m300-kernel-5.4.28-build-dir.tar.gz 100% 592MB 11.1MB/s 00:53 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir1.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir10.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir2.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir3.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir4.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir5.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir6.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir7.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir8.tar.gz 617c938c2053d6ebfac73397b729896b m300-kernel-5.4.28-build-dir9.tar.gz root@debian:~# free total used free shared buff/cache available Mem: 1803460 16596 9404 272 1777460 1763292 Swap: 1048572 0 1048572 root@debian:~# ./test.sh m300-kernel-5.4.28-build-dir.tar.gz 11% 71MB 11.5MB/s 00:45 ETA[ 2551.413646][ T112] BUG: Bad page state in process kswapd0 pfn:656a9 [ 2551.420125][ T112] page:efca6520 refcount:0 mapcount:-8192 mapping:00000000 index:0x1 [ 2551.428079][ T112] raw: 00000000 00000100 00000122 00000000 00000001 00000000 ffffdfff 00000000 [ 2551.436897][ T112] page dumped because: nonzero mapcount [ 2551.442311][ T112] Modules linked in: ipv6 nf_defrag_ipv6 sg marvell_cesa orion_wdt kirkwood_thermal uio_pdrv_genirq uio [ 2551.453330][ T112] CPU: 0 PID: 112 Comm: kswapd0 Not tainted 5.5.1-kirkwood-tld-1 #1.0 [ 2551.461365][ T112] Hardware name: Marvell Kirkwood (Flattened Device Tree) [ 2551.468369][ T112] [<8010f668>] (unwind_backtrace) from [<8010b9f4>] (show_stack+0x10/0x14) [ 2551.476853][ T112] [<8010b9f4>] (show_stack) from [<80241b50>] (bad_page+0x100/0x138) [ 2551.484812][ T112] [<80241b50>] (bad_page) from [<80241bec>] (free_pages_check+0x64/0x88) [ 2551.493113][ T112] [<80241bec>] (free_pages_check) from [<80242ae4>] (free_pcppages_bulk+0x130/0x284) [ 2551.502462][ T112] [<80242ae4>] (free_pcppages_bulk) from [<80243e14>] (free_unref_page_list+0x12c/0x184) [ 2551.512158][ T112] [<80243e14>] (free_unref_page_list) from [<80218c98>] (shrink_page_list+0x88/0xac4) [ 2551.521591][ T112] [<80218c98>] (shrink_page_list) from [<80219d7c>] (shrink_inactive_list+0x1d0/0x3d4) [ 2551.531113][ T112] [<80219d7c>] (shrink_inactive_list) from [<8021aae8>] (shrink_node+0x7b8/0x8b4) [ 2551.540199][ T112] [<8021aae8>] (shrink_node) from [<8021b5b8>] (kswapd+0x40c/0x73c) [ 2551.548065][ T112] [<8021b5b8>] (kswapd) from [<801371bc>] (kthread+0x100/0x10c) [ 2551.555582][ T112] [<801371bc>] (kthread) from [<801010e0>] (ret_from_fork+0x14/0x34) [ 2551.563530][ T112] Exception stack(0xeeec7fb0 to 0xeeec7ff8) [ 2551.569295][ T112] 7fa0: 00000000 00000000 00000000 00000000 [ 2551.578208][ T112] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 2551.587119][ T112] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 2551.594459][ T112] Disabling lock debugging due to kernel taint