WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Remaster problem  (Read 3557 times)

Offline hanj4096

  • Newbie
  • *
  • Posts: 2
Remaster problem
« on: May 04, 2014, 12: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

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10960
Re: Remaster problem
« Reply #1 on: May 04, 2014, 01: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.
The only barriers that can stop you are the ones you create yourself.

Offline hanj4096

  • Newbie
  • *
  • Posts: 2
Re: Remaster problem
« Reply #2 on: May 04, 2014, 02:11:28 AM »
Curaga, thanks very much.
The root cause is the lack of memory.

TC is really cool. :)

Thanks.
Jerry