Jump to content

Recommended Posts

Posted

Hi,

my OLIMEX micro crashes recently quite often.

Even thoug I upgrade to the latest version:

"Welcome to ARMBIAN 5.60 stable Debian GNU/Linux 9 (stretch) 4.19.62-sunxi "

I was able to catch this trace, any advise?

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21927.933087] Internal error: Oops: 80000005 [#1] SMP THUMB2

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.107488] Process dockerd (pid: 1813, stack limit = 0x95696597)

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.118470] Stack: (0xdc807dc8 to 0xdc808000)

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.127794] 7dc0:                   00000005 00000000 00000000 00000000 00000000 00000000

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.141224] 7de0: dc806000 dc807e18 00000000 dc807f70 ffffe000 c0e04d48 00000000 c0180bc1

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.154775] 7e00: dc807e14 c0133c6f 00000000 dc807f70 ee2a6800 ef210280 d8433e19 00000000

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.168461] 7e20: 00000000 00000000 960fe839 000013ff 960f24e9 000013ff c01720cd ef6c87c0

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.182318] 7e40: 00000001 00000000 ee2a6800 dc807f10 ef6c87c0 00000064 dc807e58 dc807e58

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.196298] 7e60: dc807e60 dc807e60 ee2a6800 00000000 03da4000 c9c5f400 00000570 00000000

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.210416] 7e80: 00000000 00000000 ffffffff 4faf8638 dc807f78 00000000 00000000 00000000

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.224669] 7ea0: 00000000 03da4570 00000000 00000051 c0e04d48 c018240f ffffffff 000013f1

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.239054] 7ec0: ef6e1c40 7fffffff ef6da858 ef6da830 ef6da808 c017e779 00000000 7fffffff

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.253747] 7ee0: 00000000 4faf8638 00011170 00000000 c0e04d48 0000c350 0000c350 00000000

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.268537] 7f00: 00000001 c01726f3 ee2a6800 00000000 dc807f10 ef6c8aa0 00000000 00000000

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.283361] 7f20: 9dc4e603 000013f1 9dc422b3 c0173081 c01720cd 4faf8638 00000000 00000000

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.298301] 7f40: c0e04d48 00000000 00000080 03da4570 00000000 00000051 03d3e738 c0182db1

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.313395] 7f60: 00000000 00000000 ffffffff 000000a2 960f24e9 000013ff 00000000 0000003c

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.328626] 7f80: 00000000 4faf8638 00000000 00000000 00000000 000000f0 c0101224 dc806000

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.343986] 7fa0: 000000f0 c0101001 00000000 00000000 03da4570 00000080 00000000 a6895c84

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.359470] 7fc0: 00000000 00000000 00000000 000000f0 3b9aca00 00000000 05000540 03d3e738

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.375179] 7fe0: 000f2be8 a6895c64 008e1208 009172f8 a0070010 03da4570 00000000 00000000

Message from syslogd@micro at Aug  4 16:45:35 ...
 kernel:[21928.391251] Code: bad PC value

 

==========================armbainmonitor.log =================================

 

 

armbianmonitor.log

Posted

With my OrangepiR1 , i think i have the same behaviour ....

