A13 MICRO kernel installation

Started by iso9660, January 25, 2013, 10:37:06 AM

Previous topic - Next topic

iso9660

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?

JohnS

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

Cure

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

iso9660

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.

jwischka

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?

Cure

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.

jwischka

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 :/...


Cure

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.. :(

iso9660

#8
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.

Nico

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!

Cure

#10
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]

Cure

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

Nico

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.

olimex

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/

Cure

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.  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.