timothee
Member
Hi
I'm trying to use a ext2 sd card with my F200 (I could really use some symlinks) but I'm hitting some setup problem, could someone help me out please?
My F200 is running firmware 4.0. The F200 always tries to mount the card as vfat which fails. Even when I change /etc/fstab to ext2, it doesn't honour my setting. The setting is honoured, if, after startup, I mount manually:
mount /mnt/sd
I'm trying to do that automatically and that is where I'm hitting problems:
I can't find where to add a autorun.gpu in the nand to autostart. Instead I found /root/start.sh . In there, I've added:
CODE
mount -t ext2 /mnt/sd
cd /mnt/sd/Apps/gmenu2x
exec ./gmenu2x
The problems with this approach:
1) time wasted when firmware tries and fails to mount sd as vfat
2) both the f200 default ui AND gmenu2x are running simultaneously (I can see the screen flickering between gmenu2x and default ui when I use the left/right keys).
I can probably live with the start up time hit, but is there a way to kill the default f200 ui fro the start.sh script?
Alternatively, is there simply a better way to achieve what I want?
Side related question: on the F200, what is the way to add gmenu2x to the nand and autostart? I can't mount the nand as the loopback device:
CODE
[root@gp2x root]$mount /mnt/nand
MSDOS FS: IO charset utf8
FAT: unable to read boot sector
FAT: freeing iocharset=utf8
mount: Mounting /dev/loop/7 on /mnt/nand failed: Invalid argument
I tried adding autorun.gpu to / but that didn't work. I realised the games from the nand are stored in /usr/games and I saw the folder /usr/gp2x. I tried adding a autorun.gpu in /usr/gp2x but that didn't work either.
Any help would be much appreciated.
Thanks,
Tim.
[Edit]
I manage to kill the default menu by injecting the following super ugly script in my start.sh:
CODE
kill `ps ax | grep gp2xmenu | sed ' s/ *([0-9]\+).*/\1/g'`
I wish the simpler 'ps -C gp2xmenu -o pid=' could have worked; and I couldn't get cut or sed addresses to work .
So now the only annoyance is the startup time, I have the following unecessary processes:
- attempt to mount /mnt/sd as vfat (which fails)
- launch default gp2xmenu
- mount /mnt/sd as ext2
- kill gp2xmenu
- start gmenu2x
Is there a way to streamline that?
I'm trying to use a ext2 sd card with my F200 (I could really use some symlinks) but I'm hitting some setup problem, could someone help me out please?
My F200 is running firmware 4.0. The F200 always tries to mount the card as vfat which fails. Even when I change /etc/fstab to ext2, it doesn't honour my setting. The setting is honoured, if, after startup, I mount manually:
mount /mnt/sd
I'm trying to do that automatically and that is where I'm hitting problems:
I can't find where to add a autorun.gpu in the nand to autostart. Instead I found /root/start.sh . In there, I've added:
CODE
mount -t ext2 /mnt/sd
cd /mnt/sd/Apps/gmenu2x
exec ./gmenu2x
The problems with this approach:
1) time wasted when firmware tries and fails to mount sd as vfat
2) both the f200 default ui AND gmenu2x are running simultaneously (I can see the screen flickering between gmenu2x and default ui when I use the left/right keys).
I can probably live with the start up time hit, but is there a way to kill the default f200 ui fro the start.sh script?
Alternatively, is there simply a better way to achieve what I want?
Side related question: on the F200, what is the way to add gmenu2x to the nand and autostart? I can't mount the nand as the loopback device:
CODE
[root@gp2x root]$mount /mnt/nand
MSDOS FS: IO charset utf8
FAT: unable to read boot sector
FAT: freeing iocharset=utf8
mount: Mounting /dev/loop/7 on /mnt/nand failed: Invalid argument
I tried adding autorun.gpu to / but that didn't work. I realised the games from the nand are stored in /usr/games and I saw the folder /usr/gp2x. I tried adding a autorun.gpu in /usr/gp2x but that didn't work either.
Any help would be much appreciated.
Thanks,
Tim.
[Edit]
I manage to kill the default menu by injecting the following super ugly script in my start.sh:
CODE
kill `ps ax | grep gp2xmenu | sed ' s/ *([0-9]\+).*/\1/g'`
I wish the simpler 'ps -C gp2xmenu -o pid=' could have worked; and I couldn't get cut or sed addresses to work .
So now the only annoyance is the startup time, I have the following unecessary processes:
- attempt to mount /mnt/sd as vfat (which fails)
- launch default gp2xmenu
- mount /mnt/sd as ext2
- kill gp2xmenu
- start gmenu2x
Is there a way to streamline that?
Last edited by a moderator: