Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: HenningA on March 27, 2014, 04:00:28 PM

Title: Change Kernel
Post by: HenningA on March 27, 2014, 04:00:28 PM
Hi,

I'm want to use a newer kernel than the one on the debian image. I added the cubieboard repository and downloaded the kernel package. It's version 3.4.79, and the modules have there own folder under /lib/modules

I'm going to replace the uimage on the sd-card with the new kernel. What I'm looking for is the config-file for uboot where the modules folder is specified so I can change it. Does anybody know where this file is on den olimex debian image?

Another nice thing would be to be able to choose the kernel on startup like with grub. Is there a way to do this?

Thx, Henning
Title: Re: Change Kernel
Post by: progmetalbg on March 27, 2014, 07:45:52 PM
U-Boot is not like the boot loaders that you know from x86 Linux world such as grub or lilo.
You can check u-boot sunxi wiki for more info: https://github.com/linux-sunxi/u-boot-sunxi/wiki (https://github.com/linux-sunxi/u-boot-sunxi/wiki)
and Olimex blog post about building your own image from scratch: http://olimex.wordpress.com/2013/09/18/7795/ (http://olimex.wordpress.com/2013/09/18/7795/)
Title: Re: Change Kernel
Post by: HenningA on March 27, 2014, 09:32:32 PM
I figured it out.

I was looking for the uEnv.txt file, but  there wasn't any on the locations mentioned in the uboot wiki.

So I just tried to copy the uImage-File from the kernel-package to the boot partition of the sd-card. And tada it works. Kernel 3.4.79 is running.

Henning
Title: Re: Change Kernel
Post by: Tar on April 01, 2014, 12:18:47 AM
Hi,

the uEnv file may be used to pass additional parameters to the kernel, like you would do with grub.

I tried the same to put my system into the NAND-Flash, but I lost the touchscreen capabilities and have no idea, why.

i`d love to combine both.

EDIT: i was too tired. the needed module sun4i-ts has to be loaded manually. Olimex compiled it in. But nevertheless - the UEXT patch is missing from patwoods kernel.

Tar
Title: Re: Change Kernel
Post by: HenningA on April 05, 2014, 03:12:18 PM
How much faster is the system when running it from flash compared to the SD-card? I'm thinking of using the flash as root-partition.
Title: Re: Change Kernel
Post by: Tar on April 09, 2014, 08:59:05 PM
Hi Henning,

just now, my Olinuxino runs from SD-Card. I also have a Cubietruck, which is running on Flash.

But for short - some rude values:
root@anor:/home/olimex# dd if=/dev/mmcblk0 of=/dev/null bs=4096 count=100k skip=100k
102400+0 records in
102400+0 records out
419430400 bytes (419 MB) copied, 22.412 s, 18.7 MB/s
root@anor:/home/olimex# dd if=/dev/nand of=/dev/null bs=4096 count=100k skip=100k
102400+0 records in
102400+0 records out
419430400 bytes (419 MB) copied, 37.7682 s, 11.1 MB/s

On the Cubie:
root@morgul:/home/cubie# dd if=/dev/mmcblk0 of=/dev/null bs=4096 count=100k skip=100k
102400+0 records in
102400+0 records out
419430400 bytes (419 MB) copied, 21.9496 s, 19.1 MB/s
root@morgul:/home/cubie# dd if=/dev/nand of=/dev/null bs=4096 count=100k skip=100k
102400+0 records in
102400+0 records out
419430400 bytes (419 MB) copied, 28.6027 s, 14.7 MB/s

The NAND is not always better..

Title: Re: Change Kernel
Post by: HenningA on April 12, 2014, 11:17:46 AM
Hi Tar,

thank you for the infos. I expected the NAND would be much faster.

I tried on my 80gig 2.5" hard-disk (~6 years old):read speed is 40MB/s

So it's better to move the root file system to the hard disk...