Moderator Control Panel ]

tbs2910 support in mainline u-boot

tbs2910 support in mainline u-boot

Postby moch » Wed Sep 17, 2014 7:22 pm

Since there is no support for the Matrix board in mainline u-boot (and I could not find patches to support all Matrix features in u-boot), here is a patch with this support.

This patch still uses the SabreSD machine type.
@ someone from TBS: Can you please request an own board-ID (machine type) for the tbs2910 at http://www.arm.linux.org.uk/developer/machines/ !?

Then I can try to get this code in the mainline u-boot.imx repository.

Thanks!

PS: Testers welcome...

Edit 20141004: New patch version with proper zImage and raw initrd support, as requested. Save settings to make sure that relocated device tree blob ends up in low memory. Second patch to speed up the framebuffer.
Attachments
0001-arm-mx6-add-support-for-TBS2910-Matrix-ARM-miniPC.patch.gz
(6.07 KiB) Downloaded 282 times
0002-video-temporarily-disable-cache-flush-when-writing-s.patch.gz
(691 Bytes) Downloaded 271 times
Last edited by moch on Tue Oct 07, 2014 1:06 am, edited 2 times in total.
moch
 
Posts: 8
Joined: Fri Sep 12, 2014 4:35 pm

Re: tbs2910 support in mainline u-boot

Postby vpeter » Wed Sep 17, 2014 8:50 pm

Excellent!

Can you also include patch from Robert Nelson for uEnv.txt and bootz: https://github.com/eewiki/u-boot-patche ... ixes.patch

And one remark: Do you know there are different u-boot's for matrix version 1 and version 2? For v2 this is the patch I found (or got) somewhere:
Code: Select All Code
--- board/freescale/mx6q_sabresd/flash_header.S   2014-07-21 14:31:56.000000000 +0800
+++ board/freescale/mx6q_sabresd/flash_header.S   2014-07-21 14:32:04.000000000 +0800
@@ -355,7 +355,7 @@
 
 MXC_DCD_ITEM(62, MMDC_P0_BASE_ADDR + 0x004, 0x00020036)
 MXC_DCD_ITEM(63, MMDC_P0_BASE_ADDR + 0x008, 0x09444040)
-MXC_DCD_ITEM(64, MMDC_P0_BASE_ADDR + 0x00c, 0x555A7975)
+MXC_DCD_ITEM(64, MMDC_P0_BASE_ADDR + 0x00c, 0x8A5A7975)
 MXC_DCD_ITEM(65, MMDC_P0_BASE_ADDR + 0x010, 0xFF538F64)
 MXC_DCD_ITEM(66, MMDC_P0_BASE_ADDR + 0x014, 0x01FF00DB)
 MXC_DCD_ITEM(67, MMDC_P0_BASE_ADDR + 0x018, 0x00001740)
Not sure what implication this has because my u-boot compiled without this patch works on both revisions.
You can help me buy new work notebook with paypal donation, after 8 years it's time to upgrade.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FLVT7ACMYAPS6
vpeter
 
Posts: 427
Joined: Sun Jul 27, 2014 2:12 am
Location: Slovenia

Re: tbs2910 support in mainline u-boot

Postby moch » Wed Sep 17, 2014 9:23 pm

vpeter Wrote:Can you also include patch from Robert Nelson for uEnv.txt and bootz
bootz support would be no problem.
The default environment is designed to be small and compatible to the environment shipped with MatrixSystem_V1.0.1.0. Since there is support to save the environment to the eMMC boot partition 1 (where the u-boot itself resides), you can add uEnv.txt support (and other environment extensions) on your own.

vpeter Wrote:And one remark: Do you know there are different u-boot's for matrix version 1 and version 2? For v2 this is the patch I found (or got) somewhere
I recently bought a version 2.1 system and have no access to other revisions. From the schematics I cannot see any differences to check for different u-boots.
The file in your patch is not included in the mainline u-boot repository.
moch
 
Posts: 8
Joined: Fri Sep 12, 2014 4:35 pm

Re: tbs2910 support in mainline u-boot

Postby vpeter » Wed Sep 17, 2014 11:25 pm

