IRC log of #cubox of Wed 29 Jan 2014. All times are in CET < Back to index

00:00 _rmk_ and as Linus has in the past closed the merge window early... I really don't like stuff hanging around after 10 days
00:03 jnettle 00:03 * jnettlet agrees. Linus is getting very tired of the last minute merge rushes that have been happening the last few releases.
00:06 dv_ jnettlet: interesting patch. I didnt run into this issue yet though
00:06 dv_ I have become very skeptical of libfslvpuwrap though
00:07 dv_ it has several design flaws on top of the ones from VPU, and has almost zero documentation
00:07 dv_ also, it does not give me that much benefits compared to using imx-vpu directly
00:07 dv_ I suggest using imx-vpu in new projects. I will move gstreamer-imx to imx-vpu in a future version after 1.0
00:13 jnettlet good to know
00:15 dv_ btw. this G2D API looks to me like functionality for offscreen image manipulation
00:22 jnettlet dv_, it can be used for that. It is just a simple wrapper for the 2D engine, which can map compatible images to surfaces and do normal manipulations that can be done with blits.
00:22 dv_ yeah. perhaps I will add a transform element for it someday. not high priority though.
00:22 dv_ I wonder how its performance compares with the IPU
00:22 jnettlet you just get the very basic clear,blit,copy functions without needing to setup things like brushes etc
00:23 jnettlet well it can handle 2048x2048 images which is a step in the right direction :-)
00:27 jnettlet truthfully if we are only handling video media at 30fps or less we should not have much of a problem handling it.
00:28 jnettle 00:28 * jnettlet has had enough fun for the night. turning in while things compile
04:15 Coburn Hmmm...
04:16 Coburn For some reason I cannot boot a zImage on this CuBox
04:16 Coburn bootm says "wrong image format"
04:16 Coburn go 0x2000000 says "Decompressing Kernel... OK, Booting Linux" and stalls
04:16 Coburn Could I have some assistance?
05:56 jnettlet Coburn, did you build your own kernel?
06:02 Coburn no, one from xilka
06:04 Coburn jnettlet: I just downloaded the zImage, and put it on the microSD
06:04 Coburn loading it from the SD with ext4load was a pain, had to do mmc init; mmc rescan 0; then load
06:04 Coburn otherwise it would just say "nope, bad partition"
06:05 jnettlet Coburn, in general we only scan fat and ext2 partitions to load kernels and dtb's
06:05 Coburn well...
06:06 Coburn i need to make it bulletproof and single partition, this is for a client
06:06 Coburn and knowing him, he'll mess up a fat partition
06:06 Coburn jnettlet: what's the process of loading the kernel and DTBs?
06:06 Coburn do I load the zImage, and then the DTB at another address?
06:07 jnettlet it depends what version of the kernel it is.
06:07 Coburn 3.12.8
06:07 jnettlet the 3.0.35 based kernels don't use dtb
06:08 jnettlet Coburn, if this is for a client I would recommend rolling out mainline kernels. We are still working on upstream support.
06:08 Coburn well, the problem is
06:08 Coburn I need a driver in a 3.1x build
06:08 jnettlet As much as we want the latest and greatest 3.0.35 is really the only kernel that can be considered stable and well tested.
06:09 Coburn which is for a hiFace M2Tech DAC
06:09 Coburn without that driver, I'm screwed
06:14 jnettlet Coburn, then you need to either setup u-boot to load the zImage and dtb both go do different addresses, or you need to append the .dtb to the end of the zImage, if that option is enabled in the kernel.
06:26 Coburn ok...
06:26 Coburn well I do have my hands on a 3.11 kernel cubox
06:26 Coburn so i might get the kernel off that
07:52 Coburn ugh
07:52 Coburn uboot is a nesserary evi
07:52 Coburn evil
07:52 Coburn blargh...
07:56 jnettlet only necessary now. barebox will soon replace it
08:07 Coburn jnettlet
08:07 Coburn you still there?
08:08 jnettlet yep
08:08 Coburn I just looked at the 3.12.8 and it doesn't have framebuffer, even if it was software-wise.
08:09 Coburn Do you know what kernel, that is stable, that has the framebuffer?
08:09 Coburn All I need is to be able to use the HDMI port to display things to a HDMI enabled monitor.
08:09 Coburn I assume, on the CuBox, I will need to use a kernel with a GPU driver. Is this correct?
08:11 jnettlet Coburn, for hdmi support you will need _rmk_'s patches to the KMS driver in 3.12 or 3.13
08:11 jnettlet that will include the proper device tree changes to support HDMI
08:12 Coburn so, that will make /dev/fb* appear, is this correct?
08:12 jnettlet depending what you want to draw the framebuffer you may or may not need to use the GPU.
08:12 Coburn Well, it's just really a basic desktop.
08:12 jnettlet yes, it is not a full /dev/fb* device but a compatibility layer
08:13 Coburn What I need, really is just a fb output so I can then display it on the external monitor. The user will not be running 3D.
08:13 jnettlet What is the graphical layer that will draw to /dev/fb0
08:13 Coburn Xorg.
08:13 Coburn using the fbdev driver, afaik
08:14 jnettlet well if you enable KMS you can use the basic armsoc KMS driver to use unaccelerated X
08:14 jnettlet that supports things like modeswitching and such
08:14 Coburn do I need to recompile the kernel to use KMS?
08:15 Coburn or is it a boot-time cmd line option?
08:25 Coburn sorry to bug jnettlet
08:26 jnettlet Coburn, no worries. It depends if your kernel was built with KMS or not. I am not familiar with xilka's kernel.
08:26 Coburn jnettlet: what should I look for in the config?
08:27 Coburn if need be, I'll compile my own 3.12 kernel for the cubox with the patches
08:29 _Adik_ jnettlet: Ive searched through irc history and found that you were working on uhs-1 issues on cubox-i, I think that I just faced the problem
08:29 jnettlet _Adik_, congratulations :-)
08:30 jnettlet are you using an upstream kernel?
08:30 _Adik_ not tried it yet, geexbox build hat I tried is still based on 3.0.35
08:30 _Adik_ *that
08:32 _Adik_ it seems that even u-boot does not like uhs cards as there is about 30% chances that my cubox boots properly after plugging power
08:32 Coburn jnettlet: final question, where can I found rmk's driver ?
08:32 jnettlet I didn't think 3.0.35 fully supported uhs-1 yet
08:32 Coburn I can find some stuff at http://www.home.arm.linux.org.uk/~rmk/cubox/ but
08:32 Coburn nothing much
08:32 _Adik_ jnettlet: but shouldnt uhs-1 card fall back into normal mode in such case?
08:33 _Adik_ and still work w/o issues?
08:33 Coburn _Adik_: would depend on the controller inside the card
08:33 jnettlet Coburn, that is correct. his latest work is against 3.13, but the 3.12 patches should be relevant
08:34 Coburn what files do I look for, jnettlet?
08:34 jnettlet _Adik_, that is what I thought was happening on 3.0.35. Do you have a serial connection?
08:35 jnettlet Coburn, they are the latest carrier-1 patches from Nov.
08:35 jnettlet although I think you want to use the 3.13 patchsets. There are some patches that have gone upstream that you will need to fix things.
08:36 jnettlet There is a lot of churn upstream adding/fixing iMX6 support.
08:36 jnettlet Really my 3.10 lts kernel would be a better fit for you, but I am lagging on finishing that.
08:38 _Adik_ jnettlet: unfortunately not
08:38 jnettlet _Adik_, can you describe what your cubox-i is doing?
08:38 jnettlet which lights are lit up etc.
08:39 _Adik_ ok, so after plugging the card and connecting the power, sometimes the front red light turns on (as I wrote, there is about 30% chance for it...)
08:40 _Adik_ then, I see u-boot screen
08:40 _Adik_ few times it showed me that it want to boot from network (as it could not find the kernel) but normally it then boots linux
08:41 jnettlet _Adik_, oh that may be another problem that I may have run across.
08:41 jnettlet do you have time to tinker?
08:42 _Adik_ then, after krernel booted and all rc.d scripts completed, I see xbmc but what is funny, it works for few minutes and then system completly freezes, no icmp replays
08:42 MikeSeth uboot has an issue with uhs cards?
08:42 _Adik_ not now (im at work currently and my cubox stayed at home) but later no problem
08:43 _Adik_ but Im not sure that we are in the same timezone... ;)
08:43 jnettlet uboot doesn't know about uhs cards. This is maybe an iMX6 errata. rabeeh and I were trying to figure out if that was actually what was effecting this or not.
08:44 jnettlet _Adik_, I am in DK so close
08:45 jnettlet I had a patch that seemed to help with the errata but we were waiting on some more info from FSL
08:45 MikeSeth jnettlet: there was a guy a couple of days ago whose cubox wouldn't boot, he didn't know what kind of card he had, we assumed that there was physical damage to his cubox because the packaging was smashed during delivery, I wonder if this may be the case here
08:45 jnettlet I hope not, but possibly
08:45 _Adik_ jnettlet: so if you have some time later on, then no problem from my side
08:46 jnettlet _Adik_, ping me later. I will try and have something for you to try. Otherwise it may have to wait until tomorrow. Depends on how my day works out.
08:47 _Adik_ jnettlet: no problem at all, Ill ping you then
08:47 jnettlet great, have a good day
08:47 MikeSeth jnettlet: how come you get to hack all day? Do you get paid for it? ;)
08:47 _Adik_ to be sure that this is also related to uhs, I ordered two more cards - one different brand with uhs and the second one w/o
08:48 _Adik_ probably both will ship on friday so I will update you also about it
08:48 jnettlet _Adik_, okay thanks for the testing. I don't think this is uhs specific but it will help to be certain
08:49 _Adik_ jnettlet: ok, so have a good day!
08:49 jnettlet MikeSeth, consultant so I hack on random stuff all day. I plan to use the cubox-i's as a prime platform for some software I am working so getting it stable and full featured is beneficial to me.
08:50 MikeSeth gah I am in the wrong business
08:50 MikeSeth what I do all day is stupid enterprisey crap
08:51 davorin oracle and tomcat stuff? (o;
08:51 MikeSeth no, PHP :(
08:52 jnettlet I may need to do that soon :-) OSS consulting is getting more and more difficult.
08:52 davorin php is what i do most (o;
08:53 davorin could be worse for you, you could do microsoft stuff...
08:53 MikeSeth well, PHP has seriously matured now, but it's still crap, and most people who write PHP code should be flipping burgers in McDonalds
08:54 davorin ;-)
08:54 MikeSeth I'm going to break every principle I had today and write a daemon in PHP
08:54 jnettlet all technology has its place. Mostly it is about the implementation and use cases.
08:54 MikeSeth jnettlet: true, but PHP has what I politely call low bar of entry
08:55 MikeSeth on the other hand it sure delivers in practice
08:55 davorin you mean low bar = you can't charge much? (o;
08:55 jnettlet sure, but so does python, and javascript. low bar of entry is not a problem, it is management deciding to use low bar of entry implementations that is the problem.
08:55 MikeSeth daughter company writes dotnet, it takes them a month to write, test and deploy a fix, whereas I can do it in 5 minutes
08:56 MikeSeth davorin: no, as in everybody and their dog can write PHP
08:56 davorin well..same is everywhere...
08:56 davorin old days nobody could affort a dtp system...
08:56 davorin now every moron has 1000s of fonts and cliparts....
08:57 davorin and back then doing hacks in postscript was fun (o;
08:57 jnettlet Here in DK they LLLOOOOVVVEEE MS products. Some of the worst websites I have ever had the displeasure to use.
08:57 jnettle 08:57 * jnettlet shudders thinking about it
08:57 MikeSeth same here
08:57 davorin guess everywhere...
08:58 davorin and linux tries sometimes to mimic ms behaviour...like the evolution mail client...
09:00 davorin well..i wrote a whole network inventory system in php and dojo...including l2 traceroute (o;
09:00 MikeSeth I blame redhat
09:01 davorin centos isn't much better....and way behind with patches...
09:02 jnettlet and now RedHat and CentOS are going to work together.
09:02 davorin i started with sunos4 on a sparcclassic with sunisdn card to dial into internet with a fixed ip...
09:14 MikeSeth I started with a soviet clone of PDP11 where you load software from a deck tape
09:14 MikeSeth those were the times..
09:14 davorin aah..zx spectrum (o;
09:15 davorin did it in fpga then...runs at least at 70mhz (o;
09:15 MikeSeth I love spectrums, my uncle used to make and sell them
09:15 davorin still have one..and some keyboard spareparts left...
09:15 davorin and some old hp calc
09:16 MikeSeth I still play ninja saboteur and exolon in an emulator sometimes.. I'm 32
09:16 davorin jee you're young (o;
09:16 MikeSeth :P
09:16 davori 09:16 * davorin only celebrates prime numbers now...
09:18 davorin hmm..next year it's time gain...47 ;-)
09:18 MikeSeth that.. never occured to me
10:05 Montjoie hello, does someone know if it exists a driver for the CESA of cubox ?
10:24 gori hi, does someone know why my cubos running debian drops its wifi connection after a while of being idle? I cant access it from the outside and it does not respond to ping. However, if I use the local console, I can open a network connection from the inside no prblem. For a while, networks behaves from the outside as expected, and then dissapears aggain.
10:27 jnettlet Montjoie, in the IMX supplied kernels there is a CAAM driver. That provides some crypto functions to userspace like /dev/hwrng but I don't believe there is a proper cryptodev implementation
10:28 jnettlet gori, please provide logs to debug this. Sounds like maybe wifi is going into a powersave mode and not responding to incoming traffic.
10:33 jnettlet Montjoie, you can reference this community thread https://community.freescale.com/message/342822#342822
10:34 gori jnettlet: which logs would you like? syslog? and where shoudl I send them, here? I can do that tonight, when Im back home
10:34 Montjoie I wasnt speaking about cryptodev but kernel driver, I see a mv_cesa driver but I dont know if it works of cubox
10:36 jnettlet gori, you can try opening a topic on the forum to get wider exposure, and then drop a link in here in case someone has time to do realtime troubleshooting
10:36 jnettlet Montjoie, yes the mv_cesa driver works with the CBi. It is designed for all MX6 SOC's
10:37 Montjoie ok thanks
10:40 gori jnettlet: sure, will do that tonight. Thanks
10:50 jnettle 10:50 * jnettlet is going to walk the dogs now. You guys will have to chat amongst yourselves for a bit
11:05 scattym Hey, trying to build geexbox for cuboxi and there seems to be a source package missing on the openbricks site http://sources.openbricks.org/devel/mesa-9.2.2+git-8f0742051e850.tar.bz2 anyone know where else I might be able to get this?
11:43 xraxor_ scattym try to ask on the #geexbox channel
11:44 xraxor_ maybe someone can better answer you there as i have no idea about compiling :(
11:44 scattym no probs, will do. thx.
11:47 xraxor_ didnt notice you already had asked them
11:48 xraxor_ its a bit dead over there :(
11:49 scattym All good, I think I worked around it for now.
12:51 MikeSeth I am going to create a wiki page for common problems
12:51 MikeSeth input anybody?
13:13 jnettlet MikeSeth, I haven't received my CBi yet, or have questions about my order. Please point them to sales or support emails addresses and note that #cubox can not answer their questions
13:17 jnettlet I would also document the 3.0.35 stable FSL kernel vs upstream support
14:15 MikeSeth jnettlet: would you take a minute to look at the draft page to see if I wrote anything silly or missed anything obvious?
14:15 MikeSeth http://imx.solid-run.com/wiki/index.php?title=Common_problems
14:16 jnettlet MikeSeth, yep will look at it in a few
14:16 MikeSeth I'll add sections on screen and network problems later in the evening
14:27 jnettlet we have screen and network problems?
14:28 davorin network problems: flow control (o;
14:29 davorin many switches have flow off by default, so you would see lots of overrun errors on the cubox-i...
14:29 jnettlet MikeSeth, looks like a good start. We probably need to have sections for Shipping kernel vs Upstream and include problems with UHS cards
14:29 MikeSeth jnettlet: just the uboot resolution thing and some HDMI adapters mangling edid
14:29 davorin and performance is in the range of 70 - 80mbits/sec
14:30 MikeSeth oh yeah and the VPU locking 128Mb RAM for DMA
14:31 MikeSeth as of networking, there seems to be a CRDA problem in brcmfmac in 3.0.35 (channels > 12 unavailable), and some power management issue with wifi
14:31 xraxor_ MikeSeth great stuff but is that info valid for the original CuBox? if its just the cubox-i range could you change cubox to read cubox-i ? names can be confusing
14:31 MikeSeth xraxor_: well, this is the cubox-i wiki
14:32 MikeSeth xraxor_: but yes, what I should do (with rabeeh's permission) is a template box to explicitly mention this is a cubox-i wiki
14:32 jnettlet MikeSeth, he is correct. They shold all read Cubox-i
14:32 jnettlet the Cubox-i != Cubox
14:32 davorin don't forget google and people searching for something (o;
14:33 jnettlet we are already having enough problem differentiating to end users needing support
14:33 davorin make the cubox-i with a red case (o;
14:33 jnettlet MikeSeth, actually that should probably be the first stanza.
14:33 jnettlet You can buy the cubox-i with a red case
14:33 MikeSeth FAQ says you can't, I want one!
14:34 MikeSeth I changed all references to Cubox-i explicitly
14:34 jnettlet you can't yet
14:34 davorin not officially..was a marketing gag...
14:34 davorin please..just one case...makes resellling easier...
14:35 MikeSeth I still insist the Cuboxes should be dressed as companion cubes
14:35 MikeSeth problem is, Valve would sue everybody and their mom
14:45 MikeSeth oh wow AMD announced a 8-core ARM SoC for servers
14:46 MikeSeth I wonder if intel is feeling the heat yet
15:16 kuguar hi! mouse does not work in android. third.
15:31 MikeSeth kuguar: does it power up at all?
15:31 MikeSeth android 4.3 seems to have lots of interesting issues
15:33 kuguar MikeSeth in debian mouses working fine
15:34 jnettlet Is there no mouse, or no cursor?
15:34 jnettlet please post the output of logcat
15:41 kuguar no mouse. on mouse Sven work scroll, but the two buttons do not work
15:42 kuguar if I can get the log. where is it?
15:46 jnettlet kuguar, use adb to connect to the cubox-i then run the command logcat
15:48 kuguar jnettlet, thanks. now try.
17:08 kuguar adb error: device not found
17:14 SoCX just to toss this out there has anyone successfully rezized the Cubox-i android images to better fit a 16gb card; gparted is giving me headaches..
17:36 gori SoCX: this guide might help https://raspberrypi.stackexchange.com/questions/499/how-can-i-resize-my-root-partition
17:36 gori you might need a linux machine to mount the card on it though, dunno about android.
17:39 SoCX I've ran through tha one, seems it would only help for the linux side of things, (Which does help for my next task), but the android side of things gets a little messy. There are about 3 large partitions; 2 of which need to be resized.. gets ugly.
17:39 kuguar how i can enable "usb debuging" in android ?
17:39 SoCX I'll document and post to the forum
17:39 SoCX Kugar; should be in settings/develeper options
17:39 MikeSeth i haven't resized android which has like 8 partitions
17:40 MikeSeth but general principle is 1) change partition size
17:40 MikeSeth 2) expand the fs with tune2fs to fit the partition
17:41 MikeSeth kuguar: dumb question, have you tried plugging the mouse into the other usb
17:46 kuguar dumb question? bluetooch not work! mouses not work! it is unclear how to make it work.
17:46 SoCX to get a better view of what the FS is like in the Android image, here's a screencap
17:46 SoCX http://i.imgur.com/xwOofft.png
17:54 SoCX I"m thinking dd if=/dev/sdb4 of=$HOME/data.img, then blow away the /sbd4 partition, move around and resize as needed, then just dd my data.img back to a newly created partition on the card AFTER expanding the system partition.
18:14 MikeSeth kuguar: sorry, I meant that my question is dumb, not yours ;)
18:15 MikeSeth SoCX: I am not sure if you need to, you can do both on a live system
18:15 MikeSeth though I won't know about android, which I don't exactly like
18:19 SoCX I've got plenty of Machines to work, (I've got a linux box sitting on my desk to filter all my troubles)
18:23 kuguar MikeSeth, sorry too. if not understanding where the error - I will wait for the new releases.
18:58 jnettlet http://www.youtube.com/watch?v=DjwnI8iyZok
19:00 xraxor how did he get the red one btw?
19:01 jnettle 19:01 * jnettlet shrugs
19:02 Bluerise nice color
19:03 xraxor i personally dnt mind colour, a minne wont be on display
19:03 xraxor nicely hiden
19:04 MikeSeth if red was on sale, people wouldn't want it this much ;)
19:04 xraxor exactly lol
19:05 _Adik_ jnettlet: hi again :)
19:05 jnettlet _Adik_, hey
19:06 _Adik_ jnettlet: if you have something for me to test, Im ready
19:06 jnettlet sorry I didn't get around to that patch today.
19:07 _Adik_ no problem, just ping me when its ready
19:07 jnettlet will do
20:30 _Adik_ jnettlet: tried both Android and Geexbox, both based on 3.0.x kernels - same sympthoms
20:31 _Adik_ using serial console I can clearly see:
20:31 _Adik_ mmc1: error -110 whilst initialising SD card
20:31 _Adik_ and it stays like this
20:31 _Adik_ but, this is not only kernel issue, same applies to u-boot
20:32 Coolgeek have you tried to change your sd card ?
20:32 _Adik_ Coolgeek: that is only one I have now, I ordered two more and will do some more tests on friday
20:33 _Adik_ but we suppose that this can be related to UHS-1 type of cards
20:33 Coolgeek I heard that there is some sd cards that are not fully working with cubox
20:34 _Adik_ yep, probably I have one of those
20:35 _Adik_ Sandisk Extreme Pro 16GB
20:37 _Adik_ jnettlet: while u-boot does not want to start (there is no red light on the front) I see:
20:37 _Adik_ spl: mmc init failed: err - -17
20:37 _Adik_ it happens in about 20% of cases
20:38 _Adik_ there are also cass when it simply says:
20:38 _Adik_ mmc0 is current device
20:38 _Adik_ Booting from net ...
20:38 _Adik_ BOOTP broadcast 1
22:52 xraxor if we get xbmc as stable as the Rpi with the Hardware of the cubox-i. AWESOME!
22:54 dv_ its on my list actually
22:54 dv_ I want to see xbmc on the cubox-i
22:54 dv_ I know of a fork that added imx functionality
22:55 xraxor im using geexbox on the i4pro, while prettty fast opening folders and webrequests there are glitches here and there
22:56 xraxor if the Pi had a dual code CPU it would b much better imo
22:56 xraxor what fork dv_?
22:57 xraxor btw if you like music videos try addon called 'VEVO TV'
22:57 xraxor really good
22:57 dv_ https://github.com/wolfgar/xbmc
22:57 dv_ http://forum.xbmc.org/showthread.php?tid=161793
22:58 xraxor here hstee have made a script to install xbmc with wolfgar fixes http://imx.solid-run.com/forums/viewtopic.php?f=7&t=361
22:59 xraxor basically geexbox, openelec are all using wolfgar's xbmc
22:59 xraxor dv_ also this http://imx.solid-run.com/forums/viewtopic.php?f=7&t=335&p=2941#p2887
23:01 xraxor geexbox has stop doing images for their nightlies but emveepee has been making images and they are getting better, once again they use wolfgar's xbmc fork
23:01 xraxor im waiting on xbian ...