Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: emmaanuel on January 16, 2015, 05:12:01 PM

Title: remastering piCore
Post by: emmaanuel on January 16, 2015, 05:12:01 PM
Hello,
I want to build my own ISO image of piCore with all what I need inside.
So I started to remaster my piCore (http://wiki.tinycorelinux.net/wiki:remastering (http://wiki.tinycorelinux.net/wiki:remastering)), but I don't understand where I can download the .iso of piCore, I only find the .img
Any help ? maybe my question is very easy to answer  ;D

Thank you

Emmanuel
Title: Re: remastering piCore
Post by: bmarkus on January 16, 2015, 06:07:48 PM
There are no .iso image
Title: Re: remastering piCore
Post by: emmaanuel on January 17, 2015, 04:49:30 PM
Ok.
Do I have to transform the .img file into an .iso file ? if it's possible ...
Or maybe there is another way to start the remastering process ?
Title: Re: remastering piCore
Post by: emmaanuel on January 17, 2015, 06:52:57 PM
To give you more details of what I try to do:
I've done some customization of the ast version of piCore to run a personal project. Now I would like to make a small iso with everything inside, without doing a big "dd" image.
After some research, this can be done by remastering the piCore.

To do this I've used your tutorial and I ran piCore inside qemu. This is working fine.
Now I need to get all the content of the / of the piCore.
And this is where I am lost.

Thanks in advance.

Emmanuel
Title: Re: remastering piCore
Post by: bmarkus on January 18, 2015, 06:23:30 AM
There are no ISO image for piCore and in general for other embedded system, ISO is CD/DVD format. Remastering piCore means

where 1) is optional. Study how SSH and X versions work, they are remastered base versions.
Title: Re: remastering piCore
Post by: emmaanuel on January 18, 2015, 04:18:46 PM
Ok, I was thinking that the modification of the initrd was mandatory to the remaster.
I follow your recommandation, and I've been comparing the SSH master and the "minimal" master.
The first partition (the one with the initrd) is exactly the same on the 2 master, the only difference is the second partition which contain the ssh stuff.

As I undertand, this could have been done by including the ssh stuff in the initrd, is that correct ?
I assume it's more easy to maintain like it's done, but do you think the boot time could be shorter if everything is in the initrd ?

Thank you for you help.

Emmanuel
Title: Re: remastering piCore
Post by: bmarkus on January 18, 2015, 04:31:51 PM
Yes, a standalone initrd boots faster but you are loosing the possibility to update system from repo for example and it may cause issues using a persistent /tce repo, so I do not advice. However it may work if you have a dedicated appliance with no user interface, like an internet radio with an LCD display and few control buttons, a robot and so.
Title: Re: remastering piCore
Post by: emmaanuel on January 18, 2015, 04:51:18 PM
Yes, it's exactly that : http://www.emmaanuel.com/SqueezeBerry-a-Music-Player-based (http://www.emmaanuel.com/SqueezeBerry-a-Music-Player-based)

Thank you for your answer, I'll try do do this.
Title: Re: remastering piCore
Post by: Paul_123 on January 18, 2015, 06:59:58 PM
That seems like a lot of work for the benefit.  What is your boot time with extensions?

I used to build my own for the same reasons.......but upgrades are quite difficult.  So now I use stock piCore.   I think it has been about 6 mon since I rebooted the box too.

But if your still dead set here are a link to an older posts that may help.....

http://forum.tinycorelinux.net/index.php/topic,14634.msg88856.html#msg88856
Title: Re: remastering piCore
Post by: emmaanuel on January 19, 2015, 01:51:24 PM
my boot time with picore, few extension and wifi connected is 35-40s.
I use it for a radio, and I a boot several time a day.
I would like to go down to 20s or less if it's possible.
Title: Re: remastering piCore
Post by: bmarkus on January 19, 2015, 02:17:11 PM
Which version? With the latest 6.0rc1 you can save 20% due to default turbo settings.
Title: Re: remastering piCore
Post by: emmaanuel on January 19, 2015, 04:01:42 PM
I'm running a 5.3. It's a good news, I'll try with the 6.0rc1.
what are these turbo settings ?
Title: Re: remastering piCore
Post by: emmaanuel on January 19, 2015, 06:23:30 PM
I've just done some test.
Clean version 6.0rc1 with SSH took 15s to boot, versus 20s for the version 5.3.1 with SSH.
It's a very good point.

I'll add my extension sto see how far I can go.
Title: Re: remastering piCore
Post by: Paul_123 on January 19, 2015, 08:05:15 PM
Did you remove the waitusb=5 from the command line on the 6.0 rc1 image.
Title: Re: remastering piCore
Post by: emmaanuel on January 20, 2015, 12:47:20 PM
no , I don't.
Because I use a wifi dongle.
Title: Re: remastering piCore
Post by: Paul_123 on January 20, 2015, 02:13:14 PM
no , I don't.
Because I use a wifi dongle.

Should not matter for wifi, as that is all hotplug anyway.   Give it a shot.
Title: Re: remastering piCore
Post by: emmaanuel on January 20, 2015, 03:00:07 PM
I've tried, and my last mesure was not including this waiting time because I'm not using any usb device for this speed test.
After 15s , my network ethernet interface is up, and it's the last message of the dmesg.
If I remove the waitusb I get the same time.
Title: Re: remastering piCore
Post by: Paul_123 on January 20, 2015, 10:17:53 PM
lol, my dev system is up to about 56 seconds, but then there are 130 extensions mounted.

My model A pi in my alarm clock radio boots a little faster, but then it has full battery backup.   The batteries will keep it running for almost 16hours without power (not streaming anything obviously.   If the power is out, or something makes it unable to stream, it has a little piezo buzzer to wake me up.