Myron

  • Posts

    33
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thank-you @lanefu. Your pointer to a solution worked, but it too some time for me to learn how to do this. Finally came across this one page that explained how to automount a share using systemd. https://anteru.net/blog/2019/automatic-mounts-using-systemd/ This worked for me: root@loki:/etc/systemd/system# cat zeus-raspi.mount [Unit] Description=/zeus/raspi [Mount] What=//192.168.0.160/raspi Where=/zeus/raspi Type=cifs Options=rw,auto,uid=1001,gid=1002,file_mode=0755,dir_mode=0755,vers=3,credentials=/etc/.smbcredentials_raspi_01 DirectoryMode=0755 [Install] WantedBy=multi-user.target ----- root@loki:/etc/systemd/system# cat zeus-raspi.automount [Unit] Description=/zeus/raspi [Automount] Where=/zeus/raspi [Install] WantedBy=multi-user.target
  2. Thank-you for the advice. This is a little bit over my head as I don't want to mess with the /etc/fstab and make the Armbian Linux unstable. I have noticed that the advice is for the Manjaro distribution of Linux that I've not heard of until this moment. Here is the contents of my /etc/fstab file: UUID=dffd2ee5-5480-480b-9853-7884f8ba5e47 / ext4 defaults,noatime,commit=600,errors=remount-ro 0 1 tmpfs /tmp tmpfs defaults,nosuid 0 0 //192.168.0.160/raspi /zeus/raspi cifs rw,auto,uid=1001,gid=1002,file_mode=0755,dir_mode=0755,_netdev,vers=3,credentials=/etc/.smbcredentials_raspi_01 0 0 The example shows how to mount a remote nfs file system. I'm not sure how to apply this to my configuration.
  3. It's possible I may have uncovered a bug. I'm having a problem getting a remote share to mount on boot. The mount is attempted before the network interface is ready and I've got `_netdev` on the required line in `/etc/fstab` . . . . //192.168.0.160/raspi /zeus/raspi cifs rw,auto,uid=1001,gid=1002,file_mode=0755,dir_mode=0755,_netdev,vers=3,credentials=/etc/.smbcredentials_raspi_01 0 0 Here is the part of `dmesg` that explains the issue better than I can: [ 41.572110] sun7i-dwmac 1c50000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211E Gigabit Ethernet] (irq=POLL) [ 41.574888] sun7i-dwmac 1c50000.ethernet eth0: No Safety Features support found [ 41.574913] sun7i-dwmac 1c50000.ethernet eth0: RX IPC Checksum Offload disabled [ 41.574928] sun7i-dwmac 1c50000.ethernet eth0: No MAC Management Counters available [ 41.574941] sun7i-dwmac 1c50000.ethernet eth0: PTP not supported by HW [ 41.611180] sun7i-dwmac 1c50000.ethernet eth0: configuring for phy/rgmii-id link mode [ 43.915166] ieee80211 phy0: brcmf_p2p_create_p2pdev: timeout occurred [ 43.915201] ieee80211 phy0: brcmf_cfg80211_add_iface: add iface p2p-dev-wlan0 type 10 failed: err=-5 [ 44.368680] FS-Cache: Loaded [ 45.251206] FS-Cache: Netfs 'cifs' registered for caching [ 45.377166] Key type cifs.spnego registered [ 45.377203] Key type cifs.idmap registered [ 45.379138] CIFS: Attempting to mount //XXX.XXX.0.160/raspi [ 45.379624] CIFS: VFS: Error connecting to socket. Aborting operation. [ 45.379661] CIFS: VFS: cifs_mount failed w/return code = -101 [ 45.708719] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 45.708788] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 48.676700] PPP generic driver version 2.4.2 [ 48.732746] NET: Registered protocol family 24 [ 48.990513] l2tp_core: L2TP core driver, V2.0 [ 49.045525] l2tp_netlink: L2TP netlink interface [ 49.103512] l2tp_ppp: PPPoL2TP kernel driver, V2.0 [ 79.972498] device eth0 entered promiscuous mode [ 609.194770] CIFS: Attempting to mount //XXX.XXX.0.160/raspi At 863.282125 I manually issued the command `mount /zeus/raspi` which successfully created the remote fs mount. I've been trying to sort this one out for more than a month. Can anyone help me to get the OS to wait for the network physical link and IP protocol stack to be fully up before trying to connect to the remote share using the line in `/etc/fstab`?
  4. It was. I sort of worked around it as I have not connected a wire to the Ethernet port and have used nmcli to disconnect wlan0. As soon as I did that the errors instantly stopped. Would love to know what's causing it. 8Mb+ kern,log within a short space of time.
  5. This is still occurring. Does anyone have any clues what's causing this issue? /var/log/kern.log fills up quite quickly and I've had to increase the capacity of /var/log's zram. Most recent armbianmonitor dump: http://ix.io/3FYz I suspect there is more than just me experiencing this issue, whatever this issue is.
  6. Which section on this forum is for Lemaker Banana Pro SBCs? I think it's the Allwinner A20 forum, but right now I'm not sure as the Banana Pro is not in the list for this section?
  7. Oops. Forgot. Done. At the moment I don't know how to access the Microphone. Simply, I don't know where to start on this one. Trying to learn from the Internet, not found any useful information yet.
  8. Had anyone managed to utilise the built-in microphone on this SBC? Armbian Focal (Ubuntu) armbianmonitor -u >>> http://ix.io/3APh I've got the desktop environment working and the SBC is set-up and stable. If anyone needs any additional information to help me with this, please ask.
  9. How I solve this problem or is it an Ambrian bug? Maybe a better question is what is causing these repeated messages. I am at a loss to finding a solution. BOARD=bananapipro BOARD_NAME="Banana Pi Pro" BOARDFAMILY=sun7i
  10. It does look like nmcli. I thought maybe the interfaces were brought down and configured somewhere to stay down using ifconfig. Now I have to study nmcli which I didn't know about. I certainly will ask at the xfce forum. Thank-you.
  11. I accidentally took the tick off Enable Networking when I wanted to take the tick off Enable Wi-Fi. I guess the question is what does the GUI do in the background to enable and disable networking.
  12. Yes, I managed to do this. Luckily I managed to re-enable the GDM3 graphical console on-start-up by using the debug serial port and then using the GUI through the TV to put the tick back to enable networking. Yep, very much a noob mistake. So, the question is when networking is disabled so eth0 and wlan0 disappear, leaving only lo, how do I get eth0 and wlan0 back just using the command line? I can't easily find how to do this. I've looked, I've searched and now .... help! :-) (I do also have the ability to put the MicroSD card into my laptop, so maybe it would be simpler to do that and change some configuration files to re-enable networking?) This would be very useful information for anyone else who gets stuck in the same situation.
  13. It does seem that there are specific DTs that do not load, but I did notice one particular thing and this can only be seen observing output from the serial debug port, if ANY dt overlays fail then I get . . . Error applying DT overlays, restoring original DT If all the device tree overlays succeed then I get . . . Applying kernel provided DT fixup script (sun7i-a20-fixup.scr) Is this an all or nothing scenario, where if one overlay does not initialise correctly then no overlays get applied? When it comes to device trees I am an absolute noob. armbian-monitor details of my BananaPro as it is when I post this reply: http://ix.io/3zxW (As well as all the others that are still in there) Reboots while I had the USB to TTL RS232 bridge connected: ▒ U-Boot SPL 2021.07-armbian (Sep 13 2021 - 23:19:26 +0200) DRAM: 1024 MiB CPU: 912000000Hz, AXI/AHB/APB: 3/2/2 Trying to boot from MMC1 U-Boot 2021.07-armbian (Sep 13 2021 - 23:19:26 +0200) Allwinner Technology CPU: Allwinner A20 (SUN7I) Model: LeMaker Banana Pro I2C: ready DRAM: 1 GiB MMC: mmc@1c0f000: 0, mmc@1c12000: 2 Loading Environment from FAT... Unable to use mmc 0:1... Setting up a 720x576i composite-pal console (overscan 32x20) In: serial Out: vidconsole Err: vidconsole Net: eth0: ethernet@1c50000 230454 bytes read in 17 ms (12.9 MiB/s) starting USB... Bus usb@1c14000: USB EHCI 1.00 Bus usb@1c14400: USB OHCI 1.0 Bus usb@1c1c000: USB EHCI 1.00 Bus usb@1c1c400: USB OHCI 1.0 scanning bus usb@1c14000 for devices... 1 USB Device(s) found scanning bus usb@1c14400 for devices... 1 USB Device(s) found scanning bus usb@1c1c000 for devices... 1 USB Device(s) found scanning bus usb@1c1c400 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Autoboot in 1 seconds, press <Space> to stop switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot/boot.scr 3964 bytes read in 4 ms (967.8 KiB/s) ## Executing script at 43100000 U-boot loaded from SD Boot script loaded from mmc 230 bytes read in 4 ms (55.7 KiB/s) 11588626 bytes read in 639 ms (17.3 MiB/s) 7995288 bytes read in 442 ms (17.3 MiB/s) Found mainline kernel configuration 41126 bytes read in 10 ms (3.9 MiB/s) 267 bytes read in 11 ms (23.4 KiB/s) Applying kernel provided DT overlay sun7i-a20-analog-codec.dtbo 500 bytes read in 10 ms (48.8 KiB/s) Applying kernel provided DT overlay sun7i-a20-i2c1.dtbo 5532 bytes read in 11 ms (490.2 KiB/s) Applying kernel provided DT fixup script (sun7i-a20-fixup.scr) ## Executing script at 45000000 Kernel image @ 0x42000000 [ 0x000000 - 0x79ff98 ] ## Loading init Ramdisk from Legacy Image at 43400000 ... Image Name: uInitrd Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 11588562 Bytes = 11.1 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 43000000 Booting using the fdt blob at 0x43000000 EHCI failed to shut down host controller. Loading Ramdisk to 494f2000, end 49fff3d2 ... OK Loading Device Tree to 4947f000, end 494f1fff ... OK Starting kernel ... Armbian 21.08.2 Focal ttyS0 loki login: [ 177.621676] reboot: Restarting system U-Boot SPL 2021.07-armbian (Sep 13 2021 - 23:19:26 +0200) DRAM: 1024 MiB CPU: 912000000Hz, AXI/AHB/APB: 3/2/2 Trying to boot from MMC1 U-Boot 2021.07-armbian (Sep 13 2021 - 23:19:26 +0200) Allwinner Technology CPU: Allwinner A20 (SUN7I) Model: LeMaker Banana Pro I2C: ready DRAM: 1 GiB MMC: mmc@1c0f000: 0, mmc@1c12000: 2 Loading Environment from FAT... Unable to use mmc 0:1... Setting up a 720x576i composite-pal console (overscan 32x20) In: serial Out: vidconsole Err: vidconsole Net: eth0: ethernet@1c50000 230454 bytes read in 17 ms (12.9 MiB/s) starting USB... Bus usb@1c14000: USB EHCI 1.00 Bus usb@1c14400: USB OHCI 1.0 Bus usb@1c1c000: USB EHCI 1.00 Bus usb@1c1c400: USB OHCI 1.0 scanning bus usb@1c14000 for devices... 1 USB Device(s) found scanning bus usb@1c14400 for devices... 1 USB Device(s) found scanning bus usb@1c1c000 for devices... 1 USB Device(s) found scanning bus usb@1c1c400 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Autoboot in 1 seconds, press <Space> to stop switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot/boot.scr 3964 bytes read in 4 ms (967.8 KiB/s) ## Executing script at 43100000 U-boot loaded from SD Boot script loaded from mmc 216 bytes read in 4 ms (52.7 KiB/s) 11588626 bytes read in 638 ms (17.3 MiB/s) 7995288 bytes read in 441 ms (17.3 MiB/s) Found mainline kernel configuration 41126 bytes read in 10 ms (3.9 MiB/s) 386 bytes read in 11 ms (34.2 KiB/s) Applying kernel provided DT overlay sun7i-a20-can.dtbo failed on fdt_overlay_apply(): FDT_ERR_NOTFOUND Error applying DT overlays, restoring original DT 41126 bytes read in 9 ms (4.4 MiB/s) Kernel image @ 0x42000000 [ 0x000000 - 0x79ff98 ] ## Loading init Ramdisk from Legacy Image at 43400000 ... Image Name: uInitrd Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 11588562 Bytes = 11.1 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 43000000 Booting using the fdt blob at 0x43000000 EHCI failed to shut down host controller. Loading Ramdisk to 494f2000, end 49fff3d2 ... OK Loading Device Tree to 494e4000, end 494f10a5 ... OK Starting kernel ... Armbian 21.08.2 Focal ttyS0 loki login: [ 173.714013] reboot: Restarting system U-Boot SPL 2021.07-armbian (Sep 13 2021 - 23:19:26 +0200) DRAM: 1024 MiB CPU: 912000000Hz, AXI/AHB/APB: 3/2/2 Trying to boot from MMC1 U-Boot 2021.07-armbian (Sep 13 2021 - 23:19:26 +0200) Allwinner Technology CPU: Allwinner A20 (SUN7I) Model: LeMaker Banana Pro I2C: ready DRAM: 1 GiB MMC: mmc@1c0f000: 0, mmc@1c12000: 2 Loading Environment from FAT... Unable to use mmc 0:1... Setting up a 720x576i composite-pal console (overscan 32x20) In: serial Out: vidconsole Err: vidconsole Net: eth0: ethernet@1c50000 230454 bytes read in 17 ms (12.9 MiB/s) starting USB... Bus usb@1c14000: USB EHCI 1.00 Bus usb@1c14400: USB OHCI 1.0 Bus usb@1c1c000: USB EHCI 1.00 Bus usb@1c1c400: USB OHCI 1.0 scanning bus usb@1c14000 for devices... 1 USB Device(s) found scanning bus usb@1c14400 for devices... 1 USB Device(s) found scanning bus usb@1c1c000 for devices... 1 USB Device(s) found scanning bus usb@1c1c400 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Autoboot in 1 seconds, press <Space> to stop switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot/boot.scr 3964 bytes read in 4 ms (967.8 KiB/s) ## Executing script at 43100000 U-boot loaded from SD Boot script loaded from mmc 245 bytes read in 3 ms (79.1 KiB/s) 11588626 bytes read in 639 ms (17.3 MiB/s) 7995288 bytes read in 441 ms (17.3 MiB/s) Found mainline kernel configuration 41126 bytes read in 9 ms (4.4 MiB/s) 267 bytes read in 11 ms (23.4 KiB/s) Applying kernel provided DT overlay sun7i-a20-analog-codec.dtbo 500 bytes read in 10 ms (48.8 KiB/s) Applying kernel provided DT overlay sun7i-a20-i2c1.dtbo 500 bytes read in 10 ms (48.8 KiB/s) Applying kernel provided DT overlay sun7i-a20-i2c2.dtbo 500 bytes read in 10 ms (48.8 KiB/s) Applying kernel provided DT overlay sun7i-a20-i2c3.dtbo 766 bytes read in 11 ms (67.4 KiB/s) Applying kernel provided DT overlay sun7i-a20-i2c4.dtbo failed on fdt_overlay_apply(): FDT_ERR_NOTFOUND Error applying DT overlays, restoring original DT 41126 bytes read in 9 ms (4.4 MiB/s) Kernel image @ 0x42000000 [ 0x000000 - 0x79ff98 ] ## Loading init Ramdisk from Legacy Image at 43400000 ... Image Name: uInitrd Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 11588562 Bytes = 11.1 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 43000000 Booting using the fdt blob at 0x43000000 EHCI failed to shut down host controller. Loading Ramdisk to 494f2000, end 49fff3d2 ... OK Loading Device Tree to 494e4000, end 494f10a5 ... OK Starting kernel ... Armbian 21.08.2 Focal ttyS0 loki login: [ 178.697923] reboot: Restarting system U-Boot SPL 2021.07-armbian (Sep 13 2021 - 23:19:26 +0200) DRAM: 1024 MiB CPU: 912000000Hz, AXI/AHB/APB: 3/2/2 Trying to boot from MMC1 U-Boot 2021.07-armbian (Sep 13 2021 - 23:19:26 +0200) Allwinner Technology CPU: Allwinner A20 (SUN7I) Model: LeMaker Banana Pro I2C: ready DRAM: 1 GiB MMC: mmc@1c0f000: 0, mmc@1c12000: 2 Loading Environment from FAT... Unable to use mmc 0:1... Setting up a 720x576i composite-pal console (overscan 32x20) In: serial Out: vidconsole Err: vidconsole Net: eth0: ethernet@1c50000 230454 bytes read in 17 ms (12.9 MiB/s) starting USB... Bus usb@1c14000: USB EHCI 1.00 Bus usb@1c14400: USB OHCI 1.0 Bus usb@1c1c000: USB EHCI 1.00 Bus usb@1c1c400: USB OHCI 1.0 scanning bus usb@1c14000 for devices... 1 USB Device(s) found scanning bus usb@1c14400 for devices... 1 USB Device(s) found scanning bus usb@1c1c000 for devices... 1 USB Device(s) found scanning bus usb@1c1c400 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Autoboot in 1 seconds, press <Space> to stop switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot/boot.scr 3964 bytes read in 4 ms (967.8 KiB/s) ## Executing script at 43100000 U-boot loaded from SD Boot script loaded from mmc 240 bytes read in 4 ms (58.6 KiB/s) 11588626 bytes read in 639 ms (17.3 MiB/s) 7995288 bytes read in 442 ms (17.3 MiB/s) Found mainline kernel configuration 41126 bytes read in 9 ms (4.4 MiB/s) 267 bytes read in 11 ms (23.4 KiB/s) Applying kernel provided DT overlay sun7i-a20-analog-codec.dtbo 500 bytes read in 11 ms (43.9 KiB/s) Applying kernel provided DT overlay sun7i-a20-i2c1.dtbo 500 bytes read in 11 ms (43.9 KiB/s) Applying kernel provided DT overlay sun7i-a20-i2c2.dtbo 500 bytes read in 11 ms (43.9 KiB/s) Applying kernel provided DT overlay sun7i-a20-i2c3.dtbo 5532 bytes read in 11 ms (490.2 KiB/s) Applying kernel provided DT fixup script (sun7i-a20-fixup.scr) ## Executing script at 45000000 Kernel image @ 0x42000000 [ 0x000000 - 0x79ff98 ] ## Loading init Ramdisk from Legacy Image at 43400000 ... Image Name: uInitrd Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 11588562 Bytes = 11.1 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 43000000 Booting using the fdt blob at 0x43000000 EHCI failed to shut down host controller. Loading Ramdisk to 494f2000, end 49fff3d2 ... OK Loading Device Tree to 4947f000, end 494f1fff ... OK Starting kernel ... Armbian 21.08.2 Focal ttyS0 loki login: [ 109.894018] reboot: Power down [ 109.897239] ------------[ cut here ]------------ [ 109.901889] WARNING: CPU: 0 PID: 1 at drivers/i2c/i2c-core.h:41 i2c_transfer+0x93/0xbc [ 109.909808] No atomic I2C transfer handler for 'i2c-1' [ 109.914946] Modules linked in: overlay l2tp_ppp l2tp_netlink l2tp_core ip6_udp_tunnel udp_tunnel pppox ppp_generic slhc nls_utf8 cifs libarc4 fscache evdev axp20x_adc lima gpu_sched sunxi_cir sun4i_gpadc_iio industrialio brcmfmac sun4i_ts brcmutil cfg80211 rfkill sunxi_cedrus(C) v4l2_mem2mem videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_common nf_log_ipv6 ip6t_REJECT display_connector nf_reject_ipv6 uio_pdrv_genirq uio zram cpufreq_dt xt_hl ip6t_rt nf_log_ipv4 nf_log_common ipt_REJECT nf_reject_ipv4 xt_LOG xt_recent xt_limit xt_addrtype xt_tcpudp xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 sch_fq_codel ip6table_filter ip6_tables iptable_filter ip_tables x_tables autofs4 pwrseq_simple sun4i_gpadc realtek [ 109.979974] CPU: 0 PID: 1 Comm: systemd-shutdow Tainted: G WC 5.10.60-sunxi #21.08.2 [ 109.988932] Hardware name: Allwinner sun7i (A20) Family [ 109.994185] [<c010ca1d>] (unwind_backtrace) from [<c010952d>] (show_stack+0x11/0x14) [ 110.001944] [<c010952d>] (show_stack) from [<c0978293>] (dump_stack+0x77/0x84) [ 110.009182] [<c0978293>] (dump_stack) from [<c011ae71>] (__warn+0xad/0xc0) [ 110.016067] [<c011ae71>] (__warn) from [<c09721bf>] (warn_slowpath_fmt+0x5f/0x7c) [ 110.023560] [<c09721bf>] (warn_slowpath_fmt) from [<c07616a7>] (i2c_transfer+0x93/0xbc) [ 110.031576] [<c07616a7>] (i2c_transfer) from [<c076170b>] (i2c_transfer_buffer_flags+0x3b/0x50) [ 110.040284] [<c076170b>] (i2c_transfer_buffer_flags) from [<c066e8ef>] (regmap_i2c_write+0x13/0x24) [ 110.049340] [<c066e8ef>] (regmap_i2c_write) from [<c066b257>] (_regmap_raw_write_impl+0x4af/0x580) [ 110.058308] [<c066b257>] (_regmap_raw_write_impl) from [<c066b369>] (_regmap_bus_raw_write+0x41/0x5c) [ 110.067535] [<c066b369>] (_regmap_bus_raw_write) from [<c066bb31>] (regmap_write+0x29/0x3c) [ 110.075896] [<c066bb31>] (regmap_write) from [<c0674f63>] (axp20x_power_off+0x23/0x30) [ 110.083826] [<c0674f63>] (axp20x_power_off) from [<c0136a39>] (__do_sys_reboot+0xf5/0x168) [ 110.092099] [<c0136a39>] (__do_sys_reboot) from [<c0100061>] (ret_fast_syscall+0x1/0x62) [ 110.100192] Exception stack(0xc1529fa8 to 0xc1529ff0) [ 110.105250] 9fa0: 4321fedc befd1aa8 fee1dead 28121969 4321fedc 00000000 [ 110.113433] 9fc0: 4321fedc befd1aa8 befd1aa4 00000058 befd1aa8 befd1aa4 fffff000 befd1aac [ 110.121613] 9fe0: 00000058 befd1a1c b6f2c545 b6eaabe6 [ 110.126668] ---[ end trace 9aac65adb4b3b0e1 ]---
  14. I should have paid attention to what I did, but when the USB to TTL serial adapter arrived I promptly connected that and got the initial console and set-up which allows me to login as root and 1234, to then change the password and ask all the usual initial set-up questions. Once I got past all of that then everything magically started working, including the HDMI port. Without using the USB to TTL RS232 card on the debug port on the BananaPro, the SoC board appeared to be dead. It was not. I've got it working now. [Just need to create an image back-up of the MicroSD card.