Reply
Thread Tools
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#171
The bad news:
Seems the IBE bit in CortexA8 Auxiliary Control Register cannot be set outside secure world, so enabling CONFIG_ARM_ERRATA_430973 in kernel does absolutely nothing (besides executing few more instructions). I tried to set the bit in u-boot with the following code:

Code:
u32 actlr;
__asm__ volatile(
			 "mrc	p15, 0, %0, c1, c0, 1;"
			 "orr	%0, %0, #(1 << 6);"
			 "mcr	p15, 0, %0, c1, c0, 1;"
			 "mrc	p15, 0, %0, c1, c0, 1;"
			 :"=r"(actlr)
			 :
	      );
	printf("ACTLR 0x%08X\n",actlr);
and the result is 0x00000022 (L2EN=1, L1NEON=1) instead of 0x00000062(L2EN=1, L1NEON=1,IBE=1) .
If anyone finds an error in my code, please tell me, but i don't think it is incorrect.

The (maybe) good news:
It seems there is a function in CortexA8 secure monitor for setting the value of Auxiliary Control Register from outside secure world, it is used in kernel when CPU goes out of standby to restore the register contents. Have no idea if it will be useful, but will try these days.
 

The Following 11 Users Say Thank You to freemangordon For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#172
UPDATE:

the "maybe good news" turned out to be good news - we have a perfectly working SMC (secure Monitor Call) function for setting the contents of Auxiliary Control Register.
 

The Following 15 Users Say Thank You to freemangordon For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#173
Guys, u-boot here along with kernel compiled with arm thumb errata workaround enabled (unknown.obvious' one for example), should allow thumb-compiled Ubuntu to run on n900 without an issue (at least on thumb front ).

Please test and report.
 

The Following 12 Users Say Thank You to freemangordon For This Useful Post:
Posts: 72 | Thanked: 157 times | Joined on Oct 2011 @ Hungary
#174
Originally Posted by freemangordon View Post
Guys, u-boot here along with kernel compiled with arm thumb errata workaround enabled (unknown.obvious' one for example), should allow thumb-compiled Ubuntu to run on n900 without an issue (at least on thumb front ).

Please test and report.
On Monday I will have some spare time so I can test it.
Please write which kernel I should use and with wich U-boot should I boot it.
 

The Following 2 Users Say Thank You to PanzerSajt For This Useful Post:
Posts: 1,225 | Thanked: 1,905 times | Joined on Feb 2011 @ Quezon City, Philippines
#175
Originally Posted by freemangordon View Post
Guys, u-boot here along with kernel compiled with arm thumb errata workaround enabled (unknown.obvious' one for example), should allow thumb-compiled Ubuntu to run on n900 without an issue (at least on thumb front ).

Please test and report.
He says his kernel is armel.
IIRC Ubuntu 12.04 for OMAP3 devices is out, and it's built for armhf.

Speaking of which, u-boot now starts both Ubuntu and Nemo on my N900 without any -110 errors, both on sd and eMMC. If thumb (2?) gets sorted out, I think xserver will stop crashing.
__________________
N9 PR 1.3 Open Mode + kernel-plus for Harmattan
@kenweknot, working on Glacier for Nemo.
 
Posts: 58 | Thanked: 197 times | Joined on Apr 2012
#176
Originally Posted by Hurrian View Post
He says his kernel is armel.
IIRC Ubuntu 12.04 for OMAP3 devices is out, and it's built for armhf.
There seems to be some misunderstanding. The Packages are armel but the kernel will work on armhf (meaning hard-float userspace binarys). Maybe this command will work "sudo dpkg --force-architecture -i" but I extracted the packages manualy to sdcard until now. There just was no "easy" way to build armhf packages or I didn't see it.

Last edited by unknown.obvious; 2012-05-05 at 10:33.
 

The Following 8 Users Say Thank You to unknown.obvious For This Useful Post:
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#177
I downloaded Kubuntu image from http://cdimage.ubuntu.com/kubuntu/re...ecise/release/ booted uImage kernel (with uInitrd) but not working :-(
 

The Following 3 Users Say Thank You to pali For This Useful Post:
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#178
Now tested Nemo image, not working too :-( it show someting like systemd-fsck is in rescue mode and phone freeze...
 

The Following 3 Users Say Thank You to pali For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#179
Originally Posted by pali View Post
I downloaded Kubuntu image from http://cdimage.ubuntu.com/kubuntu/re...ecise/release/ booted uImage kernel (with uInitrd) but not working :-(
Pali, better use int_ua's installer, it works for sure
 

The Following 5 Users Say Thank You to freemangordon For This Useful Post:
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#180
Now tested Nitdoird image, this booted and seems is working :-)
 

The Following 6 Users Say Thank You to pali For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 05:26.