Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: iso9660 on January 25, 2013, 10:37:06 AM

Title: A13 MICRO kernel installation
Post by: iso9660 on January 25, 2013, 10:37:06 AM
Hello,

I'm using the Debian fist preliminary release from:
https://www.olimex.com/wiki/A13-OLinuXino-MICRO

I've compiled the 3.0.57+ kernel (I needed uvcvideo and ftdi support) and installed it in the SD card, but when the A15 MICRO boots it continues loading 3.0.54+ kernel, no mather I delete the old uImage from the FAT partition.

Please, could anybody tell how can I replace the 3.0.54+ kernel with anyother?
Title: Re: A13 MICRO kernel installation
Post by: JohnS on January 25, 2013, 10:43:21 AM
u-boot loads the kernel as a file (uImage) so if you changed the file then all is done.

So... something you thought you'd done did not actually happen.  Maybe you forgot to sync or something.

The kernel string (...54 or ... 57) can be found if you look at the uImage so mount the SD and hunt in that file (e.g. use strings).

Also check the uImage on your HDD that you copied from as maybe you built in one dir but copied from another dir.

John
Title: Re: A13 MICRO kernel installation
Post by: Cure on January 25, 2013, 01:58:29 PM
iso9660,

Please let me know if you get uvc working, I've been going crazy trying to compile my own kernel for days. :(

I've had the same issue overwriting the uImage, I found that you must first delete the old uImage not just copy over.  I also found I can do this from windows, without loading up my virtualbox.

Rob
Title: Re: A13 MICRO kernel installation
Post by: iso9660 on January 25, 2013, 02:17:31 PM
Quote from: Cure on January 25, 2013, 01:58:29 PM
iso9660,

Please let me know if you get uvc working, I've been going crazy trying to compile my own kernel for days. :(

Don't worry, I'll do it.

Quote from: Cure on January 25, 2013, 01:58:29 PM
I've had the same issue overwriting the uImage, I found that you must first delete the old uImage not just copy over.  I also found I can do this from windows, without loading up my virtualbox.

Rob

I'm also detecting the same behavior. It seems that writing on /dev/mmcblk0p1 sometimes work, and some others don't.
Title: Re: A13 MICRO kernel installation
Post by: jwischka on January 25, 2013, 03:03:31 PM
Quote from: Cure on January 25, 2013, 01:58:29 PM
iso9660,

Please let me know if you get uvc working, I've been going crazy trying to compile my own kernel for days. :(

I've had the same issue overwriting the uImage, I found that you must first delete the old uImage not just copy over.  I also found I can do this from windows, without loading up my virtualbox.

Rob

I compiled uvc support in on my latest kernels (unless that got janked in the big delete of 2013) - are those not working for you?
Title: Re: A13 MICRO kernel installation
Post by: Cure on January 25, 2013, 05:14:15 PM
If you have a link for an A13-Micro kernel, I would be more than happy to give it a try and let you know if it works.
Title: Re: A13 MICRO kernel installation
Post by: jwischka on January 25, 2013, 05:59:47 PM
Don't have a link for a micro kernel - sorry, didn't realize that you were wanting it for the micro specifically. I also don't have a micro to test on, so I wouldn't feel all that good about compiling something for you that might not even boot :/...

