<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.t-hack.com/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.t-hack.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dark+Neo</id>
		<title>t-hack.com - Hack X300T / X301T - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.t-hack.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dark+Neo"/>
		<link rel="alternate" type="text/html" href="http://www.t-hack.com/wiki/index.php?title=Special:Contributions/Dark_Neo"/>
		<updated>2026-05-14T00:11:37Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.18.2</generator>

	<entry>
		<id>http://www.t-hack.com/wiki/index.php?title=Toolchain_new</id>
		<title>Toolchain new</title>
		<link rel="alternate" type="text/html" href="http://www.t-hack.com/wiki/index.php?title=Toolchain_new"/>
				<updated>2009-07-30T16:22:17Z</updated>
		
		<summary type="html">&lt;p&gt;Dark Neo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*Prerequisites:&lt;br /&gt;
&lt;br /&gt;
gcc3.4 (it doesn't matter if you also have gcc4.x, as long as you have 3.4)&amp;lt;br&amp;gt;&lt;br /&gt;
zlib-dev (zlib1g-dev on Ubuntu - possibly others)&amp;lt;br&amp;gt;&lt;br /&gt;
bison&amp;lt;br&amp;gt;&lt;br /&gt;
flex&amp;lt;br&amp;gt;&lt;br /&gt;
genromfs&amp;lt;br&amp;gt;&lt;br /&gt;
libncurses5-dev&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Run this before you start (if you close the terminal you were working in you'll have to run this again):&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;export CC=gcc-3.4&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Grab [[Media:Smp86xx_toolchain_2.8.0.1.tar.gz]], unpack, then run:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;make menuconfig &amp;amp;&amp;amp; make&amp;lt;/pre&amp;gt;&lt;br /&gt;
You'll get the Buildroot configuration page, don't change anything, just exit. When it asks if you want to save choose yes, then wait...&amp;lt;br&amp;gt;&lt;br /&gt;
Once it's done (the last line should be 'creating toolchain-path.env...') run:&lt;br /&gt;
&amp;lt;pre&amp;gt;source /path/to/smp86xx_toolchain_2.8.0.1/toolchain-path.env&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Grab [[Media:Rootfs-2.7.127.0.tar.bz2]], unpack, then run:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;make menuconfig &amp;amp;&amp;amp; make&amp;lt;/pre&amp;gt;&lt;br /&gt;
Same as before, just exit and save the config, then some more waiting...&amp;lt;br&amp;gt;&lt;br /&gt;
If it claims you don't have zlib-dev but /usr/include/zlib.h exists, then change /path/to/rootfs_2.7.127.0/test_if_zlib_is_available.sh to:&lt;br /&gt;
&amp;lt;pre&amp;gt;#! /bin/sh&lt;br /&gt;
echo yes&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''Only do this if /usr/include/zlib.h exists!'''&lt;br /&gt;
&lt;br /&gt;
Once it's compiled run:&lt;br /&gt;
&amp;lt;pre&amp;gt;source /path/to/rootfs_2.7.127.0/rootfs-path.env&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Grab [[Media:Kernel-2.7.127.0.tar.bz2]], unpack, make menuconfig, make vmlinux.bin, wait...&amp;lt;br&amp;gt;&lt;br /&gt;
Use my nfsroot kernel .config file if you are not sure about the settings [[Media:27127config.gz| &amp;lt;&amp;lt;rename this file to .config, it is not compressed&amp;gt;&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
Recommended settings (Machine Selection screen)&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:Tango2_machine_sel.JPG]]&amp;lt;br&amp;gt;&lt;br /&gt;
If you are using a [[Setup_NFS-Root-Filesystem|nfsroot]] : Just create an empty directory, ie mkdir ../initramfs, then edit the kernel .config and set CONFIG_INITRAMFS_SOURCE to &amp;quot;../initramfs&amp;quot;, if you do not do this the kernel will use the initramfs as root and willl never mount the nfsroot&amp;lt;br&amp;gt;&lt;br /&gt;
You have to tell te kernel not to use the whole ram in dram0, i.e. via mem=32M, this is '''required''', otherwise it will crash !&lt;br /&gt;
The use [[MakeNK]] create a lx.bin compatible with the wince bootloader (uncheck romfs).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Get mrua-2.7.127.0-prod.tar.bz2 from &amp;quot;somewhere&amp;quot; &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;works only for wince based stbs !&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;export UCLINUX_KERNEL=/path/to/kernel_source_2.7.127.0/linux-2.6.15/&amp;lt;/pre&amp;gt;&lt;br /&gt;
copy /modules, bin/ and /lib to your rootfs, nfsroot, ..&lt;br /&gt;
&lt;br /&gt;
*apply [[Media:Dbgmonodram1.gz|&amp;lt;&amp;lt;this patch, not a gz file !&amp;gt;&amp;gt;]] via &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd mrua-2.7.127.0-prod &amp;amp;&amp;amp; patch -p1 &amp;lt; ../Dbgmonodram1.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;for more debug output and to be able to play videos from dram1 with mono (the command line option should be &amp;quot;-dram 1 -ve1&amp;quot; or something like that)&lt;/div&gt;</summary>
		<author><name>Dark Neo</name></author>	</entry>

	<entry>
		<id>http://www.t-hack.com/wiki/index.php?title=Toolchain_new</id>
		<title>Toolchain new</title>
		<link rel="alternate" type="text/html" href="http://www.t-hack.com/wiki/index.php?title=Toolchain_new"/>
				<updated>2009-07-30T15:45:15Z</updated>
		
		<summary type="html">&lt;p&gt;Dark Neo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*Make sure you have gcc3.4 installed (it doesn't matter if you also have gcc4.x, as long as you have 3.4), then run:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;export CC=gcc-3.4&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Grab [[Media:Smp86xx_toolchain_2.8.0.1.tar.gz]], unpack, then run:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;make menuconfig &amp;amp;&amp;amp; make&amp;lt;/pre&amp;gt;&lt;br /&gt;
You'll get the Buildroot configuration page, don't change anything, just exit. When it asks if you want to save choose yes, then wait...&lt;br /&gt;
Once it's done (the last line should be 'creating toolchain-path.env...') run:&lt;br /&gt;
&amp;lt;pre&amp;gt;source /path/to/smp86xx_toolchain_2.8.0.1/toolchain-path.env&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Grab [[Media:Rootfs-2.7.127.0.tar.bz2]], unpack, make, wait...&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;source /path/to/rootfs_2.7.127.0/rootfs-path.env&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Grab [[Media:Kernel-2.7.127.0.tar.bz2]], unpack, make menuconfig, make vmlinux.bin, wait...&amp;lt;br&amp;gt;&lt;br /&gt;
Use my nfsroot kernel .config file if you are not sure about the settings [[Media:27127config.gz| &amp;lt;&amp;lt;rename this file to .config, it is not compressed&amp;gt;&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
Recommended settings (Machine Selection screen)&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:Tango2_machine_sel.JPG]]&amp;lt;br&amp;gt;&lt;br /&gt;
If you are using a [[Setup_NFS-Root-Filesystem|nfsroot]] : Just create an empty directory, ie mkdir ../initramfs, then edit the kernel .config and set CONFIG_INITRAMFS_SOURCE to &amp;quot;../initramfs&amp;quot;, if you do not do this the kernel will use the initramfs as root and willl never mount the nfsroot&amp;lt;br&amp;gt;&lt;br /&gt;
You have to tell te kernel not to use the whole ram in dram0, i.e. via mem=32M, this is '''required''', otherwise it will crash !&lt;br /&gt;
The use [[MakeNK]] create a lx.bin compatible with the wince bootloader (uncheck romfs).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Get mrua-2.7.127.0-prod.tar.bz2 from &amp;quot;somewhere&amp;quot; &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;works only for wince based stbs !&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;export UCLINUX_KERNEL=/path/to/kernel_source_2.7.127.0/linux-2.6.15/&amp;lt;/pre&amp;gt;&lt;br /&gt;
copy /modules, bin/ and /lib to your rootfs, nfsroot, ..&lt;br /&gt;
&lt;br /&gt;
*apply [[Media:Dbgmonodram1.gz|&amp;lt;&amp;lt;this patch, not a gz file !&amp;gt;&amp;gt;]] via &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd mrua-2.7.127.0-prod &amp;amp;&amp;amp; patch -p1 &amp;lt; ../Dbgmonodram1.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;for more debug output and to be able to play videos from dram1 with mono (the command line option should be &amp;quot;-dram 1 -ve1&amp;quot; or something like that)&lt;/div&gt;</summary>
		<author><name>Dark Neo</name></author>	</entry>

	<entry>
		<id>http://www.t-hack.com/wiki/index.php?title=Toolchain_new</id>
		<title>Toolchain new</title>
		<link rel="alternate" type="text/html" href="http://www.t-hack.com/wiki/index.php?title=Toolchain_new"/>
				<updated>2009-07-30T14:49:19Z</updated>
		
		<summary type="html">&lt;p&gt;Dark Neo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*Grab [[Media:Smp86xx_toolchain_2.8.0.1.tar.gz]], unpack, then:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;make menuconfig &amp;amp;&amp;amp; make&amp;lt;/pre&amp;gt;&lt;br /&gt;
You'll get the Buildroot configuration page, don't change anything, just exit, then wait...&lt;br /&gt;
&lt;br /&gt;
If you get this error:&lt;br /&gt;
&amp;lt;pre&amp;gt;In function ‘open’,&lt;br /&gt;
    inlined from ‘collect_execute’ at /path/to/smp86xx_toolchain_2.8.0.1/toolchain_build_mipsel_nofpu/gcc-3.4.2/gcc/collect2.c:1535:&lt;br /&gt;
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Just go to that line in collect2.c and change it from:&lt;br /&gt;
&amp;lt;pre&amp;gt;redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);&amp;lt;/pre&amp;gt;&lt;br /&gt;
to:&lt;br /&gt;
&amp;lt;pre&amp;gt;redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, 0666);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then run make clean and start the make process again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once it's completed making the toolchain:&lt;br /&gt;
&amp;lt;pre&amp;gt;source /path/to/smp86xx_toolchain_2.8.0.1/toolchain-path.env&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Grab [[Media:Rootfs-2.7.127.0.tar.bz2]], unpack, make, wait...&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;source /path/to/rootfs_2.7.127.0/rootfs-path.env&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Grab [[Media:Kernel-2.7.127.0.tar.bz2]], unpack, make menuconfig, make vmlinux.bin, wait...&amp;lt;br&amp;gt;&lt;br /&gt;
Use my nfsroot kernel .config file if you are not sure about the settings [[Media:27127config.gz| &amp;lt;&amp;lt;rename this file to .config, it is not compressed&amp;gt;&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
Recommended settings (Machine Selection screen)&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:Tango2_machine_sel.JPG]]&amp;lt;br&amp;gt;&lt;br /&gt;
If you are using a [[Setup_NFS-Root-Filesystem|nfsroot]] : Just create an empty directory, ie mkdir ../initramfs, then edit the kernel .config and set CONFIG_INITRAMFS_SOURCE to &amp;quot;../initramfs&amp;quot;, if you do not do this the kernel will use the initramfs as root and willl never mount the nfsroot&amp;lt;br&amp;gt;&lt;br /&gt;
You have to tell te kernel not to use the whole ram in dram0, i.e. via mem=32M, this is '''required''', otherwise it will crash !&lt;br /&gt;
The use [[MakeNK]] create a lx.bin compatible with the wince bootloader (uncheck romfs).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Get mrua-2.7.127.0-prod.tar.bz2 from &amp;quot;somewhere&amp;quot; &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;works only for wince based stbs !&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;export UCLINUX_KERNEL=/path/to/kernel_source_2.7.127.0/linux-2.6.15/&amp;lt;/pre&amp;gt;&lt;br /&gt;
copy /modules, bin/ and /lib to your rootfs, nfsroot, ..&lt;br /&gt;
&lt;br /&gt;
*apply [[Media:Dbgmonodram1.gz|&amp;lt;&amp;lt;this patch, not a gz file !&amp;gt;&amp;gt;]] via &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd mrua-2.7.127.0-prod &amp;amp;&amp;amp; patch -p1 &amp;lt; ../Dbgmonodram1.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;for more debug output and to be able to play videos from dram1 with mono (the command line option should be &amp;quot;-dram 1 -ve1&amp;quot; or something like that)&lt;/div&gt;</summary>
		<author><name>Dark Neo</name></author>	</entry>

	<entry>
		<id>http://www.t-hack.com/wiki/index.php?title=NK.BIN_Patcher</id>
		<title>NK.BIN Patcher</title>
		<link rel="alternate" type="text/html" href="http://www.t-hack.com/wiki/index.php?title=NK.BIN_Patcher"/>
				<updated>2008-10-29T01:53:28Z</updated>
		
		<summary type="html">&lt;p&gt;Dark Neo: Added new version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NK Patcher is a C# GUI application that patches a NK.BIN file to allow unsigned applications to run outside of the windows folder (rom).&lt;br /&gt;
&lt;br /&gt;
'''[[Media:NKpatcher.rar|Download NK Patcher]]'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''New Version'''&lt;br /&gt;
&lt;br /&gt;
The following version is by Dark Neo, based on the original source code from isO-Mick, that adds support for disabling the Watchdog that monitors the TV2Client:&lt;br /&gt;
&lt;br /&gt;
'''[[Media:NKBINPatcher.rar|Download New Version]]'''&lt;/div&gt;</summary>
		<author><name>Dark Neo</name></author>	</entry>

	<entry>
		<id>http://www.t-hack.com/wiki/index.php?title=File:NKBINPatcher.rar</id>
		<title>File:NKBINPatcher.rar</title>
		<link rel="alternate" type="text/html" href="http://www.t-hack.com/wiki/index.php?title=File:NKBINPatcher.rar"/>
				<updated>2008-10-29T01:50:06Z</updated>
		
		<summary type="html">&lt;p&gt;Dark Neo: Updated NKBIN Patcher, also disables the TV2Client Watchdog&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Updated NKBIN Patcher, also disables the TV2Client Watchdog&lt;/div&gt;</summary>
		<author><name>Dark Neo</name></author>	</entry>

	</feed>