IRC log of #cubox of Tue 16 Sep 2014. All times are in CEST < Back to index

03:36 owntheweb Howdy
07:06 R0nd couldn't compile xbmc yesterday as I'm missing vpu_wrapper.h
07:08 R0nd as far as I can tell it's a part of imx-mm library, but I'm somewhat confused as to where to obtain it
07:10 cbxbiker61 ##SOURCE[0]: http://sources.openbricks.org/3.1/libfslvpuwrap-@[email protected]
07:10 cbxbiker61 version is 1.0.45
07:11 cbxbiker61 other sources are also in that treee
07:12 R0nd cbxbiker61: there's only imx-vpu-3.10.17-1.0.0_beta.tar.bz2 in that dir
07:13 R0nd oh sorry
07:13 R0nd found it
07:31 R0nd cbxbiker61: "configure: error: lib_vpu is required, consider installing imx-lib" which imx-lib source package do I need to build?
07:46 cbxbiker61 ##SOURCE[0]: http://sources.openbricks.org/3.1/imx-vpu-3.10.17-1.0.0_beta.tar.bz2
07:47 cbxbiker61 $MAKE 'PLATFORM=IMX6Q'
08:49 R0nd "error: '__kernel_long_t' does not name a type" when building xbmc :(
11:31 kgp Rabeeh: How is life
11:31 kgp ?
12:31 paulk-collins rabeeh, jnettlet: for your consideration, U-Boot patch: http://download.paulk.fr/cubox-i/0001-cubox-i-Declaration-ending-correction.patch
14:05 rabeeh paulk-collins: thanks
14:05 rabeeh kgp: hi
14:30 wrexem good morning, peeps
14:36 balog is there anyone who would give a noob some hand-holding and direction on getting one of the jasbir rootfs installed?
14:37 balog to be honest, i don't really get the order of things
14:38 balog i'm guessing that i need some variant of uboot and a kernel ready, and then i can just unpack the rootfs, but i'm not 100% on exactly how i would go about it
14:47 rabeeh balog: yeah
14:47 rabeeh which one?
14:47 balog 3.10.17 ga i'm hoping
14:48 balog doing some stuff where i'm trying to get portrait mode and hopefully somewhat accellerated webkit going
14:49 balog and that looks like a promising platform, and i'm guessing in the future i'd want to build yocto myself, but for the time being i just need to make it bootable so i can play around a bit
14:50 balog don't have a dedicated debian machine atm. (on macos) so doing the whole compilation in a vm i'm guessing would be ...not awesome
14:59 balog rabeeh: i've gotten your repack running, don't know if i can just replace the rootfs with that one or how this really works? more used to debian on x86 hardware
15:00 balog rabeeh: is the other one, the one marked july perhaps based on more recent libraries?
15:15 kgp Any new debian (should we call it rabian) image around? :)
16:09 earthy kgp: Igor Pecovniks image?
16:09 earthy http://www.igorpecovnik.com/2014/08/19/cubox-i-hummingboard-debian-sd-image/
16:13 kgp cool
16:13 kgp I'll have a look :)
16:22 wrexem I'm using Igor's build; really like it.
16:22 wrexem Although I'm not sold on the mountpoints... and not sure how I change it to use the default-style fstab stuff.
16:29 wrexem Does Igor ever use the IRC?
16:29 wrexem Someone said he was on vacation so maybe he'll be back sometime.
16:40 bjorn` So, hummingboard models; do they expose i2s headers?
16:43 bjorn` And, regarding ethernet on the 1GBit models; Is it true that actual throughput is limited 400Mbps?
16:49 wrexem That's the limit; I think on Igor's build it runs about 200 atm
16:50 wrexem vs. 22 or something on the rpi
16:50 jnettlet With the latest stack changes generally you get about 550 down and 440 up with tcp
16:50 wrexem I haven't tested that number myself. Is that with a specific build jnett?
16:51 wrexem jnettlet*
16:58 jnettlet it should be with the 3.14.14 and newer kernels
16:58 jnettlet or upstream in net-next
18:29 speedio is cec working with the latest xbian image?
18:44 wrexem I saw it work on my TV with openelec
18:45 wrexem speedio
19:44 R0nd I'm getting "/usr/include/linux/sysinfo.h:8:2: error: �__kernel_long_t� does not name a type" when compiling xbmc, any idea what am I doing wrong?
19:45 wrexem That type should be declared elsewhere, in one of your include paths...
19:45 wrexem So you might be missing one of those
19:50 R0nd wouldn't it complain about header files not found instead?
19:51 wrexem I think that's what it's saying "type used is not a type"
19:51 wrexem but maybe not, idk
19:59 R0nd hmm, includes seem to be in order
20:08 R0nd someone suggested just adding typedefs to the offending header file
20:08 R0nd it's an ugly hack but obviously it works
20:28 cjori Hi all, I'm trying to get my JMB362 (a SATA PCI-e card) to work with my HummingBoard, but I can't seem to get it to detect. Using lspci I only see the PCI bridge.
20:28 cjori (more details here: http://www.solid-run.com/community/topic1668.html)
20:28 cjori Any idea how can I get the pci card detected
20:29 wrexem Which kernel, and can you cat your uEnv.txt ?
20:29 wrexem and pastebin your interrupts file as well please
20:29 wrexem I can respond on the forum if you prefer
20:30 wrexem cjori * the above was indeed to you ( I have gotten mine working quite well, PCI-E )
20:30 cjori using the latest debian wheezy release (from http://www.solid-run.com/community/topic1573.html) kernel 3.14-14
20:30 wrexem ok. uEnv.txt ?
20:30 cjori this is my uEnv.txt: http://pastie.org/private/duxjisq39f8wgmabfpguq
20:31 cjori (btw, the PCI card heats up when it's connected, so I'm guessing thing are electornically find)
20:31 cjori fine*
20:31 wrexem I have had almost the exact same issue. But it was fixed by using Igor's build...
20:32 wrexem the one you linked.
20:32 cjori :(
20:33 wrexem Can you cat your interrupts
20:33 cjori what file is that located in?
20:34 wrexem cat /proc/interrupts
20:34 cjori http://pastie.org/private/wamjt27igkw18omzsgveq
20:36 wrexem Now this may sound dumb. Which side of the board did you place the card on?
20:36 wrexem And which board is it?
20:36 cjori the side of the cpu (SOM), i2ex
20:40 wrexem Is that the complete dmesg output? I can see the kernel message in mine
20:40 wrexem when I dmesg | grep -i pci
20:40 wrexem e.g. : [ 0.000000] Kernel command line: root=/dev/sda1 rootfstype=ext4 rootwait console=ttymxc0,115200n8 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 rd.dm=0 rd.luks=0 rd.lvm=0 raid=noautodetect pci=nomsi
20:40 cjori are you referring to the one I pasted on the forums? It might be before I added the pci=nomsi argument
20:41 cjori but otherwise, it's complete, yes
20:41 wrexem ok, do consider updating that piece of your forum post, and include the other pieces I asked you for. doubtless someone will make more sense of it than on. I'm just comparing my information to yours now.
20:42 cjori will do. Thanks
20:42 cjori what's the output of dmesg | grep -i pci on yours? Is it any similar to mine?
20:43 wrexem I don't have that first line on yours: [ 0.410458] imx6q-pcie 1ffc000.pcie: phy link never came up
20:43 cjori aha, that made me suspicious indeed
20:43 wrexem http://pastie.org/9559603
20:44 wrexem Mine is a network card
20:44 wrexem But I'm certain they should behave very similarly
20:44 wrexem Perhaps there is a config option which must be enabled... let me look at something really quick
20:48 cjori yes. Thank you, much appreciated
20:48 wrexem I also have something else
20:48 wrexem 152: 0 0 GIC 152 imx6q-pcie
20:48 wrexem You have PCIe PME there
20:48 wrexem in /proc/interrupts
20:49 wrexem I am actually using a one-previous build by igor
20:49 wrexem let me see if I can find a link
20:49 wrexem cjori
20:50 cjori aha, that's interesting
20:50 cjori are you also using an i2ex HummingBoard?
20:50 wrexem Yes
20:50 wrexem Same exact model
20:51 wrexem I have an SSD on the bottom of mine, and a wifi card on top
20:51 wrexem root@cubox:/usr/src/linux-imx6-3.14# lspci
20:51 wrexem 00:00.0 PCI bridge: Device 16c3:abcd (rev 01)
20:51 wrexem 01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8192SE Wireless LAN Controller (rev 10)
20:51 cjori that's awesome
20:52 wrexem You can see my posts in the forum as JMECHAM
20:54 wrexem I don't see how to ge this prior images.
20:55 wrexem It's possible I am dumb.
20:55 cjori what version did you have? Changing the version number in http://cubie.nobrainz.de/downloads/Cubox_Debian_1.6_wheezy.zip works
20:55 cjori (e.g. 1.6 -> 1.5, etc)
20:56 wrexem I think I probably have version 1.4 actually, and that pci=nomsi fixed it
20:56 wrexem I do have a more current kernel
20:56 wrexem than what was in the image
20:57 wrexem I built and installed that myself; made a forum post concerning the exact steps
20:58 wrexem jnetlett and rabeeh are who helped me get mine working - I think it would be wise to try the steps I followed before invoking their help though.
20:58 wrexem and malte, also
20:59 wrexem cjori, that thing you see coming up under lspci is the pci-e "bridge"
21:00 cjori yeah
21:01 wrexem I was actually thinking about buying a sata card for that slot; do you have a link for the one you have?
21:01 cjori can you link me to your post detailing the steps I should take?
21:01 wrexem For compiling kernel?
21:02 wrexem http://www.solid-run.com/community/topic1648.html
21:02 wrexem That's how and what I built
21:05 cjori alright, I'll do that now over the 1.4 release. Hope that's going to work
21:23 wrexem cjori - that sata card, do you have a link for it?
21:23 wrexem I was considering doing something very similar
21:23 cjori it's a JMB362 based SATA card
21:24 cjori that's the one I bought http://www.ebay.com/itm/mini-PCIE-to-sata-Adapter-/121409251817?pt=US_Internal_Network_Cards&hash=item1c448e29e9
21:24 wrexem Very expensive huh : (
21:24 cjori but search for {JMB}362 on ebay and you'll find more.
21:25 cjori yes, it is. So you must realize how much it suck that it doesn't work :(
21:25 wrexem Oh totally, I was bummed when my (free, scavenged) network card doesn't work. Persistence! You'll get it! :)
21:25 cjori Yeah, I don't tend to give up so fast :P
21:28 cjori wrexem: btw, is there a noticeable speed difference when booting via the msata ssd?
21:29 wrexem Definitely
21:29 wrexem 15s -> 9s
21:29 cjori then I need to get one of those too! :O
21:29 wrexem heh
21:29 wrexem idk if you need both; if you wanted slow sata storage, USB is probably great
21:30 wrexem idk about the speed over USB, I mean to test that sometime
21:30 wrexem root@cubox:/usr/src/linux-imx6-3.14# dd if=/dev/zero of=/test.file bs=32M
21:30 wrexem ^C19+0 records in
21:30 wrexem 19+0 records out
21:30 wrexem 637534208 bytes (638 MB) copied, 5.73811 s, 111 MB/s
21:30 cjori the sata over pcie is meant to serve two large HDDs
21:31 cjori that's nice.
21:31 wrexem it's a little slower when it needs trimming
21:31 wrexem but still, rockin' speed
21:32 wrexem root@cubox:/boot# dd if=/dev/zero of=/boot/test.file bs=32M
21:32 wrexem ^C6+0 records in
21:32 wrexem 6+0 records out
21:32 wrexem 201326592 bytes (201 MB) copied, 18.2876 s, 11.0 MB/s
21:32 wrexem compared to my (admittedly junk class 2) sdcard
21:35 wrexem What do you think about this idea: http://www.aliexpress.com/pcie-pci_reviews.html and then hook in one of these: http://www.amazon.com/Syba-2-Port-SATA-PCI-Express-SD-MPE40056/dp/B009WN7QTE/ref=pd_cp_pc_0
21:35 wrexem A cheaper solution maybe for the same result?
21:35 wrexem assuming you don't mind having that ribbon dangling out somewhere
21:36 wrexem And I wonder about something like this also: http://www.newegg.com/Product/Product.aspx?Item=9SIA1341S84525&cm_re=Pci-e_riser_cable-_-9SIA1341S84525-_-Product
21:37 cjori yeah, that's a one I considered buying, but it doesn't fit nicely as the one I ended up buying
21:39 wrexem Does anyone know about PCI-E riser cables? Could I hook a video card to something like this??? http://www.newegg.com/Product/Product.aspx?Item=9SIA1341S84525
21:40 wrexem That would be amazing, lol
21:42 rabeeh cjori: i'v missed most of the conversation
21:42 rabeeh are you having issues with discovering the card? or working with interrupts? (msi)
21:42 cjori rabeeh: discovering the card
21:42 rabeeh lspci shows nothing?
21:42 wrexem Here is his post rabeeh: http://www.solid-run.com/community/topic1668.html
21:43 wrexem I had him duplicate much of the troubleshooting you and I did
21:43 cjori only this: 00:00.0 PCI bridge: Device 16c3:abcd (rev 01)
21:43 cjori yep, I have most of this info on that topic
21:43 wrexem rabeeh, when have finished with him may I have a brief moment of your time also please :)
21:44 rabeeh yeah
21:44 rabeeh sure.
21:44 rabeeh although i'm starving....
21:45 cjori haha this can wait to another day, food is more important
21:46 rabeeh so the Jmicron looks like a standard AHCI controller
21:46 rabeeh so that should be easily supported by the kernel (when the card is found)
21:46 rabeeh cjori: where did you buy it from?
21:46 cjori ebay
21:47 cjori thing is, I'm not sure the card is the thing to blame. I'm getting the error: "imx6q-pcie 1ffc000.pcie: phy link never came up" even when it's disconnected
21:47 rabeeh http://www.amazon.com/PM362-SATA-Mini-PCIe-Adapter/dp/B008I74468/?tag=leosm1-20
21:47 rabeeh like that one?
21:48 cjori searching google, I've found this thread which someone claims it to be a hardware problem https://community.freescale.com/message/419459#419459
21:48 cjori rabeeh: yep.
21:49 rabeeh Turned out that the termination resistors on the PCIe reference clock were incorrect (50K instead of 50 Ohm). Once we fixed that problem, all 6 modules respond to lspci queries and everything is working. (I actually think it's more odd that any of the WiFi boards worked with this condition.)
21:49 rabeeh ^^^^ We don't do such mistakes :)
21:49 cjori :D
21:49 cjori wrexem: btw, just finished compiling and installing that kernel. getting the same error :(
21:49 rabeeh which one exactly?
21:50 cjori latest one from github.com/SolidRun/linux-imx6-3.14
21:50 wrexem I suggested perhaps it was a problem with either his build (of linux) or the kernel he was using.
21:50 rabeeh cjori: and 'uname -a' shows latest build for sure - right?
21:50 rabeeh wrexem: where did you buy your wifi card from?
21:50 wrexem OH - btw, cjori... Make sure you actually REMOVE POWER from the HB
21:51 cjori yep: Linux cubox 3.14.14+ #1 SMP Tue Sep 16 12:29:31 PDT 2014 armv7l GNU/Linux
21:51 wrexem when changing kernels
21:51 wrexem I had some weirdness when I didn't do that.
21:51 wrexem rabeeh, I scavenged it from an old laptop.
21:51 cjori hmm that's interesting.
21:51 wrexem I found the reset button works the same as.
21:51 wrexem removing power
21:52 cjori nope
21:52 wrexem rabeeh: Do you have a donate button, I will buy you dinner, lol
21:52 cjori The HB is connected with a serial connection to my computer and I see the error "[ 0.401372] imx6q-pcie 1ffc000.pcie: phy link never came up" right after the "Starting kernel...." message
21:53 wrexem root@cubox:/boot# dmesg|grep link
21:53 wrexem [ 0.241591] audit: initializing netlink subsys (disabled)
21:53 wrexem [ 2.098485] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
21:53 wrexem [ 2.741491] Initializing XFRM netlink socket
21:53 wrexem [ 7.177324] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
21:53 wrexem [ 10.169796] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
21:53 wrexem I do not get that error in my dmesg
21:54 cjori yeah. I'm pretty confident this is the symptom of my issue :(
21:54 cjori (consider this is even without the pcie card connected!)
21:55 wrexem let me try mine without a card in it
21:55 malte hi wrexem
21:56 wrexem Hey malte :)
21:56 malte :)
21:56 wrexem Oh I see your message now, k
21:56 wrexem thanks
21:57 wrexem Yep, cjori - with no card in I get that message. root@cubox:~# dmesg|grep link
21:57 wrexem [ 0.411494] imx6q-pcie 1ffc000.pcie: phy link never came up
21:57 cjori wrexem: oh, alright.
21:57 wrexem You might try locating a wifi card like I have in mine - most laptops use them
21:57 wrexem and test that to see if it works
21:58 wrexem that will at least narrow the search no?
21:59 wrexem if it did wake up, that is
22:02 rabee 22:02 * rabeeh orders the jmicron and rtl cards from amaon
22:02 rabeeh s/amaon/amazon.
22:02 rabeeh ttyl
22:02 rabeeh looks like link negotiation issues; i need to reproduce it in the lab.
22:03 wrexem I got my rtl card working rabeeh
22:03 wrexem not sure if you knew that
22:04 cjori rabeeh: I can lend you my card, if my understanding is correct you guys are based in Israel (and so am I :P)
22:04 cjori (and this is amazing, thanks!)
22:05 rabeeh cjori: oh - then that would save me all the waiting
22:05 rabeeh where are you located at?
22:05 cjori Tel Aviv
22:05 rabeeh ok; can you please PM your details?
22:06 cjori of course
22:06 rabeeh Atai lives near Tel Aviv and will be coming to Tefen on Sunday
22:06 rabeeh or even earlier on Thursday.
22:07 wrexem malte; pm
22:08 malte yes yes
22:08 malte its late here
22:08 malte :)
22:56 wrexem Whoever posted this rocks: http://gleenders.blogspot.be/2014/08/hummingboard-gpio.html
22:56 wrexem That is awesome.
22:58 malte http://www.solid-run.com/community/topic1637.html
23:00 curlymo wrexem, indeed what is so special about it?
23:00 curlymo just common linux knowledge?
23:00 wrexem Indeed, common enough for a schlub like me to walk through it.
23:01 wrexem I am very new to the linux scene, as I think I've mentioned.
23:01 wrexem I do tons of OTHER things, but nothing like this stuff.
23:01 curlymo than you should have said:
23:01 curlymo Getting to learn the GPIO kernel interface rocks ;)
23:01 earthy hm. I'm not that new to linux, but the GPIO kernel interface is new to me.
23:01 wrexem Both things rock. ;)
23:02 curlymo malte, you forgot this link https://github.com/linux4kix/linux-linaro-stable-mx6/commit/7311833a128054c5f254b8168a8022e7b87db7e8
23:02 curlymo next addition to my portfolio ;)
23:02 malte great
23:03 curlymo :p
23:03 wrexem ok guys, I am headed off to my hacker club! http://www.hackmaine.org/
23:03 wrexem bringing my HB for show and tell :)
23:05 malte :)
23:07 curlymo @wrexem, this is essential information for you https://github.com/linux4kix/linux-linaro-stable-mx6/blob/aab16742677bdfe6ceb593bbaa5b51342cabf18f/arch/arm/boot/dts/imx6qdl-hummingboard.dtsi#L175-L182
23:08 curlymo it shows the GPIO number for each header pin
23:13 wrexem So is that what you use in that export command?
23:13 wrexem echo 22 > /sys/class/gpio/export
23:13 wrexem or is it 67?
23:13 wrexem http://gleenders.blogspot.be/2014/08/hummingboard-gpio.html
23:14 wrexem curlymo *
23:14 curlymo hmm
23:14 curlymo i didn't see he already got it listed in the table
23:15 curlymo pin 12 = echo 72
23:15 wrexem Excellent information
23:15 wrexem Thank you. :)
23:15 wrexem really AFK now.
23:16 curlymo or use wiringX / wiringHB in your C programs