root@srv-orangepir1-140:~# [ 2673.657474] Unable to handle kernel NULL pointer dereference at virtual address 00000000                
[ 2673.658057] BUG: Bad page map in process dhclient-script  pte:4143975f pmd:4cd8b835                          
[ 2673.665589] pgd = 2c8379d8                                             
[ 2673.665593] [00000000] *pgd=00000000                                         
[ 2673.665607] Internal error: Oops: 5 [#1] SMP THUMB2                                    
[ 2673.665611] Modules linked in: iptable_filter ip_tables x_tables veth 8189es cfg80211 dm_mod dax sun8i_codec_analog snd_soc_simple_card sun4i_i2s sun8i_adda_pr
_regmap snd_soc_simple_card_utils cdc_ether snd_soc_core usbnet lima r8152 snd_pcm_dmaengine                        
[ 2673.673367] page:cfda7804 count:1 mapcount:-1 mapping:c86b29d9 index:0xb6edd                             
[ 2673.676018]  pwrseq_simple                                             
[ 2673.684461]  snd_pcm gpu_sched snd_timer ttm snd soundcore sun4i_gpadc_iio industrialio                        
[ 2673.706720] flags: 0x40068(uptodate|lru|active|swapbacked)                                   
[ 2673.713739]  sun8i_ths cpufreq_dt uio_pdrv_genirq thermal_sys uio                                
[ 2673.713759] Internal error: Oops - undefined instruction: 0 [#2] SMP THUMB2                            
[ 2673.716468] raw: 00040068 cfe7de94 cfdf45a8 c86b29d9 000b6edd 00000000 fffffffe 00000001                         
[ 2673.724452] Modules linked in: iptable_filter ip_tables x_tables veth 8189es cfg80211 dm_mod dax sun8i_codec_analog snd_soc_simple_card sun4i_i2s sun8i_adda_pr
_regmap snd_soc_simple_card_utils cdc_ether                                         
[ 2673.730055] raw: ca85c000                                              
[ 2673.736043]  snd_soc_core usbnet lima r8152 snd_pcm_dmaengine pwrseq_simple snd_pcm gpu_sched snd_timer ttm snd soundcore sun4i_gpadc_iio industrialio sun8i_th
s                                                       
[ 2673.743036] page dumped because: bad pte                                         
[ 2673.751103]  cpufreq_dt uio_pdrv_genirq thermal_sys uio                                    
[ 2673.751115] Internal error: Oops - undefined instruction: 0 [#3] SMP THUMB2                            
[ 2673.751116] Modules linked in: iptable_filter ip_tables                                    
[ 2673.769113] page->mem_cgroup:ca85c000                                          
[ 2673.771712]  x_tables                                              
[ 2673.786068] addr:91bd5cfa vm_flags:00100873 anon_vma:ee8e218e mapping:c395db7d index:19                        
[ 2673.789962]  veth 8189es cfg80211 dm_mod dax sun8i_codec_analog snd_soc_simple_card sun4i_i2s sun8i_adda_pr_regmap               
[ 2673.795233] file:ld-2.28.so fault:ext4_filemap_fault mmap:ext4_file_mmap readpage:ext4_readpage                      
[ 2673.802154]  snd_soc_simple_card_utils cdc_ether snd_soc_core usbnet lima r8152 snd_pcm_dmaengine pwrseq_simple snd_pcm gpu_sched snd_timer ttm snd soundcore s
un4i_gpadc_iio industrialio sun8i_ths cpufreq_dt uio_pdrv_genirq thermal_sys uio                            
[ 2673.861572] Internal error: Oops - undefined instruction: 0 [#4] SMP THUMB2                            
[ 2673.868530] Modules linked in: iptable_filter ip_tables x_tables veth 8189es cfg80211 dm_mod dax sun8i_codec_analog snd_soc_simple_card sun4i_i2s sun8i_adda_pr
_regmap snd_soc_simple_card_utils cdc_ether snd_soc_core usbnet lima r8152 snd_pcm_dmaengine pwrseq_simple snd_pcm gpu_sched snd_timer ttm snd soundcore sun4i_gpa

 

 

 

root@srv-orangepir1-140:~# ip route ls                                                                                                                            
default via 192.168.56.49 dev et-user-test                                                                                                                        
192.168.54.0/24 dev et-serv-test proto kernel scope link src 192.168.54.33                                                                                        
192.168.56.0/24 dev et-user-test proto kernel scope link src 192.168.56.33                                                                                        
192.168.57.0/24 dev et-admi-test proto kernel scope link src 192.168.57.33                

 

 

root@srv-orangepir1-140:~# uname -a                                                                                                                               
Linux srv-orangepir1-140 4.19.62-sunxi #5.92 SMP Wed Jul 31 22:07:23 CEST 2019 armv7l GNU/Linux                                                                   

 

 

root@srv-orangepir1-140:~# cat /etc/debian_version                                                                                                                
9.9                                                                                                                                                               

                                                                        

Posted

Very hard to reproduce. As a result, i am trying the same test with following Debian package ....

 linux-image-4.9.0-8-armmp-lpae armhf 4.9.110-3+deb9u6

.....

But target does not reboot on  new kernel, it is always on 4.19.62-sunxi.

After analysing /boot directory , it seems there is a bad link for zImage, because ....

root@srv-orangepir1-150:~# LC_ALL=C ls -al /boot
total 44176
drwxr-xr-x  4 root root     4096 Aug 11 20:32 .
drwxr-xr-x 22 root root     4096 Aug 11 20:25 ..
-rw-r--r--  1 root root        0 Aug  4 17:25 .next
-rw-r--r--  1 root root  3299149 Jul 31 20:07 System.map-4.19.62-sunxi
-rw-r--r--  1 root root  3026026 Oct  8  2018 System.map-4.9.0-8-armmp-lpae
-rw-r--r--  1 root root      424 Jul 20 11:13 armbianEnv.txt
-rw-r--r--  1 root root     1536 May  4 08:54 armbian_first_run.txt.template
-rw-r--r--  1 root root     4882 May  4 08:54 boot-desktop.png
-rw-r--r--  1 root root   230454 May  4 08:54 boot.bmp
-rw-r--r--  1 root root     3726 May  4 08:52 boot.cmd
-rw-rw-r--  1 root root     3798 May  4 08:56 boot.scr
-rw-r--r--  1 root root   162659 Jul 31 20:07 config-4.19.62-sunxi
-rw-r--r--  1 root root   190506 Oct  8  2018 config-4.9.0-8-armmp-lpae
lrwxrwxrwx  1 root root       17 Aug  4 17:25 dtb -> dtb-4.19.62-sunxi
drwxr-xr-x  3 root root    12288 Aug  4 17:24 dtb-4.19.62-sunxi
lrwxrwxrwx  1 root root       17 Jul  7 13:37 dtb.old -> dtb-4.19.57-sunxi
-rw-r--r--  1 root root  3815594 Aug 11 20:26 initrd.img-4.19.57-sunxi
-rw-r--r--  1 root root 17583555 Aug 11 20:32 initrd.img-4.9.0-8-armmp-lpae
drwxrwxr-x  2 root root     4096 May  4 08:54 overlay-user
lrwxrwxrwx  1 root root       21 Jul  7 21:11 uInitrd -> uInitrd-4.19.57-sunxi
-rw-r--r--  1 root root  5534009 Jul  7 21:11 uInitrd-4.19.57-sunxi
-rwxr-xr-x  1 root root  7497384 Jul 31 20:07 vmlinuz-4.19.62-sunxi
-rw-r--r--  1 root root  3819952 Oct  8  2018 vmlinuz-4.9.0-8-armmp-lpae
lrwxrwxrwx  1 root root       21 Aug  4 17:25 zImage -> vmlinuz-4.19.62-sunxi
root@srv-orangepir1-150:~#

 

work in progress...

 

Posted
2 hours ago, Jean-Marc said:

lrwxrwxrwx  1 root root       21 Jul  7 21:11 uInitrd -> uInitrd-4.19.57-sunxi
-rw-r--r--  1 root root  5534009 Jul  7 21:11 uInitrd-4.19.57-sunxi

Why uInitrd is not pointing to 4.19.62 ? Why initrd.img-4.19.62-sunxi and uInitrd-4.19.62-sunxi don't seems to be present ?

Posted

Thanks, Of course, you have right, not possible to boot this kernel .

 

After creating a new sdcard with armbian last buster and update+upgrade, i have following error

root@srv-orangepir1-150:~# [ 2201.407757] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: mpage_map_and_submit_extent+0x5d5/0x5dc
[ 2201.407757]
[ 2201.408003] BUG: Bad rss-counter state mm:bc76d143 idx:0 val:15
[ 2201.412010] Unable to handle kernel paging request at virtual address cfa17500
[ 2201.412019] pgd = 0b15e16e
[ 2201.412024] [cfa17500] *pgd=4fa1141e(bad)
[ 2201.412038] Internal error: Oops: 8000000d [#1] SMP THUMB2
[ 2201.412043] Modules linked in: nf_tables nfnetlink veth dm_mod dax 8189es snd_soc_simple_card snd_soc_simple_card_utils sun8i_codec_analog sun4i_i2s sun8i_adda_pr_regmap snd_soc_core lima cfg80211 snd_pcm_dmaengine cdc_ether snd_pcm usbnet sun4i_gpadc_iio gpu_sched snd_timer r8152 ttm industrialio snd soundcore sun8i_ths cpufreq_dt uio_pdrv_genirq thermal_sys uio pwrseq_simple
[ 2201.412130] CPU: 1 PID: 2856 Comm: monit Not tainted 4.19.62-sunxi #5.92
[ 2201.412133] Hardware name: Allwinner sun8i Family
[ 2201.412141] PC is at 0xcfa17500
[ 2201.412152] LR is at try_to_del_timer_sync+0x3b/0x54
[ 2201.412157] pc : [<cfa17500>]    lr : [<c016efeb>]    psr: 60070013
[ 2201.412160] sp : cd945c68  ip : cd94403c  fp : 00000001
[ 2201.412164] r10: c090ba6b  r9 : 0000007d  r8 : 00000000
[ 2201.412168] r7 : c0e04d48  r6 : c0e04d48  r5 : 00000002  r4 : cd945ca4
[ 2201.412172] r3 : e298f2ae  r2 : e298f2ae  r1 : 40070013  r0 : 0000007d
[ 2201.412178] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[ 2201.412183] Control: 50c5387d  Table: 4e16006a  DAC: 00000051
[ 2201.412187] Process monit (pid: 2856, stack limit = 0xd700aa4c)
[ 2201.412192] Stack: (0xcd945c68 to 0xcd946000)
[ 2201.412200] 5c60:                   c013b33d 00000100 00000200 e298f2ae 00000200 c06f54a1
[ 2201.412209] 5c80: cfd48480 cde7c780 c0e04d48 cd945ca8 00000000 cd945ce8 000001f4 00000005
[ 2201.412218] 5ca0: 80000280 c06f548b 00000001 00020002 cd945c74 cd945c74 00000000 e298f2ae
[ 2201.412227] 5cc0: 00000004 ce115c00 c0e04d48 cdb66000 00000004 00000133 0000b400 c06f5557
[ 2201.412235] 5ce0: 000000c0 ce115280 00000000 e298f2ae 00000000 ce115280 00000004 0000b400
[ 2201.412244] 5d00: 00000133 cf8ef580 00000001 00001000 cd945f78 bf8d209b 0000b400 00000133
[ 2201.412253] 5d20: ce115280 00000004 000001f4 c066e9ad 00000133 cf8ef580 c0e04d48 cf8ef580
[ 2201.412262] 5d40: cd945d80 bf8d31db cd945d80 c0e03d00 ffffe000 00000133 0000fffc bf8d408d
[ 2201.412270] 5d60: 00000133 00000001 cd945dbc ffffb400 00000000 bf8d4119 00080040 cf228420
[ 2201.412279] 5d80: cf228498 e298f2ae cf8ef85c cd945e84 00000000 000002cf cf8ef000 bf8d4159
[ 2201.412288] 5da0: bf8d4131 c06d72fb cf8ef000 cd945e84 00000000 cf8ef87c ce44db38 cde7c300
[ 2201.412297] 5dc0: 00001000 bf8d289f bf8d286d c0e04d48 cf8ef000 bf8d97ec cd945e84 c07eb093
[ 2201.412305] 5de0: ce115c40 cdec7a20 00000000 cd245a90 ce60c900 c0a18848 00000000 ce60c900
[ 2201.412314] 5e00: cd0a3440 c0b939a8 00080040 c024656d 00000000 e298f2ae ffffffff c0e04d48
[ 2201.412323] 5e20: ce44d800 c0abf540 cd945e84 c07eb093 00000000 00000000 cee44088 c02499eb
[ 2201.412331] 5e40: cd945edc c01959ef 00000000 00000004 00000000 c0e04d48 00000000 c0e04d48
[ 2201.412340] 5e60: be919b78 e298f2ae ffffe000 c0e04d48 ce44db30 ccaea000 ccaea000 c0805f47
[ 2201.412349] 5e80: 00000011 00000000 00000000 00200200 00000001 00000000 00000000 00000000
[ 2201.412356] 5ea0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2201.412365] 5ec0: 00000000 00000000 00000000 e298f2ae c0ed1bc0 c0805efd c0a89dec c0662f3f
[ 2201.412374] 5ee0: c0662f2d cd63fcb8 00001000 c029e98d c029e92d cd63fcb8 00000001 00001000
[ 2201.412382] 5f00: ce60c900 007000c0 cd63fcd0 c025ae3b 00000001 00000000 cd63fce8 00001000
[ 2201.412391] 5f20: 02069470 c023ecb5 ce60c900 00000000 02069470 00001000 ffffe000 cd945f78
[ 2201.412400] 5f40: ce60c900 00001000 020b78e8 c023ecb5 00004000 02069470 02069470 ce60c900
[ 2201.412409] 5f60: c0e04d48 ce60c903 02069470 00000000 00000000 c023f061 00000000 00000000
[ 2201.412417] 5f80: 00000000 e298f2ae 00000074 00001000 02069470 00000003 c0101224 cd944000
[ 2201.412426] 5fa0: 00000003 c0101001 00000074 00001000 00000006 02069470 00001000 00000000
[ 2201.412435] 5fc0: 00000074 00001000 02069470 00000003 b6f344d0 be919e18 00000000 020b78e8
[ 2201.412443] 5fe0: 00000003 be919bf0 b6b38555 b6ac1746 800f0030 00000006 00000000 00000000
[ 2201.412467] [<c016efeb>] (try_to_del_timer_sync) from [<c06f54a1>] (usb_start_wait_urb+0x7d/0xa4)
[ 2201.412477] [<c06f54a1>] (usb_start_wait_urb) from [<cd945c74>] (0xcd945c74)
[ 2201.412486] Code: 00000000 00000000 00000000 00000000 (00000000)
[ 2201.412492] ---[ end trace 183b5afa6da22150 ]---

 

Thanks to find in attached file all logs with many reboot -!).

My sdcard is a 16 Go SANDISK class 10.

All my targets are using (from 2 years ago) this type of sdcard without any issue, but perhaps that this one is not OK (?).

On other Armbian kernel, (Cubietruck, HC1, Rock64, nanopiR1), i have also the same SD without any issue.

Of course, it is not the same kernel and sometimes stretch instead of buster

 

Just after booting orangepiR1 target, i have :

 

root@srv-orangepir1-150:~# LANG=C LC_ALL=C pstree -anp
init,1  
  |-systemd-udevd,349
  |-syslog-ng,2519                                  
  |   `-syslog-ng,2520 -p /var/run/syslog-ng.pid --no-caps
  |-cron,2661
  |-dbus-daemon,2689 --system
  |-sshd,2804
  |-monit,2856 -c /etc/monit/monitrc
  |   |-{monit},2867
  |   |-{monit},2884
  |   |-(verify_ipv4_add,3131)
  |   |-(verify_ipv4_add,3132)                                                                                                   
  |   |-(verify_ipv4_add,3135)                                                                                                   
  |   `-(verify_ipv4_add,3138)                                                                                                   
  |-getty,2879 115200 console                                                                                                    
  |-getty,2880 38400 tty2                                                                                                        
  |-getty,2881 38400 tty3                                                                                                        
  |-getty,2882 38400 tty4                                                                                                        
  `-login,2883 --                                                                                                                
      `-bash,2890                                                                                                                
          `-pstree,3154 -anp                                                                                                     
root@srv-orangepir1-150:~#

 

 

 

tty-from-srv-orangepir1-150-2019-08-16-14h-34min.ok.txt

Posted
On 8/4/2019 at 8:19 AM, Colinas said:

kernel:[21927.933087] Internal error: Oops: 80000005 [#1] SMP THUMB2

 

In my experience with ARM - this is an undefined instruction exception

 

Which means either a context issues - executing THUMB as ARM, or that Data is read as an instruction at a very low level.

 

This is usually application code, and sometimes compiler option if over optimizing for the wrong CPU arch/model - which is usually fixed by a makefile option if using GCC...

 

sfx

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines