Tiny Core Linux

Tiny Core Base => Other architectures => ODROID => Topic started by: Paul_123 on January 30, 2015, 10:14:02 PM

Title: Odroid-C1
Post by: Paul_123 on January 30, 2015, 10:14:02 PM
Got the Odroid-C1 to boot piCore 6.0

I started with the piCore SSH image.
Had to recompile the kernel to include zram, loop and squashfs
initrd right now is 100MB with all of the modules.

got to have fun with uboot.
Title: Re: Odroid-C1
Post by: roborob on January 31, 2015, 09:40:35 AM
Hi Paul,

How is the performance compared to the raspberry?  From what I have been reading it is supposed to be around 8x faster.  Is it close to expectations?

Regards,

Rob
Title: Re: Odroid-C1
Post by: roborob on January 31, 2015, 01:43:41 PM
Hi,

I've haven't compiled a kernel yet.  Would you consider sharing the steps?  I would like to try building piCore-X with no modules, or perhaps only node.js.  I will search through the forums but any sort of head-start you feel like sharing would be great.

regards,
rob
Title: Re: Odroid-C1
Post by: Paul_123 on January 31, 2015, 04:17:17 PM
It's much faster.   the ubuntu image that hardkernel builds boots to a full desktop in about 20 seconds.

Problems.....

Think of the rpi when it was first released.  The drivers are still getting the bugs kinked out.

1- UHS mode doesn't work with most cards, and causes conflicts.
2- Ethernet.  they are still working out the speed issues.  Although it is sort of patched
3- USB has some dropouts.
4- They are still playing around with assigning irq interrupts to the various cores.
5- HDMI does not work well with some monitors, and non HDMI monitors don't work well at all.   I don't have my monitor working with tinycore yet.   I'm using the serial console to monitor the boot process, and then using ssh to connect headless.

But they are fixing and releasing binary updates daily,  And the kernel is available via git.   

If you have the Odroid Ubuntu image running, read the odroid wiki to build the kernel.   You can build the kernel an modules in an hour.    If you have not built an initrd for core yet, then you need on read up on that.  This post is a nice summary. http://forum.tinycorelinux.net/index.php/topic,14634.msg88856.html#msg88856    After you build the initrd, you will also need to run mkimage to wrap the image for uboot. 
Code: [Select]
mkimage -A arm -T ramdisk -C none -d initrd.gz initrd The other trick to uboot is tell uboot to relocate the ramdisk to high memory, otherwise it gets overwritten but he kernel when it decompresses.   Add
Code: [Select]
setenv initrd_high 0xffffffff just before the bootm command.   That step should not be necessary once we can remove enough modules from the initrd to get the ramdisk down in size.
Title: Re: Odroid-C1
Post by: roborob on January 31, 2015, 09:33:35 PM
Hi,

When you wrote "compile" I thought you meant via gcc. 

Thanks for the link I had not seen that post yet and I have searched the TC forums for hours.  I have been trying to follow bmarkus's instructions but I am stalled out at the symlink step.  I am writing a bash script to automate the process.  I think the post you pointed to may be enough to get me going again.

regards,
rob
Title: Re: Odroid-C1
Post by: roborob on February 06, 2015, 03:39:29 PM
Hi Paul,

Did you follow the steps on this page?:

http://odroid.us/mediawiki/index.php?title=Step-by-step_Native_Compiling_a_Kernel

regards,
rob
Title: Re: Odroid-C1
Post by: roborob on February 09, 2015, 08:20:27 PM
Please ignore my last post.   I must have been half asleep when I wrote it. 
Title: Re: Odroid-C1
Post by: bmarkus on February 19, 2015, 10:30:27 AM
I got an Odroid C1 for testing. SD card image provided by Paul_123 works fine piCore 6.0 and a TC kernel. Actually I tested only the usual SSH version, X will follow. It has an onboard RTC with battery which works fine, so removing NORTC from boot args system gets time from RTC. Of cource if no battery installed, network time setting works as on Raspberry.

It is really fast thanks to the 4x 1.53GHz CPU and 1GByte RAM. However boot (before TC does anything) takes more time compared to normal Raspberry.

If everything goes well, first public alpha release expected in a week time.

Paul, thanks for the contribution! :)
Title: Re: Odroid-C1
Post by: Paul_123 on February 19, 2015, 11:45:05 AM
I got an Odroid C1 for testing. SD card image provided by Paul_123 works fine piCore 6.0 and a TC kernel. Actually I tested only the usual SSH version, X will follow. It has an onboard RTC with battery which works fine, so removing NORTC from boot args system gets time from RTC. Of cource if no battery installed, network time setting works as on Raspberry.

