Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: jgrulich on October 12, 2014, 06:07:48 AM

Title: Remastering on Pi
Post by: jgrulich on October 12, 2014, 06:07:48 AM
I've tried to do remastering based on this wiki: http://wiki.tinycorelinux.net/wiki:remastering?s[]=remastering, but there is difference between ISO and the image used for Raspi. Core is in .img file, no in the folder. Even I've extracted it into the /tmp folder and added the extensions into the /usr folder, the packing process was never successful. During the booting every appears lot of errors and finally "Kernel panic". Don't know what's wrong. Please help.
Title: Re: Remastering on Pi
Post by: bmarkus on October 12, 2014, 06:36:23 AM
Did you adjust initrd size in cmdline.txt?
Title: Re: Remastering on Pi
Post by: jgrulich on October 12, 2014, 06:40:33 AM
No. How to get the value for that?
Title: Re: Remastering on Pi
Post by: jgrulich on October 12, 2014, 06:44:07 AM
Another question. Is necessary the core.img extraction if I need only to add some extensions into the /usr directory?
Title: Re: Remastering on Pi
Post by: bmarkus on October 12, 2014, 07:02:50 AM
No. How to get the value for that?

ls -l
Title: Re: Remastering on Pi
Post by: bmarkus on October 12, 2014, 07:21:05 AM
Another question. Is necessary the core.img extraction if I need only to add some extensions into the /usr directory?

Create a tcz to avoid remastering
Title: Re: Remastering on Pi
Post by: jgrulich on October 12, 2014, 08:10:51 AM
Due to SD card failure in case of often power failure I can't use standard ext4 SD storage for apps.
The only way how to make the SD used only at boot and than not be permanently mounded and therefor be safe against power fail damage is to use only vfat single partition with all the extensions in the .gz file. I don't need much, only ALSA, MC and SSH.
Title: Re: Remastering on Pi
Post by: bmarkus on October 12, 2014, 09:36:18 AM
Ext4 is resistive against power failures specially if not writing it. Tcz's are read only anyhow. You can copy extensions to RAM too at boot.
Title: Re: Remastering on Pi
Post by: jgrulich on October 13, 2014, 02:34:53 PM
I've done the re-mastering finally and it works well as I've needed.
I've copied everything from the /tmp/loops into the /usr directory, modules.dep to have the sound core  modules working and finally the alsa config to restore it after reboot.
Thank's for good points and help.