IRC #olimex 2013-03-02

[06:29:05] <rcar1305> alguien en la sala?
[12:08:49] <Marex> pamaury: hey, got Fuze+ ;)
[12:09:09] <pamaury> hey, nice
[12:26:14] <mnemoc> another? :)
[12:39:09] <Vinuthan> hi, i have a question to ask.. I recently bought an A13 olinuxino Wifi which has a Android onboard its NAND. I want to use ubuntu on the SD card, while it affect the NAND onboard?
[12:48:29] <Marex> pamaury: yet still, I'm out of time to hack on this stuff ... :/
[12:48:51] <Marex> I need to finish two HIGH prio tasks first
[13:13:28] <Tsvetan> hi
[13:19:17] <Tsvetan> Fabio Estevan is ranked in contributor #15 to Linux Kernel 3.8 http://www.remword.com/kps_result/3.8_whole.html some of these 48 patches are for imx233 :)
[13:20:59] <Niii> :]
[13:38:02] <bbuic> hello, can somebody help me how install dyndns client(inadyn or ddclient) on iMX233-OLinuXino-MICRO (Olinuxino) ?
[13:40:42] <Niii> with package manager of distribution installed on your sd ?
[13:43:20] <bbuic> how ? can you give me command which i must run ?
[13:44:06] <bbuic> or some example
[13:44:22] <Tsvetan> bbuic can you install this specifica package on desktop machine?
[13:45:09] <Tsvetan> this is what Google returned https://wiki.archlinux.org/index.php/Dynamic_DNS
[13:46:05] <bbuic> yes, but with command apt-get install
[13:46:23] <bbuic> this command not work on imx233
[13:46:39] <Tsvetan> sure as you probably use Arch Linux SD card
[13:46:46] <Tsvetan> look at the link I posted above
[13:46:59] <Tsvetan> or run Debian on imx233
[13:47:25] <Tsvetan> in the Wiki there is link to Robert Nelson's instructions how to make debian SD for imx233
[13:47:42] <bbuic> ok, i will try
[13:47:42] <pamaury> Marex: same here, I was in holydays this week and then I'm working hard to the port to other stmp families, hopefully we are seeing the end
[13:47:53] <bbuic> thank you
[15:53:01] <Marex> Tsvetan: hey, I was not good this time, 3.7 was better for me :b
[16:01:38] <Tsvetan> Marex: yep shame on you :)))
[16:21:16] <cxz> is there any document for newbies to learn how to use SPI on imx233-olinuxino-micro?
[16:39:17] <Niii> cxz, for enabled or for tested spi bus ?
[16:39:46] <Niii> -ed
[16:40:53] <cxz> Niii, I want to use imx233 as master and send some data to a slave microcontroller. I never used spi on imx233, it would be great if I can see any example code how you set imx233 as master and set bus speed and output data
[16:41:27] <cxz> do you suggest me to take a look at any example code or document for it?
[16:41:55] <Niii> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/plain/Documentation/spi/spidev_test.c
[16:45:32] <Niii> I never used spi, but from what I can read, you can test bus herself by connecting MISO to MOSI (like seriak echo)
[16:45:51] <Niii> if you have already your spi device in /dev
[16:49:22] <cxz> thank you Niii
[17:54:47] <cxz_> inorder to have modprobe spidev, what modules do I need to open on make menuconfig on 3.7.1?
[18:05:24] <Niii> if you don't want reinstall, try to set CONFIG_SPI_MXS to <M>, build, and send file drivers/spi/spi-mxs.ko to your board. you sould be able to load it
[18:06:51] <cxz_> thank you Niii
[18:08:49] <cxz_> do you know any program on linux that I can send files to the board from the serial port?
[18:10:05] <Niii> why you don't mount your sd on your build host, and copy file to it ?
[18:10:43] <cxz_> because I am too lazy:)
[18:11:14] <cxz_> I will mount the sd card to my pc, thank you
[18:12:36] <Niii> which spi device do you use ?
[18:16:04] <cxz_> it seems like I have already had SPI_MXS setting on my kernel setting http://pastebin.com/uV9YuS26 . I will connect imx233 to an atmega168a MCU
[18:17:21] <Niii> are you using koliqi git ?
[18:17:21] <cxz_> cat lib/modules/3.7.1/kernel/drivers/spi shows that I have spi-bitbang.ko and spi-gpio.ko . do you know which of these I would need?
[18:17:27] <cxz_> yes
[18:17:38] <Niii> have you applied spi patch ?
[18:17:59] <cxz_> yes
[18:18:24] <Niii> so, take a look at dmesg if you have something about spi
[18:19:07] <cxz_> dmesg | grep -i spi does not output anything
[18:19:27] <Niii> and no device in /dev ?
[18:20:12] <cxz_> here is my /dev http://pastebin.com/AVFxADH1
[18:20:24] <cxz_> I dont see any spi
[18:21:17] <cxz_> modprobe spidev also does not output anything
[18:21:28] <cxz_> just error message that spidev not found
[18:22:38] <cxz_> but I have spi-bitbang.ko and spi-gpio.ko under /lib/modules/3.7.1/kernel/drivers/spi. do you know if one of these are what I need?
[18:23:30] <Niii> no one if you want to use mxs driver
[18:23:34] <Niii> I'll try
[18:25:36] <cxz_> I don't know what are their difference. I just want to set imx233 as master and connect atmega168 chip as slave so that I can send 2 byte data to the mcu. would you suggest me to use mxs driver for it?
[18:26:26] <Niii> from this post it works > https://www.olimex.com/forum/index.php?topic=873.0
[18:29:36] <Niii> I've got a /dev/spidev32766.1 now
[18:32:08] <cxz_> how did you create it?
[18:32:24] <cxz_> do you know what .dts file he edits?
[18:32:27] <Niii> just follow post in forum
[18:32:43] <Niii> arch/arm/boot/dts/imx23-olinuxino.dts
[18:33:25] <Niii> you need to edit dts file, add SPI_SPIDEV support in kernel, apply patch from https://patchwork-mail1.kernel.org/patch/1910641/, rebuild all and reinstall :)
[18:35:04] <cxz_> I will do that now, thank you Niii :)
[20:20:55] <Graa> I bought the eeg-smt and connected it to my heart to test it. My heartbeat in the oscilloscope seems to work but goes way off chart. Can I damage the eeg-smt with this?
[20:31:03] <cxz_> Niii, how can I apply the patch on https://patchwork-mail1.kernel.org/patch/1910641/ ? do I need to copy the code into a .patch file (new.patch), then execute "patch -p1 < ../new.patch" on the main directory for the kernel source files?
[20:32:04] <Niii> yes
[20:32:09] <cxz_> thank you
[20:33:38] <Niii> or edit directly file, it's not a big diff
[20:37:54] <cxz_> I have one more question, what you mean rebuild is to "make && make modules" then load the new compiled kernel to the partition 1 of the SD card?
[20:41:28] <Niii> are you using uboot or bootlets ?
[20:41:44] <cxz_> bootlets
[20:42:13] <Niii> so build kernel, dtb, raw file, and dd it to your fist partition
[20:42:51] <Niii> you should take a look at uboot, there is a reboot issue with bootlets and 3.x kernel
[20:44:37] <cxz_> yes I have that issue on my board that when I reboot it, it stucks
[20:45:06] <cxz_> do you know what exactly do I need to edit to fix reboot problem?
[20:48:08] <xenoxaos> should the mod-io2 show up on a i2c-detect scan?
[20:57:23] <Niii> cxz_, there is no fix for bootlets, just switch to uboot
[20:57:46] <Niii> cxz_, http://www.jann.cc/2013/02/07/u_boot_for_the_imx233_olinuxino.html
[21:01:10] <cxz_> thank you very much Niii
[22:03:41] <madze> hey
[22:05:59] <xenoxaos> hi
[22:09:56] <madze> good evening
[22:10:15] <madze> ACTION has done some things for hix a13 project today
[22:10:35] <cxz_> Niii, I compiled the kernel by following https://github.com/koliqi/imx23-olinuxino , I have zImage, imx23-olinuxino.dtb, and zImage_dtb ready. Then I compiled the u-boot by following the link that you pasted. In bootlets, it loads the kernel by "sudo dd if=sd_mmc_bootstream.raw of=/dev/sdb1 ". how do I need to load the kernel? do I just need to "dd if=arch/arm/boot/Zimage of=/dev/sdb1" then I should do "make modules_install"? or should I follow the instruction
[22:10:35] <cxz_> s to create bootlets, then when I load the u-boot, will it be replaced with bootlets?
[22:26:07] <Lydia_K> huh, a 2.1mm barrel connector seems to fit perfectly fine.
[22:26:27] <Lydia_K> Too bad this is a 9 volt power supply and not a 5 volt one.
[22:27:27] <Niii> cxz_, you need a first partition for uboot, a second for zimage and dtb file, a third for rootfs
[22:28:03] <Niii> when you are able to boot on uboot, just config uboot like howto from jann for boot zImage
[22:31:59] <xenoxaos> does that uboot support ext filesystems?
[22:32:13] <Niii> yes, ext2
[22:32:21] <Niii> and vfat I think
[22:32:32] <xenoxaos> you might be able to ext2load from ext4
[22:33:28] <Niii> I never tried that
[22:34:22] <cxz_> Niii, I have 2 partitions now. how do I need to allocate for 3 partitions, is there any fdisk -l example?
[22:36:12] <Niii> http://pastebin.com/T3pnJFFm for first partitions
[22:36:38] <Niii> the rest is like you want
[22:37:41] <Niii> http://pastebin.com/yE4jDjTP > mine for example
[22:38:04] <cxz_> thanks a lot Niii
[22:52:18] <cxz_> Niii, sorry to ask too much questions. the only file that I need to install on partition2 is arch/arm/boot/zImage_dtb , right? or do I need to install arch/arm/boot/zImage and imx23-olinuxino.dtb instead?
[22:53:00] <Marex> xenoxaos: ext4 works too
[23:28:38] <Niii> cxz_, zImage and dtb
[23:29:01] <Niii> imx23-olinuxino.dtb*
[23:34:59] <cxz_> Niii: thanks
[23:51:20] <flyback> wow
[23:51:28] <flyback> you guys have some nice shit :)
[23:53:42] <xenoxaos> lol
[23:55:47] <Lydia_K> lol
[23:56:12] <Lydia_K> Mine just came today, I'm going to have to find a micro SD card and start playing with it.