It is really fast thanks to the 4x 1.53GHz CPU and 1GByte RAM. However boot (before TC does anything) takes more time compared to normal Raspberry.

If everything goes well, first public alpha release expected in a week time.

Paul, thanks for the contribution! :)

Glad I could contribute.   It was a combination of frustrating and fun.   

Here is the boot time breakdown.
Uboot/bootloader  4s
Kernel Loading=4.5s
Core Init = 0.8s
Extract Tcz's = Varies with how many extensions you have loaded
After Extensions load,.takes about 4 seconds to bring the network up and get a dhcp address.

Also right now we are using stock CPU frequencies.  Most say that you can overclock to 1.72 without much concern.  Especially if we are not using the VPU.    This kernel will probably change alot in the short term, as the driver development continues. 
Title: Re: Odroid-C1
Post by: jncl on April 12, 2015, 09:11:00 AM
Hi Béla,

  I've recently got an Odroid-C1 and wanted to try using TinyCore on it. Is there an alpha release available for it yet?, or would it be possible to get a copy of the SD card image that you used please?

Cheers

  Jon
Title: Re: Odroid-C1
Post by: bmarkus on April 12, 2015, 09:46:07 AM
Hi Jon

Paul is working on a new version what we will make available for public testing. He can tell more about ETA.

Regards... Béla
Title: Re: Odroid-C1
Post by: Paul_123 on April 12, 2015, 04:54:53 PM
Hi Jon

Paul is working on a new version what we will make available for public testing. He can tell more about ETA.

Regards... Béla

Just compiled the latest Kernel 3.10.73 and had to tweak a few kernel modules that I had left out.    Also grabbed the latest 6.1 initrd changes.   Hope to have it built and tested this week.
Title: Re: Odroid-C1
Post by: cast-fish on April 15, 2015, 07:44:15 PM
This will be great Paul....if there are then Arm packages available and a repo.

The C1 seems to have excellent Linux support with tons of distros available for it.

There are some custom Music distro's available for it with the realtime kernel too.

V
Title: Re: Odroid-C1
Post by: Paul_123 on April 16, 2015, 08:06:01 AM
There is an Armv7 repo already created.   This is the same repo that the rpi-2's use.      The only difference will be kernel modules, and a couple slight changes to the boot up to support the oDroid hardware.

I ran into a big surprise when I pulled the latest kernel, (3.10.73)   They back-ported most of the wifi system from the 3.19 kernel, so I had to do a complete rebuild of the kernel and configuration.    I think I now have it built properly, but need to build the tinycore image and test it.

Title: Re: Odroid-C1
Post by: cast-fish on April 16, 2015, 02:28:53 PM
right Paul. THat sounds complex.

People want wi fi though don't they. Me?....just use ethernet  here really.

Yes, on OS without repo of apps isn't much use is it. So it's good you are saying
there is a repo.

I think the C1 will stay around a while. Although for you it may be a question of
common sense and such

thanks

V

Title: Re: Odroid-C1
Post by: Paul_123 on June 29, 2015, 08:07:20 PM
Just an update here.....we had decided to wait for piCore 6.1 to become fully released before releasing this on the oDroid.

Currently running Kernel 3.10.80 and piCore 6.1 base.   

ssh image is nearly ready to go, and working on the X version too.....
Title: Re: Odroid-C1
Post by: roborob on June 29, 2015, 09:25:29 PM
Hi Paul,

I have for a very long time wanted to become more active in the TC community.  So far I have not met with the support and encouragement I assumed would be here.  As it is, I am afraid my disappointment is starting to outweigh my interest.  While having 25 years in IT (mostly windows) something about TC just hasn't "clicked" yet.  I was wondering if you would have some time to chat with me offline and help me with a build of TC for ODROID.  I would be willing to create a detailed write up and share it with the community.  I would also use what I learn to attempt a port of TC to the Parallella (server) and share a write up of that as well.

Like the old saying goes "teach a man to fish...".

Best regards,
Rob
Title: Re: Odroid-C1
Post by: Paul_123 on June 30, 2015, 04:07:12 PM
All of the information you need is on the forum/wiki.    I'm not sure where you are getting hung up.   But We'll be posting an image soon, which you can then just burn to an SD card and test.

But if you still want to build everything from scratch yourself........Your first step is being able to compile a kernel........ just follow the directions on the odroid wiki.   
Title: Re: Odroid-C1
Post by: roborob on June 30, 2015, 04:54:29 PM
I will take that as a no.  Thanks anyway.

All of the information you need is on the forum/wiki.    I'm not sure where you are getting hung up.   But We'll be posting an image soon, which you can then just burn to an SD card and test.

But if you still want to build everything from scratch yourself........Your first step is being able to compile a kernel........ just follow the directions on the odroid wiki.