Search the Community
Showing results for tags 'zeropi'.
-
Add partitions when building an armbian image
denprog posted a topic in Advanced users - Development
Hello. I'm building an armbian image and want to add some partitions to the result disk. I use the post_create_partitions hook to do that. The documentation doesn't show how to use it, so I looked at the armbian's sources: https://github.com/armbian/build/blob/99815c0a8880d4e04fc64742412632e1d41c1334/lib/functions/image/partitioning.sh#L206 Here they create a string and pass it to sfdisk. In my hook I do a similar row to add two partitions: echo -ne "label:dos\nsize=1G\nsize=1G\n+\n" | sfdisk -a "${SDCARD}".raw --no-reread || exit_with_error "Partition fail." But building of the image fails with message: No free sectors available. Failed to add #3 partition: No space left on device. How to add partitions? -
I've installed Armbian 23.11.1 Bookworm on a FriendlyElec ZeroPi. This version works flawlessly. A few days ago I updated to Armbian 24.2.1 and since then the ZeroPi crashes and hangs. Sometimes it happens after a few minutes, sometimes after a few hours. When it crashes I can't ssh to the device anymore (headless operation). Unbound, AdguardHome and cups aren't accessable, too. The last messages of the journal in an open cmdline window are: Mär 03 20:50:14 azp kernel: rcu: INFO: rcu_sched self-detected stall on CPU Mär 03 20:50:14 azp kernel: rcu: 2-....: (5249 ticks this GP) idle=16bc/1/0x40000002 softirq=20679/20679 fqs=2625 Mär 03 20:50:14 azp kernel: rcu: (t=5252 jiffies g=33709 q=4 ncpus=4) Mär 03 20:50:14 azp kernel: CPU: 2 PID: 489 Comm: systemd-network Tainted: G C 6.6.16-current-sunxi #1 Mär 03 20:50:14 azp kernel: Hardware name: Allwinner sun8i Family Mär 03 20:50:14 azp kernel: PC is at stmmac_get_stats64+0x26/0x128 Mär 03 20:50:14 azp kernel: LR is at 0xc561b000 Mär 03 20:50:14 azp kernel: pc : [<c078c5ce>] lr : [<c561b000>] psr: 80030033 Mär 03 20:50:14 azp kernel: sp : e1411990 ip : c5618000 fp : 00000001 Mär 03 20:50:14 azp kernel: r10: 00000000 r9 : c9b4d180 r8 : 00000000 Mär 03 20:50:14 azp kernel: r7 : 00000000 r6 : 00000001 r5 : 00000000 r4 : 80000000 Mär 03 20:50:14 azp kernel: r3 : 0000c625 r2 : c561ae48 r1 : c352aef4 r0 : c5618000 Mär 03 20:50:14 azp kernel: Flags: Nzcv IRQs on FIQs on Mode SVC_32 ISA Thumb Segment none Mär 03 20:50:14 azp kernel: Control: 50c5387d Table: 4362006a DAC: 00000051 Mär 03 20:50:14 azp kernel: stmmac_get_stats64 from dev_get_stats+0x27/0xd0 Mär 03 20:50:14 azp kernel: dev_get_stats from rtnl_fill_stats+0x25/0xb0 Mär 03 20:50:14 azp kernel: rtnl_fill_stats from rtnl_fill_ifinfo+0x4cd/0xde0 Mär 03 20:50:14 azp kernel: rtnl_fill_ifinfo from rtnl_dump_ifinfo+0x1ff/0x49c Mär 03 20:50:14 azp kernel: rtnl_dump_ifinfo from netlink_dump+0xcd/0x270 Mär 03 20:50:14 azp kernel: netlink_dump from __netlink_dump_start+0x15b/0x1ec Mär 03 20:50:14 azp kernel: __netlink_dump_start from rtnetlink_rcv_msg+0x177/0x25c Mär 03 20:50:14 azp kernel: rtnetlink_rcv_msg from netlink_rcv_skb+0x75/0xb0 Mär 03 20:50:14 azp kernel: netlink_rcv_skb from netlink_unicast+0x1c1/0x204 Mär 03 20:50:14 azp kernel: netlink_unicast from netlink_sendmsg+0x185/0x354 Mär 03 20:50:14 azp kernel: netlink_sendmsg from __sock_sendmsg+0x27/0x48 Mär 03 20:50:14 azp kernel: __sock_sendmsg from __sys_sendto+0x7f/0xac Mär 03 20:50:14 azp kernel: __sys_sendto from __sys_trace_return+0x1/0xc Mär 03 20:50:14 azp kernel: Exception stack(0xe1411fa8 to 0xe1411ff0) Mär 03 20:50:14 azp kernel: 1fa0: be9068dc 00000080 00000003 00baffa0 00000020 00000000 Mär 03 20:50:14 azp kernel: 1fc0: be9068dc 00000080 00000001 00000122 be9069c4 be906a28 00000001 004b8cf4 Mär 03 20:50:14 azp kernel: 1fe0: 00000122 be9068b0 b6c85e71 b6bee616 I fear I have to go back to 23.11.1. Any help possible?
-
I've installed Armbian 23.11.1 Bookworm on a FriendlyElec ZeroPi. On the cmdline the linux command who gives the following output: dgs pts/1 1011643795265722162 (172.20.10.14) Usually it should be (as on a Debian Bookworm distribution): dgs pts/0 2023-12-14 10:43 (172.20.10.14) Instead of showing date and time the Armbian who command outputs this long integer number. Why? Is this a bug or do I miss any configuration? PS: the locale settings is identical on both devices, date shows on both devices the correct time.
-
Hello, I have a lidar scanner, which I already made it work with a USB-TTL serial adapter... with a decoding python program... it works great However, I tried to use one of the serial ports in the pins of my orange Pi zero... UART1, in pins PG6,PG7... I have strange behavior When I test the serial port with picocom or screen, I see the flow of characters: picocom -b 230400 /dev/ttyS1 screen /dev/ttyS1 230400 However, my python program fails to read at the first character. With the python's own miniterm, I get the same error Anybody who is using ttyS1 successfully in Python? THANKS!! Post data: I enabled the ttyS1 with the addition of "uart1" after "usbhost3" inside armbianEnv.txt I also changed "console=serial" to "console=ttyS0" I get a few lines of characters, but then serial/serialposix.py exits with the exception
-
My dotnet apps not work in new armbians(libssl error). How downgrade openssl 3.0 downto openssl1.1.1?
-
I am getting a quite loud audio spike / noise sound at the end of an audio play in python when using the following script: https://gist.github.com/bbence84/04d1935a92a4b4ab3d44bf182ea4bcc1 Wav to be played, but it does it with any other wav or mp3 file: https://easyupload.io/vbat12 It uses the speech_recognition package and the preferredsoundplayer package, but also the VLC python package shows the same when playing the audio. When changing the audio play to be non-blocking for the python script, the issue goes away... Very strange. This is driviging me nuts. I'm on Armbian 22.11.1 Jammy / 22.04.1 LTS, kernel 5.15.80-sunxi. Orange Pi Zero LTS. Thanks for any ideas! Bence