Well, I think in mainline u-boot we should have some extra features which are not used by matrixtv. Because there is no need to have recent u-boot. Those features can be used by some other featured projects. Not that still extra patches are needed.
To manipulate environment variables from u-boot you need serial console. And ordinary users doesn't have it. That's why I see such features as default.

The patch file I post was probably obtained directly from TBS if I remember right and it's not included in any u-boot version/repo.
You can help me buy new work notebook with paypal donation, after 8 years it's time to upgrade.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FLVT7ACMYAPS6
vpeter
 
Posts: 427
Joined: Sun Jul 27, 2014 2:12 am
Location: Slovenia

Re: tbs2910 support in mainline u-boot

Postby moch » Wed Sep 17, 2014 11:42 pm

vpeter Wrote:Well, I think in mainline u-boot we should have some extra features which are not used by matrixtv.
Yes, requests for additional features (like bootz) are welcome. On the other side there are size constraints for bootloaders and it is much easier to get small patches into mainline...

vpeter Wrote:To manipulate environment variables from u-boot you need serial console.
No, like any "regular" PC in its "BIOS" my u-boot supports HDMI framebuffer and USB keyboard. So there is no need to patch the u-boot itself to change the environment variables.
moch
 
Posts: 8
Joined: Fri Sep 12, 2014 4:35 pm

Re: tbs2910 support in mainline u-boot

Postby vpeter » Wed Sep 17, 2014 11:50 pm

I agree: it's better to have something in mainline than nothing.
You can help me buy new work notebook with paypal donation, after 8 years it's time to upgrade.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FLVT7ACMYAPS6
vpeter
 
Posts: 427
Joined: Sun Jul 27, 2014 2:12 am
Location: Slovenia

Re: tbs2910 support in mainline u-boot

Postby moch » Sun Oct 05, 2014 3:46 am

In the first post of this thread I added a new patch version with proper zImage and initrd support, as requested. Save settings to make sure that relocated device tree blob ends up in low memory. A second patch was added to speed up the framebuffer.
Last edited by moch on Tue Oct 07, 2014 1:00 am, edited 1 time in total.
moch
 
Posts: 8
Joined: Fri Sep 12, 2014 4:35 pm

Re: tbs2910 support in mainline u-boot

Postby moch » Tue Oct 07, 2014 12:32 am

vpeter Wrote:For v2 this is the patch I found (or got) somewhere:[...]
Not sure what implication this has because my u-boot compiled without this patch works on both revisions.
Ithink I got the point now. This patch modifies the refresh cycle timing of the sdram. Of course the slower setting of the 1st revision will also run on the second revision, the faster setting of the 2nd version will probably also run on the 1st revision boards, if the sdram temperature is not too high.

Could you measure a difference in memory performance? The speedup is probably not worth the effort of supporting two u-boot versions...
moch
 
Posts: 8
Joined: Fri Sep 12, 2014 4:35 pm

Re: tbs2910 support in mainline u-boot

Postby vpeter » Tue Oct 07, 2014 12:55 am

moch Wrote:Could you measure a difference in memory performance? The speedup is probably not worth the effort of supporting two u-boot versions...
If you tell me what to do sure.
dd maybe?

And thanks for clarifying the purpose of the patch ;) And yes, two versions is not good if one can do the both.
You can help me buy new work notebook with paypal donation, after 8 years it's time to upgrade.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FLVT7ACMYAPS6
vpeter
 
Posts: 427
Joined: Sun Jul 27, 2014 2:12 am
Location: Slovenia

Re: tbs2910 support in mainline u-boot

Postby moch » Tue Oct 07, 2014 11:00 pm

I have rechecked the settings. In contrast to my earlier assumption the new settings are slower. But the faster settings are wrong for the 1st version boards, too. (at least if they use H5TQ4G63 sdram, what I have seen on a Version 1 board picture).

As far as I can see there is no need to have two different u-boot versions. So the posted patch should be okay for all board versions.

@vpeter: Did you test the new u-boot? Are all new features (SATA, HDMI, RTC, USB) working? Any other suggestions?
moch
 
Posts: 8
Joined: Fri Sep 12, 2014 4:35 pm

Next

Return to Development

Who is online

Users browsing this forum: No registered users and 1 guest