[cubietruck] [debian] kernel 5.5.0-0.bpo.2-armmp-lpae reboot : KO

Discussions sur les cartes "Cubie" (1, 2, CubieTruck, etc.)
http://www.cubietech.com/
Répondre
jeanmarc
Messages : 33
Enregistré le : dim. mars 22, 2020 5:28 pm
Localisation : Essonne

[cubietruck] [debian] kernel 5.5.0-0.bpo.2-armmp-lpae reboot : KO

Message par jeanmarc »

Bonjour,

Sur une Debian Buster, avec noyau debian-backports,la commande reboot se termine mal (!)

Code : Tout sélectionner


ansible@srv-cubietruck-120:~$ uname -a
Linux srv-cubietruck-120 5.5.0-0.bpo.2-armmp-lpae #1 SMP Debian 5.5.17-1~bpo10+1 (2020-04-23) armv7l GNU/Linux
ansible@srv-cubietruck-120:~$ 

ansible@srv-cubietruck-120:~$ cat /etc/debian_version 
10.4
ansible@srv-cubietruck-120:~$ 

L'erreur constatée suite au lancement de la commande reboot

Code : Tout sélectionner


/bin/run-parts --verbose /etc/network/if-post-down.d
run-parts: executing /etc/network/if-post-down.d/bridge
run-parts: executing /etc/network/if-post-down.d/vlan
run-parts: executing /etc/network/if-post-down.d/wireless-tools
[ ok done.
[....] Deactivating swap...[ ok done.
[ 8334.258292] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
[info] Will now halt.
[ 8334.688349] kvm: exiting hardware virtualization
[ 8334.706435] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 8334.716850] sd 0:0:0:0: [sda] Stopping disk
[ 8334.739371] reboot: Power down
[ 8334.742544] ------------[ cut here ]------------
[ 8334.747187] WARNING: CPU: 0 PID: 5409 at drivers/i2c/i2c-core.h:41 i2c_transfer+0x108/0x138
[ 8334.755530] No atomic I2C transfer handler for 'i2c-0'
[ 8334.760663] Modules linked in: nf_tables(E) nfnetlink(E) veth(E) bridge(E) dm_mod(E) tun(E) nfsd(E) auth_rpcgss(E) nfs_acl(E) nfsv4(E) dns_resolver(E) nfs(E) lockd(E) grace(E) sunrpc(E) fscache(E) 8021q(E) garp(E) mrp(E) stp(E) llc(E) autofs4(E) iptable_filter(E) ip_tables(E) x_tables(E) evdev(E) des_generic(E) snd_soc_simple_card(E) lima(E) brcmfmac(E) snd_soc_simple_card_utils(E) snd_soc_spdif_tx(E) sun4i_backend(E) gpu_sched(E) brcmutil(E) cfg80211(E) sun4i_codec(E) sun4i_spdif(E) snd_soc_core(E) rfkill(E) snd_pcm_dmaengine(E) snd_pcm(E) snd_timer(E) axp20x_ac_power(E) axp20x_battery(E) sun4i_ss(E) sun4i_drm(E) snd(E) axp20x_adc(E) axp20x_pek(E) sun4i_ts(E) sun4i_frontend(E) soundcore(E) nvmem_sunxi_sid(E) sunxi_cir(E) sun4i_tcon(E) rc_core(E) sun4i_drm_hdmi(E) libdes(E) sunxi_wdt(E) pwm_sun4i(E) sun8i_tcon_top(E) sg(E) cec(E) drm_kms_helper(E) drm(E) leds_gpio(E) cpufreq_dt(E) ext4(E) crc16(E) mbcache(E) jbd2(E) crc32c_generic(E) sd_mod(E) axp20x_usb_power(E) industrialio(E)
[ 8334.760889]  axp20x_regulator(E) pinctrl_axp209(E) realtek(E) ahci_sunxi(E) libahci_platform(E) sunxi(E) libahci(E) phy_generic(E) dwmac_sunxi(E) stmmac_platform(E) ohci_platform(E) stmmac(E) libata(E) musb_hdrc(E) ohci_hcd(E) ehci_platform(E) phylink(E) udc_core(E) ehci_hcd(E) i2c_mv64xxx(E) scsi_mod(E) phy_sun4i_usb(E) usbcore(E) sunxi_mmc(E)
[ 8334.877926] CPU: 0 PID: 5409 Comm: halt Tainted: G            E     5.5.0-0.bpo.2-armmp-lpae #1 Debian 5.5.17-1~bpo10+1
[ 8334.888692] Hardware name: Allwinner sun7i (A20) Family
[ 8334.893910] Backtrace: 
[ 8334.896379] [<c043b5b0>] (dump_backtrace) from [<c043b918>] (show_stack+0x20/0x24)
[ 8334.903948]  r7:00000029 r6:60070093 r5:00000000 r4:c1510a3c
[ 8334.909613] [<c043b8f8>] (show_stack) from [<c0d2a4c8>] (dump_stack+0xc8/0xdc)
[ 8334.916836] [<c0d2a400>] (dump_stack) from [<c047b568>] (__warn+0xe0/0x108)
[ 8334.923793]  r7:00000029 r6:00000009 r5:c0ab107c r4:c1069610
[ 8334.929453] [<c047b488>] (__warn) from [<c047b974>] (warn_slowpath_fmt+0xa4/0xc0)
[ 8334.936932]  r7:00000029 r6:c1069610 r5:c1405fd4 r4:c10696d4
[ 8334.942593] [<c047b8d4>] (warn_slowpath_fmt) from [<c0ab107c>] (i2c_transfer+0x108/0x138)
[ 8334.950766]  r9:00000032 r8:00000001 r7:00000000 r6:00000001 r5:c9d79d38 r4:e9efd0a8
[ 8334.958508] [<c0ab0f74>] (i2c_transfer) from [<c0ab1108>] (i2c_transfer_buffer_flags+0x5c/0x80)
[ 8334.967199]  r6:e9dd9f01 r5:00000002 r4:c1405fd4
[ 8334.971823] [<c0ab10ac>] (i2c_transfer_buffer_flags) from [<c0a34740>] (regmap_i2c_write+0x24/0x40)
[ 8334.980859]  r5:00000001 r4:00000002
[ 8334.984439] [<c0a3471c>] (regmap_i2c_write) from [<c0a2f6d8>] (_regmap_raw_write_impl+0x774/0x8b0)
[ 8334.993388]  r5:00000001 r4:e9eef800
[ 8334.996969] [<c0a2ef64>] (_regmap_raw_write_impl) from [<c0a2f890>] (_regmap_bus_raw_write+0x7c/0xa0)
[ 8335.006183]  r10:00000058 r9:c1432414 r8:e9eef800 r7:00000080 r6:00000032 r5:c0a2aed4
[ 8335.014003]  r4:e9eef800
[ 8335.016542] [<c0a2f814>] (_regmap_bus_raw_write) from [<c0a2ec98>] (_regmap_write+0x6c/0x120)
[ 8335.025060]  r7:00000080 r6:00000032 r5:00000032 r4:e9eef800
[ 8335.030720] [<c0a2ec2c>] (_regmap_write) from [<c0a30440>] (regmap_write+0x4c/0x6c)
[ 8335.038374]  r9:c1432414 r8:fffffff6 r7:fee1dead r6:00000080 r5:00000032 r4:e9eef800
[ 8335.046117] [<c0a303f4>] (regmap_write) from [<c0a42434>] (axp20x_power_off+0x3c/0x48)
[ 8335.054029]  r7:fee1dead r6:00000000 r5:c1405fd4 r4:4321fedc
[ 8335.059691] [<c0a423f8>] (axp20x_power_off) from [<c043908c>] (machine_power_off+0x34/0x38)
[ 8335.068043] [<c0439058>] (machine_power_off) from [<c04a4478>] (kernel_power_off+0x7c/0x80)
[ 8335.076393] [<c04a43fc>] (kernel_power_off) from [<c04a45dc>] (__do_sys_reboot+0x160/0x220)
[ 8335.084743] [<c04a447c>] (__do_sys_reboot) from [<c04a470c>] (sys_reboot+0x18/0x1c)
[ 8335.092398]  r9:c9d78000 r8:c0401324 r7:00000058 r6:00464f10 r5:00000006 r4:bee6fdd4
[ 8335.100142] [<c04a46f4>] (sys_reboot) from [<c0401120>] (ret_fast_syscall+0x0/0x4c)
[ 8335.107790] Exception stack(0xc9d79fa8 to 0xc9d79ff0)
[ 8335.112844] 9fa0:                   bee6fdd4 00000006 fee1dead 28121969 4321fedc fffffff6
[ 8335.121018] 9fc0: bee6fdd4 00000006 00464f10 00000058 00476000 00000000 00000001 00000000
[ 8335.129188] 9fe0: 00000058 bee6fc34 b6e87d45 b6e09746
[ 8335.134235] ---[ end trace a0ea50833c545f65 ]---

La bonne nouvelle est que l'équipement est quand même arrêté (!), et que la seule méthode pour le redémarer est la suppression puis l'insertion du câble d'alimentation (Pour mémoire, la Cubietruck dispose d'une batterie interne assurant environ 5 heures d'autonomie ( fonction UPS))

La mauvaise nouvelle est que lors d'essais successifs, ce comportement n'est pas reproductible.
Dans les autres essais, l'équipement reboote et ne passe pas en shutdown... peut-être un problème au niveau du fichier /etc/inittab (pas de systemd, seulement du sysvinit ici) (?) ou un module de cette carte non présent.

Code : Tout sélectionner

ansible@srv-cubietruck-120:~$ cat /etc/inittab  |grep -v "#" |grep -v ^$
id:2:initdefault:
si::sysinit:/etc/init.d/rcS
~~:S:wait:/sbin/sulogin
l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
z6:6:respawn:/sbin/sulogin
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
pf::powerwait:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
po::powerokwait:/etc/init.d/powerfail stop
S0:12345:respawn:/sbin/getty 115200 ttyS0
ansible@srv-cubietruck-120:~$ 
CTRL-A Z for help | 115200 8N1 | NOR | Minicom 2.7.1 | VT102 | Online 3:30 | 
A priori, les modules dédiés à la Cubietruck sont pris en compte, en revanche en manque-t-il ?

Code : Tout sélectionner

ansible@srv-cubietruck-120:~$ sudo lsmod |grep sunxi
sunxi_cir              20480  0
rc_core                45056  2 sunxi_cir
nvmem_sunxi_sid        16384  0
sunxi_wdt              16384  0
ahci_sunxi             16384  15
libahci_platform       20480  1 ahci_sunxi
libahci                28672  2 ahci_sunxi,libahci_platform
libata                204800  3 ahci_sunxi,libahci_platform,libahci
dwmac_sunxi            16384  0
stmmac_platform        24576  1 dwmac_sunxi
stmmac                159744  2 stmmac_platform,dwmac_sunxi
sunxi                  20480  0
phy_generic            20480  2 sunxi
musb_hdrc             122880  1 sunxi
phy_sun4i_usb          24576  6 sunxi
sunxi_mmc              24576  0
ansible@srv-cubietruck-120:~$ 

:evil:
Cordialement

Répondre