[Gta04-owner] Impressions from running Replicant
Alexander Rumyantsev
ran at mail.wplus.net
Thu Jun 27 20:13:02 CEST 2013
Hello
> Sometime after I wrote that patch I discovered there was a better way
> to do
> it.
> If you call
> pm_set_vt_swtch(0);
> it will disable the vt switching at suspend.
>
> I'm not 100% sure where this should go. It could go in the 'board'
> file,
> but they are on their way out so I'd rather put it elsewhere.
>
> The only current callers are drivers/video/geode/?xfb_core.c.
> i.e. the video driver set it.
> So maybe we could patch it into the omap video driver?
> Or maybe call it from the init routine of our panel driver?
>
> I'm not really sure what is best. Probably the board file for now.
> But certainly calling that is cleaner that commenting out code
> in kernel/power/suspend.c :-)
>
Thank you for idea. I get success today with the patch:
project kernel/goldelico/gta04/
diff --git a/arch/arm/mach-omap2/board-omap3gta04.c
b/arch/arm/mach-omap2/board-
index 70ef1f9..c3b0eed 100644
--- a/arch/arm/mach-omap2/board-omap3gta04.c
+++ b/arch/arm/mach-omap2/board-omap3gta04.c
@@ -1235,6 +1235,8 @@ static void __init gta04_init(void)
ARRAY_SIZE(gta04_devices));
omapfb_set_platform_data(>a04_omapfb_data);
+pm_set_vt_switch(0);
+
omap2_hsmmc_init(mmc);
// #ifdef CONFIG_OMAP_MUX
You can try result:
https://docs.google.com/file/d/0B-rRgKAzYyoBSW9xcW80Y3BJeU0/edit?usp=sharing
To prepare working SD execute ./replicant_gta04_install.sh . /dev/sdb into restored
directory. ( change /dev/sdb to your device ).
Boot from 1 partition using ordinary ( HW-testing/QT ) uBoot from NAND.
Alexandre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20130627/a8466a46/attachment.bin>
More information about the Gta04-owner
mailing list