Tiny Core Base > TCB Q&A Forum

init (error -26) with Core 15.0

<< < (3/6) > >>

mocore:

--- Quote from: patrikg on December 25, 2024, 05:03:13 PM ---And to the boot codes for tc you have them here:

https://distro.ibiblio.org/tinycorelinux/faq.html#bootcodes

--- End quote ---

and or there  https://wiki.tinycorelinux.net/doku.php?id=wiki:boot_options

Rich:
Hi linic
Though it won't solve your problem, I did find something interesting.
Even though I allocated 72 Mbytes of RAM, free reports only 60 Mbytes present:

--- Code: ---free -m
              total        used        free      shared  buff/cache   available
Mem:             60          10          22          20          27          26
Swap:             7           0           7
--- End code ---

Looking through dmesg shows the missing 12 Mbytes used as a RAM disk:

--- Code: ---    47.59M    59.76M    12.17M  RAMDISK: [mem 0x02f98000-0x03bc3fff]
--- End code ---

CNK:

--- Quote from: Rich on January 01, 2025, 01:48:15 AM ---Though it won't solve your problem, I did find something interesting.
Even though I allocated 72 Mbytes of RAM, free reports only 60 Mbytes present:

--- Code: ---free -m
              total        used        free      shared  buff/cache   available
Mem:             60          10          22          20          27          26
Swap:             7           0           7
--- End code ---


Looking through dmesg shows the missing 12 Mbytes used as a RAM disk:

--- Code: ---    47.59M    59.76M    12.17M  RAMDISK: [mem 0x02f98000-0x03bc3fff]
--- End code ---

--- End quote ---

Interesting. I've always put this down to the size of the Linux kernel being subtracted from the total. But 0x03bc3fff - 0x02f98000 = 12,763,135 decimal so around the 12MB missing from the total.

The documentation for RAMDISK says it can be configured with the ramdisk_size= kernel parameter. Although I'm confused that only 4MB is missing from the 80MB physical RAM in my PC running Damn Small Linux (kernel 2.4.31) even though it's using the default 4096K block size:


--- Code: ---free -m
             total       used       free     shared    buffers     cached
Mem:            76         61         14          0          3         35
-/+ buffers/cache:         22         54
Swap:          101          0        101

dmesg | grep RAMDISK
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

--- End code ---

Does TCL reserve three 4MB RAMDISKs instead of one? But then DSL's dmesg says it's initialised 16! I'm confused. This might be something to play with when I have time to see if I can squeeze new TCL HDD installs on my i486 laptop more easily in its 16MB of RAM (TC15 was a really tight fit).

Rich:
Hi CNK

--- Quote from: CNK on January 01, 2025, 06:39:23 PM --- ...
--- Code: --- ----- Snip -----
dmesg | grep RAMDISK
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
--- End code ---

 ... But then DSL's dmesg says it's initialised 16! I'm confused. ...
--- End quote ---
I suspect DSL probably created 16 devices (/dev/ram0 - /dev/ram15) each
capable of addressing 4 Mbytes, but hasn't allocated memory to them yet
because they are not currently in use.

CNK:

--- Quote from: Rich on January 01, 2025, 09:16:31 PM ---I suspect DSL probably created 16 devices (/dev/ram0 - /dev/ram15) each
capable of addressing 4 Mbytes, but hasn't allocated memory to them yet
because they are not currently in use.

--- End quote ---

That could be, but I'm not sure why TCL would be using any. According to this interesting description of the differences between ramdisk, ramfs, rootfs and initramfs, since kernel 2.6 ramdisk isn't used during boot, replaced by initramfs.

The default ramdisk size and number can be changed in the kernel configuration, and it seems TC15 x86 uses these values:

--- Code: ---CONFIG_BLK_DEV_RAM_COUNT=8
CONFIG_BLK_DEV_RAM_SIZE=8192

--- End code ---

So 8MB ramdisk block size instead of the standard 4MB. I'm still not clear on how or if that can subtract from available memory if the ramdisks aren't used though.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version