Tiny Core Linux

General TC => Remasters / Remixes - Unofficial => Topic started by: hanj4096 on May 04, 2014, 03:43:31 AM

Title: Remaster problem
Post by: hanj4096 on May 04, 2014, 03:43:31 AM
Hi ALL,

I need to add a script and a 121M binary file into the latest Core-current.iso.
If I only add a script into Core-current.iso, the new iso works well.
But if I add 121M binary file into Core-current.iso, I got following error:
      Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

My remaster script is below:
#!/bin/sh
umount tinymount
rm -rf tinymount tinylocal tinycde
mkdir -pv tinymount tinylocal tinycde
mount -o loop Core-current.iso tinymount
cp tinymount/boot/core.gz tinylocal/
cd tinylocal
gunzip core.gz
cpio -i < core
rm core
cp ../ac-install sbin/
cp ../ac/all.bin etc/
find | cpio -o -H newc > ../core
cd ..
gzip core
advdef -z4 core.gz
mkdir -pv tinyiso
cd tinyiso
cp -rav ../tinymount/boot .
mkdir -pv boot/tce/optional
mv ../core.gz boot/core.gz
cd ..
mkisofs -l -J -R -V TC-custom -no-emul-boot -boot-load-size 4 \
 -boot-info-table -b boot/isolinux/isolinux.bin \
 -c boot/isolinux/boot.cat -o my.iso tinyiso

Could you kindly help on it?

Thanks.
Jerry
Title: Re: Remaster problem
Post by: curaga on May 04, 2014, 04:34:49 AM
You most likely ran out of memory. Your target system needs at least (size of core.gz) + (size of unpacked core.gz) + (some overhead ~10mb) RAM.

Also double-check your script ran as root.
Title: Re: Remaster problem
Post by: hanj4096 on May 04, 2014, 05:11:28 AM
Curaga, thanks very much.
The root cause is the lack of memory.

TC is really cool. :)

Thanks.
Jerry