Title: Re: A13 MICRO kernel installation
Post by: Cure on January 25, 2013, 06:25:28 PM
Thanks anyhow.  The Micro is a bit of a pain, because it's missing the power IC and only has half the RAM so it's a completely different build.  I guess I just have to keep compiling until I get lucky.. :(
Title: Re: A13 MICRO kernel installation
Post by: iso9660 on January 25, 2013, 07:55:08 PM
Quote from: Viciusfre on January 25, 2013, 06:25:28 PM
Well, I may be wrong. But this problem may be related to the configuration, not the kernel itself.

I am currently developing device drivers linux and I have seen many errors of the type "Unable to handle kernel NULL pointer dereference at virtual address 000000xx", is a very common error. Example: https://github.com/linux-sunxi/linux-sunxi/issues/82#issuecomment-9529037

So, you're enabling a problematic driver in .config, try disabling this driver or use other .config

I use this: http://dl.dropbox.com/u/22273442/A13/.config

With this kernel config I've been able to compile 3.0.57+ and boot it on a A13 micro this morning.
I recommend you to use it, test it without adding modules or anything else, and then after you see it works, to add modules.

On Monday I'll continue testing, and posting results.
Title: Re: A13 MICRO kernel installation
Post by: Nico on January 25, 2013, 08:22:04 PM
For the kernel source seems that this repository works:
https://github.com/hehopmajieh/linux-sunxi
using a13om_defconfig specific for the A13 Micro.
Let me know if it helps.
See U!
Title: Re: A13 MICRO kernel installation
Post by: Cure on January 27, 2013, 10:17:21 AM
I finally got a successful kernel build, thank you for the help. 

I used:
git clone git://github.com/linux-sunxi/u-boot-sunxi.git
git clone https://github.com/hehopmajieh/linux-sunxi
cd linux-sunxi
git checkout origin/sunxi-3.0
make a13_olinuxino_micro CROSS_COMPILE=arm-linux-gnueabi-
make ARCH=arm a13om_defconfig
make ARCH=arm menuconfig


loaded the .config from:
http://dl.dropbox.com/u/22273442/A13/.config
etc...

Then I used the Debian fist preliminary release from:
https://www.olimex.com/wiki/A13-OLinuXino-MICRO
and replaced the uImage and the /moduels/3.0.52+ that I compiled.


The only problem is UVC still doesn't want to work and that's what I really need for my project (I've tested 2 cameras that work on my A13 wifi, I've even tested the Micro + powered usb hub, etc).  I am now testing the kernel from: (and this will be my last compile before I give up so to speak)
git clone git://github.com/linux-sunxi/linux-sunxi.git


[Edit: git clone git://github.com/linux-sunxi/u-boot-sunxi.git failed, it's still looking for the AXP]
Title: Re: A13 MICRO kernel installation
Post by: Cure on January 27, 2013, 01:54:44 PM
Well, I'm officially done with the Micro.  I don't understand why it doesn't see my cameras when the A13 wifi is the exact same thing and sees all 3 of my cameras.  In other words...

For Sale:
1. A13 Micro + regulated 5V 1A power supply
2. iMX233 with wifi

I'm located in Canada, send me a private message if interested.  I'll provide proof they still work and we can negotiate a deal.

Thanks,
Rob
Title: Re: A13 MICRO kernel installation
Post by: Nico on January 28, 2013, 11:04:27 AM
Hi,
Well, sad you gave up... it also seems to me that the micro is a bit less supported.
Where is this .config from ? Did you try with a "make ARCH=arm a13om_defconfig" with the kernel on the https://github.com/hehopmajieh/linux-sunxi ? (that's actually what I did and it worked)

Did you manage to have a lcd Screen working ? that's on what I am stucked now.

Thanks!
Nico.
Title: Re: A13 MICRO kernel installation
Post by: olimex on January 28, 2013, 11:27:53 AM
the difference between A13-MICRO and A13-WIFI is the USB hub GL850G, original A13 USB is only HIGH SPEED so if your camera is not supporting high speed USB it will not be able to connect

by the way USB-OTG port can be also Full Speed USB host with the USB-adapter it supports even keyboards and mouses https://www.olimex.com/Products/Components/Misc/USB-MINI-2-USB-HOST/
Title: Re: A13 MICRO kernel installation
Post by: Cure on January 28, 2013, 01:57:58 PM
Nico, I have build a working kernel and I had a good .config file, I made sure to add the UVC support the same way as I did with my A13 Wifi.  The Micro boots successfully and no problems, until I connect the USB camera and it comes up as something like: /dev/USBDEVICE-2.2

I have one of these: http://media.digikey.com/photos/Hirose%20Elect%20Photos/HIROSE%20ELECTRIC%20CO%20LTD%20UX40-MB-5P,UX40A-MB-5P.jpg (http://media.digikey.com/photos/Hirose%20Elect%20Photos/HIROSE%20ELECTRIC%20CO%20LTD%20UX40-MB-5P,UX40A-MB-5P.jpg).  It's a blank usb mini connector and I read somewhere if you ground pins 4+5 it tells the OTG to become the HOST.  I will give it another try in a few days, when I've recovered from staying up until 6am compiling kernels.  :o  I will post my results.
Title: Re: A13 MICRO kernel installation
Post by: JohnS on January 28, 2013, 02:29:04 PM
So what speed is the camera that means you abandon the Micro?  Is it HS?
Title: Re: A13 MICRO kernel installation
Post by: Nico on January 28, 2013, 03:57:16 PM
(And about the LCD Screen ?)
Well about the UVC Camera I have no idea... of why, but sounds a good idea to try with the USB OTG, let us know if it works.
Title: Re: A13 MICRO kernel installation
Post by: JohnS on January 28, 2013, 04:35:37 PM
From what I can see if it's HS it won't work at all with the Micro.

This is rather basic USB information you need to know about the camera!!
Title: Re: A13 MICRO kernel installation
Post by: Nico on January 28, 2013, 04:36:36 PM
(about the LCD problem I just found out, see my topic about that if interested)
Title: Re: A13 MICRO kernel installation
Post by: vinifr on January 29, 2013, 12:35:10 AM
Quote from: Cure on January 27, 2013, 10:17:21 AM
I finally got a successful kernel build, thank you for the help. 

I used:
git clone git://github.com/linux-sunxi/u-boot-sunxi.git
git clone https://github.com/hehopmajieh/linux-sunxi
cd linux-sunxi
git checkout origin/sunxi-3.0
make a13_olinuxino_micro CROSS_COMPILE=arm-linux-gnueabi-
make ARCH=arm a13om_defconfig
make ARCH=arm menuconfig


loaded the .config from:
http://dl.dropbox.com/u/22273442/A13/.config
etc...

Hi Cure.

When you type make ARCH=arm a13om_defconfig the make create a .config specific for your board. If you catch my .config in dropbox, you overwrite .config produced by make ARCH=arm a13om_defconfig. So is better not use my config, because AXP209 is enable.

But this shows that no matter the .config, considering that worked. The main thing is the kernel and bootloader.
Title: Re: A13 MICRO kernel installation
Post by: JohnS on January 29, 2013, 09:36:46 AM
A good thing to read is Documentation - there is plenty about the kernel build process and it explains the config etc stuff.
Title: Re: A13 MICRO kernel installation
Post by: agross on January 31, 2013, 05:13:41 PM
Quote from: olimex on January 28, 2013, 11:27:53 AM
the difference between A13-MICRO and A13-WIFI is the USB hub GL850G, original A13 USB is only HIGH SPEED so if your camera is not supporting high speed USB it will not be able to connect

by the way USB-OTG port can be also Full Speed USB host with the USB-adapter it supports even keyboards and mouses https://www.olimex.com/Products/Components/Misc/USB-MINI-2-USB-HOST/

Hello,
I have a  TP-Link WN727 usb wireless adapter that I can't get it to work on the Micro.
It works fine on another embedded system with the same arm and same kernel.
I don't know if this is the problem, but i tried almost everything and it doesn't work. The rt2800usb module is loaded, i get the usb device in sysfs, but the subcomponents are wrong and i can't generate a /dev/wlan0 whatever manual udev rules i use... :-(

However, if I use the otg adapter and use the second mini usb, I loose the otg functionality of the device ( which it must have ).

did anyone try an usb wlan stick with the micro and got it working ?

Thank you very much.
Title: Re: A13 MICRO kernel installation
Post by: vinifr on January 31, 2013, 06:27:51 PM
Quote from: agross on January 31, 2013, 05:13:41 PM
Quote from: olimex on January 28, 2013, 11:27:53 AM
the difference between A13-MICRO and A13-WIFI is the USB hub GL850G, original A13 USB is only HIGH SPEED so if your camera is not supporting high speed USB it will not be able to connect

by the way USB-OTG port can be also Full Speed USB host with the USB-adapter it supports even keyboards and mouses https://www.olimex.com/Products/Components/Misc/USB-MINI-2-USB-HOST/

Hello,
I have a  TP-Link WN727 usb wireless adapter that I can't get it to work on the Micro.
It works fine on another embedded system with the same arm and same kernel.
I don't know if this is the problem, but i tried almost everything and it doesn't work. The rt2800usb module is loaded, i get the usb device in sysfs, but the subcomponents are wrong and i can't generate a /dev/wlan0 whatever manual udev rules i use... :-(

However, if I use the otg adapter and use the second mini usb, I loose the otg functionality of the device ( which it must have ).

did anyone try an usb wlan stick with the micro and got it working ?

Thank you very much.

Try ath9k_htc.ko: http://linuxwireless.org/en/users/Drivers/ath9k_htc (http://linuxwireless.org/en/users/Drivers/ath9k_htc)
Title: Re: A13 MICRO kernel installation
Post by: agross on January 31, 2013, 06:56:07 PM
Ath9k ?
But on an embedded geode x86 and on another embedded arm board works fine with rt2800usb ... :/
Anyways, thanks a lot, i'll give it a try tomorrow.
Title: Re: A13 MICRO kernel installation
Post by: JohnS on January 31, 2013, 07:57:40 PM
Which other arm board?
Title: Re: A13 MICRO kernel installation
Post by: vinifr on February 05, 2013, 02:55:02 PM
file fex specific for a13-micro: https://github.com/linux-sunxi/sunxi-boards/blob/master/sys_config/a13/a13_olinuxino_micro.fex (https://github.com/linux-sunxi/sunxi-boards/blob/master/sys_config/a13/a13_olinuxino_micro.fex)

patches: https://groups.google.com/d/topic/linux-sunxi/tZPUdBXCloI/discussion (https://groups.google.com/d/topic/linux-sunxi/tZPUdBXCloI/discussion)