Jump to content

Change ramlog to direct log writing in kernel 3.4.107


apollon77

Recommended Posts

Hi,

 

I'm using the 3.4.107 kernel at the moment and I have also attached an HDD.

 

Now I have the problem that the CUbietruck get's unresponsive once every 1-2 weeks and because of the ramlog I have no logs to see what the problem is.

All services stop working, but power is still "on".

 

My only idea is to replace ramlog solution by "normal" logfile writing (and because I use an HDD it's maybe better to directly write on HDD in any case) to have infos when the machine crashes the next time.

 

What I do need to do for that (I'm not really a linux expert ;-) ).

 

Thanks for help.

 

Ingo F

Link to comment
Share on other sites

Yes, I encounter this problem in recent build, but haven't got a solution yet. I thought it's related to hardware fail on some particular board. The problem could also be in U-boot.

 

100% working combination is kernel 3.4.106 with matched u-boot or older releases. I have zero problems with this, uptime several months.

 

To disable ramlog:

service ramlog disable
reboot

I am also working on to catch the bug, but it's a slow progress. Sometimes it works for weeks without a crash :(

Link to comment
Share on other sites

Hi,

 

can I help somehow? On what logs I could check? I'm willing to support to catch it ... :-)

I found a way to monitor the hang-up, so I would be fine for now ...

 

I will let you know if I see anything in the logs when it happens again ...

 

Else I would need to do a kernel downgrade :-)

Link to comment
Share on other sites

Hey Igor,

 

had a new crash just today. Any idea in which logs to check?

kern, messages and syslog don't show anything interesting.

Can I do anything to gather more logs?

 

BTW: in ramlog I see after disabling as you said above:

Jun 19 06:33:10 Error: ramlog is not running...                          [fail]
 

Link to comment
Share on other sites

Hm ... I don't understand a word in the link. It seems to me that this article is interesting for people that develop drivers and such :-(

 

How Do i downgrade the kernel to 3.4.106 together with all needed components like uboot and such? Is there an howto? Or is it the same as in FAQ to upgrade kernel?

Link to comment
Share on other sites

How Do i downgrade the kernel to 3.4.106 together with all needed components like uboot and such? Is there an howto? Or is it the same as in FAQ to upgrade kernel?

 

Manual is in the FAQ but not sure if it's 100% valid for this older kernel. U-boot is not packed with kernel but separate. 

 

http://mirror.igorpecovnik.com/kernel/3.4.106-cubieboard-default.tar

 

I can't find the exact u-boot, but try with this one.

http://mirror.igorpecovnik.com/u-boot/linux-u-boot-3.4.107-cubietruck_3.6_armhf.deb

Link to comment
Share on other sites

I got an error while running "dpkg -i linux-image*.deb":

root@cubietruck:~/3.4.108# dpkg -i linux-image*.deb
Selecting previously unselected package linux-image-3.4.108-cubietruck.
(Reading database ... 43436 files and directories currently installed.)
Unpacking linux-image-3.4.108-cubietruck (from linux-image-3.4.108-cubietruck_4.0_armhf.deb) ...
Setting up linux-image-3.4.108-cubietruck (4.0) ...
ln: failed to create symbolic link `/boot/zImage': Operation not permitted
dpkg: error processing linux-image-3.4.108-cubietruck (--install):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-3.4.108-cubietruck

When i now try to execute again I get:

(Reading database ... 44837 files and directories currently installed.)
Preparing to replace linux-image-3.4.108-cubietruck 4.0 (using linux-image-3.4.108-cubietruck_4.0_armhf.deb) ...
Unpacking replacement linux-image-3.4.108-cubietruck ...
dpkg: error processing linux-image-3.4.108-cubietruck_4.0_armhf.deb (--install):
 unable to make backup link of `./boot/config-3.4.108-cubietruck' before installing new version: Operation not permitted
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
ln: failed to create symbolic link `/boot/zImage': Operation not permitted
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-3.4.108-cubietruck_4.0_armhf.deb

Ok, that "again" error I get removed by removing the partly installed 3.4.108 by "dpkg -r linux-image-3.4.108-cubietruck", but initial error still occurs :-(

 

I boot from nand and everything else is on HDD.

df says:

root@cubietruck:~/3.4.108# df
Filesystem     1K-blocks    Used Available Use% Mounted on
rootfs         961433632 1686952 910908604   1% /
/dev/root      961433632 1686952 910908604   1% /
devtmpfs         1023356       0   1023356   0% /dev
tmpfs             131072     252    130820   1% /run
tmpfs               5120       0      5120   0% /run/lock
tmpfs             131072       0    131072   0% /run/shm
/dev/nand1         16334    8066      8268  50% /boot
tmpfs            1048576       0   1048576   0% /tmp

and /boot is accessible and mounted rw and I get this when showing it after such a failed install-try:

drwxr-xr-x  3 root root   16384 Jul 15 21:50 .
drwxr-xr-x 22 root root    4096 May 15 21:10 ..
-rwxr-xr-x  1 root root  118912 Nov 18  2014 boot.axf
-rwxr-xr-x  1 root root     106 Nov 18  2014 boot.ini
-rwxr-xr-x  1 root root   97456 Jul 12 12:50 config-3.4.108-cubietruck
drwxr-xr-x  2 root root    2048 Nov 18  2014 linux
-rwxr-xr-x  1 root root     512 Jan  1  1980 magic.bin
-rwxr-xr-x  1 root root   46360 May 15 21:15 script.bin
-rwxr-xr-x  1 root root 2003869 Jul 12 12:50 System.map-3.4.108-cubietruck
-rwxr-xr-x  1 root root     281 May 15 21:34 uEnv.txt
-rwxr-xr-x  1 root root      64 Jul 15 20:10 uImage
-rwxr-xr-x  1 root root 5605296 Jul 12 12:50 vmlinuz-3.4.108-cubietruck

After removing the failed install it shows:

root@cubietruck:~/3.4.108# ls -la /boot
total 194
drwxr-xr-x  3 root root  16384 Jul 15 21:51 .
drwxr-xr-x 22 root root   4096 May 15 21:10 ..
-rwxr-xr-x  1 root root 118912 Nov 18  2014 boot.axf
-rwxr-xr-x  1 root root    106 Nov 18  2014 boot.ini
drwxr-xr-x  2 root root   2048 Nov 18  2014 linux
-rwxr-xr-x  1 root root    512 Jan  1  1980 magic.bin
-rwxr-xr-x  1 root root  46360 May 15 21:15 script.bin
-rwxr-xr-x  1 root root    281 May 15 21:34 uEnv.txt
-rwxr-xr-x  1 root root     64 Jul 15 20:10 uImage

Do you have any instructions for me to fix it ? Any help would be great!

Link to comment
Share on other sites

Kernel installation is not yet ready for such scenario. I need to fix it.

 

The only thing you need to do is to convert zImage to uImage (inside /boot) and reboot:

mkimage -A arm -O linux -T kernel -C none -a "0x40008000" -e "0x40008000" -n "Linux kernel" -d vmlinuz-3.4.108-cubietruck uImage
Link to comment
Share on other sites

Yes, ignore. Kernel post install script creates a symbolic link to installed kernel. This is not possible on FAT file-system which is on the first NAND partition /boot. I'll fix once that it won't show the error and that that this command will be executed automatically.

 

I am using NAND u-boot as is.

 

All other debs are more or less optional.

Link to comment
Share on other sites

In general I only used the possibilities: install system to nand and then to sata ... and so I ended with this install situation .. is it not "as planned"?

 

Hm ... don't looks that successfull ... After doing that (install kernel, create that uImage-File, install u-boot, I run reboot and on shell I got some syslog-error.

 

Here is the full infos from my syslogserver (start reading at the end):

2015-07-17,22:10:07,info,cubietruck,authpriv,sudo,pam_unix(sudo:session): session closed for user root
2015-07-17,22:10:06,info,cubietruck,daemon,usbhid-ups,Signal 15: exiting
2015-07-17,22:10:06,info,cubietruck,daemon,upsd,Signal 15: exiting
2015-07-17,22:10:06,err,cubietruck,daemon,upsd,mainloop: Interrupted system call
2015-07-17,22:10:06,alert,cubietruck,kern,kernel,[2413238.510674] Fixing recursive fault but reboot is needed!
2015-07-17,22:10:06,warning,cubietruck,kern,kernel,[2413238.506346] ---[ end trace 9a2b03cbd1117ad8 ]---
2015-07-17,22:10:05,emerg,cubietruck,kern,kernel,[2413238.266579] Code: e3a00001 ebe55dbd e10f0000 f10c0080 (e1943f9f) 
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.261517] [<c003b824>] (do_group_exit+0x3c/0xb0) from [<c003b8a8>] (__wake_up_parent+0x0/0x18)
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.254024] [<c003b158>] (do_exit+0x138/0x79c) from [<c003b824>] (do_group_exit+0x3c/0xb0)
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.247052] [<c003acd4>] (exit_mm+0x18/0x144) from [<c003b158>] (do_exit+0x138/0x79c)
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.240513] [<c0035034>] (mm_release+0x64/0xf4) from [<c003acd4>] (exit_mm+0x18/0x144)
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.233882] [<c005a1e8>] (complete+0x1c/0x58) from [<c0035034>] (mm_release+0x64/0xf4)
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.227243] [<c0706f18>] (__raw_spin_lock_irqsave+0x28/0xa0) from [<c005a1e8>] (complete+0x1c/0x58)
2015-07-17,22:10:05,emerg,cubietruck,kern,kernel,[2413238.219463] dfe0: 000000f8 beaa8fbc b6df1083 b6d96f96 60000030 00000000 ffffffff ffffffff
2015-07-17,22:10:05,emerg,cubietruck,kern,kernel,[2413238.212321] dfc0: 0007001e b6e5f774 b6e5f774 000000f8 00000000 006b4318 00000000 00169a1c
2015-07-17,22:10:05,emerg,cubietruck,kern,kernel,[2413238.205178] dfa0: 00000000 c000e940 0007001e b6e5f774 00000000 0007000a b6d7f4c0 00000000
2015-07-17,22:10:05,emerg,cubietruck,kern,kernel,[2413238.198036] df80: 00169a1c c003b824 00000000 0007001e b6e5f774 b6e5f774 000000f8 c003b8a8
2015-07-17,22:10:05,emerg,cubietruck,kern,kernel,[2413238.190893] df60: 00000001 ee1ad600 00000000 eccbc000 ee234504 c000eac4 eccbc000 00000000
2015-07-17,22:10:05,emerg,cubietruck,kern,kernel,[2413238.183752] df40: ee28af40 c000eac4 00000000 eccbc000 00169a1c c0044368 00000100 edf4f9c0
2015-07-17,22:10:05,emerg,cubietruck,kern,kernel,[2413238.176609] df20: 00000000 eccbc000 ee234504 00000000 00000000 eccbc000 ee234504 c003b158
2015-07-17,22:10:05,emerg,cubietruck,kern,kernel,[2413238.169467] df00: ee28af40 c0035034 00000000 c009f6e8 ee28af40 ee27ae00 eccbc000 c003acd4
2015-07-17,22:10:05,emerg,cubietruck,kern,kernel,[2413238.162325] dee0: ee27ae00 c005a1e8 00000001 ee28b34c ee28af40 ee28af40 ee28b34c ee27ae00
2015-07-17,22:10:05,emerg,cubietruck,kern,kernel,[2413238.155182] dec0:                                                       60000014 60000010
2015-07-17,22:10:05,emerg,cubietruck,kern,kernel,[2413238.148049] Stack: (0xeccbded8 to 0xeccbe000)
2015-07-17,22:10:05,emerg,cubietruck,kern,kernel,"[2413238.144739] Process io.ping.0 (pid: 2666, stack limit = 0xeccbc2f0)"
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.132999] c060  b6d7f4c0 fa82ef29 00000000 00000000 00000000 00000000 00000000 00000000
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.126032] c040  c0705858 00000000 00000000 00000000 00000000 00000000 01010000 00000000
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.119064] c020  d1017940 ee2c4fc0 ee27ae00 ee2fbdc0 c0a10658 c09fb940 eccbdddc eccbdd28
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.112097] c000  00000002 00000004 00000000 ee28af40 c0a181c8 00000001 00000015 ee28af40
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.105130] bfe0  00000001 b5460de0 b6e76f75 b6e7e416 40000030 00000000 ffffffff ffffffff
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.098163] bfc0  b5461460 00000000 00000000 00000001 00000000 00000000 00000000 b5461694
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.091196] bfa0  00000010 c000e940 b5461460 00000000 00000000 007fa000 00000004 00000010
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.084228] bf80  00000000 00000000 00000001 c000eac4 eccba000 00000000 b5461694 c003b7e8
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.083777] R9: 0xeccbbf80:
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.083773] 
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.075590] eb24  c007f508 c00532bc c0041554 c00532bc c00532bc c0047570 c00532bc c00532bc
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.068622] eb04  c007f0d8 c00532bc c00532bc c00eada4 c004307c c0107728 c00532bc c007f148
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.061654] eae4  c00ea6fc c00f9390 c00f917c c000f0ec c00ea104 c00532bc c00f906c c00ea31c
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.054686] eac4  c00463f0 c003b7d8 c000f0dc c00eb578 c00eb5f0 c00ea6e0 c00e9434 c00532bc
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.047718] eaa4  e1a0100d e3a00001 eb0008c2 eaffffba e320f000 e320f000 e320f000 c0a14bc4
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.040740] ea84  e1a07000 e28d1008 e3570f5f 3891000f 3798f107 eaffffef e5ad0008 e1a02007
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.033772] ea64  e2270000 2a001040 ea011212 e1a02007 e28d1008 e3a00000 eb0008ce e28fe014
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.026804] ea44  e31a0c03 1a000008 e3570f5f e24fef46 3798f107 e28d1008 e3a08000 e357080f
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.026354] R8: 0xc000ea44:
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.026349] 
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.018168] 4564  00000000 00000000 00000001 04000000 b6e02bf0 00000000 00000000 00000000
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.011200] 4544  00011e91 04000000 b6e02bf0 00000000 00000000 00000001 04000000 b6e02bf0
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413238.004232] 4524  ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff 00000000
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.997264] 4504  00000000 00000000 00000000 00000000 ee234514 ee234514 ee236f40 ffffffff
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.990290] 44e4  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.983325] 44c4  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.976359] 44a4  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.969392] 4484  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.968942] R7: 0xee234484:
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.968937] 
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.960726] c060  b6d7f4c0 fa82ef29 00000000 00000000 00000000 00000000 00000000 00000000
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.953736] c040  c0705858 00000000 00000000 00000000 00000000 00000000 01010000 00000000
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.946768] c020  d1017940 ee2c4fc0 ee27ae00 ee2fbdc0 c0a10658 c09fb940 eccbdddc eccbdd28
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.939802] c000  00000000 00000004 00000000 ee28af40 c0a181c8 00000001 00000015 ee28af40
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.932836] bfe0  00000001 b5460de0 b6e76f75 b6e7e416 40000030 00000000 ffffffff ffffffff
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.925870] bfc0  b5461460 00000000 00000000 00000001 00000000 00000000 00000000 b5461694
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.918904] bfa0  00000010 c000e940 b5461460 00000000 00000000 007fa000 00000004 00000010
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.911938] bf80  00000000 00000000 00000001 c000eac4 eccba000 00000000 b5461694 c003b7e8
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.911488] R6: 0xeccbbf80:
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.911483] 
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.903300] df64  ee1ad600 00000000 eccbc000 ee234504 c000eac4 eccbc000 00000000 00169a1c
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.896333] df44  c000eac4 00000000 eccbc000 00169a1c c0044368 00000100 edf4f9c0 00000001
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.889366] df24  eccbc000 ee234504 00000000 00000000 eccbc000 ee234504 c003b158 ee28af40
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.882400] df04  c0035034 00000000 c009f6e8 ee28af40 ee27ae00 eccbc000 c003acd4 00000000
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.875433] dee4  c005a1e8 00000001 ee28b34c ee28af40 ee28af40 ee28b34c ee27ae00 ee28af40
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.868465] dec4  eccbded8 c0706f10 c0706f18 80000093 ffffffff 60000014 60000010 ee27ae00
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.861499] dea4  00000001 eccbc000 ee234504 c000eac4 eccbc000 00000000 eccbdf04 b6d7f070
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.854532] de84  eccbdec4 c000eac4 c000e498 80000013 beffffff 00000002 00000002 60000014
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.854082] FP: 0xeccbde84:
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.854077] 
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.845895] df38  ee234504 c003b158 ee28af40 c000eac4 00000000 eccbc000 00169a1c c0044368
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.838929] df18  eccbc000 c003acd4 00000000 eccbc000 ee234504 00000000 00000000 eccbc000
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.831962] def8  ee28b34c ee27ae00 ee28af40 c0035034 00000000 c009f6e8 ee28af40 ee27ae00
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.824986] ded8  60000014 60000010 ee27ae00 c005a1e8 00000001 ee28b34c ee28af40 ee28af40
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.818019] deb8  00000000 eccbdf04 b6d7f070 eccbded8 c0706f10 c0706f18 80000093 ffffffff
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.811052] de98  00000002 00000002 60000014 00000001 eccbc000 ee234504 c000eac4 eccbc000
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.804084] de78  c0706f18 80000093 ffffffff eccbdec4 c000eac4 c000e498 80000013 beffffff
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.797116] de58  00000001 00000001 eccbde74 c005e754 80000007 eccbdfb0 00000000 c07069fc
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.796666] SP: 0xeccbde58:
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.796661] 
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.788477] 6f70  e3530000 1afffff9 eaffffe2 f57ff05f e5843004 e8bd8070 ebfffc18 eaffffec
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.781501] 6f50  05845004 e3530000 1a000003 eaffffe9 e5943000 e3530000 0affffe6 e5943004
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.774532] 6f30  e3a00001 ebe55deb e5963000 e3130002 1a000010 e5943004 e3530000 e5943000
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.767565] 6f10  e10f0000 f10c0080 e1943f9f e3330000 01843f95 e3530000 0a000013 e121f000
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.760598] 6ef0  e92d4070 e1a0200d e3c23d7f e1a04000 e3c3603f e3a05001 e3a00001 ebe55dbd
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.753630] 6ed0  0affffe6 e5943004 e3530000 1afffff9 eaffffe2 ebfffc41 eaffffef eaffffd9
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.746663] 6eb0  e3530000 e5943000 05845004 e3530000 1a000003 eaffffe9 e5943000 e3530000
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.739695] 6e90  e5843004 e8bd8070 e3a00001 ebe55e11 e5963000 e3130002 1a00000d e5943004
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.739245] LR: 0xc0706e90:
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.739240] 
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.731058] 6f78  eaffffe2 f57ff05f e5843004 e8bd8070 ebfffc18 eaffffec eaffffd6 eaffffd5
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.724090] 6f58  1a000003 eaffffe9 e5943000 e3530000 0affffe6 e5943004 e3530000 1afffff9
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.717122] 6f38  e5963000 e3130002 1a000010 e5943004 e3530000 e5943000 05845004 e3530000
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.710154] 6f18  e1943f9f e3330000 01843f95 e3530000 0a000013 e121f000 e3a00001 ebe55deb
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.703186] 6ef8  e3c23d7f e1a04000 e3c3603f e3a05001 e3a00001 ebe55dbd e10f0000 f10c0080
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.696219] 6ed8  e3530000 1afffff9 eaffffe2 ebfffc41 eaffffef eaffffd9 e92d4070 e1a0200d
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.689250] 6eb8  05845004 e3530000 1a000003 eaffffe9 e5943000 e3530000 0affffe6 e5943004
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.682278] 6e98  e3a00001 ebe55e11 e5963000 e3130002 1a00000d e5943004 e3530000 e5943000
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.681827] PC: 0xc0706e98:
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.681822] 
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.680153] Control: 10c5387d  Table: 6ccd006a  DAC: 00000015
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.675703] Flags: Nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.669780] r3 : 00000002  r2 : 00000002  r1 : beffffff  r0 : 80000013
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.664555] r7 : ee234504  r6 : eccbc000  r5 : 00000001  r4 : 60000014
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.659330] r10: 00000000  r9 : eccbc000  r8 : c000eac4
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.655407] sp : eccbded8  ip : b6d7f070  fp : eccbdf04
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.655398] pc : [<c0706f18>]    lr : [<c0706f10>]    psr: 80000093
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.646528] LR is at __raw_spin_lock_irqsave+0x20/0xa0
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.642689] PC is at __raw_spin_lock_irqsave+0x28/0xa0
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.638834] CPU: 1    Tainted: G      D       (3.4.107-cubietruck #8)
2015-07-17,22:10:05,debug,cubietruck,kern,kernel,[2413237.625752] Modules linked in: cpufreq_userspace bnep bcmdhd sunxi_ir hidp rfcomm bt_gpio wifi_gpio hci_uart bluetooth
2015-07-17,22:10:05,emerg,cubietruck,kern,kernel,[2413237.611329] Internal error: Oops: 5 [#2] PREEMPT SMP ARM
2015-07-17,22:10:05,alert,cubietruck,kern,kernel,[2413237.594289] [60000014] *pgd=00000000
2015-07-17,22:10:05,alert,cubietruck,kern,kernel,[2413237.579288] pgd = eccd0000
2015-07-17,22:10:05,alert,cubietruck,kern,kernel,[2413237.564723] Unable to handle kernel paging request at virtual address 60000014
2015-07-17,22:10:00,notice,cubietruck,daemon,lircd-0.9.0-pre1,caught signal
2015-07-17,22:10:00,err,cubietruck,daemon,upsmon,upsmon parent: read
2015-07-17,22:10:00,info,cubietruck,daemon,upsd,User local_mon@::1 logged out from UPS [apc]
2015-07-17,22:10:00,info,cubietruck,daemon,upsmon,Signal 15: exiting
2015-07-17,22:10:00,info,cubietruck,daemon,bluetoothd,Exit
2015-07-17,22:10:00,info,cubietruck,daemon,bluetoothd,Stopping SDP server
2015-07-17,22:10:00,info,cubietruck,daemon,bluetoothd,Terminating
2015-07-17,22:10:00,info,cubietruck,authpriv,sudo,pam_unix(sudo:session): session opened for user root by (uid=0)
2015-07-17,22:10:00,notice,cubietruck,authpriv,sudo,    root : TTY=console ; PWD=/ ; USER=root ; COMMAND=/usr/local/bin/node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js stop
2015-07-17,22:10:00,info,cubietruck,authpriv,sudo,pam_unix(sudo:session): session opened for user ccuio by (uid=0)
2015-07-17,22:09:59,notice,cubietruck,authpriv,sudo,    root : TTY=console ; PWD=/ ; USER=ccuio ; COMMAND=/usr/local/bin/node /opt/ccu.io/ccu.io-server.js stop
2015-07-17,22:09:59,notice,cubietruck,daemon,haveged,haveged stopping due to signal 15
2015-07-17,22:09:58,info,cubietruck,daemon,init,Switching to runlevel: 6
2015-07-17,22:09:58,notice,cubietruck,user,shutdown,shutting down for system reboot

And now it wont reboot anymore :-(

 

BTW: I wonder: My /boot was 4% space used initially, after creating uImage it was 83% ... this means the next kernel update will don't work because now more space availabe ... How can I resite /book in nand?

Link to comment
Share on other sites

What I can see from log is that you are booting kernel 3.4.107 which makes me think that you haven't used the proper kernel as source. Somehow the conversion from zImage to uImage was not made properly. This is necessary since we use the preinstalled NAND u-boot.

 

I'll recreate the exact scenario in next days to make sure this scenario works.

Link to comment
Share on other sites

From my point of view these error happend on shutdown because when I try to restart I get simply nothing in syslog-server.

 

Ok, but what can I do now? The former uImage was only 64 byte in size, which looks more then a symbilic link size then like a correct size ...

 

I was able to use sd-boot to boot and mount the partitions. Interesting is the fact that the /nand/nand1 looks now as follows:

root@cubietruck:/mnt/nand1# ls -la
total 5666
drwxr-xr-x 3 root root   16384 Jan  1  1970 .
drwxr-xr-x 4 root root    4096 Jul 18 09:33 ..
-rwxr-xr-x 1 root root  118912 Nov 18  2014 boot.axf
-rwxr-xr-x 1 root root     106 Nov 18  2014 boot.ini
-rwxr-xr-x 1 root root       0 Jul 17 22:02 config-3.4.108-cubietruck
drwxr-xr-x 2 root root    2048 Nov 18  2014 linux
-rwxr-xr-x 1 root root     512 Jan  1  1980 magic.bin
-rwxr-xr-x 1 root root   46360 May 15 21:15 script.bin
-rwxr-xr-x 1 root root       0 Jul 17 22:02 System.map-3.4.108-cubietruck
-rwxr-xr-x 1 root root     281 May 15 21:34 uEnv.txt
-rwxr-xr-x 1 root root 5605360 Jul 17 22:02 uImage
-rwxr-xr-x 1 root root       0 Jul 17 22:02 vmlinuz-3.4.108-cubietruck

So the 3 new files that were installed with the kernel update have a size of 0 now, but "df" startes still 83% used space ... But uImage have correctsize as before after the conversion ...

 

Any idea how to restore it to the state before? Else I need to set up completely new :-(

Link to comment
Share on other sites

One option is to boot SD image with 3.4.108 ...copy /lib/modules/*********-3-4-108 to nand2 and sda1, convert /boot/zImage to uImage with previously mentioned method and copy to NAND1 ... check uEnv.txt @NAND that it's pointing to proper root.

 

So do step by step. First boot from NAND and rootfs=/dev/nand2 ... than copy modules to HDD and switch rootfs there.

Link to comment
Share on other sites

nand2 is empty (only a "lost+found" directoy is there ...

 

But you are right ... on sda1 the /lib/modules directory for 3.4.108 is not existing ... so the install of the linux-image that produced the "symbolic link error" above also did not copied these files correctly. Will try tomorrow if it works when copying them there.

Maybe convert was good but only those files are missing ... :-)

Link to comment
Share on other sites

Hm ... it must have been too late yesterday ...

 

On sda1 the lib/modules directory for 3.4.108 exists and has all files. I have now unpacked the 3.4.108 deb file and used the file from there and copied again to nand1.

Will try to reboot tomorrow (can't get to the device to get sd card out :-) ).

Link to comment
Share on other sites

Ok, have now installed from fresh sd-image 3.4.108 to nand2. With this nand1 (boot) got newly written too and then I only changed to root in uEnv.txt and everything went well.

I only needed to deinstall the only partially installed 3.4.108 kernel-image from hdd and copy the /lib/modules-Files again but after that now my old system is back :-))

Thank you for all your help ... hopefully you can reproduce.

 

I I can help in testing or such simply tell me !

Link to comment
Share on other sites

I know now what's the essential problem and it will be fixed. NAND/SATA/USB install part is as is. If you follow the install it works, It fails in custom situations - It's not designed for that yet.

 

I am glad everything went o.k. and thanks, testing is always helpful and saves a lot of time. Mine and all users if we discover and fix thigns propmtly.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines