Jump to content

Search the Community

Showing results for tags 'nanopineo'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Armbian
    • Armbian project administration
  • Community
    • Announcements
    • SBC News
    • Framework and userspace feature requests
    • Off-topic
  • Using Armbian
    • Beginners
    • Software, Applications, Userspace
    • Advanced users - Development
  • Standard support
    • Amlogic meson
    • Allwinner sunxi
    • Rockchip
    • Other families
  • Community maintained / Staging
    • TV boxes
    • Amlogic meson
    • Allwinner sunxi
    • Marvell mvebu
    • Rockchip
    • Other families
  • Support

Categories

  • Official giveaways
  • Community giveaways

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Matrix


Mastodon


IRC


Website URL


XMPP/Jabber


Skype


Github


Discord


Location


Interests

  1. Hi, i need to download version Armbian 21.05.6 Buster with Linux 5.10.43-sunxi , is it possible to do it now and how? thank you
  2. I am creating a script that can backup sd-cards running on the system, resizing it with desired value or via resize2fs calculated. I learn a lot but there are a few things I don't fully understand. When I create a backup I dd what I understand is the bootsector, ie I grab the "start" position of the partition I am backing up with fidisk and use that value and a blocksize of 512. I then add another 10mb (in bytes) just to be sure. Usually the bootsector is 8192 big, but not always (IIRC nanopi neo3;s is WAY bigger). dd bs=512 count=$DDBOOTSECTOR if=/dev/mmcblk0 of=$IMG_FILE conv=noerror,sync status=progress I then truncate the file, calculated either by resize2fs minimum calculation or via an input + file usage in df (depending of what flag I start the script with) + bootsector + yadayadayda. (if someone want me to post the script I will, but the script and calculations work, although I "force" some commands) I then loop the created img file and delete the partition on the /dev/loop0 and recreates it to cover 100%. Then format it with mkfs.ext4 copying the name and uuid from wherever I backup from. I mount the loop and rsync / rsync -ahvD --exclude={/lost+found,/proc/*,/sys/*,/dev/*,/tmp,/run/*,/mnt/*,/media/*,/var/log.hdd,/var/swap,/etc/udev/rules.d/70-persistent-net.rules,/var/lib/asterisk/astdb.sqlite3-journal} --info=progress2 --stats --delete --force --partial / $tmp_dir This seems to work, but there are probably some things that are just "accepted" not really "perfect". So questions: 1. Should I only dd the EXACT bootsector and not add the extra 10mb? The reason I ask is because if I try to delete the partition with parted, I have to do a hack in the scrip where I simulate button presses, it warns me that "the partition cant be outside of the disk" when I try to REMOVE it. Solution, I use sfdisk to remove the partition, but it prompts me to think there is something wrong going on here. If the size I create is ABOVE the resize2fs reported minimum i don't get this warning. sfdisk was the solution in this case, but still curious on this behavior. If I try to only dd the small part, it sometimes works, sometimes doesn't so I come here asking. (I might be able to do some further research but since I have other questions, why not ask) 2. Does armbian ever update the u-boot via apt? I do my next update with rscync by looping the file and mounting it. But that wont EVER cover the bootsector. 2b. If yes, do I solve this by again dd:ing ONLY the bootsector? 3. I have noticed that sudo apt update on armbian includes armhf even though running arm64. This makes the update process VERY long. dpkg --print-foreign-architectures shows armhf so i remove it with dpkg --remove-architecture armhf and then find /var/lib/apt/lists/ -type f -exec rm {} -v \; Seems to fix this but is this a bad idea? Why is the armhf even being fetched to begin with? To my memory I have not added arhmf architecture... Thanks in advance!
  3. Hello, it is been awhile since I used armbian with Orange PI, now I took one orange PI NEO on it's connector is UART0, UART1 and UART2. My goal is to use all UARTS available on board. Googling a little I found the part where I should use BIX2FEX to convert script.bin and insert port definitions there, bot looks like that way is obsolete. looks by default only one uart is initialized: root@nanopineo:/boot# cat /proc/tty/driver/serial serinfo:1.0 driver revision: 0: uart:16550A mmio:0x01C28000 irq:49 tx:11630 rx:0 RTS|DTR 1: uart:unknown port:00000000 irq:0 2: uart:unknown port:00000000 irq:0 3: uart:unknown port:00000000 irq:0 4: uart:unknown port:00000000 irq:0 5: uart:unknown port:00000000 irq:0 6: uart:unknown port:00000000 irq:0 7: uart:unknown port:00000000 irq:0 I'm not sure that only available serial is not the MicroUSB one. Can someone point me in direction where UARTS are defined now?
  4. Has anyone managed to get video encoder working with the latest mainline kernel? I'm getting stuck trying to compile the cedar_ve kernel driver from https://github.com/uboborov/sunxi-cedar-mainline I have downloaded the kernel source using armbian-config and then built the sunxi-cedar-mainline kernel driver. However, I fail to load the driver due to version magic: When trying to force the load: But no dmesg message about magic check failure.
  5. I have a 8811CU WiFi dongle that failed to work on my Nanopi Neo. When connecting using nmcli, I get this error "Error: Connection activation failed: (7) Secrets were required, but not provided." The device is correctly recognized and I can perform iw scan without issue. I tried with 6.1.7(edge) and 5.15.89(current) kernel, and install the driver from https://github.com/morrownr/8821cu-20210916, all end up with the exact same error. Here's the journal log where "nl80211: kernel reports: Authentication algorithm number required" error stands out. Feb 14 13:51:55 nanopi-neo NetworkManager[513]: <info> [1676400715.4565] audit: op="connection-update" uuid="5723cd52-fc51-48bf-ab79-33a902d143b6" name="MySSID" args="802-11-wireless-security.psk" pid=5230 uid=1000 result="success" Feb 14 13:51:55 nanopi-neo NetworkManager[513]: <info> [1676400715.4781] device (wlx90deadbeef85): Activation: starting connection 'MySSID' (5723cd52-fc51-48bf-ab79-33a902d143b6) Feb 14 13:51:55 nanopi-neo NetworkManager[513]: <info> [1676400715.4795] audit: op="connection-activate" uuid="5723cd52-fc51-48bf-ab79-33a902d143b6" name="MySSID" pid=5230 uid=1000 result="success" Feb 14 13:51:55 nanopi-neo NetworkManager[513]: <info> [1676400715.4810] device (wlx90deadbeef85): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed') Feb 14 13:51:55 nanopi-neo NetworkManager[513]: <info> [1676400715.4871] device (wlx90deadbeef85): state change: prepare -> config (reason 'none', sys-iface-state: 'managed') Feb 14 13:51:55 nanopi-neo NetworkManager[513]: <info> [1676400715.4910] device (wlx90deadbeef85): Activation: (wifi) access point 'MySSID' has security, but secrets are required. Feb 14 13:51:55 nanopi-neo NetworkManager[513]: <info> [1676400715.4913] device (wlx90deadbeef85): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed') Feb 14 13:51:55 nanopi-neo NetworkManager[513]: <info> [1676400715.5164] device (wlx90deadbeef85): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed') Feb 14 13:51:55 nanopi-neo NetworkManager[513]: <info> [1676400715.5201] device (wlx90deadbeef85): state change: prepare -> config (reason 'none', sys-iface-state: 'managed') Feb 14 13:51:55 nanopi-neo NetworkManager[513]: <info> [1676400715.5232] device (wlx90deadbeef85): Activation: (wifi) connection 'MySSID' has security, and secrets exist. No new secrets needed. Feb 14 13:51:55 nanopi-neo NetworkManager[513]: <info> [1676400715.5236] Config: added 'ssid' value 'MySSID' Feb 14 13:51:55 nanopi-neo NetworkManager[513]: <info> [1676400715.5237] Config: added 'scan_ssid' value '1' Feb 14 13:51:55 nanopi-neo NetworkManager[513]: <info> [1676400715.5238] Config: added 'bgscan' value 'simple:30:-70:86400' Feb 14 13:51:55 nanopi-neo NetworkManager[513]: <info> [1676400715.5241] Config: added 'key_mgmt' value 'SAE FT-SAE' Feb 14 13:51:55 nanopi-neo NetworkManager[513]: <info> [1676400715.5243] Config: added 'auth_alg' value 'OPEN' Feb 14 13:51:55 nanopi-neo NetworkManager[513]: <info> [1676400715.5244] Config: added 'psk' value '<hidden>' Feb 14 13:51:55 nanopi-neo wpa_supplicant[540]: wlx90deadbeef85: Trying to associate with e8:9f:ff:00:ff:00 (SSID='MySSID' freq=2452 MHz) Feb 14 13:51:55 nanopi-neo wpa_supplicant[540]: nl80211: kernel reports: Authentication algorithm number required Feb 14 13:51:56 nanopi-neo wpa_supplicant[540]: wlx90deadbeef85: CTRL-EVENT-STARTED-CHANNEL-SWITCH freq=2452 ht_enabled=1 ch_offset=0 ch_width=20 MHz cf1=2452 cf2=0 Feb 14 13:51:56 nanopi-neo NetworkManager[513]: <info> [1676400716.6389] device (wlx90deadbeef85): supplicant interface state: inactive -> associating Feb 14 13:51:56 nanopi-neo NetworkManager[513]: <info> [1676400716.6391] device (p2p-dev-wlx90deadbeef85): supplicant management interface state: inactive -> associating Feb 14 13:51:56 nanopi-neo wpa_supplicant[540]: wlx90deadbeef85: CTRL-EVENT-ASSOC-REJECT status_code=53 Feb 14 13:51:56 nanopi-neo wpa_supplicant[540]: wlx90deadbeef85: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="MySSID" auth_failures=1 duration=10 reason=CONN_FAILED Feb 14 13:51:56 nanopi-neo wpa_supplicant[540]: wlx90deadbeef85: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD Feb 14 13:51:56 nanopi-neo NetworkManager[513]: <info> [1676400716.8990] device (wlx90deadbeef85): supplicant interface state: associating -> disconnected Feb 14 13:51:56 nanopi-neo NetworkManager[513]: <info> [1676400716.8993] device (p2p-dev-wlx90deadbeef85): supplicant management interface state: associating -> disconnected Feb 14 13:52:07 nanopi-neo NetworkManager[513]: <info> [1676400727.9463] device (wlx90deadbeef85): supplicant interface state: disconnected -> scanning Feb 14 13:52:07 nanopi-neo NetworkManager[513]: <info> [1676400727.9467] device (p2p-dev-wlx90deadbeef85): supplicant management interface state: disconnected -> scanning Feb 14 13:52:12 nanopi-neo wpa_supplicant[540]: wlx90deadbeef85: CTRL-EVENT-SSID-REENABLED id=0 ssid="MySSID" Feb 14 13:52:12 nanopi-neo wpa_supplicant[540]: wlx90deadbeef85: Trying to associate with ea:9f:ff:00:ff:00 (SSID='MySSID' freq=5220 MHz) Feb 14 13:52:12 nanopi-neo wpa_supplicant[540]: nl80211: kernel reports: Authentication algorithm number required Feb 14 13:52:13 nanopi-neo wpa_supplicant[540]: wlx90deadbeef85: CTRL-EVENT-STARTED-CHANNEL-SWITCH freq=5220 ht_enabled=1 ch_offset=1 ch_width=80 MHz cf1=5210 cf2=0 Feb 14 13:52:13 nanopi-neo NetworkManager[513]: <info> [1676400733.5834] device (wlx90deadbeef85): supplicant interface state: scanning -> associating Feb 14 13:52:13 nanopi-neo NetworkManager[513]: <info> [1676400733.5837] device (p2p-dev-wlx90deadbeef85): supplicant management interface state: scanning -> associating Feb 14 13:52:13 nanopi-neo wpa_supplicant[540]: wlx90deadbeef85: CTRL-EVENT-ASSOC-REJECT status_code=53 Feb 14 13:52:13 nanopi-neo wpa_supplicant[540]: wlx90deadbeef85: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="MySSID" auth_failures=2 duration=20 reason=CONN_FAILED Feb 14 13:52:13 nanopi-neo wpa_supplicant[540]: wlx90deadbeef85: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD Feb 14 13:52:13 nanopi-neo NetworkManager[513]: <info> [1676400733.6529] device (wlx90deadbeef85): supplicant interface state: associating -> disconnected Feb 14 13:52:13 nanopi-neo NetworkManager[513]: <info> [1676400733.6532] device (p2p-dev-wlx90deadbeef85): supplicant management interface state: associating -> disconnected Feb 14 13:52:20 nanopi-neo NetworkManager[513]: <warn> [1676400740.3324] device (wlx90deadbeef85): Activation: (wifi) association took too long Feb 14 13:52:20 nanopi-neo NetworkManager[513]: <info> [1676400740.3328] device (wlx90deadbeef85): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed') Feb 14 13:52:20 nanopi-neo NetworkManager[513]: <warn> [1676400740.3516] device (wlx90deadbeef85): Activation: (wifi) asking for new secrets Feb 14 13:52:20 nanopi-neo NetworkManager[513]: <warn> [1676400740.3633] device (wlx90deadbeef85): no secrets: No agents were available for this request. Feb 14 13:52:20 nanopi-neo NetworkManager[513]: <info> [1676400740.3636] device (wlx90deadbeef85): state change: need-auth -> failed (reason 'no-secrets', sys-iface-state: 'managed') Feb 14 13:52:20 nanopi-neo NetworkManager[513]: <warn> [1676400740.3755] device (wlx90deadbeef85): Activation: failed for connection 'MySSID' Feb 14 13:52:20 nanopi-neo NetworkManager[513]: <info> [1676400740.3788] device (wlx90deadbeef85): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed') Feb 14 13:52:30 nanopi-neo wpa_supplicant[540]: wlx90deadbeef85: Reject scan trigger since one is already pending Feb 14 13:52:32 nanopi-neo NetworkManager[513]: <info> [1676400752.3693] device (wlx90deadbeef85): supplicant interface state: disconnected -> inactive Feb 14 13:52:32 nanopi-neo NetworkManager[513]: <info> [1676400752.3697] device (p2p-dev-wlx90deadbeef85): supplicant management interface state: disconnected -> inactive
  6. Hi all, I am new to armbian, it is a wonderful project. I just have a nanopi neo core board, fellow the guide doc, it can be boot from the SD card, but the board has internal 8GB emmc. how can I install the armbian into it, so it can boot from emmc without using SD card? Thanks!
  7. Hello. I have several new NanoPi-NEO Core devices. OS FriendlyELEC (Ubuntu 16.04.2) was already installed on them, and it does not allow me to boot from the SD card. There is an image created by a script emmc-backup.sh How do I deploy this image?
  8. On my NanoPi Neo Core, the flash has the following partitions: Most of the drives I've encountered have the starting sector set as 2048, while this one has 49152. I'm assuming that U-Boot reside before the 49152th sector. How can I see what is below 49152th sector in the partition table?
  9. on a Sunvell R69 (H2) and a NanoPi Neo (H3) I got these "old known" eth0 Link Up/Down syndrom, but couldnt find a solution in the forum while using the search-engine armbianmonitor -u System diagnosis information will now be uploaded to Sunvell R69 - Linux sunvell-r69 5.4.0-rc8-sunxi #19.11.3 SMP Wed Nov 27 17:01:29 CET 2019 armv7l armv7l armv7l GNU/Linux : http://ix.io/232T NanoPi Neo - Linux npi-neo 5.3.3-sunxi #5.98 SMP Sat Oct 5 18:34:15 +03 2019 armv7l GNU/Linux : http://ix.io/232U in dmesg it looks like [10536.264427] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx [10568.008879] dwmac-sun8i 1c30000.ethernet eth0: Link is Down [10571.081067] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx [10575.177000] dwmac-sun8i 1c30000.ethernet eth0: Link is Down [10580.297247] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx [10604.873552] dwmac-sun8i 1c30000.ethernet eth0: Link is Down [10607.945753] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx [10608.969632] dwmac-sun8i 1c30000.ethernet eth0: Link is Down [10612.041827] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx [10631.498029] dwmac-sun8i 1c30000.ethernet eth0: Link is Down [10633.546213] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx [10636.618141] dwmac-sun8i 1c30000.ethernet eth0: Link is Down I have the feeling its could have to do with using 1GBit/1000MBit devices on the same 100MBit-Ethernet-Hub, because I do get much mor of these messages when my armbian-build-system-PC is on (which uses a onboard GBit-Ethernet-Card). On the 100MBit-Hub there are also some othe 1GBit-Devices like the NanoPi Neo2. On the PC I did try to force the 1GBit-Card to 100MBit with ethtool -s eth0 speed 100 autoneg off But that doesnt seem to help. On other SBC-devices I could find these messages in the dmesg (and in the froum search it was a problem 4 to 2 years ago) On the other hand there was a disscussion about a new driver version for kernel 4.1.4 at https://forum.armbian.com/topic/4364-dwmac-sun8i- driver-v6/ With debian stretch armabian 5.41 and kernel 4.1.4.34 I did see that problem (and doenst feel it at a SSH-session) on the Sunvell R69.
  10. I had build armbian 3 days ago, kernel ="5.8.13", with NanopiNEO, I want use a TFT screen, type is ILI9341, when I use "armbian-config" open spi_spidev, no /dev/spi* created, and screen does not work. here is config: # # cat /etc/modprobe.d/fbtft.conf options fbtft options fb_ili9341 name=fb_ili9341 gpios=rest:0,cs:67,dc:2,led:3 speed=48000000 fps=26 rotate=90 bgr=1 txbuflen=65536 debug=3 here is armbian-hardware-monitor.log Other: ttyS0 can't login, Does somebody can help me, thinks very much! armbian-hardware-monitor.log
  11. Hi! I need to use the UART1 port on my NanoPi NEO. This usually means just adding "uart1" to the `overlays` in `/boot/armbianEnv.txt`. What I would like to do is build a custom image that already has the overlay activated by default. I read the following documentations: - https://docs.armbian.com/User-Guide_Armbian_overlays/ - https://docs.armbian.com/Developer-Guide_User-Configurations/ But couldn't find anything about it. At first I tried to define the `DEFAULT_OVERLAYS` env var in `userpatches/config-example.conf` since I noticed it was defined in the configuration for the board, but it didn't work. I manage to make it work by modifying the `armbianEnv.txt` file within the `customize-image.sh` script, using some sed magic. For exemple: RELEASE=$1 LINUXFAMILY=$2 BOARD=$3 BUILD_DESKTOP=$4 Main() { echo "Release: $RELEASE" case $RELEASE in jammy) DisplayArmbianBootConf ;; esac } # Main DisplayArmbianBootConf() { echo "Adding UART1 overlay" sed -i '/overlays/s/$/ uart1/' /boot/armbianEnv.txt echo "armbianEnv.txt: " cat /boot/armbianEnv.txt echo "UART1 added." } Now this works fine, but it feels a bit "hackish". So I was wondering, is there a better way to achieve this ? This I miss an env var, conf file or specific configuration which would allow me to append overlays to the default overlay of the board ? Thanks,
  12. Hello, I have a problem with uboot, during its scan of USB buses, it blocks for several tens of seconds, displays an error, then boots. Sometimes it blocks completely and it takes several ON/OFF attempts to get it started. I'm using Nano Pi Core LTS with the mini-shield, I have over 20 and it's happening on all of them. This is what is displayed when it finally starts : U-Boot SPL 2020.10-armbian (Aug 08 2021 - 15:18:24 +0200) DRAM: 512 MiB Trying to boot from MMC1 U-Boot 2020.10-armbian (Aug 08 2021 - 15:18:24 +0200) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: FriendlyARM NanoPi NEO DRAM: 512 MiB MMC: mmc@1c0f000: 0, mmc@1c11000: 1 Loading Environment from FAT... *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: phy interface0 Error: ethernet@1c30000 address not set. No ethernet found. starting USB... Bus usb@1c1a000: USB EHCI 1.00 Bus usb@1c1a400: USB OHCI 1.0 Bus usb@1c1d000: USB EHCI 1.00 Bus usb@1c1d400: USB OHCI 1.0 scanning bus usb@1c1a000 for devices... 1 USB Device(s) found scanning bus usb@1c1a400 for devices... 1 USB Device(s) found scanning bus usb@1c1d000 for devices... Device NOT ready Request Sense returned 04 44 81 2 USB Device(s) found scanning bus usb@1c1d400 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Autoboot in 1 seconds switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot/boot.scr 3964 bytes read in 6 ms (644.5 KiB/s) ## Executing script at 43100000 U-boot loaded from SD Boot script loaded from mmc [...] And when it completely blocks: U-Boot SPL 2020.10-armbian (Aug 08 2021 - 15:18:24 +0200) DRAM: 512 MiB Trying to boot from MMC1 U-Boot 2020.10-armbian (Aug 08 2021 - 15:18:24 +0200) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: FriendlyARM NanoPi NEO DRAM: 512 MiB MMC: mmc@1c0f000: 0, mmc@1c11000: 1 Loading Environment from FAT... *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: phy interface0 Error: ethernet@1c30000 address not set. No ethernet found. starting USB... Bus usb@1c1a000: USB EHCI 1.00 Bus usb@1c1a400: USB OHCI 1.0 Bus usb@1c1d000: USB EHCI 1.00 Bus usb@1c1d400: USB OHCI 1.0 scanning bus usb@1c1a000 for devices... 1 USB Device(s) found scanning bus usb@1c1a400 for devices... 1 USB Device(s) found scanning bus usb@1c1d000 for devices... EHCI timed out on TD - token=0xd8d80 Device NOT ready Request Sense returned 04 44 81 2 USB Device(s) found scanning bus usb@1c1d400 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Autoboot in 1 seconds The problem does not occur with FriendlyARM's operating system. So it seems to me that the hardware is not at fault ? Have you ever encountered this problem and do you have a solution ? Thanks
  13. hi guys, i'm using NanoPi neo core using a battery and a volt booster. and I want to control the voltage booster to turn off all peripherals to conserve power and prevent battery drainage. I figured there's a PWR-LED pin connected to GPIOL10, which turns off when the system shut down. is there a way to map another GPIO in the same way so i could know when the system has shut down - so it will be safe to cut power off? thank you so much.
  14. Hello. I need to set a low level on a gpio pin PA6 on boot. I'm trying to do this through the device tree: /dts-v1/; /plugin/; / { compatible = "allwinner,sun8i-h3"; fragment@0 { target = <&pio>; __overlay__ { pinctrl-0 = <&pull_pins>; pull_pins:pull_pins { pins = "PA6"; function = "gpio_out"; bias-disable; output-low; }; }; }; }; I need to set PA6 to low. After boot, I see my overlay in device tree, but the level on the PA6 is still high. I can easily control the level through libgpiod (gpioset gpiochip0 6=1 or gpioset gpiochip0 6=0), it works. But I can't set low level at start. Full device tree - https://pastebin.com/dQKSYXjL What am I doing wrong?
  15. Hello all I want to control some GPIO pins on my NanoPi Neo (H3) board and installed WiringNP. Executing commands results in the error piBoardRev: Unable to determine board revision from /proc/cpuinfo I've traced the source of the error down to this line, where WiringNP tries to open /sys/class/sunxi_info/sys_info to determine which board it is running on. This path is not present in my Armbian os. I'm using 4.11.12-sun8i #20 SMP armv7l armv7l armv7l GNU/Linux Am I missing something here? Or are there alternatives to using WiringNP?
  16. Hello, excuse in advance my English which is not my native language. I am electronicien, so i am a Noob on Linux, i prefer the hardware. I'm working on a "NanoPI NEO" and I would like to use an EMMC with an sd slot I drew. Because i kill 3 sd card last years. So i do it, like this i use the chip thgbmjg6c1lbail which is an emmc v5.1 8gO. https://jlcpcb.com/partdetail/Kioxia-THGBMJG6C1LBAIL/C524518 This card works very well on my computer with ubuntu, or my RPI4 with raspbian, but impossible to use it with armbian as well on my nanopi neo or my nanopi M1. as the log on my rpi4 with raspbian pi@raspberrypi:~ $ dmesg | grep mmc [ 1.705326] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0 [ 1.705347] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated [ 1.772023] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA [ 1.831850] mmc1: new high speed SDIO card at address 0001 [ 1.880942] mmc0: new DDR MMC card at address 0001 [ 1.881954] mmcblk0: mmc0:0001 008GB0 7.28 GiB [ 1.885195] mmcblk0: p1 p2 [ 1.885754] mmcblk0: mmc0:0001 008GB0 7.28 GiB [ 1.886297] mmcblk0boot0: mmc0:0001 008GB0 4.00 MiB [ 1.888974] mmcblk0boot1: mmc0:0001 008GB0 4.00 MiB [ 1.891241] mmcblk0rpmb: mmc0:0001 008GB0 4.00 MiB, chardev (242:0) [ 1.923025] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none. [ 4.296326] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null). Quota mode: none. [ 7.851474] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.bin failed with error -2 but with my nano-pi, we can see that the u-boot recognized this emmc (I use armbian 22.08.1 Bullseye with kernel linux 5.17.11-sunxi) U-Boot 2021.10-armbian (Jun 22 2022 - 07:17:54 +0000) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: FriendlyARM NanoPi NEO DRAM: 512 MiB MMC: mmc@1c0f000: 0, mmc@1c11000: 1 Loading Environment from FAT... Unable to use mmc 0:1... In: serial Out: serial Err: serial Net: phy interface0 Error: ethernet@1c30000 address not set. No ethernet found. starting USB... Bus usb@1c1a000: USB EHCI 1.00 Bus usb@1c1a400: USB OHCI 1.0 Bus usb@1c1d000: USB EHCI 1.00 Bus usb@1c1d400: USB OHCI 1.0 scanning bus usb@1c1a000 for devices... 1 USB Device(s) found scanning bus usb@1c1a400 for devices... 1 USB Device(s) found scanning bus usb@1c1d000 for devices... 1 USB Device(s) found scanning bus usb@1c1d400 for devices... 2 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Autoboot in 1 seconds, press <Space> to stop => mmc info Device: mmc@1c0f000 Manufacturer ID: 11 OEM: 100 Name: 008GB Bus Speed: 52000000 Mode: MMC High Speed (52MHz) Rd Block Len: 512 MMC version 5.1 High Capacity: Yes Capacity: 7.3 GiB Bus Width: 4-bit Erase Group Size: 512 KiB HC WP Group Size: 4 MiB User Capacity: 7.3 GiB WRREL Boot Capacity: 4 MiB ENH RPMB Capacity: 4 MiB ENH Boot area 0 is not write protected Boot area 1 is not write protected => but we would say that it blocks when writing to the emmc. [ 8.470442] sunxi-mmc 1c0f000.mmc: data error, sending stop command [ 9.423453] sched: RT throttling activated [ 9.475465] sunxi-mmc 1c0f000.mmc: send stop command failed switch to partitions #0, OK mmc0(part 0) is current device Scanning mmc 0:1... Found U-Boot script /boot/boot.scr 3964 bytes read in 2 ms (1.9 MiB/s) ## Executing script at 43100000 U-boot loaded from SD Boot script loaded from mmc 231 bytes read in 2 ms (112.3 KiB/s) 23183691 bytes read in 960 ms (23 MiB/s) 8394224 bytes read in 348 ms (23 MiB/s) Found mainline kernel configuration 32492 bytes read in 8 ms (3.9 MiB/s) 504 bytes read in 5 ms (97.7 KiB/s) Applying kernel provided DT overlay sun8i-h3-usbhost1.dtbo 504 bytes read in 4 ms (123 KiB/s) Applying kernel provided DT overlay sun8i-h3-usbhost2.dtbo 4185 bytes read in 4 ms (1021.5 KiB/s) Applying kernel provided DT fixup script (sun8i-h3-fixup.scr) ## Executing script at 45000000 Kernel image @ 0x42000000 [ 0x000000 - 0x8015f0 ] ## Loading init Ramdisk from Legacy Image at 43400000 ... Image Name: uInitrd Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 23183627 Bytes = 22.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 489e3000, end 49fff10b ... OK Loading Device Tree to 48972000, end 489e2fff ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.17.11-sunxi (root@1cb3926c6d47) (arm-linux-gnueabihf-gcc (GNU Toolchain f2 [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: FriendlyARM NanoPi NEO [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] cma: Reserved 104 MiB at 0x59400000 [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000040000000-0x000000005fffffff] [ 0.000000] HighMem empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000040000000-0x000000005fffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000005fffffff] [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: Using PSCI v0.1 Function IDs from DT [ 0.000000] percpu: Embedded 16 pages/cpu s36812 r8192 d20532 u65536 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129920 [ 0.000000] Kernel command line: root=UUID=e2fd2840-e65e-4df1-bbb5-1cd3ab3be8ad rootwait rootfstype=e1 [ 0.000000] Unknown kernel command line parameters "ubootpart=f7f5b488-01 ubootsource=mmc sunxi_ve_me. [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off [ 0.000000] Memory: 373348K/524288K available (9216K kernel code, 1495K rwdata, 3396K rodata, 1024K i) [ 0.000000] random: get_random_u32 called from __kmem_cache_create+0x1b/0x2c0 with crng_init=0 [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 44496 entries in 131 pages [ 0.000000] ftrace: allocated 131 pages with 3 groups [ 0.000000] trace event string verifier disabled [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4. [ 0.000000] Rude variant of Tasks RCU enabled. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns [ 0.000003] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.000038] Switching to timer-based delay loop, resolution 41ns [ 0.000531] Console: colour dummy device 80x30 [ 0.000650] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS) [ 0.000687] pid_max: default: 32768 minimum: 301 [ 0.001040] LSM: Security Framework initializing [ 0.001166] Yama: becoming mindful. [ 0.001467] AppArmor: AppArmor initialized [ 0.001682] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.001720] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.003684] CPU: Testing write buffer coherency: ok [ 0.004505] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.005645] cblist_init_generic: Setting adjustable number of callback queues. [ 0.005679] cblist_init_generic: Setting shift to 2 and lim to 1. [ 0.005852] cblist_init_generic: Setting shift to 2 and lim to 1. [ 0.006063] Setting up static identity map for 0x40100000 - 0x40100054 [ 0.006310] rcu: Hierarchical SRCU implementation. [ 0.008646] smp: Bringing up secondary CPUs ... [ 0.020021] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.031605] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002 [ 0.043017] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003 [ 0.043193] smp: Brought up 1 node, 4 CPUs [ 0.043252] SMP: Total of 4 processors activated (192.00 BogoMIPS). [ 0.043275] CPU: All CPU(s) started in HYP mode. [ 0.043288] CPU: Virtualization extensions available. [ 0.044217] allocated 524288 bytes of page_ext [ 0.045309] devtmpfs: initialized [ 0.060336] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 0.060764] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100s [ 0.060866] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.069781] pinctrl core: initialized pinctrl subsystem [ 0.072078] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.079152] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.080419] audit: initializing netlink subsys (disabled) [ 0.080797] audit: type=2000 audit(0.056:1): state=initialized audit_enabled=0 res=1 [ 0.081681] thermal_sys: Registered thermal governor 'fair_share' [ 0.081699] thermal_sys: Registered thermal governor 'bang_bang' [ 0.081720] thermal_sys: Registered thermal governor 'step_wise' [ 0.082531] cpuidle: using governor ladder [ 0.082607] cpuidle: using governor menu [ 0.083748] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.083780] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.094352] platform 1c0c000.lcd-controller: Fixing up cyclic dependency with 1100000.mixer [ 0.138027] cryptd: max_cpu_qlen set to 1000 [ 0.208046] raid6: neonx8 gen() 370 MB/s [ 0.276322] raid6: neonx4 gen() 391 MB/s [ 0.344543] raid6: neonx2 gen() 435 MB/s [ 0.412836] raid6: neonx1 gen() 388 MB/s [ 0.481195] raid6: int32x8 gen() 144 MB/s [ 0.549303] raid6: int32x4 gen() 168 MB/s [ 0.617558] raid6: int32x2 gen() 190 MB/s [ 0.685862] raid6: int32x1 gen() 191 MB/s [ 0.685883] raid6: using algorithm neonx2 gen() 435 MB/s [ 0.754054] raid6: .... xor() 311 MB/s, rmw enabled [ 0.754074] raid6: using neon recovery algorithm [ 0.756675] iommu: Default domain type: Translated [ 0.756703] iommu: DMA domain TLB invalidation policy: strict mode [ 0.757358] SCSI subsystem initialized [ 0.758282] usbcore: registered new interface driver usbfs [ 0.758388] usbcore: registered new interface driver hub [ 0.758476] usbcore: registered new device driver usb [ 0.758667] mc: Linux media interface: v0.10 [ 0.758737] videodev: Linux video capture interface: v2.00 [ 0.758982] pps_core: LinuxPPS API ver. 1 registered [ 0.759001] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.759046] PTP clock support registered [ 0.759986] Advanced Linux Sound Architecture Driver Initialized. [ 0.761595] NetLabel: Initializing [ 0.761621] NetLabel: domain hash size = 128 [ 0.761637] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO [ 0.761817] NetLabel: unlabeled traffic allowed by default [ 0.763495] clocksource: Switched to clocksource arch_sys_counter [ 0.834969] VFS: Disk quotas dquot_6.6.0 [ 0.835166] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.836383] AppArmor: AppArmor Filesystem Enabled [ 1.057554] NET: Registered PF_INET protocol family [ 1.057896] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 1.059615] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear) [ 1.059921] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear) [ 1.060049] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 1.060187] TCP: Hash tables configured (established 4096 bind 4096) [ 1.060424] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 1.060497] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 1.060879] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 1.061564] Trying to unpack rootfs image as initramfs... [ 1.064148] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available [ 1.066526] Initialise system trusted keyrings [ 1.066661] Key type blacklist registered [ 1.067073] workingset: timestamp_bits=14 max_order=17 bucket_order=3 [ 1.079341] zbud: loaded [ 1.083290] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 1.085485] fuse: init (API version 7.36) [ 1.095167] integrity: Platform Keyring initialized [ 1.316216] xor: measuring software checksum speed [ 1.332239] arm4regs : 617 MB/sec [ 1.355288] 8regs : 428 MB/sec [ 1.379727] 32regs : 403 MB/sec [ 1.395503] neon : 626 MB/sec [ 1.395533] xor: using function: neon (626 MB/sec) [ 1.395568] Key type asymmetric registered [ 1.395588] Asymmetric key parser 'x509' registered [ 4.347069] Freeing initrd memory: 22644K [ 4.388727] alg: self-tests for CTR-KDF (hmac(sha256)) passed [ 4.389205] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246) [ 4.389525] io scheduler mq-deadline registered [ 4.389555] io scheduler kyber registered [ 4.390045] io scheduler bfq registered [ 4.414902] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled [ 4.421338] misc dump reg init [ 4.435222] brd: module loaded [ 4.444830] loop: module loaded [ 4.449716] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found [ 4.449759] dwmac-sun8i 1c30000.ethernet: IRQ eth_lpi not found [ 4.449911] dwmac-sun8i 1c30000.ethernet: supply phy not found, using dummy regulator [ 4.450208] dwmac-sun8i 1c30000.ethernet: supply phy-io not found, using dummy regulator [ 4.450565] dwmac-sun8i 1c30000.ethernet: PTP uses main clock [ 4.450640] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 5800) [ 4.451261] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported [ 4.451298] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported [ 4.451319] dwmac-sun8i 1c30000.ethernet: COE Type 2 [ 4.451341] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported [ 4.451363] dwmac-sun8i 1c30000.ethernet: Normal descriptors [ 4.451383] dwmac-sun8i 1c30000.ethernet: Chain mode enabled [ 4.451420] dwmac-sun8i 1c30000.ethernet: device MAC address 62:23:d4:40:79:45 [ 4.454525] dwmac-sun8i 1c30000.ethernet: Found internal PHY node [ 4.455681] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY [ 4.455759] dwmac-sun8i 1c30000.ethernet: Powering internal PHY [ 4.480097] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 4.480198] ehci-platform: EHCI generic platform driver [ 4.480618] ehci-platform 1c1a000.usb: EHCI Host Controller [ 4.480683] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1 [ 4.482025] ehci-platform 1c1a000.usb: irq 36, io mem 0x01c1a000 [ 4.495522] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00 [ 4.496235] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.17 [ 4.496275] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 4.496302] usb usb1: Product: EHCI Host Controller [ 4.496324] usb usb1: Manufacturer: Linux 5.17.11-sunxi ehci_hcd [ 4.496347] usb usb1: SerialNumber: 1c1a000.usb [ 4.497468] hub 1-0:1.0: USB hub found [ 4.497617] hub 1-0:1.0: 1 port detected [ 4.498800] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 4.498851] ohci-platform: OHCI generic platform driver [ 4.499246] ohci-platform 1c1a400.usb: Generic Platform OHCI controller [ 4.499304] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2 [ 4.499842] ohci-platform 1c1a400.usb: irq 37, io mem 0x01c1a400 [ 4.563990] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.17 [ 4.564029] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 4.564056] usb usb2: Product: Generic Platform OHCI controller [ 4.564078] usb usb2: Manufacturer: Linux 5.17.11-sunxi ohci_hcd [ 4.564101] usb usb2: SerialNumber: 1c1a400.usb [ 4.565131] hub 2-0:1.0: USB hub found [ 4.565242] hub 2-0:1.0: 1 port detected [ 4.567270] usbcore: registered new interface driver usb-storage [ 4.569419] sun6i-rtc 1f00000.rtc: registered as rtc0 [ 4.569485] sun6i-rtc 1f00000.rtc: setting system clock to 1970-01-01T00:00:13 UTC (13) [ 4.569754] sun6i-rtc 1f00000.rtc: RTC enabled [ 4.570366] i2c_dev: i2c /dev entries driver [ 4.573219] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0) [ 4.575945] ledtrig-cpu: registered to indicate activity on CPUs [ 4.576848] sun8i-ce 1c15000.crypto: Set mod clock to 50000000 (50 Mhz) from 24000000 (24 Mhz) [ 4.577354] sun8i-ce 1c15000.crypto: will run requests pump with realtime priority [ 4.577994] sun8i-ce 1c15000.crypto: will run requests pump with realtime priority [ 4.578419] sun8i-ce 1c15000.crypto: will run requests pump with realtime priority [ 4.578811] sun8i-ce 1c15000.crypto: will run requests pump with realtime priority [ 4.579140] sun8i-ce 1c15000.crypto: Register cbc(aes) [ 4.579258] sun8i-ce 1c15000.crypto: Register ecb(aes) [ 4.579328] sun8i-ce 1c15000.crypto: Register cbc(des3_ede) [ 4.579369] sun8i-ce 1c15000.crypto: Register ecb(des3_ede) [ 4.579409] sun8i-ce 1c15000.crypto: Register md5 [ 4.579502] sun8i-ce 1c15000.crypto: Register sha1 [ 4.579549] sun8i-ce 1c15000.crypto: Register sha224 [ 4.579590] sun8i-ce 1c15000.crypto: Register sha256 [ 4.579630] sun8i-ce 1c15000.crypto: Register sha384 [ 4.579670] sun8i-ce 1c15000.crypto: Register sha512 [ 4.579710] sun8i-ce 1c15000.crypto: Register stdrng [ 4.579779] sun8i-ce 1c15000.crypto: TRNG not supported [ 4.579801] sun8i-ce 1c15000.crypto: CryptoEngine Die ID 1 [ 4.580555] hid: raw HID events driver (C) Jiri Kosina [ 4.580843] usbcore: registered new interface driver usbhid [ 4.580867] usbhid: USB HID core driver [ 4.589251] Initializing XFRM netlink socket [ 4.590258] NET: Registered PF_INET6 protocol family [ 4.633029] Segment Routing with IPv6 [ 4.633186] In-situ OAM (IOAM) with IPv6 [ 4.633432] NET: Registered PF_PACKET protocol family [ 4.633503] NET: Registered PF_KEY protocol family [ 4.633650] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scr. [ 4.633901] 8021q: 802.1Q VLAN Support v1.8 [ 4.634021] Key type dns_resolver registered [ 4.634934] Registering SWP/SWPB emulation handler [ 4.636341] registered taskstats version 1 [ 4.636385] Loading compiled-in X.509 certificates [ 4.650808] Loaded X.509 cert 'Build time autogenerated kernel key: e62f9518e6442c2de07beea3ec409f9b0' [ 4.658787] zswap: loaded using pool zstd/z3fold [ 4.660130] Key type ._fscrypt registered [ 4.660169] Key type .fscrypt registered [ 4.660184] Key type fscrypt-provisioning registered [ 4.669839] Btrfs loaded, crc32c=crc32c-generic, zoned=no, fsverity=yes [ 4.710303] Key type encrypted registered [ 4.710381] AppArmor: AppArmor sha1 policy hashing enabled [ 4.749871] sun8i-h3-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver [ 4.753318] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver [ 4.753959] sun8i-h3-pinctrl 1c20800.pinctrl: supply vcc-pa not found, using dummy regulator [ 4.755072] printk: console [ttyS0] disabled [ 4.755257] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 49, base_baud = 1500000) is a 16550A [ 6.230025] printk: console [ttyS0] enabled [ 6.241469] sun8i-h3-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator [ 6.241615] sun8i-h3-r-pinctrl 1f02c00.pinctrl: supply vcc-pl not found, using dummy regulator [ 6.242366] sun8i-h3-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator [ 6.268088] leds-gpio: probe of leds failed with error -16 [ 6.275339] sun8i-h3-r-pinctrl 1f02c00.pinctrl: supply vcc-pl not found, using dummy regulator [ 6.279749] sunxi-mmc 1c0f000.mmc: Got CD GPIO [ 6.285295] sun8i-h3-pinctrl 1c20800.pinctrl: supply vcc-pg not found, using dummy regulator [ 6.299970] ehci-platform 1c1b000.usb: EHCI Host Controller [ 6.300185] sunxi-mmc 1c11000.mmc: initialized, max. request size: 16384 KB [ 6.305640] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 3 [ 6.314011] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB [ 6.325320] sunxi-mmc 1c11000.mmc: no support for card's volts [ 6.333172] mmc2: error -22 whilst initialising SDIO card [ 6.339043] ehci-platform 1c1b000.usb: irq 38, io mem 0x01c1b000 [ 6.359504] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00 [ 6.366291] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.17 [ 6.374609] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.381882] usb usb3: Product: EHCI Host Controller [ 6.386794] usb usb3: Manufacturer: Linux 5.17.11-sunxi ehci_hcd [ 6.392853] usb usb3: SerialNumber: 1c1b000.usb [ 6.398519] hub 3-0:1.0: USB hub found [ 6.402413] hub 3-0:1.0: 1 port detected [ 6.408543] ehci-platform 1c1c000.usb: EHCI Host Controller [ 6.414218] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 4 [ 6.422686] ehci-platform 1c1c000.usb: irq 40, io mem 0x01c1c000 [ 6.443518] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00 [ 6.450293] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.17 [ 6.458624] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.465885] usb usb4: Product: EHCI Host Controller [ 6.470796] usb usb4: Manufacturer: Linux 5.17.11-sunxi ehci_hcd [ 6.476833] usb usb4: SerialNumber: 1c1c000.usb [ 6.482446] hub 4-0:1.0: USB hub found [ 6.486334] hub 4-0:1.0: 1 port detected [ 6.492356] ehci-platform 1c1d000.usb: EHCI Host Controller [ 6.498017] ehci-platform 1c1d000.usb: new USB bus registered, assigned bus number 5 [ 6.506534] ehci-platform 1c1d000.usb: irq 42, io mem 0x01c1d000 [ 6.516636] mmc0: new DDR MMC card at address 0001 [ 6.524244] mmcblk0: mmc0:0001 008GB0 7.28 GiB [ 6.527591] ehci-platform 1c1d000.usb: USB 2.0 started, EHCI 1.00 [ 6.535325] mmcblk0: p1 [ 6.535839] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.17 [ 6.540462] mmcblk0boot0: mmc0:0001 008GB0 4.00 MiB [ 6.546236] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.557425] mmcblk0boot1: mmc0:0001 008GB0 4.00 MiB [ 6.558466] usb usb5: Product: EHCI Host Controller [ 6.568361] usb usb5: Manufacturer: Linux 5.17.11-sunxi ehci_hcd [ 6.574417] usb usb5: SerialNumber: 1c1d000.usb [ 6.580256] hub 5-0:1.0: USB hub found [ 6.584180] hub 5-0:1.0: 1 port detected [ 6.590420] ohci-platform 1c1b400.usb: Generic Platform OHCI controller [ 6.597145] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus number 6 [ 6.605518] ohci-platform 1c1b400.usb: irq 39, io mem 0x01c1b400 [ 6.676034] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.17 [ 6.684360] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.691617] usb usb6: Product: Generic Platform OHCI controller [ 6.697567] usb usb6: Manufacturer: Linux 5.17.11-sunxi ohci_hcd [ 6.703603] usb usb6: SerialNumber: 1c1b400.usb [ 6.709242] hub 6-0:1.0: USB hub found [ 6.713133] hub 6-0:1.0: 1 port detected [ 6.719206] ohci-platform 1c1c400.usb: Generic Platform OHCI controller [ 6.725959] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 7 [ 6.734312] ohci-platform 1c1c400.usb: irq 41, io mem 0x01c1c400 [ 6.803992] usb usb7: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.17 [ 6.812319] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.819579] usb usb7: Product: Generic Platform OHCI controller [ 6.825530] usb usb7: Manufacturer: Linux 5.17.11-sunxi ohci_hcd [ 6.831567] usb usb7: SerialNumber: 1c1c400.usb [ 6.837178] hub 7-0:1.0: USB hub found [ 6.841097] hub 7-0:1.0: 1 port detected [ 6.847031] ohci-platform 1c1d400.usb: Generic Platform OHCI controller [ 6.853781] ohci-platform 1c1d400.usb: new USB bus registered, assigned bus number 8 [ 6.862204] ohci-platform 1c1d400.usb: irq 43, io mem 0x01c1d400 [ 6.932003] usb usb8: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.17 [ 6.940326] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.947597] usb usb8: Product: Generic Platform OHCI controller [ 6.953548] usb usb8: Manufacturer: Linux 5.17.11-sunxi ohci_hcd [ 6.959585] usb usb8: SerialNumber: 1c1d400.usb [ 6.965257] hub 8-0:1.0: USB hub found [ 6.969142] hub 8-0:1.0: 1 port detected [ 6.974792] of_cfs_init [ 6.977627] of_cfs_init: OK [ 6.980757] ALSA device list: [ 6.983784] No soundcards found. [ 6.996882] Freeing unused kernel image (initmem) memory: 1024K [ 7.011971] Run /init as init process Loading, please wait... Starting version 247.3-7 [ 7.279556] usb 8-1: new full-speed USB device number 2 using ohci-platform [ 7.526606] usb 8-1: New USB device found, idVendor=0403, idProduct=6001, bcdDevice= 6.00 [ 7.535064] usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 7.542267] usb 8-1: Product: EnOcean USB 300 DB [ 7.546932] usb 8-1: Manufacturer: EnOcean GmbH [ 7.551497] usb 8-1: SerialNumber: FT2LNY6B [ 7.980640] random: fast init done Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems done. Begin: Will now check root file system ... fsck from util-linux 2.36.1 [/sbin/fsck.ext4 (1) -- /dev/mmcblk0p1] fsck.ext4 -a -C0 /dev/mmcblk0p1 armbian_root: recovering journal [ 8.470442] sunxi-mmc 1c0f000.mmc: data error, sending stop command [ 9.423453] sched: RT throttling activated [ 9.475465] sunxi-mmc 1c0f000.mmc: send stop command failed [ 37.879518] vcc3v0: disabling [ 37.882552] vcc5v0: disabling and it's stop I know I did a novel. A big thank you in advance for your help, I've been obsessed with this problem for a month. Thanks a lot Best regard
  17. Guest

    Set Dram Freq 132Mhz

    Hello, I used to set dram freq at 132mhz on previous kernels, how can I do it now ? Linux nanopineo 5.15.48-sunxi #22.05.3 SMP Wed Jun 22 07:35:10 UTC 2022 armv7l armv7l armv7l GNU/Linux
  18. Guest

    USB warm up

    Hello, I have a usb wifi device which works well on nano pi neo 3.4.113-sun8i. I update to the latest ditribution 5.15.48-sunxi jammy, then I rebuild kernel drivers but now it only work on a cold boot and when I hot plug the adapter. On a warm boot the adapter with lsusb is ok but nmcli can't find the device. I have the same problem with another usb wifi adapter (lsmod is ok, but stil not working with "rmmod 8821cu" and then "modprobe 8821cu")
  19. Using a clean install of Armbian 22.02.1 with Linux 5.15.25-sunxi on a NanoPi NEO the green & blue LEDs no longer work. Previously they have worked with both Armbian and DietPi. # uname -a Linux nanopineo 5.15.25-sunxi #22.02.1 SMP Sun Feb 27 09:23:25 UTC 2022 armv7l GNU/Linux # cat /sys/devices/platform/leds/leds/nanopi:green:status/trigger cat: '/sys/devices/platform/leds/leds/nanopi:green:status/trigger': No such file or directory # cat /sys/class/leds/led{0,1}/trigger cat: /sys/class/leds/led0/trigger: No such file or directory cat: /sys/class/leds/led1/trigger: No such file or directory # ls -lha /sys/class/leds/ total 0 drwxr-xr-x 2 root root 0 Dec 31 1969 . drwxr-xr-x 62 root root 0 Dec 31 1969 .. # grep led /var/log/syslog Feb 27 22:38:48 nanopineo kernel: [ 2.532268] leds-gpio: probe of leds failed with error -16 Feb 27 22:38:48 nanopineo kernel: [ 2.534730] ledtrig-cpu: registered to indicate activity on CPUs # locate leds /usr/bin/setleds /usr/include/linux/uleds.h /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds /usr/lib/modules/5.15.25-sunxi/kernel/drivers/input/input-leds.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/flash /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/led-class-flash.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-an30259a.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-axp20x.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-bcm6328.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-bcm6358.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-bd2802.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-cpcap.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-cr0014114.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-dac124s085.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-el15203000.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-is31fl319x.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-is31fl32xx.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-lm3530.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-lm3532.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-lm355x.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-lm3642.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-lm3692x.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-lm3697.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-lp3944.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-lp3952.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-lp5521.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-lp5523.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-lp5562.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-lp55xx-common.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-lp8501.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-lp8860.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-lt3593.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-max77650.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-mlxreg.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-pca9532.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-pca955x.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-pca963x.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-pwm.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-regulator.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-spi-byte.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-tca6507.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-ti-lmu-common.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/leds-tlc591xx.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/trigger /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/flash/leds-as3645a.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/flash/leds-ktd2692.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/flash/leds-lm3601x.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/flash/leds-rt4505.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/flash/leds-rt8515.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/trigger/ledtrig-audio.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/trigger/ledtrig-backlight.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/trigger/ledtrig-camera.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/trigger/ledtrig-gpio.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/trigger/ledtrig-netdev.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/trigger/ledtrig-oneshot.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/trigger/ledtrig-pattern.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/trigger/ledtrig-timer.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/trigger/ledtrig-transient.ko.xz /usr/lib/modules/5.15.25-sunxi/kernel/drivers/leds/trigger/ledtrig-tty.ko.xz /usr/share/X11/xkb/compat/ledscroll /usr/share/man/man1/setleds.1.gz # ls -l /proc/device-tree/leds total 0 -r--r--r-- 1 root root 10 Apr 10 10:35 compatible drwxr-xr-x 2 root root 0 Apr 10 10:30 led-0 drwxr-xr-x 2 root root 0 Apr 10 10:30 led-1 -r--r--r-- 1 root root 5 Apr 10 10:35 name -r--r--r-- 1 root root 8 Apr 10 10:35 pinctrl-0 -r--r--r-- 1 root root 8 Apr 10 10:35 pinctrl-names drwxr-xr-x 2 root root 0 Apr 10 10:30 pwr drwxr-xr-x 2 root root 0 Apr 10 10:30 status # ls -l /proc/device-tree/leds/led-0 total 0 -r--r--r-- 1 root root 16 Apr 10 10:36 gpios -r--r--r-- 1 root root 19 Apr 10 10:36 label -r--r--r-- 1 root root 10 Apr 10 10:36 linux,default-trigger -r--r--r-- 1 root root 6 Apr 10 10:36 name # ls -l /proc/device-tree/leds/led-1 total 0 -r--r--r-- 1 root root 3 Apr 10 10:36 default-state -r--r--r-- 1 root root 16 Apr 10 10:36 gpios -r--r--r-- 1 root root 17 Apr 10 10:36 label -r--r--r-- 1 root root 6 Apr 10 10:36 name # ls -l /proc/device-tree/leds/pwr total 0 -r--r--r-- 1 root root 16 Apr 10 10:37 gpios -r--r--r-- 1 root root 15 Apr 10 10:37 label -r--r--r-- 1 root root 11 Apr 10 10:37 linux,default-trigger -r--r--r-- 1 root root 4 Apr 10 10:37 name # ls -l /proc/device-tree/leds/status total 0 -r--r--r-- 1 root root 16 Apr 10 10:37 gpios -r--r--r-- 1 root root 20 Apr 10 10:37 label -r--r--r-- 1 root root 10 Apr 10 10:37 linux,default-trigger -r--r--r-- 1 root root 7 Apr 10 10:37 name # cat /proc/device-tree/leds/led-0/gpios <nothing> # cat /proc/device-tree/leds/led-0/label nanopi:blue:status # cat /proc/device-tree/leds/led-0/linux,default-trigger heartbeat # cat /proc/device-tree/leds/led-0/name led-0 # cat /proc/device-tree/leds/led-1/default-state on # cat /proc/device-tree/leds/led-1/gpios 9 # cat /proc/device-tree/leds/led-1/label nanopi:green:pwr # cat /proc/device-tree/leds/led-1/name led-1 # cat /proc/device-tree/leds/pwr/gpios 9 # cat /proc/device-tree/leds/pwr/label nanopi:red:pwr # cat /proc/device-tree/leds/pwr/linux,default-trigger default-on # cat /proc/device-tree/leds/pwr/name pwr # cat /proc/device-tree/leds/status/gpios <nothing> # cat /proc/device-tree/leds/status/label nanopi:green:status # cat /proc/device-tree/leds/status/linux,default-trigger heartbeat # cat /proc/device-tree/leds/status/name status In the armbian-config .dts editor I found that led-0 and led-1 are reversed from what I found above. led-0 is blue and led-1 is green. I don't know if that's a show stopper or not. --- current.dts > edit not saved, kept original --- 1463 leds { 1464 compatible = "gpio-leds"; 1465 1466 led-0 { 1467 label = "nanopi:green:pwr"; 1468 gpios = <0x3f 0x00 0x0a 0x00>; 1469 default-state = "on"; 1470 }; 1471 1472 led-1 { 1473 label = "nanopi:blue:status"; 1474 gpios = <0x0e 0x00 0x0a 0x00>; 1475 linux,default-trigger = "heartbeat"; 1476 }; 1477 }; The config-5.15.25-sunxi file shows; # # LED Triggers # CONFIG_LEDS_TRIGGERS=y CONFIG_LEDS_TRIGGER_TIMER=m CONFIG_LEDS_TRIGGER_ONESHOT=m CONFIG_LEDS_TRIGGER_DISK=y CONFIG_LEDS_TRIGGER_MTD=y CONFIG_LEDS_TRIGGER_HEARTBEAT=y CONFIG_LEDS_TRIGGER_BACKLIGHT=m CONFIG_LEDS_TRIGGER_CPU=y CONFIG_LEDS_TRIGGER_ACTIVITY=y CONFIG_LEDS_TRIGGER_GPIO=m CONFIG_LEDS_TRIGGER_DEFAULT_ON=y I booted with a previous version of DietPi and the LEDs were working as before. It looks like everything needed is there and the correct default trigger is shown etc, I'm not sure where to look next.
  20. Hi guys, I am new here. I bought a NanoPi Neo (H3). I am new to Armbian, but not new to Debian. The NanoHat OLED works fine with UbuntuCore 16.04 and kernel 4.14. Now I installed a new microSD card with latest Armbian Bullseye. But the NanoHat doesn't work. Armbian is up-to-date: uname -a Linux nanopineo 5.15.48-sunxi #22.05.3 SMP Wed Jun 22 07:35:10 UTC 2022 armv7l GNU/Linux cat /proc/cpuinfo processor : 0 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 48.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 processor : 1 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 48.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 processor : 2 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 48.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 processor : 3 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 48.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 Hardware : Allwinner sun8i Family Revision : 0000 Serial : 02c000816978def6 I followed the installation instructions: here for Armbian Stretch and it didn't work. After that I tried the installation instructions for Armbian Buster, but it also doesn't work. In both cases the NanoPi rebooted automatically and I didn't see any issues while the script was executed. sudo -H ./install-compat.sh <master> We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. [sudo] password for xxxxxxx: Welcome to NanoHatOLED Installer. Requirements: 1) Must be connected to the internet 2) This script must be run as root user Steps: Installs package dependencies: - python3 interactive high-level object-oriented language, python3 version - BakeBit an open source platform for connecting BakeBit Sensors to the Pi Checking Internet Connectivity... ================================= Connected Checking User ID... =================== root Checking for Updates... ======================= Hit:1 http://deb.debian.org/debian bullseye InRelease Get:2 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB] Get:3 http://deb.debian.org/debian bullseye-backports InRelease [44.2 kB] Get:4 http://security.debian.org bullseye-security InRelease [44.1 kB] Hit:6 https://itai-nelken.github.io/weekly-box86-debs/debian InRelease Hit:7 http://deb.volian.org/volian scar InRelease Hit:5 http://mirrors.dotsrc.org/armbian-apt bullseye InRelease Get:8 http://security.debian.org bullseye-security/main armhf Packages [205 kB] Fetched 333 kB in 5s (64.8 kB/s) Reading package lists... Done Installing Dependencies ======================= Reading package lists... Done Building dependency tree... Done Reading state information... Done gcc is already the newest version (4:10.2.1-1). gcc set to manually installed. python3 is already the newest version (3.9.2-3). python3 set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. Dependencies installed Compiling with GCC ... ======================= Compiled NanoHatOLED Make NanoHatOLED autostart. Submodule 'BakeBit' (https://github.com/friendlyarm/BakeBit) registered for path 'BakeBit' Cloning into '/home/xxxxxxx/NanoHatOLED/BakeBit'... Submodule path 'BakeBit': checked out 'e563636db54d50769d7feab2ecac8d94f9566a78' Welcome to BakeBit Installer. Requirements: 1) Must be connected to the internet 2) This script must be run as root user Steps: Installs package dependencies: - i2c-tools This Python module allows SMBus access through the I2C /dev - libi2c-dev userspace I2C programming library development files - minicom friendly menu driven serial communication program - git fast, scalable, distributed revision control system - python3 interactive high-level object-oriented language, Python3 version - python3-dev header files and a static library for Python3 - python3-pip alternative Python3 package installer - python3-serial pyserial - module encapsulating access for the serial port - python3-psutil a cross-platform process and system utilities module for Python3 - python3-pil Python Imaging Library (Python3) - WiringNP a GPIO access library for NanoPi NEO/NEO2 NanoPi will reboot after completion. Checking Internet Connectivity... ================================= Connected Checking User ID... =================== Checking for Updates... ======================= Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://security.debian.org bullseye-security InRelease Hit:3 http://deb.debian.org/debian bullseye-updates InRelease Hit:4 http://deb.debian.org/debian bullseye-backports InRelease Hit:6 https://itai-nelken.github.io/weekly-box86-debs/debian InRelease Hit:7 http://deb.volian.org/volian scar InRelease Hit:5 http://mirrors.dotsrc.org/armbian-apt bullseye InRelease Reading package lists... Done Installing Dependencies ======================= Reading package lists... Done Building dependency tree... Done Reading state information... Done git is already the newest version (1:2.30.2-1). i2c-tools is already the newest version (4.2-1+b1). Recommended packages: lrzsz The following NEW packages will be installed: libi2c-dev minicom 0 upgraded, 2 newly installed, 0 to remove and 12 not upgraded. Need to get 291 kB of archives. After this operation, 1,029 kB of additional disk space will be used. Get:1 http://deb.debian.org/debian bullseye/main armhf libi2c-dev armhf 4.2-1+b1 [13.0 kB] Get:2 http://deb.debian.org/debian bullseye/main armhf minicom armhf 2.8-2 [278 kB] Fetched 291 kB in 0s (2,303 kB/s) Selecting previously unselected package libi2c-dev. (Reading database ... 40826 files and directories currently installed.) Preparing to unpack .../libi2c-dev_4.2-1+b1_armhf.deb ... Unpacking libi2c-dev (4.2-1+b1) ... Selecting previously unselected package minicom. Preparing to unpack .../minicom_2.8-2_armhf.deb ... Unpacking minicom (2.8-2) ... Setting up libi2c-dev (4.2-1+b1) ... Setting up minicom (2.8-2) ... Processing triggers for man-db (2.9.4-2) ... Reading package lists... Done Building dependency tree... Done Reading state information... Done python3 is already the newest version (3.9.2-3). The following additional packages will be installed: libdeflate0 libexpat1-dev libfreetype6 libimagequant0 libjbig0 libjpeg62-turbo libjs-jquery libjs-sphinxdoc libjs-underscore liblcms2-2 libpython3-dev libpython3.9 libpython3.9-dev libtiff5 libwebp6 libwebpdemux2 libwebpmux3 libxau6 libxcb1 libxdmcp6 mailcap mime-support python-pip-whl python3-setuptools python3-wheel python3.9-dev zlib1g-dev Suggested packages: liblcms2-utils python-pil-doc python3-pil-dbg python-psutil-doc python3-wxgtk3.0 | python3-wxgtk python-setuptools-doc Recommended packages: javascript-common python3-olefile The following NEW packages will be installed: libdeflate0 libexpat1-dev libfreetype6 libimagequant0 libjbig0 libjpeg62-turbo libjs-jquery libjs-sphinxdoc libjs-underscore liblcms2-2 libpython3-dev libpython3.9 libpython3.9-dev libtiff5 libwebp6 libwebpdemux2 libwebpmux3 libxau6 libxcb1 libxdmcp6 mailcap mime-support python-pip-whl python3-dev python3-pil python3-pip python3-psutil python3-serial python3-setuptools python3-wheel python3.9-dev zlib1g-dev 0 upgraded, 32 newly installed, 0 to remove and 12 not upgraded. Need to get 11.0 MB of archives. After this operation, 30.4 MB of additional disk space will be used. Get:1 http://deb.debian.org/debian bullseye/main armhf mailcap all 3.69 [31.7 kB] Get:2 http://security.debian.org bullseye-security/main armhf libtiff5 armhf 4.2.0-1+deb11u1 [272 kB] Get:3 http://deb.debian.org/debian bullseye/main armhf mime-support all 3.66 [10.9 kB] Get:4 http://deb.debian.org/debian bullseye/main armhf libdeflate0 armhf 1.7-1 [43.1 kB] Get:5 http://deb.debian.org/debian bullseye/main armhf libexpat1-dev armhf 2.2.10-2+deb11u3 [126 kB] Get:6 http://security.debian.org bullseye-security/main armhf zlib1g-dev armhf 1:1.2.11.dfsg-2+deb11u1 [184 kB] Get:7 http://deb.debian.org/debian bullseye/main armhf libfreetype6 armhf 2.10.4+dfsg-1 [357 kB] Get:8 http://deb.debian.org/debian bullseye/main armhf libimagequant0 armhf 2.12.2-1.1 [27.2 kB] Get:9 http://deb.debian.org/debian bullseye/main armhf libjbig0 armhf 2.1-3.1+b2 [28.4 kB] Get:10 http://deb.debian.org/debian bullseye/main armhf libjpeg62-turbo armhf 1:2.0.6-4 [123 kB] Get:11 http://deb.debian.org/debian bullseye/main armhf libjs-jquery all 3.5.1+dfsg+~3.5.5-7 [315 kB] Get:12 http://deb.debian.org/debian bullseye/main armhf libjs-underscore all 1.9.1~dfsg-3 [100 kB] Get:13 http://deb.debian.org/debian bullseye/main armhf libjs-sphinxdoc all 3.4.3-2 [127 kB] Get:14 http://deb.debian.org/debian bullseye/main armhf liblcms2-2 armhf 2.12~rc1-2 [123 kB] Get:15 http://deb.debian.org/debian bullseye/main armhf libpython3.9 armhf 3.9.2-1 [1,447 kB] Get:16 http://deb.debian.org/debian bullseye/main armhf libpython3.9-dev armhf 3.9.2-1 [3,160 kB] Get:17 http://deb.debian.org/debian bullseye/main armhf libpython3-dev armhf 3.9.2-3 [21.7 kB] Get:18 http://deb.debian.org/debian bullseye/main armhf libwebp6 armhf 0.6.1-2.1 [226 kB] Get:19 http://deb.debian.org/debian bullseye/main armhf libwebpdemux2 armhf 0.6.1-2.1 [86.7 kB] Get:20 http://deb.debian.org/debian bullseye/main armhf libwebpmux3 armhf 0.6.1-2.1 [94.2 kB] Get:21 http://deb.debian.org/debian bullseye/main armhf libxau6 armhf 1:1.0.9-1 [19.0 kB] Get:22 http://deb.debian.org/debian bullseye/main armhf libxdmcp6 armhf 1:1.1.2-3 [24.9 kB] Get:23 http://deb.debian.org/debian bullseye/main armhf libxcb1 armhf 1.14-3 [136 kB] Get:24 http://deb.debian.org/debian bullseye/main armhf python-pip-whl all 20.3.4-4+deb11u1 [1,948 kB] Get:25 http://deb.debian.org/debian bullseye/main armhf python3.9-dev armhf 3.9.2-1 [515 kB] Get:26 http://deb.debian.org/debian bullseye/main armhf python3-dev armhf 3.9.2-3 [24.8 kB] Get:27 http://deb.debian.org/debian bullseye/main armhf python3-pil armhf 8.1.2+dfsg-0.3+deb11u1 [414 kB] Get:28 http://deb.debian.org/debian bullseye/main armhf python3-setuptools all 52.0.0-4 [366 kB] Get:29 http://deb.debian.org/debian bullseye/main armhf python3-wheel all 0.34.2-1 [24.0 kB] Get:30 http://deb.debian.org/debian bullseye/main armhf python3-pip all 20.3.4-4+deb11u1 [337 kB] Get:31 http://deb.debian.org/debian bullseye/main armhf python3-psutil armhf 5.8.0-1 [183 kB] Get:32 http://deb.debian.org/debian bullseye/main armhf python3-serial all 3.5~b0-1 [88.8 kB] Fetched 11.0 MB in 1s (8,095 kB/s) Extracting templates from packages: 100% Selecting previously unselected package mailcap. (Reading database ... 40912 files and directories currently installed.) Preparing to unpack .../00-mailcap_3.69_all.deb ... Unpacking mailcap (3.69) ... Selecting previously unselected package mime-support. Preparing to unpack .../01-mime-support_3.66_all.deb ... Unpacking mime-support (3.66) ... Selecting previously unselected package libdeflate0:armhf. Preparing to unpack .../02-libdeflate0_1.7-1_armhf.deb ... Unpacking libdeflate0:armhf (1.7-1) ... Selecting previously unselected package libexpat1-dev:armhf. Preparing to unpack .../03-libexpat1-dev_2.2.10-2+deb11u3_armhf.deb ... Unpacking libexpat1-dev:armhf (2.2.10-2+deb11u3) ... Selecting previously unselected package libfreetype6:armhf. Preparing to unpack .../04-libfreetype6_2.10.4+dfsg-1_armhf.deb ... Unpacking libfreetype6:armhf (2.10.4+dfsg-1) ... Selecting previously unselected package libimagequant0:armhf. Preparing to unpack .../05-libimagequant0_2.12.2-1.1_armhf.deb ... Unpacking libimagequant0:armhf (2.12.2-1.1) ... Selecting previously unselected package libjbig0:armhf. Preparing to unpack .../06-libjbig0_2.1-3.1+b2_armhf.deb ... Unpacking libjbig0:armhf (2.1-3.1+b2) ... Selecting previously unselected package libjpeg62-turbo:armhf. Preparing to unpack .../07-libjpeg62-turbo_1%3a2.0.6-4_armhf.deb ... Unpacking libjpeg62-turbo:armhf (1:2.0.6-4) ... Selecting previously unselected package libjs-jquery. Preparing to unpack .../08-libjs-jquery_3.5.1+dfsg+~3.5.5-7_all.deb ... Unpacking libjs-jquery (3.5.1+dfsg+~3.5.5-7) ... Selecting previously unselected package libjs-underscore. Preparing to unpack .../09-libjs-underscore_1.9.1~dfsg-3_all.deb ... Unpacking libjs-underscore (1.9.1~dfsg-3) ... Selecting previously unselected package libjs-sphinxdoc. Preparing to unpack .../10-libjs-sphinxdoc_3.4.3-2_all.deb ... Unpacking libjs-sphinxdoc (3.4.3-2) ... Selecting previously unselected package liblcms2-2:armhf. Preparing to unpack .../11-liblcms2-2_2.12~rc1-2_armhf.deb ... Unpacking liblcms2-2:armhf (2.12~rc1-2) ... Selecting previously unselected package libpython3.9:armhf. Preparing to unpack .../12-libpython3.9_3.9.2-1_armhf.deb ... Unpacking libpython3.9:armhf (3.9.2-1) ... Selecting previously unselected package libpython3.9-dev:armhf. Preparing to unpack .../13-libpython3.9-dev_3.9.2-1_armhf.deb ... Unpacking libpython3.9-dev:armhf (3.9.2-1) ... Selecting previously unselected package libpython3-dev:armhf. Preparing to unpack .../14-libpython3-dev_3.9.2-3_armhf.deb ... Unpacking libpython3-dev:armhf (3.9.2-3) ... Selecting previously unselected package libwebp6:armhf. Preparing to unpack .../15-libwebp6_0.6.1-2.1_armhf.deb ... Unpacking libwebp6:armhf (0.6.1-2.1) ... Selecting previously unselected package libtiff5:armhf. Preparing to unpack .../16-libtiff5_4.2.0-1+deb11u1_armhf.deb ... Unpacking libtiff5:armhf (4.2.0-1+deb11u1) ... Selecting previously unselected package libwebpdemux2:armhf. Preparing to unpack .../17-libwebpdemux2_0.6.1-2.1_armhf.deb ... Unpacking libwebpdemux2:armhf (0.6.1-2.1) ... Selecting previously unselected package libwebpmux3:armhf. Preparing to unpack .../18-libwebpmux3_0.6.1-2.1_armhf.deb ... Unpacking libwebpmux3:armhf (0.6.1-2.1) ... Selecting previously unselected package libxau6:armhf. Preparing to unpack .../19-libxau6_1%3a1.0.9-1_armhf.deb ... Unpacking libxau6:armhf (1:1.0.9-1) ... Selecting previously unselected package libxdmcp6:armhf. Preparing to unpack .../20-libxdmcp6_1%3a1.1.2-3_armhf.deb ... Unpacking libxdmcp6:armhf (1:1.1.2-3) ... Selecting previously unselected package libxcb1:armhf. Preparing to unpack .../21-libxcb1_1.14-3_armhf.deb ... Unpacking libxcb1:armhf (1.14-3) ... Selecting previously unselected package python-pip-whl. Preparing to unpack .../22-python-pip-whl_20.3.4-4+deb11u1_all.deb ... Unpacking python-pip-whl (20.3.4-4+deb11u1) ... Selecting previously unselected package zlib1g-dev:armhf. Preparing to unpack .../23-zlib1g-dev_1%3a1.2.11.dfsg-2+deb11u1_armhf.deb ... Unpacking zlib1g-dev:armhf (1:1.2.11.dfsg-2+deb11u1) ... Selecting previously unselected package python3.9-dev. Preparing to unpack .../24-python3.9-dev_3.9.2-1_armhf.deb ... Unpacking python3.9-dev (3.9.2-1) ... Selecting previously unselected package python3-dev. Preparing to unpack .../25-python3-dev_3.9.2-3_armhf.deb ... Unpacking python3-dev (3.9.2-3) ... Selecting previously unselected package python3-pil:armhf. Preparing to unpack .../26-python3-pil_8.1.2+dfsg-0.3+deb11u1_armhf.deb ... Unpacking python3-pil:armhf (8.1.2+dfsg-0.3+deb11u1) ... Selecting previously unselected package python3-setuptools. Preparing to unpack .../27-python3-setuptools_52.0.0-4_all.deb ... Unpacking python3-setuptools (52.0.0-4) ... Selecting previously unselected package python3-wheel. Preparing to unpack .../28-python3-wheel_0.34.2-1_all.deb ... Unpacking python3-wheel (0.34.2-1) ... Selecting previously unselected package python3-pip. Preparing to unpack .../29-python3-pip_20.3.4-4+deb11u1_all.deb ... Unpacking python3-pip (20.3.4-4+deb11u1) ... Selecting previously unselected package python3-psutil. Preparing to unpack .../30-python3-psutil_5.8.0-1_armhf.deb ... Unpacking python3-psutil (5.8.0-1) ... Selecting previously unselected package python3-serial. Preparing to unpack .../31-python3-serial_3.5~b0-1_all.deb ... Unpacking python3-serial (3.5~b0-1) ... Setting up liblcms2-2:armhf (2.12~rc1-2) ... Setting up libxau6:armhf (1:1.0.9-1) ... Setting up libxdmcp6:armhf (1:1.1.2-3) ... Setting up libxcb1:armhf (1.14-3) ... Setting up python3-setuptools (52.0.0-4) ... Setting up libdeflate0:armhf (1.7-1) ... Setting up python3-wheel (0.34.2-1) ... Setting up libjbig0:armhf (2.1-3.1+b2) ... Setting up python3-psutil (5.8.0-1) ... Setting up python3-serial (3.5~b0-1) ... Setting up libpython3.9:armhf (3.9.2-1) ... Setting up libexpat1-dev:armhf (2.2.10-2+deb11u3) ... Setting up libjpeg62-turbo:armhf (1:2.0.6-4) ... Setting up libfreetype6:armhf (2.10.4+dfsg-1) ... Setting up libimagequant0:armhf (2.12.2-1.1) ... Setting up libwebp6:armhf (0.6.1-2.1) ... Setting up zlib1g-dev:armhf (1:1.2.11.dfsg-2+deb11u1) ... Setting up python-pip-whl (20.3.4-4+deb11u1) ... Setting up libtiff5:armhf (4.2.0-1+deb11u1) ... Setting up libjs-jquery (3.5.1+dfsg+~3.5.5-7) ... Setting up libwebpmux3:armhf (0.6.1-2.1) ... Setting up mailcap (3.69) ... Setting up libjs-underscore (1.9.1~dfsg-3) ... Setting up mime-support (3.66) ... Setting up libwebpdemux2:armhf (0.6.1-2.1) ... Setting up libpython3.9-dev:armhf (3.9.2-1) ... Setting up python3-pil:armhf (8.1.2+dfsg-0.3+deb11u1) ... Setting up python3-pip (20.3.4-4+deb11u1) ... Setting up libjs-sphinxdoc (3.4.3-2) ... Setting up python3.9-dev (3.9.2-1) ... Setting up libpython3-dev:armhf (3.9.2-3) ... Setting up python3-dev (3.9.2-3) ... Processing triggers for man-db (2.9.4-2) ... Processing triggers for libc-bin (2.31-13+deb11u3) ... Collecting smbus Downloading smbus-1.1.post2.tar.gz (104 kB) |████████████████████████████████| 104 kB 3.9 MB/s Building wheels for collected packages: smbus Building wheel for smbus (setup.py) ... done Created wheel for smbus: filename=smbus-1.1.post2-cp39-cp39-linux_armv7l.whl size=39067 sha256=a5dcd18670a0b7054728f963224ad8db4e975d079556266cad9d6c6491f1307c Stored in directory: /root/.cache/pip/wheels/27/6b/5f/d61caec49a6f3347a083b3e43fa397c353e086e081029f174d Successfully built smbus Installing collected packages: smbus Successfully installed smbus-1.1.post2 Collecting RPi.GPIO Downloading RPi.GPIO-0.7.1.tar.gz (29 kB) Building wheels for collected packages: RPi.GPIO Building wheel for RPi.GPIO (setup.py) ... done Created wheel for RPi.GPIO: filename=RPi.GPIO-0.7.1-cp39-cp39-linux_armv7l.whl size=68586 sha256=462588a0c4dfeaadec42e809fcb64608b9faaa4b4f3e06308c9523587b51d4d9 Stored in directory: /root/.cache/pip/wheels/b4/65/39/789a186465c4823ffa930b950af77c86f1494adf1d8e21ac1a Successfully built RPi.GPIO Installing collected packages: RPi.GPIO Successfully installed RPi.GPIO-0.7.1 Dependencies installed Installing WiringNP... ======================= Cloning into 'WiringNP'... remote: Enumerating objects: 167, done. remote: Counting objects: 100% (167/167), done. remote: Compressing objects: 100% (92/92), done. remote: Total 167 (delta 79), reused 150 (delta 75), pack-reused 0 Receiving objects: 100% (167/167), 186.23 KiB | 2.70 MiB/s, done. Resolving deltas: 100% (79/79), done. /home/xxxxxxx/NanoHatOLED/BakeBit/WiringNP /home/xxxxxxx/NanoHatOLED/BakeBit hint: Pulling without specifying how to reconcile divergent branches is hint: discouraged. You can squelch this message by running one of the following hint: commands sometime before your next pull: hint: hint: git config pull.rebase false # merge (the default strategy) hint: git config pull.rebase true # rebase hint: git config pull.ff only # fast-forward only hint: hint: You can replace "git config" with "git config --global" to set a default hint: preference for all repositories. You can also pass --rebase, --no-rebase, hint: or --ff-only on the command line to override the configured default per hint: invocation. Already up to date. wiringPi Build script ===================== WiringPi Library [UnInstall] [Compile] wiringPi.c [Compile] wiringSerial.c [Compile] wiringShift.c [Compile] piHiPri.c [Compile] piThread.c [Compile] wiringPiSPI.c wiringPi.c: In function ‘waitForInterrupt’: wiringPi.c:2476:9: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 2476 | return; | ^~~~~~ wiringPi.c:2469:5: note: declared here 2469 | int waitForInterrupt(int pin, int mS) { | ^~~~~~~~~~~~~~~~ [Compile] wiringPiI2C.c [Compile] softPwm.c [Compile] softTone.c [Compile] softServo.c [Compile] mcp23008.c [Compile] mcp23016.c [Compile] mcp23017.c [Compile] mcp23s08.c [Compile] mcp23s17.c [Compile] sr595.c [Compile] pcf8574.c [Compile] pcf8591.c [Compile] mcp3002.c [Compile] mcp3004.c [Compile] mcp4802.c [Compile] mcp3422.c [Compile] max31855.c [Compile] max5322.c [Compile] sn3218.c [Compile] drcSerial.c [Compile] boardtype_friendlyelec.c boardtype_friendlyelec.c: In function ‘getFieldValueInCpuInfo’: boardtype_friendlyelec.c:138:44: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 138 | GetKeyValue(isGotHardware, p, "Hardware", hardware, hardwareMaxLen); | ^ boardtype_friendlyelec.c:127:25: note: in definition of macro ‘GetKeyValue’ 127 | if (valP=strtok(line2, ":")) { \ | ^~~~ boardtype_friendlyelec.c:138:44: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 138 | GetKeyValue(isGotHardware, p, "Hardware", hardware, hardwareMaxLen); | ^ boardtype_friendlyelec.c:129:33: note: in definition of macro ‘GetKeyValue’ 129 | if (valP=strtok(0, ":")) { \ | ^~~~ boardtype_friendlyelec.c:139:44: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 139 | GetKeyValue(isGotRevision, p2, "Revision", revision, revisionMaxLen); | ^~ boardtype_friendlyelec.c:127:25: note: in definition of macro ‘GetKeyValue’ 127 | if (valP=strtok(line2, ":")) { \ | ^~~~ boardtype_friendlyelec.c:139:44: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 139 | GetKeyValue(isGotRevision, p2, "Revision", revision, revisionMaxLen); | ^~ boardtype_friendlyelec.c:129:33: note: in definition of macro ‘GetKeyValue’ 129 | if (valP=strtok(0, ":")) { \ | ^~~~ boardtype_friendlyelec.c: In function ‘getAllwinnerBoardID’: boardtype_friendlyelec.c:183:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 183 | if (p = strtok(line, ":")) { | ^ boardtype_friendlyelec.c:186:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 186 | if (p = strtok(0, ":")) { | ^ boardtype_friendlyelec.c: In function ‘getBoardType’: boardtype_friendlyelec.c:278:27: warning: ‘%s’ directive writing up to 254 bytes into a region of size 253 [-Wformat-overflow=] 278 | sprintf(revision2, "0x%s", revision); | ^~ ~~~~~~~~ boardtype_friendlyelec.c:278:5: note: ‘sprintf’ output between 3 and 257 bytes into a destination of size 255 278 | sprintf(revision2, "0x%s", revision); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Link (Dynamic)] [Install Headers] [Install Dynamic Lib] WiringPi Devices Library [UnInstall] [Compile] ds1302.c [Compile] maxdetect.c [Compile] piNes.c [Compile] gertboard.c [Compile] piFace.c [Compile] lcd128x64.c [Compile] lcd.c [Compile] piGlow.c [Link (Dynamic)] [Install Headers] [Install Dynamic Lib] GPIO Utility [Compile] gpio.c [Compile] extensions.c [Compile] readall.c [Compile] pins.c readall.c: In function ‘readallPhys’: readall.c:649:16: warning: implicit declaration of function ‘getAltSilence’ [-Wimplicit-function-declaration] 649 | int alt = getAltSilence (pin); | ^~~~~~~~~~~~~ readall.c:656:23: warning: implicit declaration of function ‘digitalReadSilence’ [-Wimplicit-function-declaration] 656 | printf (" | %d", digitalReadSilence (pin)) ; | ^~~~~~~~~~~~~~~~~~ [Link] [Install] All Done. NOTE: To compile programs with wiringNP, you need to add: -lwiringPi to your compile line(s). /home/xxxxxxx/NanoHatOLED/BakeBit WiringNP Installed Adding user `root' to group `i2c' ... Adding user root to group i2c Done. Making libraries global... ========================== Please restart to implement changes! _____ ______ _____ _______ _____ _______ | __ \| ____|/ ____|__ __|/\ | __ \__ __| | |__) | |__ | (___ | | / \ | |__) | | | | _ /| __| \___ \ | | / /\ \ | _ / | | | | \ \| |____ ____) | | |/ ____ \| | \ \ | | |_| \_\______|_____/ |_/_/ \_\_| \_\ |_| Please restart to implement changes! To Restart type sudo reboot To finish changes, we will reboot the Pi. Pi must reboot for changes and updates to take effect. If you need to abort the reboot, press Ctrl+C. Otherwise, reboot! Rebooting in 5 seconds! Rebooting in 4 seconds! Rebooting in 3 seconds! Rebooting in 2 seconds! Rebooting in 1 seconds! Rebooting now! Connection to x.x.x.x closed by remote host. Connection to x.x.x. closed. The OLED stays black. I don't know, if the following information is relevant: gpio readall piBoardRev: Unable to determine board revision from /proc/cpuinfo -> Is not NanoPi based board. -> You may want to check: -> http://www.lemaker.org/ open /sys/class/sunxi_info/sys_info failed.# Pressing the 3 buttons/knobs looks good: cat /tmp/nanohat-oled.log k1 events: 0 k2 events: 0 k3 events: 0 k1 events: 0 k2 events: 0 k3 events: 0 The more often I press the knobs, the more events I see here: cat /tmp/nanohat-oled.log k1 events: 0 k2 events: 0 k3 events: 0 k3 events: 1 found pid 569 found pid 686 found python pid: 569 found python pid: 686 k2 events: 1 k1 events: 1 k2 events: 1 k1 events: 1 k2 events: 1 k3 events: 1 This at least in my opinion also looks good: ls -l /sys/class/gpio total 0 --w--w---- 1 root dialout 4096 Jul 5 00:51 export lrwxrwxrwx 1 root root 0 Jul 5 00:48 gpio0 -> ../../devices/platform/soc/1c20800.pinctrl/gpiochip0/gpio/gpio0 lrwxrwxrwx 1 root root 0 Jul 5 00:48 gpio2 -> ../../devices/platform/soc/1c20800.pinctrl/gpiochip0/gpio/gpio2 lrwxrwxrwx 1 root root 0 Jul 5 00:48 gpio3 -> ../../devices/platform/soc/1c20800.pinctrl/gpiochip0/gpio/gpio3 lrwxrwxrwx 1 root root 0 Jul 5 00:48 gpiochip0 -> ../../devices/platform/soc/1c20800.pinctrl/gpio/gpiochip0 lrwxrwxrwx 1 root root 0 Jul 5 00:48 gpiochip352 -> ../../devices/platform/soc/1f02c00.pinctrl/gpio/gpiochip352 --w--w---- 1 root dialout 4096 Jul 5 00:48 unexport So the buttons work, but the display stays black. What can I do to analyse the issue? Any idea? What am I missing? Thanks Hoppel
  21. Hi all. I understand, maybe my board Nanopi Neo CORE is not supported on the forum, but maybe someone will tell me how to write dts correctly # uname -a Linux NanoPi-NEO-Core 4.14.111 #126 SMP Mon Feb 22 17:04:18 CST 2021 armv7l armv7l armv7l GNU/Linux I compiled and installed ffmpeg with Cedrus H264 and cedar_ve.ko After that I see # dmesg | grep cedar [ 4.982170] cedar_ve: loading out-of-tree module taints kernel. [ 4.988972] sunxi cedar version 0.1 I'm trying to edit and compile /boot/sun8i-h3-nanopi-neo-core.dts using sun8i-h3-nanopi-neo-air.dts First I change before soc reserved-memory { #address-cells = <0x01>; #size-cells = <0x01>; ranges; cma@43c00000 { compatible = "shared-dma-pool"; reusable; reg = < 0x57c00000 0x6000000 >; linux,cma-default; phandle = < 0x84 >; }; }; and change in soc video-engine@01c0e000 { compatible = "allwinner,sunxi-cedar-ve"; reg = < 0x1c0e000 0x1000 0x1c00000 0x10 0x1c20000 0x800 >; memory-region = < 0x84 >; syscon = < 0x15 >; clocks = < 0x03 0x29 0x03 0x6c 0x03 0x61 >; clock-names = "ahb", "mod", "ram"; resets = < 0x03 0x1a >; interrupts = < 0x00 0x3a 0x04 >; status = "okay"; }; after that I get # dmesg | grep cedar [ 4.944911] cedar_ve: loading out-of-tree module taints kernel. [ 4.951697] sunxi cedar version 0.1 [ 4.955629] [cedar]: install start!!! [ 4.959521] cedar_ve: cedar-ve the get irq is 55 [ 4.964193] sunxi-cedar 1c0e000.video-engine: assigned reserved memory node cma@43c00000 [ 4.972512] sunxi-cedar 1c0e000.video-engine: syscon failed... [ 4.998164] sunxi-cedar 1c0e000.video-engine: failed to get ahb clock then I change and the board is no longer loaded syscon@1c00000 { compatible = "allwinner,sun8i-h3-system-controller", "syscon"; reg = < 0x1c00000 0x1000 >; #address-cells = < 0x01 >; #size-cells = < 0x01 >; ranges; sram@1d00000 { compatible = "mmio-sram"; reg = < 0x1d00000 0x80000 >; #address-cells = < 0x01 >; #size-cells = < 0x01 >; ranges = < 0x00 0x1d00000 0x80000 >; sram-section@0 { compatible = "allwinner,sun8i-h3-sram-c1", "allwinner,sun4i-a10-sram-c1"; reg = < 0x00 0x80000 >; }; }; }; Orig sun8i-h3-nanopi-neo-core.dts
  22. Hello. I'm trying to understand how to build u-boot for my board. I have Nanopi Neo Core + Mini Shield and want to buid u-boot loader for it. I have some problems, maybe someone can help me) I decide to try extlinux.conf file create boot menu. First of all i got current version of u-boot (https://github.com/u-boot/u-boot) and configure it with Nanopi Neo default config: make nanopi_neo_defconfig i have next output in console: U-Boot SPL 2022.07-rc3-00073-g4fe629d2e8-dirty (May 29 2022 - 23:11:36 +0300) DRAM: 512 MiB Trying to boot from MMC1 U-Boot 2022.07-rc3-00073-g4fe629d2e8-dirty (May 29 2022 - 23:11:36 +0300) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: FriendlyARM NanoPi NEO DRAM: 512 MiB Core: 63 devices, 17 uclasses, devicetree: separate WDT: Not starting watchdog@1c20ca0 MMC: mmc@1c0f000: 0, mmc@1c11000: 1 Loading Environment from FAT... *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: phy interface1 eth0: ethernet@1c30000 starting USB... Bus usb@1c1a000: USB EHCI 1.00 Bus usb@1c1a400: USB OHCI 1.0 Bus usb@1c1d000: USB EHCI 1.00 Bus usb@1c1d400: USB OHCI 1.0 scanning bus usb@1c1a000 for devices... 1 USB Device(s) found scanning bus usb@1c1a400 for devices... 1 USB Device(s) found scanning bus usb@1c1d000 for devices... EHCI timed out on TD - token=0xd8d80 pause about 20-30 sec Device NOT ready Request Sense returned 00 00 00 data abort pc : [<5ffaaffe>] lr : [<5ffa1daf>] reloc pc : [<4a020ffe>] lr : [<4a017daf>] sp : 58a9bee8 ip : 0000001c fp : 5ffdf00e r10: 006f656e r9 : 5bf69ec0 r8 : 58a9bf40 r7 : 00000000 r6 : 5ffe4758 r5 : e59ff014 r4 : 00000000 r3 : 00000000 r2 : 00000001 r1 : 00000000 r0 : 00000000 Flags: nZcv IRQs off FIQs off Mode SVC_32 (T) Code: 4604 f8d3 a03c 460f (f8da) 3000 Resetting CPU ... resetting ... then i try to buid sunxi version of bootloader (https://github.com/linux-sunxi/u-boot-sunxi) i have next output: U-Boot SPL 2019.01-rc3-g829407b58f (May 29 2022 - 23:34:45 +0300) DRAM: 512 MiB Trying to boot from MMC1 U-Boot 2019.01-rc3-g829407b58f (May 29 2022 - 23:34:45 +0300) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: FriendlyElec NanoPi H3 Core DRAM: 512 MiB MMC: MMC0: 01c20060 = 0x4540, 01c20088 = 0x8151000b, 01c202c0 = 0x4540 MMC2: 01c20060 = 0x4540, 01c20090 = 0x80500000, 01c202c0 = 0x4540 mmc@1c0f000: 0, mmc@1c11000: 1 Loading Environment from FAT... *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: eth-1: ethernet@1c30000 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... EHCI timed out on TD - token=0xd8d80 pause for 20-30 sec Device NOT ready Request Sense returned 04 44 81 2 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found /extlinux/extlinux.conf Retrieving file: /extlinux/extlinux.conf 290 bytes read in 3 ms (93.8 KiB/s) Boot menu 1: Default 2: Local boot script (boot.scr) Enter choice: here it works, but i still have big pause. Maybe someone can explain why i have this pause and how properly crteate bootloader for my board? i want to understand this process and build it by myself.
  23. Does anyone know what sort of latency there is using mainline hw accelerated video encoding on Allwinner H3(H.264/265)? How about latency of mjpeg(if it is supported)? I'm trying to build a system with lowest possible latency.
  24. I'm using a NanoPi Neo as Homegear gateway. This requires the SPI interface (/dev/spidev0.0). Yesterday I ran apt-get upgrade, which bumped my kernel from 5.10.60 to 5.15.25. No other changes have been done, Since then no SPI devices are created anymore and the gateway fails! I tried to downgrade the kernel already using armbian-config to 21.08 5.10.60-sunxi. But that reported an error (do not remember the text; was very late) and left the Nano unbootable. I could restore the 5.15.25 kernel by manually editing the zImage symbolic link in /boot. Using param_spidev_spi_bus=1 instead of 0 does not help. What can I do now to re-enable SPI? Downgrade the kernel manually? But 5.10.60 is not offered in the repos...
  25. My NanoPi M4 4Gb suddenly fails to get out to internet, I checked it was OK to link via eth0 but ping fails. Not sure what to do. Please ask me what I can try. It was working but something broke! Sorry but I am not too good at this, any suggestions please? Thanks James
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines