November 24, 2020, 08:55:03 pm

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


Lubuntu 1.05 (NAND) - ignoring "script.bin" settings

Started by cheaterenator, February 02, 2014, 03:06:35 am

Previous topic - Next topic

cheaterenator

Hi

I have uploaded "cb-a20-lubuntu-12.10-v1.05.img" image to my cubieboard nand, and everything is working ok, except that i can't force system to use modified settings from script.bin file :(
It looks like system is ignoring that file, and loads settings from another place? (I even deleted that file from nanda and it still boot correctly)
I really need to change video out to VGA and add some GPIOs, but any change I made to script.bin file are ignored...
I even tried other versions of lubuntu (1.04, 1.03, 1.06) and a have still the same problem.

I found here: http://www.cubieforums.com/index.php/topic,532.msg4238.html#msg4238
that someone else have similar problem, but I can't  understood what exactly he did to make this work.
I never dealt before with bootloaders so I don't know what to do :(
Can You help me?

ahrovan

February 02, 2014, 05:56:35 am #1 Last Edit: February 06, 2014, 03:50:28 pm by ahrovan
Quote from: cheaterenator on February 02, 2014, 03:06:35 am
Hi

I have uploaded "cb-a20-lubuntu-12.10-v1.05.img" image to my cubieboard nand, and everything is working ok, except that i can't force system to use modified settings from script.bin file :(
It looks like system is ignoring that file, and loads settings from another place? (I even deleted that file from nanda and it still boot correctly)
I really need to change video out to VGA and add some GPIOs, but any change I made to script.bin file are ignored...
I even tried other versions of lubuntu (1.04, 1.03, 1.06) and a have still the same problem.

I found here: http://www.cubieforums.com/index.php/topic,532.msg4238.html#msg4238
that someone else have similar problem, but I can't  understood what exactly he did to make this work.
I never dealt before with bootloaders so I don't know what to do :(
Can You help me?


I uploading script.bin archive - First uploaded script-VGA-1.05- you download this - solve your problem
when you convert fex file to bin file - change output name and try with another name - ex: script2.bin - if not converted - check your fex file line's with text editor.

http://brg.vvs.ir/2014/02/script-bin-archive/

cheaterenator

Thanks for reply.


Unfortunately that does not help :( I can also successfully generate script.bin file from script.fex file, but system, bootloader, or something  else that is responsible for changing system settings according to parameters in that file, is just ignoring it :(
Even deleting this file does not interrupt or causes problems to boot system (which should occur after completely deleting this file)
It just looks like something responsible to change that system settings take parameters from some other place.

I can tell that, this is working in Android, but not in linux :(

luminofor

And where did you interpose this script.bin?
By default, the folder / boot is not visible in the system. It lies on the other section which is not mounted. First mount it, then script.bin already changing. And yet, in this assembly has cb-display-tool, which allows you to change the display settings on the fly
To use cb-display-tool:
# To switch VGA/HDMI display mode in command line. e.g.
$ cb-display-tool -o 8 -m 11
# Note: can switch to the same resolutions only currently.

Sorry for my bad english

tomg

script.bin goes on /dev/nanda
so as root mount /dev/nanda /mnt
# Save the original
cp /mnt/script.bin /mnt/script.bin.orig
cp script.bin /mnt
umount /mnt
reboot
# Best to do all this from a sd booted machine