Tiny Core Base > Raspberry Pi
Removing SDCARD results in segmentation fault
Paul_123:
If all you are running is Firefox, you don’t need a window manager, just Xorg. I do this with Chrome for a kiosk type display. That would save some extension space in Ram.
Rich:
Hi segfault
--- Quote from: segfault on July 08, 2024, 05:35:33 AM --- ... and used the Tree dependency list view and wrote down all the dep to firefox. After removing the duplicate .tcz deps from the list, I added them to copy2fs.lst. ...
--- End quote ---
Doing that is highly error prone. If you viewed the tree list on your
system, a copy will be present in /tmp. So you can:
--- Code: ---awk '$1=$1' /tmp/firefox.tcz.tree | uniq -u > firefox.deps
--- End code ---
You now have a file that contains both direct and indirect dependencies
for firefox with duplicate entries removed.
By the way, I don't see were you mentioned doing the same for TC.tcz.
Now if you want to simplify your life:
--- Code: ---cd /mnt/mmcblk0p2/tce
rm copy2fs.lst
touch copy2fs.flg
echo TC.tcz > onboot.lst
echo firefox.tcz >> onboot.lst
--- End code ---
Using copy2fs.flg copies all extensions to RAM, which is what you want.
Using copy2fs.lst copies select extensions to RAM, which is not what you want.
segfault:
--- Quote from: Paul_123 on July 08, 2024, 07:58:21 AM ---If all you are running is Firefox, you don’t need a window manager, just Xorg. I do this with Chrome for a kiosk type display. That would save some extension space in Ram.
--- End quote ---
I didn't know. Thank! :D
Rich:
Thanks a lot for your comments. Very nice, now it can be semi-automated; I will update my install-scripts accordingly! :D
--- Quote from: Rich on July 08, 2024, 08:57:56 AM ---Using copy2fs.flg copies all extensions to RAM, which is what you want.
Using copy2fs.lst copies select extensions to RAM, which is not what you want.
--- End quote ---
On rpb2v11 that flag option (copy2fs.flg) resulted in an out-of-memory. With the list option, it fits in memory (though firefox still crashes after a while):
Rich:
Hi segfault
You're still missing the point. All extensions + dependencies that you
want to load must be in RAM.
If you want to load firefox.tcz
then everything in firefox.tcz.tree must be in RAM
If you want to load Xorg.tcz
then everything in Xorg.tcz.tree must be in RAM
If you want to load flwm_topside.tcz
then everything in flwm_topside.tcz.tree must be in RAM
... and so on.
--- Quote from: segfault on July 10, 2024, 03:54:39 AM --- ... On rpb2v11 that flag option (copy2fs.flg) resulted in an out-of-memory. ...
--- End quote ---
That may be, but for each extension listed in onboot.lst, it loads the contents
of its tree file.
--- Quote --- ... With the list option, it fits in memory (though firefox still crashes after a while):
--- End quote ---
Then something is likely still getting loop mounted. Take a look
in /tmp/tcloop/ , there should be no extensions listed in there.
Using the nozswap boot code is a good idea. The zswap routine
takes 25% of free memory. zswap does you no good if you don't
have enough RAM for loading extensions to begin with.
If you want to see how much RAM is being used for zswap:
--- Code: ---cat /sys/block/zram0/disksize
--- End code ---
It should be 0.
segfault:
--- Quote from: Rich on July 10, 2024, 08:31:02 AM ---You're still missing the point.
--- End quote ---
Correct.
--- Quote from: Rich on July 10, 2024, 08:31:02 AM ---Then something is likely still getting loop mounted. Take a look
in /tmp/tcloop/ , there should be no extensions listed in there.
If you want to see how much RAM is being used for zswap:
--- Code: ---cat /sys/block/zram0/disksize
--- End code ---
It should be 0.
--- End quote ---
Super helpful tidbits of info. I written this down!
Happy joy, it now works
I did a fresh install of piCore on my Raspberry Pi 2 Model B V1.1
Resized p2.
Installed TC.tcz and firefox.tcz
Added the copy2fs.flg to the tce folder.
Added TC.tcz and firefox.tcz to onboot.lst.
And turned off swap.
After rebooting the computer, it started the desktop.
I clicked the firefox icon and the browser opened up.
Then I physically removed the SDCARD from the device.
Opened developer tools etc,.
and then left it alone an hour.
Firefox doesn't seem to crash any longer.
And perhaps more importantly /tmp/tcloop/ is empty.
Though everything actually works out-of-the-box (as long as the user do not {un-intentionally} damage the system), a huge thanks for all the constructive feedback... I would probably have given up if I had to it on my own. : :-*
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version