Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A10 => Topic started by: carossopatrick on June 23, 2015, 01:30:43 PM

Title: Olinuxino A10 lime and mainline linux kernel
Post by: carossopatrick on June 23, 2015, 01:30:43 PM
Hello all,
I've seen that the mainline kernel has a sunxi_defconfig, and a sun4i-a10-olinuxino-lime.dts device tree file.
Has anyone successfully built and run such a kernel, even with minimal functionalities? All my efforts failed: the dtb file is loaded but the kernel immediately hangs.
Thank you very much.
Patrick
Title: Re: Olinuxino A10 lime and mainline linux kernel
Post by: jlucius on June 23, 2015, 08:20:05 PM
Hi

Mainline kernel should run fine on this board. I am using Mainline with the A20-Lime, but should make no difference.

- What U-Boot are you using? You need to use mainline U-Boot.
- What Kernel
- How are you building
- Do you have a serial adapter to show boot messages?
Title: Re: Olinuxino A10 lime and mainline linux kernel
Post by: carossopatrick on June 23, 2015, 11:04:11 PM
Quote from: jlucius on June 23, 2015, 08:20:05 PM
- What U-Boot are you using? You need to use mainline U-Boot.

Well, I'm using linux-sunxi u-boot. I'm trying the one downloaded from  git.denx.de, now.

make A10-OLinuXino-Lime_defconfig

cross compile, ok

Now I've a lot of img,bin,dtb files built in u-boot/. Which ones should I use? Is the dd command with bs=1024 and seek=8 still right?
Thank you!
Title: Re: Olinuxino A10 lime and mainline linux kernel
Post by: rds100 on June 24, 2015, 09:46:25 AM
Use this howto: https://eewiki.net/display/linuxonarm/A10-OLinuXino-LIME#A10-OLinuXino-LIME-LinuxKernel
Title: Re: Olinuxino A10 lime and mainline linux kernel
Post by: carossopatrick on June 24, 2015, 10:15:03 PM
Thank you,
I've built and run 4.1 with no problems.
The point was to use the mainline u-boot instead of the sunxi one.
Patrick