Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: mocore on April 20, 2013, 01:48:12 PM

Title: what is possible with core.gz initrd firmware cmdline.txt options ect
Post by: mocore on April 20, 2013, 01:48:12 PM
can any one point out
how to have something using cpio.gz
like
Code: [Select]
cat picore.gz Xlibs.gz Xprogs.gz Xvesa.gz > newpicore.gzor
Code: [Select]
initrd=picore.gz,my_initramfs.gz
with picore ?

and can  /piCore3611a.gz   be renamed or remastered ?
like handling multiple tinycore.gz files? (http://forum.tinycorelinux.net/index.php?topic=664.0) or remastering tinycore.gz (http://forum.tinycorelinux.net/index.php?topic=157.0)

/cmdline.txt from the image has this  ??? ( usually i could just change or append 'initrd=ZZZ.gz' it seems not so simple in this case! )
Quote
initrd=0xa00000,0x3c02a7
   
is it necessary to recreate the  kernel and or SD.img to change some thing ?

Title: Re: what is possible with core.gz initrd firmware cmdline.txt options ect
Post by: bmarkus on April 20, 2013, 02:00:55 PM
Check config.txt in /mnt/mmcblk0p1 boot partition. At the beginning you can specify name of kernel and initrd file. It means you can use whatever name you want.

In the command line edit second hex number to match size of your initrd.

initrd=0xa00000,0x3c02a7
Title: Re: what is possible with core.gz initrd firmware cmdline.txt options ect
Post by: mocore on April 23, 2013, 02:00:04 PM
thanks!
 idk how i missed that
anyway 
"cat picore.gz nodejs.gz > catpicore.gz" works

 after loading coreutils im using
Code: [Select]

printf '0x%x\n' $(stat -c%s catpicore.gz )
to get the hexsize from the initrd file 

change
cmdline.txt
initrd=0xa00000,$hexsize
and
config.txt
ramfsfile=catpicore.gz

 it boots! and node can be started from terminal  .