IRC log of #cubox of Mon 07 Jul 2014. All times are in CEST < Back to index

10:29 bewees Hello
10:29 bewees How do I restore a 16 GB Backup to an 8 GB SD? Do I just have to create two partitions manually, rsync from 16GB to 8GB and finally use dd to put uboot on the first bootsectors of the SD?
10:32 bewees Oh
10:32 bewees Or maybe I just go through the arch arm cubox-i instruction, install arch+bootloader on the 8GB and then just rsync from the 16GB to the 8GB
10:34 jnettlet bewees, is the main partition ext4?
10:39 esin jnettlet The last thing I read was: "is the main partition ext4?". Yes, the root+home partition is ext4. The bootloader partition (first partition) is FAT
10:40 jnettlet bewees, I assume this is a dd image you are trying to restore?
10:40 bewees jnettlet Ye, it's a 16 GB dd image
10:44 jnettlet bewees, probably the easiest is to use kpartx to mount the image on another linux machine, manually partition and create new filesystems on your new sdcard
10:44 jnettlet and then use tar to move the data from one to the other.
10:46 jnettlet optionally after you use kpartx to to create new devices in /dev/mapper you could shrink the ext4 fileystem on the main partition to less than 8GB's
10:46 jnettlet then you can use fdisk on the image file to shrink the second partition size
10:47 jnettlet that will not shrink the sd image, but will create valid partitions that will fall on blocks that exist when you dd the image over to the smaller card
10:47 jnettlet I don't know if there is a "smart" imaging utility that already does all this automatically
11:10 bewees jnettlet Is in the first method you mentioned, not uboot missing?
11:11 jnettlet bewees, yes you would need to add u-boot by hand
11:14 bewees jnettlet To add uboot by hand I would just have to run these few commands? http://dpaste.com/3C3K9R9
11:16 jnettlet bewees, yep should do it
11:19 bewees Good to know, thank you
14:11 Sashimi hi
14:23 rabeeh Sashimi: hi
14:23 rabeeh nice nickname
14:58 Sashimi rabeeh : hi :) get that all the time ^^
14:59 Sashimi rabeeh : i was looking into buying a cubox-i4pro, but read here and there about the big lack of support from solidrun, and perf lags, compared to raspPi :(
15:02 Sashimi i'm looking for a Rpi like device to use as a media center, which could act as DLNA client (movies stored on a NAS) and as a hi-fi audio player, outputting to a dragonfly 1.2 usb DAC.there seems to be a problem with the USB on the cubox, and so the DAC get clicking noises every couple of seconds or so. what a pity :(
15:03 jnettlet Sashimi, original cubox or cubox-i?
15:03 Sashimi cubox-i
15:03 Sashimi the top end one
15:03 Sashimi (4 pro i think)
15:03 rabeeh what performance issues?
15:03 rabeeh the clicking issues is on 44.1khz and being debugged on the forums; no resolution yet
15:04 Sashimi well, being looking at the community forum and various review, xbmc / openelec seem to be lagging more than on an old raspberry
15:05 jnettlet how so?
15:08 Sashimi jnettlet : trying to find the said reviews, and of course, i can't -_-
15:08 Sashimi anyway
15:09 Sashimi i was wondering
15:09 Sashimi for a "living room" setup, should i stick with a cubox-i or rather go hummingboard ?
15:10 Sashimi appart from having extra pins for DIY programming like the raspPi has, how would they compare ?
15:10 jnettlet if you aren't doing any hardware hacking get the Cubox-i
15:10 Sashimi okay :)
15:11 Sashimi and also, is it worth installing archlinux on the cubox-i ? does it enable extra perf ? (i remember the days of gentoo geeking)
15:12 jnettlet you just want to run xbmc?
15:16 Sashimi no
15:16 Sashimi i don't know yet what this kind of device is capable of
15:16 Sashimi primarily be able to play on my TV high def videos
15:17 Sashimi but also play hidef music
15:17 Sashimi outputting through the DAC (the sound should always output to the usb dac, not to the HDMI output)
15:17 jnettlet well you can use the optical out for hidef muci
15:17 jnettlet music
15:18 Sashimi yeah but i don't have any spdif devices
15:18 Sashimi i have active monitoring speakers
15:18 Sashimi oh yeah
15:19 Sashimi any idea how I could actually INPUT digital audio through the SPDIF port ?
15:19 Sashimi (if it is in anyway possible)
15:25 jnettlet Sashimi, in theory it should be possible but I have not tested it.
15:25 Sashimi oh the spdif port could act as input ??
15:26 jnettlet yep, it is supposed to. We just haven't wired it up or tested it
15:27 Sashimi i ask this weird question because my TV's sound speakers are awful, so i'd like to output the TV sound (using its spdif output) to the cubox-i, which would then send it pass it to the USB dac
15:28 Sashimi and use the cubox-i as the central point to controlling the sound volume and source switching
15:28 rabeeh there isn't any SPDIF input
15:28 rabeeh on CuBox-i it's output via optical port
15:28 rabeeh on HummingBoard it's coax SPDIF out
15:28 Sashimi oh, well that's a dead end then :/
15:32 kgp Can I connect the Raspberry cam on the HummingBoard in fact?
15:33 kgp MIPI CSI 2.0 Camera 2 Lane CSI-2
15:33 kgp Probably
15:34 kgp It's the same interface right?
15:34 jnettlet kgp, I am working on the integration, almost finished
15:35 jnettlet had it plugged in for testing earlier
15:38 kgp So no adapter needed :) it's just plug and play (from a hardware aspect.)
15:38 kgp You can just have one cam right?
15:38 jnettlet well there is some software config but mostly yes
15:38 jnettlet only one camera
15:40 kgp :( It would be cool to have 2 cams to do some 3D stuff or IR / NoIR image mixing. But we can still use 2 devices...
15:41 kgp Thank you
16:00 jnettlet Sashimi, I will play around and double check with rabeeh, but the HB has the spdif pin exposed on the 24-pin header. In theory you could connect a coax or optical connector to that and reconfigure to the pin to do SPDIF input.
16:01 jnettlet I will need to play around with it to verify it works
16:07 rabeeh jnettlet: brilliant point
16:07 rabeeh EIM_D21 can be picked from the LVDS connector !
16:07 rabeeh or the camera interface
16:07 rabeeh EIM_D21 is now defined as I2C1_SCL; but can be muxed to be SPDIF in
16:09 rabeeh jnettlet: do you think a model where dts defines all functions as working; and a package like wiringPi define what goes where MUX wise?
16:09 rabeeh for instance if you using HB base then LVDS connector is not soldered; and potentially the user can pickup EIM_D21 signal and change the mux to become SPDIF in
16:29 Sashimi jnettlet : oh that would be absolutely wonderful if ou could check that out. i don't have enough technical knowledge to try all of this myself. if it turns out the spdif can be used in input, and if the usb clicking sound with DACs gets resolved, i'm into getting a i4pro :D
16:33 Sashimi have you guys managed to use console emulators on the cubox-i ? and use a remote pad such as the xbox360 pad with the usb wireless receiver ?
16:33 kgp what do you mean?
16:33 kgp ok
16:33 kgp :) game console.
17:04 Sashimi kgp : yes. snes, genesis, gba, neogeo... even psx maybe ?
19:21 GAZ082 hello there
19:47 rabeeh GAZ082: hi
19:48 GAZ082 rabeeh: hey man
19:48 malte hey
19:48 GAZ082 rabeeh: im here cursing everything related to the wifi, hehe
19:49 rabeeh yeah; i'v seen your messages on the channel
19:49 rabeeh go ahead; spit it out :)
19:49 GAZ082 rabeeh: 1. is it somehow speed-capped? cant get it over 800 kB/s even on straight line with the router, 2 meters away
19:50 rabeeh which chipset are you using?
19:50 rabeeh basically there are two - bcm4329 and bcm4330 based
19:50 rabeeh cat /sys/class/mmc_host/mmc0/mmc0\:0001/mmc0\:0001\:1/device
19:50 rabeeh would tell you
19:51 GAZ082 0x4329
19:51 GAZ082 rabeeh: there are batchs with one or another?
19:51 rabeeh yes.
19:52 rabeeh which OS are you trying?
19:52 GAZ082 rabeeh: arch
19:52 rabeeh the newer devices supports BT 4.0
19:52 rabeeh that's the main difference
19:52 rabeeh i haven't played with arch + wifi
19:53 rabeeh but done lots of testing on Android; have you tried it?
19:53 GAZ082 rabeeh: oh, i see. but in what distro did you test the wifi speed?
19:53 rabeeh 800kB as in Byte?
19:53 rabeeh or bit?
19:53 GAZ082 rabeeh: byte
19:53 rabeeh mainly Android
19:53 rabeeh so - 6Mbps
19:53 GAZ082 rabeeh: yes, pure crap
19:53 rabeeh on Android depending on the setup i can get 20-30Mbps
19:54 GAZ082 rabeeh: well, at least i know the hardware can deliver
19:54 rabeeh that's mainly on brcm4330
19:54 rabeeh we have got for sure > 6Mbps on brcm4329; i don't have the exact numbers here
19:55 GAZ082 rabeeh: there are several users that complain about WIFI on linux, some even had to purchase a separate wifi antenna or just go LAN. Cant you troubleshoot a little on linux?
19:55 rabeeh there were also reports that if the AP is too close to CuBox-i then the performance isn't that good
19:55 rabeeh GAZ082: i can
19:55 GAZ082 rabeeh: i tested 10 meters away, same result
19:56 rabeeh the main problem is that all other distros use newer kernel; with all sort of firmwares
19:56 GAZ082 rabeeh: im using 3.10.30. thats the only one i got working wifi out of the box (until now, which is the next question, lol)
19:57 GAZ082 rabeeh: but installing the drivers should be enough, isnt it?
19:58 rabeeh in the background we have sent few machines to Broadcom (Arend - the brcm80211 driver maintainer)
19:58 rabeeh he found few issues in the nvram files; but he mostly worked on 4330
19:58 rabeeh i don't he touched 4329 yet.
20:00 GAZ082 rabeeh: i see. at this state, wifi is useless. No workable speed, unstable (drops out of the blue). A mess.
20:01 GAZ082 rabeeh: the onlu weak link i found, at least on linux.
20:01 rabeeh btw - i just tried brcm4329 with debian jessie on LK 3.0.35
20:02 rabeeh iperf on tcp/ip provides 15Mbps
20:02 GAZ082 rabeeh: that's nice! but 3.0? that's like 100 yeas ago, hehe!
20:03 GAZ082 rabeeh: i may try it out, just to check. What's odd, i do not know why if in an older kernel version things work ok, new versions break things.
20:04 rabeeh want a link?
20:05 rabeeh i have the same jessie version on the forums; but with a kernel that supports CBi+HB + latest u-boot
20:05 GAZ082 rabeeh: ill check the forums them
20:05 GAZ082 rabeeh: then
20:05 rabeeh the link on the forums is only for CBi4pro
20:06 rabeeh http://dl.dropboxusercontent.com/u/72661517/tbr/debian-jessi.img.xz
20:06 GAZ082 rabeeh: yes! i got the good stuff!
20:06 rabeeh just try that image;
20:07 rabeeh easiest way to get wireless working is booting; then installing wicd
20:07 rabeeh sudo apt-get install wicd
20:07 GAZ082 rabeeh: im using a headless setup
20:07 GAZ082 rabeeh: all on cli
20:08 GAZ082 rabeeh: so i replace zImage on /boot with that one?
20:23 GAZ082 ok, anyway, now i have NO wifi, even with 3.10.30, something i should check? ip link does not show wlan0, iw shows nothing
20:42 GAZ082 cbxbiker61: hey man. i installed 3.10.46 but after that got no wifi, did you have any report of that
20:43 cbxbiker61 no
20:44 cbxbiker61 is brcmfmac module loaded?
20:49 GAZ082 cbxbiker61: mm, i do lsmod and got nothing
20:49 GAZ082 cbxbiker61: no modules of any sort
20:50 cbxbiker61 do find /lib/modules/3.10.46
20:52 GAZ082 cbxbiker61: yep, found
20:52 GAZ082 cbxbiker61: what should i look
20:52 cbxbiker61 do a depmod -a as root
20:56 cbxbiker61 then modprobe brcmfmac and make sure it's loaded, then a reboot should theoretically get the modules loaded automatically
21:56 rabeeh GAZ082: looks like the USB DAC saga is over - http://www.solid-run.com/community/topic1143-30.html#p9799
21:58 GAZ082 rabeeh: ok... now lets close the slow wifi thingie on linux saga... LOL
21:58 rabeeh oh; by GAZ082 i mean Sashimi :)
21:59 GAZ082 rabeeh: ;)
21:59 rabeeh my memory is severly injured
21:59 rabeeh it's way too overclocked :)