IRC #olimex 2018-06-16

[01:49:30] <dsockwell> i'm afraid people i work with are starting to suspect i'm being unfair in favor of olimex
[01:50:06] <dsockwell> what is OLinuXino's closest competition in terms of stability or survivability?
[01:50:49] <dsockwell> is there an orangepi satellite
[01:56:06] <adj_> I'm also a big fan of Olimex A20 boards
[01:56:35] <adj_> rock64 board from pine64 seems nice
[01:57:15] <dsockwell> i had forgotten about gumstix
[01:57:16] <adj_> I'd like Olimex starting to use rk3328 and rk3399 for their boards
[01:57:50] <dsockwell> there's a RK3188 system-on-module
[01:58:15] <dsockwell> and i think i read another one was planned for system-on-sodimm
[02:01:14] <adj_> rk3328 is the one will probably come to system-on-sodimm
[02:02:22] <adj_> rk3328 is quad cortex a53 with mali450 (supported by lima driver), gbit ethernet, usb3 and two usb2
[02:02:48] <adj_> much better than any allwinner chip, in my opinion
[02:05:34] <dsockwell> i had always assumed they were about equivalent but now i'm going to check that rk company out some more
[02:17:44] <adj_> dsockwell, rockchip
[18:03:30] <Asara> anyone here ever use olimex's support? I've emailed them regarding my issue (https://www.olimex.com/forum/index.php?topic=6188.0) a couple of days ago to no avail
[18:28:17] <adj_> Asara, I have never asked them by email, and I don't own a Teres, so I don't know about your issue
[18:28:34] <adj_> the battery is 1 cell, right?
[18:28:51] <MoeIcenowy> adj_: yes, AXP803 cannot handle multiple cell
[18:29:12] <adj_> that's what I supposed
[18:29:32] <MoeIcenowy> P.S. AXP803 seems to refuse to recharge if the system is not on
[18:30:18] <adj_> Asara, have you tried measuring the battery voltage unconnected and voltage and current while connected?
[18:32:00] <adj_> I suppose that the Teres should work without a battery connected and I understand that you unit don't
[18:32:06] <adj_> your unit
[18:32:19] <adj_> doesn't
[18:32:28] <Asara> Not sure how to measure the voltage
[18:32:42] <Asara> ACTION is fresh to the world of microcontrollers/hardware
[18:33:22] <adj_> with a voltmeter or a multimeter
[18:33:27] <Asara> and specifically when I remove the battery connector from the a53, evne then It gets past the olimex boot screen, but then the screen just stays black
[18:33:38] <Asara> I'll have to buy those :(
[18:34:03] <adj_> you can get one for 5$, and a decent one for about 20$
[18:34:33] <Asara> actually let me check my hardware area
[18:34:36] <Asara> might have something
[18:34:37] <Asara> one sec
[18:34:42] <adj_> because this is not high voltage or power and you don't need a lot of precision any multimeter would work
[18:35:08] <Asara> okay
[18:35:14] <Asara> i do have (an unopened) digital multimeter
[18:35:17] <MoeIcenowy> Asara: I think olimex stockly uses the Allwinner's bootloader solution
[18:35:21] <MoeIcenowy> which is designed for a tablet
[18:35:32] <MoeIcenowy> you know a tablet without a battery is ridiculous
[18:35:36] <MoeIcenowy> ;-)
[18:35:44] <Asara> apparently got one of these: https://www.aliexpress.com/item/AC-DC-Ammeter-Voltmeter-Ohm-Electrical-Tester-Meter-Professional-Digital-Multimeter-UK-830LN-Free-Shipping/32609953171.html
[18:36:03] <Asara> time to figure out how to hook this up to the battery
[18:36:03] <Asara> :)
[18:37:11] <adj_> as always, when measuring current, don't forget that in "current" position the resistance between probes is very low, so be careful not to short circuit anything
[18:37:21] <MoeIcenowy> P.S. the biggest problem found on my TERES-I is that the A-side is a fingerprint collector ;-)
[18:37:30] <MoeIcenowy> oh I should use BTW
[18:37:50] <adj_> (you should connect the multimeter in series in the circuit, just as a cable)
[18:38:04] <adj_> don't connect the probes to two points at different potencial
[18:38:09] <adj_> potential
[18:38:25] <MoeIcenowy> and I don't think the battery connector is multimeter friendly
[18:39:09] <adj_> Asara, that multimeter should be enough
[18:39:56] <Asara> Not sure how to connect it to the battery itself
[18:39:57] <adj_> MoeIcenowy, for reading for a few seconds holding the probes by hand should not be difficult (although I have not seen the battery connector, so I could be wrong)
[18:40:32] <MoeIcenowy> don't forget that you need to connect both Vbat and GND at the same time
[18:40:32] <Asara> adj_: https://www.olimex.com/Products/DIY-Laptop/SPARE-PARTS/TERES-024-LiPo-battery/
[18:40:36] <Asara> its one of these
[18:40:42] <MoeIcenowy> and you can only add multimeter in one path
[18:40:54] <MoeIcenowy> (you need to keep 3 connections
[18:40:58] <adj_> disconnect the battery, put in contact every probe with a different end of the battery (with the multimeter in "V-" position
[18:41:19] <MoeIcenowy> I think the pinout of the battery is clear on the schematics
[18:42:14] <Asara> I think this is all currently out of my scope of understanding :(
[18:42:23] <Asara> there are like 8 ends on this battery pack
[18:42:42] <MoeIcenowy> Asara: but you need only to connect Vbat (+) and GND (-)
[18:43:00] <Asara> 9*
[18:43:11] <Asara> vbat + would be one of the red sides?
[18:43:16] <Asara> ground would be the middle one?
[18:43:24] <adj_> probably there are Vbat+ and GND test points in the motherboard
[18:43:51] <adj_> all black cables should be GND and red ones Vbat+
[18:44:09] <Asara> black are all on te right hadn side, and on the mainboard it shows that side as being -
[18:44:31] <adj_> if you connect the multimeter backwards it doesn't matter, it will read a negative voltage, just ignore the sign
[18:46:39] <adj_> as MoeIcenowy said reading current is more difficult, you need to connect the multimeter for the board to the battery (doesn't matter which side) and with a cable to the other
[18:46:55] <adj_> and it's also more dangerous if you make a mistake
[18:47:00] <MoeIcenowy> oh for voltage is easier
[18:47:06] <MoeIcenowy> you can just put the pin there
[18:47:38] <Asara> alright
[18:47:39] <Asara> so
[18:47:45] <adj_> reading voltage the multimeter has very high resistance, so nearly no current
[18:47:57] <Asara> i'm trying to read the voltage
[18:47:58] <Asara> is what im hearing
[18:48:00] <Asara> and to do that
[18:48:47] <adj_> if the battery has very low voltage disconnected, it will be impossible for the Power chip the charge it (the battery is dead)
[18:48:56] <Asara> ah
[18:48:57] <Asara> okay
[18:49:00] <Asara> okay just to make sure
[18:49:05] <Asara> what setting do i put this thing in
[18:49:06] <Asara> lol
[18:49:25] <diego71> Asara: DC 20V
[18:49:41] <diego71> (20V means max 20v)
[18:50:16] <Asara> not seeing that on this thing
[18:50:26] <Asara> i see 200 and 1.5V and then 9V
[18:50:33] <Asara> then it goes to 2m 20 m 200m
[18:51:26] <adj_> Asara, black probe connected to COM
[18:51:56] <adj_> red probe connected to the V connector (right one?)
[18:52:01] <Asara> yup
[18:52:04] <Asara> i'm there currently
[18:52:07] <adj_> it's probably shared with ohms and mA
[18:52:07] <Asara> but on the dial itself
[18:52:14] <Asara> it is
[18:52:19] <Asara> V(ohm)mA
[18:52:26] <Asara> the red one that is
[18:52:40] <adj_> V- 20
[18:52:54] <adj_> then the range is to 20 Volts
[18:53:13] <adj_> you will measure about 2.5 V
[18:53:22] <Asara> h
[18:53:23] <Asara> one sec
[18:53:25] <Asara> let me post a picture
[18:54:29] <adj_> you have 200mV, 2000mV, 20V, 200V and 600V
[18:54:43] <adj_> you should use the 20V range
[18:55:37] <adj_> that are the positions for V- (direct current), don't use V~ (that's for AC)
[18:56:07] <Asara> https://i.imgur.com/WZxOTGN.jpg
[18:56:25] <Asara> AH
[18:56:29] <Asara> so to the left
[18:56:44] <Asara> just to make sure so i don't break anything :x
[18:57:21] <adj_> yes, three positions to the left
[18:57:31] <Asara> okay putting that on 20V
[18:57:51] <Asara> now on the battery
[18:57:55] <Asara> red to red, black to black?
[18:58:24] <adj_> if you connect the cables as you have done it, and the rotary selector in a V position (both V- and V~) you can't brake the circuit
[18:58:32] <Asara> the multimeter is showing ~3.95
[18:59:07] <adj_> that's nice
[18:59:13] <Asara> fluttering between 3.93-3.95
[18:59:28] <adj_> it is not discharged
[18:59:40] <Asara> so its not the battery i gather
[18:59:41] <Asara> :(
[18:59:47] <adj_> I think so
[19:00:06] <Asara> now what else could it be...
[19:02:40] <adj_> the protection circuit of the battery could be damaged, but I highly doubt it
[19:03:48] <adj_> could you post a picture of the Teres opened, showing the boards and battery etc.
[19:04:40] <Asara> sure one sec
[19:05:06] <Asara> https://i.imgur.com/kYwJq5d.jpg
[19:07:06] <Asara> if you need a picture of a more specific area lmk
[19:09:16] <adj_> if I were you I would:
[19:10:25] <adj_> 1- Test the power supply voltage (connect to the mains). I think that the power supply for Teres is 5V regulated, so it should read about that
[19:11:42] <adj_> 2- Test the Battery1 pins with the battery connected and the laptop turned on. I shoud be near 4.2 if it is charging, about 3.9 if not but not delivering current to the board, and a bit less if it's delivering current
[19:12:11] <Asara> how would i ctest the power supply first?
[19:12:16] <Asara> connect it to the a53
[19:12:18] <Asara> and then?
[19:12:23] <adj_> 3- Test that the 5V are getting to the main board (it should be a V+ and GND test points somewhere in the board)
[19:12:53] <adj_> if everything is right, I think that it should be a motherboard hardware problem or a firmware problem
[19:13:32] <adj_> connect the power supply to the mains and test the barrel one probe in the outer part and the other to the internal pin
[19:13:53] <adj_> without connecting it to the laptop
[19:15:49] <Asara> oh wait when you say mains, you mean the actual outlet?
[19:15:54] <adj_> yes
[19:16:00] <Asara> okay one sec
[19:16:09] <Asara> and its the same process? red inside, black outside?
[19:16:15] <Asara> multimeter on 20v?
[19:16:25] <adj_> same position
[19:16:46] <adj_> inside and outside doesn't matter, only changes the sign
[19:17:18] <adj_> but most usual is GND outside, V+ inside
[19:17:44] <adj_> if the power supply was sold by olimex for teres it should be the right polarity
[19:18:28] <adj_> I like Teres internals, are so simple
[19:19:01] <Asara> so i can't get the v+ inside
[19:19:08] <Asara> because the area is too small
[19:20:08] <Asara> ah
[19:20:08] <Asara> okay
[19:20:12] <Asara> if i force the red cable in a little
[19:20:18] <Asara> it shows 4.97 ish
[19:20:19] <adj_> you can connect the power supply, better without the battery, and text V+ and GND on the motherboard connector
[19:20:33] <adj_> 4.97 is right
[19:20:51] <adj_> test
[19:22:50] <Asara> ACTION hopes to get this working before heleaves on vacation on tuesday so he can bring his new laptop with him :)
[19:27:56] <diego71> meanwhile I made a simple test
[19:28:52] <diego71> teres doesn't boot without the battery connected, but just show the olimex logo on display and then it switch off, switch on again ...
[19:29:34] <Asara> switch it off how?
[19:29:57] <diego71> the display goes blank after few second
[19:30:09] <Asara> yeap i can hold the power button
[19:30:11] <Asara> to turn it off
[19:30:17] <Asara> hold the power button for af ew seconds
[19:30:20] <Asara> but then it doesn't turn back on
[19:30:24] <Asara> after pressing the power button
[19:30:33] <diego71> If i connect the battery, and then connect again the power
[19:30:49] <diego71> it shows the battery simbol for few second
[19:31:13] <Asara> same
[19:31:14] <diego71> If i keep the power button for some second (2-3) it boots
[19:31:59] <Asara> oh shi-
[19:32:01] <Asara> did that work?
[19:32:08] <diego71> yes
[19:32:33] <Asara> oh wow
[19:32:34] <Asara> that worked
[19:32:37] <Asara> why the hell did that work
[19:33:04] <diego71> :)
[19:33:05] <adj_> Asara, don't worry, at least you learned about using a multimeter :D
[19:33:09] <Asara> facts
[19:33:13] <Asara> thanks a ton guys!
[19:33:17] <Asara> appreciate y'all immensely
[19:34:29] <Asara> updated the thread
[19:34:31] <Asara> thanks a bunch guys
[19:35:34] <Asara> now i'll spend the next few days compiling gentoo, and hopefully all is well at the end of it: )
[19:37:38] <diego71> nice, have fun compiling :)
[19:38:21] <diego71> (pay attention is not fast as a modern pc... it will take a while ...)
[19:39:15] <Asara> diego71: i'm use to slow hardware :)
[19:39:23] <Asara> running open source stuff is never the quickest, but is definitely the most fulfilling
[19:45:23] <ivanshmakov> BTW, I’m considering ordering OLinuXino A20 LIME. Any pointers to ‘success stories’ running Debian GNU/Linux 9 (or Devuan 2.0 ASCII) on it?
[19:47:27] <Asara> ivanshmakov: I've installed freedombox on my A20, which works fine and is based on debian
[19:50:19] <adj_> ivanshmakov, armbian, also based on debian
[19:50:25] <ivanshmakov> Asara: Do you have any notes on it posted somewhere on the Web?
[19:50:40] <adj_> if you don't need graphics, mainline is nice
[19:50:50] <Asara> oh sorry I have it on the lime2
[19:50:53] <Asara> (with no graphics)
[19:50:58] <Asara> https://wiki.debian.org/FreedomBox/Hardware/A20-OLinuXino-Lime2
[19:51:04] <adj_> even GPU acceleration could be supported by mainline in the near future
[19:51:29] <Asara> hopefully the bootlin guys get it all up and running
[19:51:34] <adj_> I also have Lime2, not Lime, but I think that not a big difference
[19:51:37] <Asara> paulk estimated by end of december right?
[19:51:47] <Asara> is when that whole kickstarter push is supposed to be done
[19:52:02] <adj_> yes VPU could be ready soon
[19:52:09] <valhalla> I have a lime, but I;m not sure I've ever used it with video output
[19:52:52] <adj_> the display controller is supported, including HDMI, but I have not used it with mainline
[19:52:56] <valhalla> but see https://wiki.debian.org/InstallingDebianOn/Allwinner and here is the (old) installation report where everything worked https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777334
[19:53:22] <adj_> it should work, GPU should work soon (nearly capable of Weston and Kwin)
[19:53:43] <valhalla> (I've been using mainline on all of the olinuxinos I have for a while, but I'm afraid the lime has always been relegated to headless tasks here)
[19:53:50] <ivanshmakov> ACK, that’s going to be helpful, thanks.
[19:54:32] <adj_> A20 is probably the best supported allwinner in mainline: http://linux-sunxi.org/Linux_mainlining_effort
[19:54:55] <adj_> ivanshmakov, and as said prospects for the GPU and VPU acceleration in the near future
[19:55:07] <valhalla> ACTION recommends the SD card installer, btw, as I believe it's the simplest method
[19:56:43] <adj_> ivanshmakov, I don't recommend the NAND versions of Lime and Lime2 as MLC NAND is not supported for the maintained code
[19:56:54] <adj_> sdcard and emmc work nice
[19:57:08] <ivanshmakov> As for the acceleration, is video output supported at all with Debian 9 (main)?
[19:57:16] <ivanshmakov> adj_: ACK.
[19:58:02] <adj_> no acceleration is supported right now, only framebuffer and video output
[19:59:09] <adj_> I think that paulk is working on kvm planes or using the gpu for the output, but I don't recommend any gpu usage until lima driver is ready
[20:00:08] <adj_> a simple wayland compositor shoud work accelerated by the GPU with lima driver in the very near future
[20:00:09] <ivanshmakov> adj_: Unaccelerated video would be just fine for me; I’m mainly interested in Linux ‘text’ VTs, although the ability to run X and Sxiv, or at least fbi(1), would be very handy.
[20:01:07] <adj_> that should work, I suppose, but I don't use video output since two years ago (when I didn't use mainline kernel), so I can check how it works
[20:01:18] <adj_> I can't
[20:02:04] <adj_> but I would bet it works more reliable than with the old allwinner kernel
[20:02:56] <adj_> ivanshmakov, Lime2 has 1GB of RAM instead of 512MB of Lime, that's a huge improvement
[20:03:20] <adj_> and having Gbit ethernet, although slow for being gbit, it's also nice
[20:05:12] <dddddd> Hi (late to the party). About TERES without battery... it's the first thing I tried while assembling it. https://www.olimex.com/irc?date=2018-01-18
[20:05:50] <ivanshmakov> adj_: For the task at hand, 512 MiB would’ve been enough. But I suppose having twice that much won’t hurt, either.
[20:09:29] <MoeIcenowy> dddddd: mainline *may* work
[20:09:49] <MoeIcenowy> (although I failed on Pinebook 14" when booting Linux
[20:10:08] <MoeIcenowy> (not without battery, but with the battery connector loosen and not functional
[20:20:03] <dddddd> Hello Icenowy, glad to see you here! Never tried without the battery after the first time (non-mainline). I'll try someday again, now that I'm using mainline.
[20:25:05] <ivanshmakov> Curiously, can I debootstrap(8) a system onto an SD card from a non-ARM (amd64, specifically) architecture? I suppose I may need Qemu for that, or?
[20:33:22] <Asara> MoeIcenowy: wait mainline might work on the teres? As in I don't need to build off 3.10 + teres headers?
[20:34:05] <Asara> > https://github.com/khumarahn/teres1-gentoo is what I intended on following, I've only ever done basic gentoo installs before without needing any external stuff
[20:36:25] <dddddd> ivanshmakov, I think you'll need qemu for the second stage.
[20:39:02] <dddddd> I never used debootstrap, but multistrap.
[20:43:48] <dddddd> Asara, not everything works with mainline, but search the forum for some debian image...
[20:44:24] <Asara> dddddd: my intention was to install testing gentoo on it
[20:44:39] <Asara> but I wouldn't mind running debian in the interm until everything is merged into mainline
[20:48:50] <dddddd> Asara, the debian image I'm talking about is (u-boot/kernel) proper mainline (with the exception of firmware for wifi IIRC) from some months ago
[20:55:35] <dddddd> Well, it's been a while and maybe not everything was already merged then, but close enough to be. Memory is blurry, check for yourself (there's a couple of threads).
[20:55:49] <Asara> yeap this one: https://www.olimex.com/forum/index.php?topic=6092.0
[20:56:01] <Asara> I assume at least
[20:56:45] <dddddd> Yes, that's one. See «going mainline» too.
[21:00:55] <MoeIcenowy> Asara: I'm trying to bring up linux 4.14 on teres
[21:01:06] <MoeIcenowy> based on a heavily patch branch used by my distro
[21:35:09] <ivanshmakov> dddddd: ACK, thanks.
[22:32:24] <Asara> damn the debian image doesn't have wpa_supplicant
[22:51:27] <dddddd> I don't use wifi, but usb-ethernet. I guess you can install it from ethernet, apt-offline-like, or just copy the packages if it has few dependencies.
[22:52:32] <Asara> yeap i installed it,
[22:52:37] <Asara> I am able to auth to my network, but not getting an ip.
[22:52:47] <Asara> interface is refusing to come up currently