Tiny Core Base > piCore Test Releases

piCore 5.0.alpha3

<< < (3/11) > >>

sbp:

--- Quote from: bmarkus on September 24, 2013, 12:56:11 PM ---piCore 5.0 doesn't use mmcblk0p1 at all. Do you mount partition before doing anything with it?

--- End quote ---

Yes I do mount the partition, and I can see the files and cat /mnt/mmcblk0p1/config.txt will output the content of the config.txt file, so it is available.

The problem is that any change I do to the file is not maintained after a reboot. Whereas in 4.7.7 the changes was still there after a reboot.

Steen

bmarkus:
How are you changing the file?

sbp:
Like this

sudo echo hdmi_drive=2 >> /mnt/mmcblk0p1/config.txt

Steen

bmarkus:

--- Quote from: sbp on September 24, 2013, 01:51:31 PM ---Like this

sudo echo hdmi_drive=2 >> /mnt/mmcblk0p1/config.txt

Steen

--- End quote ---

Do not overwrite system configuration file, just change the relevant parameter. First try it manually with an editor to see it is effective. For scripting use sed for example.

sbp:
Hi bmarkus

It doesn't matter how I change the /mnt/mmcblk0p1/config.txt file

I have used :

1.  sudo echo hdmi_drive=2 >> /mnt/mmcblk0p1/config.txt     which by the way don't overwrite the file but just add a new line containing hdmi_drive=2 to the end of the file.

2. sudo vi  /mnt/mmcblk0p1/config.txt   -  and change a line and then saved it. And I verified by doing a cat  /mnt/mmcblk0p1/config.txt that the file was changed.

However, after a reboot the changes are lost.  In version 4.7.7. I did not have this problem, as any change was still present after a reboot.

Steen

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version