-
Posts
125 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Community Map
Posts posted by olivluca
-
-
And file ownership should also be fixed
# dpkg -L linux-xenial-root-orangepipc | xargs ls -n | grep '1001 1001' ls: cannot access '/etc/update-motd.d/99-point-to-faq': No such file or directory ls: cannot access 'package': No such file or directory ls: cannot access 'diverts': No such file or directory ls: cannot access 'others': No such file or directory ls: cannot access 'to:': No such file or directory ls: cannot access '/etc/mpv/mpv-dist.conf': No such file or directory -rw-r--r-- 1 1001 1001 56 Aug 1 15:17 /etc/apt/apt.conf.d/71-no-recommends -rwxr-xr-x 1 1001 1001 36 Aug 1 15:17 /etc/cron.daily/log2ram -rw-r--r-- 1 1001 1001 83 Aug 1 15:17 /etc/cron.d/armbian-updates -rw-r--r-- 1 1001 1001 156 Aug 1 15:17 /etc/default/armbian-motd.dpkg-dist -rw-r--r-- 1 1001 1001 280 Aug 1 15:17 /etc/default/log2ram.dpkg-dist -rwxr-xr-x 1 1001 1001 308 Aug 1 15:17 /etc/initramfs/post-update.d/99-uboot -rwxr-xr-x 1 1001 1001 1022 Aug 1 15:17 /etc/kernel/preinst.d/initramfs-cleanup -rw-r--r-- 1 1001 1001 525 Aug 1 15:17 /etc/network/interfaces.bonding -rw-r--r-- 1 1001 1001 1028 Sep 10 12:16 /etc/network/interfaces.default -rw-r--r-- 1 1001 1001 280 Aug 1 15:17 /etc/network/interfaces.espressobin -rw-r--r-- 1 1001 1001 197 Aug 1 15:17 /etc/network/interfaces.hostapd -rw-r--r-- 1 1001 1001 218 Aug 1 15:17 /etc/network/interfaces.network-manager -rw-r--r-- 1 1001 1001 495 Aug 1 15:17 /etc/network/interfaces.r1 -rw-r--r-- 1 1001 1001 610 Aug 1 15:17 /etc/network/interfaces.r1router -rw-r--r-- 1 1001 1001 359 Aug 1 15:17 /etc/network/interfaces.r1switch -rw-r--r-- 1 1001 1001 212 Aug 1 15:17 /etc/profile.d/check_first_login_reboot.sh -rw-r--r-- 1 1001 1001 174 Aug 1 15:17 /etc/profile.d/ssh-title.sh -rw-r--r-- 1 1001 1001 217 Aug 1 15:17 /etc/X11/xorg.conf.d/01-armbian-defaults.conf -rw-r--r-- 1 1001 1001 384 Aug 1 15:17 /lib/systemd/system/firstrun.service -rw-r--r-- 1 1001 1001 30 Aug 1 15:17 /lib/systemd/system/getty@tty1.service.d/10-noclear.conf -rw-r--r-- 1 1001 1001 448 Aug 1 15:17 /lib/systemd/system/log2ram.service -rw-r--r-- 1 1001 1001 426 Aug 1 15:17 /lib/systemd/system/resize2fs.service -rw-r--r-- 1 1001 1001 33 Aug 1 15:17 /lib/systemd/system/serial-getty@.service.d/10-term.conf -rw-r--r-- 1 1001 1001 28 Aug 1 15:17 /lib/systemd/system/systemd-modules-load.service.d/10-timeout.conf -rw-r--r-- 1 1001 1001 287 Aug 1 15:17 /lib/udev/rules.d/71-axp-power-button.rules -rwxr-xr-x 1 1001 1001 3783 Aug 1 15:17 /usr/lib/armbian/apt-updates -rw-r--r-- 1 1001 1001 84132 Aug 1 15:17 /usr/lib/nand-sata-install/a10/bootloader/boot.axf -rw-r--r-- 1 1001 1001 126 Aug 1 15:17 /usr/lib/nand-sata-install/a10/bootloader/boot.ini -rw-r--r-- 1 1001 1001 146 Aug 1 15:17 /usr/lib/nand-sata-install/a10/bootloader/linux/linux.ini -rw-r--r-- 1 1001 1001 321016 Aug 1 15:17 /usr/lib/nand-sata-install/a10/bootloader/u-boot.bin -rw-r--r-- 1 1001 1001 118912 Aug 1 15:17 /usr/lib/nand-sata-install/a20/bootloader/boot.axf -rw-r--r-- 1 1001 1001 91 Aug 1 15:17 /usr/lib/nand-sata-install/a20/bootloader/boot.ini -rw-r--r-- 1 1001 1001 152 Aug 1 15:17 /usr/lib/nand-sata-install/a20/bootloader/linux/linux.ini -rw-r--r-- 1 1001 1001 309228 Aug 1 15:17 /usr/lib/nand-sata-install/a20/bootloader/linux/u-boot.bin -rw-r--r-- 1 1001 1001 60 Aug 1 15:17 /usr/lib/nand-sata-install/exclude.txt -rwxr-xr-x 1 1001 1001 1458 Aug 1 15:17 /usr/sbin/log2ram -rw-r--r-- 1 1001 1001 1067 Aug 1 15:17 /usr/share/log2ram/LICENSE -rw-r--r-- 1 1001 1001 56 Aug 1 15:17 71-no-recommends -rw-r--r-- 1 1001 1001 83 Aug 1 15:17 armbian-updates -rwxr-xr-x 1 1001 1001 36 Aug 1 15:17 log2ram -rw-r--r-- 1 1001 1001 156 Aug 1 15:17 armbian-motd.dpkg-dist -rw-r--r-- 1 1001 1001 280 Aug 1 15:17 log2ram.dpkg-dist -rwxr-xr-x 1 1001 1001 308 Aug 1 15:17 99-uboot -rwxr-xr-x 1 1001 1001 1022 Aug 1 15:17 initramfs-cleanup -rw-r--r-- 1 1001 1001 525 Aug 1 15:17 interfaces.bonding -rw-r--r-- 1 1001 1001 1028 Sep 10 12:16 interfaces.default -rw-r--r-- 1 1001 1001 280 Aug 1 15:17 interfaces.espressobin -rw-r--r-- 1 1001 1001 197 Aug 1 15:17 interfaces.hostapd -rw-r--r-- 1 1001 1001 218 Aug 1 15:17 interfaces.network-manager -rw-r--r-- 1 1001 1001 495 Aug 1 15:17 interfaces.r1 -rw-r--r-- 1 1001 1001 610 Aug 1 15:17 interfaces.r1router -rw-r--r-- 1 1001 1001 359 Aug 1 15:17 interfaces.r1switch -rw-r--r-- 1 1001 1001 212 Aug 1 15:17 check_first_login_reboot.sh -rw-r--r-- 1 1001 1001 174 Aug 1 15:17 ssh-title.sh -rw-r--r-- 1 1001 1001 217 Aug 1 15:17 01-armbian-defaults.conf -rw-r--r-- 1 1001 1001 384 Aug 1 15:17 firstrun.service drwxr-xr-x 2 1001 1001 4096 Sep 11 12:49 getty@tty1.service.d -rw-r--r-- 1 1001 1001 448 Aug 1 15:17 log2ram.service -rw-r--r-- 1 1001 1001 426 Aug 1 15:17 resize2fs.service drwxr-xr-x 2 1001 1001 4096 Sep 11 12:49 serial-getty@.service.d drwxr-xr-x 2 1001 1001 4096 Sep 11 12:49 systemd-modules-load.service.d -rw-r--r-- 1 1001 1001 30 Aug 1 15:17 10-noclear.conf -rw-r--r-- 1 1001 1001 33 Aug 1 15:17 10-term.conf -rw-r--r-- 1 1001 1001 28 Aug 1 15:17 10-timeout.conf -rw-r--r-- 1 1001 1001 287 Aug 1 15:17 71-axp-power-button.rules -rwxr-xr-x 1 1001 1001 3783 Aug 1 15:17 apt-updates -rw-r--r-- 1 1001 1001 60 Aug 1 15:17 exclude.txt -rw-r--r-- 1 1001 1001 84132 Aug 1 15:17 boot.axf -rw-r--r-- 1 1001 1001 126 Aug 1 15:17 boot.ini -rw-r--r-- 1 1001 1001 321016 Aug 1 15:17 u-boot.bin -rw-r--r-- 1 1001 1001 146 Aug 1 15:17 linux.ini -rw-r--r-- 1 1001 1001 118912 Aug 1 15:17 boot.axf -rw-r--r-- 1 1001 1001 91 Aug 1 15:17 boot.ini -rw-r--r-- 1 1001 1001 152 Aug 1 15:17 linux.ini -rw-r--r-- 1 1001 1001 309228 Aug 1 15:17 u-boot.bin -rwxr-xr-x 1 1001 1001 1458 Aug 1 15:17 log2ram -rw-r--r-- 1 1001 1001 1067 Aug 1 15:17 LICENSE
-
I'm not too familiar with deb packaging, but maybe just using the same condition as the line above it would be enough:
[ remove = "$1" ] || [ abort-install = "$1" ] &&
-
There's this line in the postrm of linux-xenial-root-orangepipc
systemctl disable log2ram.service armhwinfo.service >/dev/null 2>&1
but I don't think the postrm is called on upgrade, is it?
Edit: yes it does
-
I just ran apt-upgrade
Start-Date: 2017-09-11 12:44:53 Commandline: apt upgrade Requested-By: luca (1000) Upgrade: linux-image-sun8i:armhf (5.32.170901, 5.32.170911), linux-headers-sun8i:armhf (5.32.170901, 5.32.170911), linux-u-boot-orangepipc-default:armhf (5.32.170901, 5.32.170911), sunxi-tools:armhf (1.4.2-1~armbian5.32.170901+1, 1.4.2-1~armbian5.32.170911+1), hostapd:armhf (1:2.5~armbian5.32.170901+1, 1:2.5~armbian5.32.170911+1), linux-xenial-root-orangepipc:armhf (5.32.170901, 5.32.170911), linux-firmware:armhf (1.157.11, 1.157.12) End-Date: 2017-09-11 12:52:25
and it disabled the log2ram service (I'll investigate which package did it).
BTW, I found out why I enabled the beta repository
-
On 19/7/2017 at 8:06 PM, Leonardo Lontra said:
@olivluca Your Don't need more hres mode, now is a dynamic change. For example, If you want 1600x1200 with more image quality, sets resolution and fps to <=8, or 1600x1200 with higher fps, but less image resolution, sets fps to >= 20. Internally, change hres based on resolution or/and framerate.
I'm getting weird results with motion:
If I set 800x600 the image is OK but flipped horizontally
If I set 640x480 the image is OK
if I set 1600x1200 this is what I get:
-
Thank you. Oh, well, the damage is done already.
-
If I plug a stereo jack (hence bridging the video signal to ground), do I risk breaking the video output?
In fact, I have already done it, I don't plan to use the analog video but, who knows, maybe I'll need it later.
-
Now I see that log2ram is not a fs type but a service and it was disabled (not by me)
# systemctl status log2ram ● log2ram.service - Armbian enhanced Log2Ram Loaded: loaded (/lib/systemd/system/log2ram.service; disabled; vendor preset: enabled) Active: inactive (dead)
I enabled it, let's see if it lasts
-
In /var/log/armhwinfo.log I see that log2ram was initially enabled (or so it seems)
### partitions: major minor #blocks name 179 0 1954816 mmcblk0 179 1 1445888 mmcblk0p1 ### df: Filesystem Size Used Avail Use% Mounted on udev 370M 0 370M 0% /dev tmpfs 101M 1.7M 99M 2% /run /dev/mmcblk0p1 1.4G 975M 387M 72% / tmpfs 501M 0 501M 0% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 501M 0 501M 0% /sys/fs/cgroup tmpfs 501M 28K 501M 1% /tmp log2ram 50M 752K 50M 2% /var/log
So I guess some package removed the log2ram entry (I for sure didn't: I didn't even know what log2ram was until I setup nullmailer and saw the log message).
-
1 hour ago, Igor said:
Something is malfunction but without logs, I am unable to guess what went wrong. I only see that you are using beta build, which is auto made and possible broken ... nobody test that.
Oops, I forgot I enabled the beta repository.
But I checked the original image and even there /var/log is on disk.
-
No, I mean, if /var/log is already on the sd card, using the log2ram script to copy it to /var/log.hdd will at least double the wear on the sd card.
The real question is why /var/log is not in ram (and why there are files with the 1001 owner).
-
On 6/3/2017 at 1:57 AM, Blars said:
/var/log uses the "log2ram" filesystem, and /var/log.hdd is on your sd card. This is done to minimize writes to the sd card. So while they appear duplicated, I think only the most recent stuff is kept in ram.
On my system /var/log appears to be in the sd card, yet log2ram is active (note: I didn't alter /etc/fstab, this is a system installed from the armbian server image for the orange pi pc, I also checked and /var/log is not a symbolic link to a tmpfs). Kinda defeats the purpose to reduce wear on the SD card.
Btw, the file /etc/cron.daily/log2ram is owned by a non existent user and group 1001
In fact I have a bunch of those, all coming from the linux-xenial-root-orangepipc package:
# find -uid 1001 2>/dev/null | sed 's/^\.//' | xargs dpkg -S linux-xenial-root-orangepipc: /lib/systemd/system/systemd-modules-load.service.d linux-xenial-root-orangepipc: /lib/systemd/system/systemd-modules-load.service.d/10-timeout.conf linux-xenial-root-orangepipc: /lib/systemd/system/log2ram.service linux-xenial-root-orangepipc: /lib/systemd/system/serial-getty@.service.d linux-xenial-root-orangepipc: /lib/systemd/system/serial-getty@.service.d/10-term.conf linux-xenial-root-orangepipc: /lib/systemd/system/firstrun.service linux-xenial-root-orangepipc: /lib/systemd/system/resize2fs.service linux-xenial-root-orangepipc: /lib/systemd/system/getty@tty1.service.d linux-xenial-root-orangepipc: /lib/systemd/system/getty@tty1.service.d/10-noclear.conf linux-xenial-root-orangepipc: /lib/udev/rules.d/71-axp-power-button.rules linux-xenial-root-orangepipc: /etc/initramfs/post-update.d/99-uboot linux-xenial-root-orangepipc: /etc/X11/xorg.conf.d/01-armbian-defaults.conf linux-xenial-root-orangepipc: /etc/profile.d/ssh-title.sh linux-xenial-root-orangepipc: /etc/profile.d/check_first_login_reboot.sh linux-xenial-root-orangepipc: /etc/default/armbian-motd.dpkg-dist linux-xenial-root-orangepipc: /etc/default/log2ram.dpkg-dist linux-xenial-root-orangepipc: /etc/network/interfaces.bonding linux-xenial-root-orangepipc: /etc/network/interfaces.default linux-xenial-root-orangepipc: /etc/network/interfaces.r1switch linux-xenial-root-orangepipc: /etc/network/interfaces.network-manager linux-xenial-root-orangepipc: /etc/network/interfaces.r1 linux-xenial-root-orangepipc: /etc/network/interfaces.espressobin linux-xenial-root-orangepipc: /etc/network/interfaces.r1router linux-xenial-root-orangepipc: /etc/network/interfaces.hostapd linux-xenial-root-orangepipc: /etc/apt/apt.conf.d/71-no-recommends linux-xenial-root-orangepipc: /etc/apt/apt.conf.d/02periodic linux-xenial-root-orangepipc: /etc/cron.daily/log2ram linux-xenial-root-orangepipc: /etc/kernel/preinst.d/initramfs-cleanup linux-xenial-root-orangepipc: /var/lib/polkit-1/localauthority/backlight.pkla linux-xenial-root-orangepipc: /var/lib/polkit-1/localauthority/power.pkla linux-xenial-root-orangepipc: /var/lib/polkit-1/localauthority/networkmanager.pkla linux-xenial-root-orangepipc: /var/lib/polkit-1/localauthority/plugdev.pkla linux-xenial-root-orangepipc: /usr/lib/nand-sata-install/a20/bootloader/linux/linux.ini linux-xenial-root-orangepipc: /usr/lib/nand-sata-install/a20/bootloader/linux/u-boot.bin linux-xenial-root-orangepipc: /usr/lib/nand-sata-install/a20/bootloader/boot.axf linux-xenial-root-orangepipc: /usr/lib/nand-sata-install/a20/bootloader/boot.ini linux-xenial-root-orangepipc: /usr/lib/nand-sata-install/exclude.txt linux-xenial-root-orangepipc: /usr/lib/nand-sata-install/a10/bootloader/u-boot.bin linux-xenial-root-orangepipc: /usr/lib/nand-sata-install/a10/bootloader/linux/linux.ini linux-xenial-root-orangepipc: /usr/lib/nand-sata-install/a10/bootloader/boot.axf linux-xenial-root-orangepipc: /usr/lib/nand-sata-install/a10/bootloader/boot.ini linux-xenial-root-orangepipc: /usr/lib/armbian/apt-updates linux-xenial-root-orangepipc: /usr/share/log2ram/LICENSE linux-xenial-root-orangepipc: /usr/sbin/log2ram root@citofono:/# dpkg -l linux-xenial-root-orangepipc Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-===========================-==================-==================-=========================================================== ii linux-xenial-root-orangepip 5.32.170901 armhf Armbian tweaks for xenial on orangepipc (default branch)
-
-
On 19/7/2017 at 7:17 PM, olivluca said:
I finally worked around the issue by modifying boot.cmd adding the lines
gpio set PL10 gpio set PG11
....
Before that I tried
sudo sunxi-pio -m PL10'<default><default<default><1>' sudo sunxi-pio -m PG11'<default><default<default><1>'
but it didn't work
I wonder why setting the gpio with uboot works while setting them in userspace doesn't work. Maybe the syntax of sunxi-pio is wrong or something else is missing?
-
No, I mean with the armbian image.
-
4 hours ago, dmorse said:
I get the same result using the standard ubuntu server build from the orangepi website, but at least with that one I can see /dev/video0. I haven't actually tried to use the device yet, will do that next.
In that image it seems uboot activates PL10 and PA17.
Try following my instructions but using PA17 instead of PG11.
-
1 minute ago, dmorse said:
I've given olivluca's solution a shot and that does not work for me.
Sorry, I forgot to say that mine is an orange pi pc. I got the gpios from the boot.cmd in 5.20 but it seems that's not an option in your case.
-
On 8/7/2017 at 11:41 AM, Igor said:
There were some changes / fixes in driver sources. I don't have this camera ... Can you check? Just switch to beta repository, upgrade and reboot.
Using the beta repository at least solves the segmentation fault when trying to remove vfe_v4l2 but the gc2035 module doesn't accept the hres parameter anymore and the image is worse.
Edit: I spoke too soon: the segmentation fault is still there.
Edit 2: it seems the hres parameter isn't necessary, I just had to change motion config to get the same image as before. Maybe before the driver didn't respect the required picture size while now it does?
-
I finally worked around the issue by modifying boot.cmd adding the lines
gpio set PL10 gpio set PG11
at the beginning, right after the "DO NOT EDIT THIS FILE " comment.
The I regenerated boot.scr
mkimage -A arm -T script -O linux -d boot.cmd boot.scr
And rebooted.
Before that I tried
sudo sunxi-pio -m PL10'<default><default<default><1>' sudo sunxi-pio -m PG11'<default><default<default><1>'
but it didn't work
-
In the meantime my orangepi arrived and nobody around here has decent (or even not decent) 8GB sd cards (and not even 16, the minimum seems to be 32, and even 8 is overkill for my project).
For the time being I'm testing with a 4GB card I had lying aroung, later I'll see.
-
-
On 19/6/2017 at 6:02 PM, tkaiser said:
Can be either Plus or PC and IIRC both use different GPIO pins for CSI. I was asking for the following but that is only save on an OPi PC:
sudo modprobe -r vfe_v4l2 sudo modprobe -r gc_2035 sudo sunxi-pio -m PG11'<default><default<default><1>' sudo modprobe gc_2035 hres=1 sudo modprove vfe_v4l2
Nope, it didn't work (just imaged and booted), will try with 5.20 now.
root@orangepipc:~# sunxi-pio -m PG11'<default><default<default><1>' root@orangepipc:~# modprobe gc2035 hres=1 root@orangepipc:~# modprobe vfe_v4l2 root@orangepipc:~# tail /var/log/syslog Jul 8 08:42:39 localhost systemd[1]: Starting User Manager for UID 0... Jul 8 08:42:40 localhost systemd[1890]: user@0.service: Failed at step PAM spawning /lib/systemd/systemd: Operation not permitted Jul 8 08:42:40 localhost systemd[1]: Started User Manager for UID 0. Jul 8 08:42:41 localhost systemd[1]: Started Session 1 of user root. Jul 8 08:42:58 localhost rsyslogd-2007: action 'action 9' suspended, next retry is Sat Jul 8 08:43:28 2017 [v8.16.0 try http://www.rsyslog.com/e/2007 ] Jul 8 08:45:01 localhost rsyslogd-2007: action 'action 9' suspended, next retry is Sat Jul 8 08:45:31 2017 [v8.16.0 try http://www.rsyslog.com/e/2007 ] Jul 8 08:45:01 localhost CRON[2163]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Jul 8 08:45:04 localhost kernel: [ 730.871462] [ISP] isp platform_id = 5! Jul 8 08:45:04 localhost kernel: [ 730.948212] [CSI_ERR][GC2035]sensor_read err at sensor_detect! Jul 8 08:45:04 localhost kernel: [ 730.948229] [CSI_ERR][GC2035]chip found is not an target chip.
-
@tkaiser thank you. I took a look at the image and the script and I think I can manage it. When my orange pi pc arrives I'll see if I can find one of the good sd cards around here or repurpose (just for the bootloader) a small one I already have.
-
I'll take a look at the nand-sata-install.sh script, but would it be possible to just install uboot on the sdcard and the rest on an usb stick (without installing everything to sd first)?
analog audio, channels inverted and bad separation
in Allwinner sunxi
Posted
On my orangepi pc (legacy kernel) I'm trying to using separately the left and right channel as two separate sound cards (to be used by two different programs).
I have a working asoundrc for that, but the problem is that the left channel leaks into the right one and viceversa.
They also do the same on my laptop, but there it's hardly noticeable.
It's not a matter of my asounrc, I confirmed it also with speaker-test.
I suppose it's a hardware issue, right?
BTW the right and left channel are inverted (and that could be a driver issue).
This is the my asoundrc, the !default line is because one of the two programs is linphone and I couldn't find a way to make it use a named, virtual, soundcard.
pcm.my_card { type hw card 0 } pcm.my_card_dmix { type dmix ipc_key 1024 ipc_key_add_uid 1 ipc_perm 0666 slave { pcm "my_card" channels 2 } bindings { 0 0 1 1 } } pcm.mono_zone1 { type plug slave { pcm "my_card_dmix" channels 2 } ttable.0.0 1 } pcm.!default { type plug slave { pcm "my_card_dmix" channels 2 } ttable.0.1 1 }