Tiny Core Linux

Tiny Core Base => Other architectures => Topic started by: MysticGriffin on May 07, 2016, 02:11:51 AM

Title: Emulation of TinyCore ARM
Post by: MysticGriffin on May 07, 2016, 02:11:51 AM
Hi everybody. I'm new here. I'm looking into getting one of the new CHIP computers (getchip.com) and I'm wanting to run TinyCore on it. At this moment, I don't have CHIP so I can not put TinyCore onto it. But I'm trying to familiarize myself with the whole process. What I'd like to do is emulate TinyCore on the ARM architecture, since that's what CHIP uses. However, apparently I'm a complete noob, and can't figure out how to do it on my own  :(

I have looked at PiCore, which is conveniently already set up to run without any extra fuss... but it looks very different from TinyCore, and has stuff already preloaded in to it. The reason I'm looking at TinyCore in the first place is because it doesn't have the extra stuff added in so that I can customize it myself.

So after much toying around, I think I understand that in order to emulate TinyCore ARM, I need to use qemu, with a kernel and an initrd. It seems that the kernel is zImage (http://tinycorelinux.net/dCore/armv7/Allwinner-A20/) but there doesn't seem to be any initrd... Some research led me to http://forum.tinycorelinux.net/index.php?topic=17895.0 but honestly that article confused me more than helping. Perhaps this post should be written on that topic, I'm not sure, so I started a new one. I am currently running Windows 10 as my main OS. I can set up Ubuntu in a VM if necessary, since a lot of the stuff that I'm finding for guidance is linux based anyway. But it seems kind of silly to set up a VM in order to set up a VM, and I don't think I should need to.

If anyone can give me a clear step by step of what I need to do in order to emulate TinyCore ARM, I would really appreciate it.
Title: Re: Emulation of TinyCore ARM
Post by: bmarkus on May 07, 2016, 03:29:37 AM
piCore doesn't work in QEMU, you need a custom kernel. Even with this QEMU provides only 256k RAM and it is slow even on a fast x86 machine. Such kernel was available in the beginning but not in the last 2-3 years.

I'm referring to piCore. No idea about dCore, Allwinner, etc.




Title: Re: Emulation of TinyCore ARM
Post by: MysticGriffin on May 07, 2016, 09:44:14 AM
I'm honestly not sure what the difference is between Raspberry PI and CHIP architecturally. All I know is that they are both ARM. So I'm working on the assumption that if I use the Allwinner-A20 that will work for me. But again, I am lost with the kernel and initrd. The PiCore package I have came with the custom kernel.

Do I have to build a custom kernel? And if so, would I use this same custom kernel when flashing to CHIP? And how exactly do I do that? I was under the impression, perhaps mistakenly that the TinyCore downloads had everything I need. But I'm not understanding it and/or having any luck with it on the emulator.
Title: Re: Emulation of TinyCore ARM
Post by: curaga on May 07, 2016, 10:31:04 AM
In the ARM world, you generally need a kernel per device. So a kernel that runs in Qemu does not run on any board, and a kernel for a board will not run on another board. In this sense, you won't gain much by emulating an ARM, as things will be different on your board anyhow. If you want to get familiar with TC, a normal x86 VM works for that (and also a lot faster than ARM, as bmarkus said).
Title: Re: Emulation of TinyCore ARM
Post by: MysticGriffin on May 07, 2016, 08:45:45 PM
Curaga, I love the name!

So, if kernels are board specific, that means I can't expect to put TC onto my CHIP without having to create a kernel for the board? Am I understanding that right? And also any modules which I put together for TC on x86 will have to be rebuilt once I have TC ported over to CHIP?

How do I go about creating the kernel for CHIP?
Title: Re: Emulation of TinyCore ARM
Post by: bmarkus on May 07, 2016, 09:20:58 PM

So, if kernels are board specific, that means I can't expect to put TC onto my CHIP without having to create a kernel for the board? Am I understanding that right?


Correct. I have a confirmed order for a board from Dece,ber but still no any info when it is delivered, if ever. I'm skeptic.
Title: Re: Emulation of TinyCore ARM
Post by: MysticGriffin on May 08, 2016, 07:19:52 AM
Correct. I have a confirmed order for a board from Dece,ber but still no any info when it is delivered, if ever. I'm skeptic.

@bmarkus: I have been in contact with them, and they're confident that all the preorders will be shipped in June.
Title: Re: Emulation of TinyCore ARM
Post by: bmarkus on May 09, 2016, 05:25:42 AM
When I receive the board I will try to port TC.
Title: Re: Emulation of TinyCore ARM
Post by: MysticGriffin on May 10, 2016, 03:27:05 AM
@bmarkus - I look forward to hearing of your success!