<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tinyhack.com &#187; agestar</title>
	<atom:link href="http://tinyhack.com/category/agestar/feed/" rel="self" type="application/rss+xml" />
	<link>http://tinyhack.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sat, 05 Nov 2011 10:09:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CNS11XX FreeBSD port completed</title>
		<link>http://tinyhack.com/2009/12/11/cns11xx-freebsd-port-completed/</link>
		<comments>http://tinyhack.com/2009/12/11/cns11xx-freebsd-port-completed/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 08:33:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[agestar]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[opensource]]></category>

		<guid isPermaLink="false">http://tinyhack.com/?p=149</guid>
		<description><![CDATA[It has been a long time since I started this project, and even though I am making a good progress at the beginning, my progress was getting slower lately. Today I decided to take a day off from work to &#8230; <a href="http://tinyhack.com/2009/12/11/cns11xx-freebsd-port-completed/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It has been a long time since I started this project, and even though I am making a good progress at the beginning, my progress was getting slower lately. Today I decided to take a day off from work to finish some remaining task: network driver, automatic memory detection, and flash device support.</p>
<p>Pyun YongHyeon have helped me a lot with the network driver. The speed is still not good, but he have helped to make the network driver to more correct (better, more reliable). I will still need to ask him to check for the final version, but I believe I have fixed most errors he pointed out.</p>
<p>My agestar, which also uses CNS11XX devices comes with 32Mb memory, while the Emprex NSD-100 have 64mb of memory. I have added a code to autodetect the memory size. So one binary file should work on both devices.</p>
<p>The flash device in Emprex NSD-100 complies with CFI, and it was very easy to use with the existing CFI driver. I just need to write several lines of code. The next step is to boot freebsd directly from the flash (with the root filesystem on USB). Unlike in Linux, the flash device can not be accessed as partitions (not yet).</p>
<p>First, we need to write the kernel.bin to cfi0, because the first 132 kb is used by boot loader, we need to skip to somewhere > 132kb. To make it easy, i just skip 1 megabyte from beginning of flash.</p>
<p>dd if=kernel.bin seek=1 bs=1m of=/dev/cfi0</p>
<p>be very very very careful with the dd command. Without correct seek and bs, you may overwrite the bootloader. The command  will take quite a long time to finish (3 minutes).</p>
<p>Next step is to set the initial boot command. In the boot loader, setup bootcmd to copy the data in ram to 0&#215;1000000 from 0&#215;10100000, then boot the device:</p>
<p>setenv bootcmd cp.l 0&#215;10100000 0&#215;1000000 0x1a0000\;go 0&#215;1000000<br />
saveenv</p>
<p>Now when we boot the device, we should go directly to freebsd.</p>
<p>I won&#8217;t provide binaries, but the latest source code is in:</p>
<p><a href="http://p4db.freebsd.org/depotTreeBrowser.cgi?FSPC=//depot/projects/str91xx/src/sys/arm/econa&#038;HIDEDEL=NO">http://p4db.freebsd.org/depotTreeBrowser.cgi?FSPC=//depot/projects/str91xx/src/sys/arm/econa&#038;HIDEDEL=NO</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tinyhack.com/2009/12/11/cns11xx-freebsd-port-completed/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>CNX11XX/STR91XX FreeBSD Progress</title>
		<link>http://tinyhack.com/2009/09/28/cnx11xxstr91xx-freebsd-progress/</link>
		<comments>http://tinyhack.com/2009/09/28/cnx11xxstr91xx-freebsd-progress/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 15:56:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[agestar]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[opensource]]></category>

		<guid isPermaLink="false">http://tinyhack.com/?p=145</guid>
		<description><![CDATA[Last weekend I continued my work on FreeBSD port. I am concentrating on the network speed improvement, and I made a good progress with it. The network speed is now about 2.1 Mbps (FTP upload from device), this is still &#8230; <a href="http://tinyhack.com/2009/09/28/cnx11xxstr91xx-freebsd-progress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Last weekend I continued my work on FreeBSD port. I am concentrating on the network speed improvement, and I made a good progress with it. The network speed is now about 2.1 Mbps (FTP upload from device), this is still slower than the Linux version but i think it already reach a usable state (I think I should be able to stream some DivX files through HTTP from it). I will ask around in the freebsd-arm/freebsd-net mailing list so I can do more improvement on the driver.</p>
<p>I am still a bit worried playing around with the Flash, since I don&#8217;t have anything to restore it back in case I made a mistake. So I think I will leave this part for a while.</p>
<p>For everyone who have NSD-100 with Serial Port attached to it, you can try a precompiled binary thah I have prepared, or you can compile from source.  To use the binary version, you will need a USB disk (at least 2GB in size), and a TFTP server. Actually you only need about 256 megabyte if you prepare your own disk instead of using my image.</p>
<p>Here are the steps for the binary version:</p>
<ol>
<li>Download the disk image from <a href="http://tinyhack.com/files/disk-2gb-freebsd-armv4-26-september-2009.img.bz2">here</a></li>
<li>Decompress (bunzip) the disk image, use dd to write to your USB disk</li>
<li>Since there is no boot menu, entering single or multi user mode is done by booting different kernel. Download the <a href="http://tinyhack.com/files/kernel-cns11xx-multi-freebsd-28-sept-2009.bin">multi user kernel</a> or <a href="http://tinyhack.com/files/kernel-cns11xx-single-freebsd-28-sept-2009.bin">single user kernel</a> and put it in your tftpserver</li>
<li>Boot the kernel </li>
</ol>
<p>To boot the kernel, you need to access your device using serial port. I think You need to hold the reset button to enter the boot prompt (mine always goes to the boot prompt because Bruce did something with the configuration area). You should see
<pre>STR9100></pre>
<p> prompt.</p>
<pre>
setenv serverip 192.168.1.1
(you can also 'saveenv' to save the TFTP server address permanently)
tftpboot 0x1000000 name-of-kernel.bin
go 0x1000000
</pre>
<p>To build your own disk image, make an empty disk.img with the size that you want. Goto /usr/src and then (modified from instruction to make i386 image <a href="http://bsdimp.blogspot.com/2007/10/building-bootable-freebsdi386-images.html">by Warner Losh</a>)</p>
<pre>
export TARGET_ARCH=arm
make buildworld
mdconfig -a -t vnode -f disk.img
fdisk -I md0
fdisk -B md0
bsdlabel -w md0s1 auto
bsdlabel -B md0s1
newfs /dev/md0s1a
mount /dev/md0s1a /mnt/
make installworld DESTDIR=/mnt
make distrib-dirs DESTDIR=/mnt
make distribution DESTDIR=/mnt
echo /dev/da0s1a / ufs rw 1 1 > /mnt/etc/fstab
echo ifconfig_DEFAULT=DHCP > /mnt/etc/rc.conf
echo hostname=demo >> /mnt/etc/rc.conf
</pre>
<p>To compare your boot experience <a href="http://tinyhack.com/files/freebsd-cns11xx-log-multi-28-sept-2009.txt">here is is the bootlog for the multi user mode</a>, and <a href="http://tinyhack.com/files/freebsd-cns11xx-log-single-28-sept-2009.txt">the single user mode</a>.</p>
<p>For the latest kernel source, you can see the perforce depot at:</p>
<p><a href="http://p4db.freebsd.org/depotTreeBrowser.cgi?FSPC=//depot/projects/str91xx&#038;HIDEDEL=NO">http://p4db.freebsd.org/depotTreeBrowser.cgi?FSPC=//depot/projects/str91xx&#038;HIDEDEL=NO</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tinyhack.com/2009/09/28/cnx11xxstr91xx-freebsd-progress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Agestar/CNS11XX Freebsd progress</title>
		<link>http://tinyhack.com/2009/05/24/agestarcns11xx-freebsd-progress/</link>
		<comments>http://tinyhack.com/2009/05/24/agestarcns11xx-freebsd-progress/#comments</comments>
		<pubDate>Sun, 24 May 2009 13:55:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[agestar]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[opensource]]></category>

		<guid isPermaLink="false">http://tinyhack.com/?p=126</guid>
		<description><![CDATA[I&#8217;m still working on the Freebsd port, and haven&#8217;t tried to fix the network driver problem in Linux (it only happens on samba 3 which I don&#8217;t use daily). The reason to focus my work on the FreeBSD port is &#8230; <a href="http://tinyhack.com/2009/05/24/agestarcns11xx-freebsd-progress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m still working on the Freebsd port, and haven&#8217;t tried to fix the network driver problem in Linux (it only happens on samba 3 which I don&#8217;t use daily). The reason to focus my work on the FreeBSD port is because I want to understand more about the network driver. The current Linux network driver was not written from scratch but from modifying existing source. The source was full of things that I don&#8217;t understand, which proves to be unnecessary after I gain understanding when writing the Freebsd network driver.</p>
<p>Here is the current FreeBSD port status:</p>
<ol>
<li>Timer is now working, previously the timer tick works, but the time counter was too fast.</li>
<li>EHCI and OHCI is working, but there is still some caching problem, so i need to modify usb_busdma.c, this modification is not clean. I can access USB disks, and USB network adapter.</li>
<li>Network driver works, but it is still very slow . I am still trying to understand better the DMA handling in FreeBSD. There is still one bug: you can not stop the interface and start it again. The stopping part works, ifconfig ece0 down, but the starting again part doesn&#8217;t. </li>
<li>Multi user works. I can also activate network services, such as sshd.</li>
</ol>
<p>I am still waiting for my perforce account. But anyone willing to test it can contact me. I still don&#8217;t know the best method to release a patch against CURRENT for people to try, because changes happens very quickly.</p>
<p>Here is the latest boot log: <a href="http://tinyhack.com/files/bsd-24-may-2009.txt">bsd-24-may-2009.txt</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tinyhack.com/2009/05/24/agestarcns11xx-freebsd-progress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>STR9104/CNS1104 FreeBSD Port Progress</title>
		<link>http://tinyhack.com/2009/05/10/str9104-cns1104-freebsd-arm/</link>
		<comments>http://tinyhack.com/2009/05/10/str9104-cns1104-freebsd-arm/#comments</comments>
		<pubDate>Sat, 09 May 2009 18:51:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[agestar]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[hacks]]></category>

		<guid isPermaLink="false">http://tinyhack.com/?p=124</guid>
		<description><![CDATA[Returning from Indonesia, I continued my Freebsd porting attempt to the Emprex NSD-100. So far it&#8217;s going quite well. I took the FA526 CPU support from NetBSD, I use the 8250 driver for the UART, and default EHCI driver. I &#8230; <a href="http://tinyhack.com/2009/05/10/str9104-cns1104-freebsd-arm/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Returning from Indonesia, I continued my Freebsd porting attempt to the Emprex NSD-100. So far it&#8217;s going quite well. I took the FA526 CPU support from NetBSD, I use the 8250 driver for the UART, and default EHCI driver. I got stuck for a while on the EHCI part until Hans Petter Selasky pointed me that there might a problem in the busdma/cache handling. With the EHCI part fixed, I can get to the userland, booting from USB stick.</p>
<p>The remaining drivers that needs to be written are the OHCI and network. The OHCI shouldn&#8217;t take too much time, but I think the network will take quite a long time.</p>
<p>I was planning to clean up, and release the code today, but I was busy with something else, so may be I will release the code in the next few days. For those of you who are curious about the boot log, here it is:<br />
<span id="more-124"></span></p>
<pre>
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2009 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.0-CURRENT #169: Sun May 10 01:25:55 WIT 2009
    yohanes@cameron:/usr/home/yohanes/freebsd/freebsd/src/sys/arm/compile/CNS11XXNAS
WARNING: DIAGNOSTIC option enabled, expect reduced performance.
Preloaded elf kernel "elf kernel" at 0xc12d30b8.
unknown CPU (ID = 0x66015261)
  WB enabled LABT
  16KB/16B 2-way Instruction cache
  16KB/16B 2-way write-back-locking-B Data cache
real memory  = 67108864 (64 MB)
Physical memory chunk(s):
00000000 - 0xffffff, 16777216 bytes (4096 pages)
0x1337000 - 0x3eaefff, 45580288 bytes (11128 pages)
avail memory = 61718528 (58 MB)
ULE: setup cpu 0
nfslock: pseudo-device
null: &lt;null device, zero device&gt;
random: &lt;entropy source, Software, Yarrow&gt;
mem: &lt;memory&gt;
econaarm0: &lt;ECONA device bus&gt; on motherboard
econa add children
econa add child econa_ic addr 7d000000
econa add child uart addr 78000000
econa add child timer addr 79000000
econa add child ehci addr f8000000
econa_alloc_resource start 00000000 end ffffffff, count = 00000008
econa_alloc_resource start 00000000 end ffffffff, count = 00000008
econa_alloc_resource start 78000000 end 78ffffff, count = 01000000
sys_res_memory
Alloc OK
econa_alloc_resource start 00000000 end ffffffff, count = 00000008
econa_alloc_resource start 00000000 end ffffffff, count = 00000008
econa_alloc_resource start 78000000 end 78ffffff, count = 01000000
sys_res_memory
Alloc OK
uart0: &lt;Non-standard ns8250 class UART with FIFOs&gt; mem 0x78000000-0x78ffffff irq 10 on econaarm0
econa_alloc_resource start 00000000 end ffffffff, count = 00000008
econa_alloc_resource start 78000000 end 78ffffff, count = 01000000
sys_res_memory
Alloc OK
econa_alloc_resource start 00000000 end ffffffff, count = 00000001
econa_alloc_resource start 0000000a end 0000000a, count = 00000001
sys_res_irq
Alloc OK
uart0: [FILTER]
uart0: fast interrupt
uart0: console (38461,n,8,1)
timer0: &lt;Econa CPU Timer&gt; mem 0x79000000-0x79ffffff irq 0,1 on econaarm0
econa_alloc_resource start 00000000 end ffffffff, count = 00000001
econa_alloc_resource start 79000000 end 79ffffff, count = 01000000
sys_res_memory
Alloc OK
econa_alloc_resource start 00000000 end ffffffff, count = 00000001
econa_alloc_resource start 00000000 end 00000000, count = 00000001
sys_res_irq
Alloc OK
STR9100 CPU Clock: 200 MHz
HZ = 100
reload value = 500000
IRQ Timer1 at int #0x0 clock 100000000(Hz)
timer0: [FILTER]
DONE timer
done00000000
ehci probe
ehci probe
ehci0: &lt;CNS11XX USB EHCI&gt; mem 0xf8000000-0xffffffff irq 24 on econaarm0
econa_alloc_resource start 00000000 end ffffffff, count = 00000001
econa_alloc_resource start f8000000 end ffffffff, count = 08000000
sys_res_memory
Alloc OK
econa_alloc_resource start 00000000 end ffffffff, count = 00000001
econa_alloc_resource start 00000018 end 00000018, count = 00000001
sys_res_irq
Alloc OK
add USB device
setup intr
ehci0: [MPSAFE]
ehci0: [ITHREAD]
init ehci
usbus0: EHCI version 1.0
probe and attach
usbus0: &lt;CNS11XX USB EHCI&gt; on ehci0
done
initcloks
enabling timer
Timecounter "CPU Timer" frequency 50000000 Hz quality 1000
Timecounters tick every 10.000 msec
usbus0: 480Mbps High Speed USB v2.0
WARNING: DIAGNOSTIC option enabled, expect reduced performance.
ugen0.1: &lt;Cavium&gt; at usbus0
uhub0: &lt;Cavium EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1&gt; on usbus0
uhub0: 2 ports with 2 removable, self powered
ugen0.2: &lt;Kingston&gt; at usbus0
umass0: &lt;Kingston DataTraveler 2.0, class 0/0, rev 2.00/1.00, addr 2&gt; on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x0000
register sim 0
scanning the sim
umass0:0:0:-1: Attached to scbus0
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI Status: Check Condition
(probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
(probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
(probe0:umass-sim0:0:0:0): (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
(probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
Retrying Command (per Sense Data)
(probe0:umass-sim0:0:0:0): Retrying Command
pass0 at umass-sim0 bus 0 target 0 lun 0
pass0: &lt;Kingston DataTraveler 2.0 1.00&gt; Removable Direct Access SCSI-2 device
pass0: 40.000MB/s transfers
da0 at umass-sim0 bus 0 target 0 lun 0
da0: &lt;Kingston DataTraveler 2.0 1.00&gt; Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 1906MB (3903578 512 byte sectors: 255H 63S/T 242C)
GEOM: new disk da0
GEOM_LABEL: Label for provider da0s1a is ufsid/4a01b053676144f3.
GEOM_LABEL: Label for provider da0s1a is ufs/FreeBSDonUSB.
root_mount_prepare 100

Manual root filesystem specification:
  &lt;fstype&gt;:&lt;device&gt;  Mount &lt;device&gt; using filesystem &lt;fstype&gt;
                       eg. ufs:/dev/da0a
  ?                  List valid disk boot devices
  &lt;empty line&gt;       Abort manual input

mountroot&gt; ufs:da0s1a
Trying to mount root from ufs:da0s1a
warning: no time-of-day clock registered, system time will not be set accurately
start_init: trying /sbin/init
Enter full pathname of shell or RETURN for /bin/sh:
# ls /
.snap		dev		media		root		usr
COPYRIGHT	etc		mnt		sbin		var
bin		lib		proc		sys
boot		libexec		rescue		tmp
</pre>
]]></content:encoded>
			<wfw:commentRss>http://tinyhack.com/2009/05/10/str9104-cns1104-freebsd-arm/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Too many things to do</title>
		<link>http://tinyhack.com/2009/04/05/too-many-things-to-do/</link>
		<comments>http://tinyhack.com/2009/04/05/too-many-things-to-do/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 15:17:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[agestar]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://tinyhack.com/?p=122</guid>
		<description><![CDATA[There are so many things to do lately, but so little time. Plus i have so many dental problems lately, three of my molar teeth has been pulled out in the last 2 months, and going to have the fourth &#8230; <a href="http://tinyhack.com/2009/04/05/too-many-things-to-do/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There are so many things to do lately, but so little time. Plus i have so many dental problems lately, three of my molar teeth has been pulled out in the last 2 months, and going to have the fourth taken next month. Going to dentist and waiting for the recovery always takes away my free time.</p>
<p>My wife just bought Nokia 5800, a Nokia series 60 5th edition phone. It means that i need to finish my SymbianBible port for 5th edition (mostly done, beta version is on symbianbible google groups). My wife also asked me to port MultiCounter to her new phone (done, not yet uploaded).</p>
<p>I have cleaned up the 2.6.29 port of STR9104 Soc, but i will need to clean up again, because of the new documentation from www.cnusers.org. I have also started the freebsd port, but the progress is not much yet.<br />
<span id="more-122"></span><br />
When the NSD Emprex 100 arrived, i realized that I need more network ports. I only have 4 ports on my WRT54GL and all of them have been used. After looking at hubs and routes prices around chiang mai, they are in 500-1000 baht range, that is not cheap so I decided that I should just buy something a little bit more  expensive that I can hack. I saw DLink DIR-300 sold at relatively cheap price 1490 baht (43 usd, cheap for Chiang Mai price), this is 700 baht (20 usd) cheaper compared to WRT54GL, with almost same hardware spec (4 Mb ROM, 16 Mb RAM). I spent some time installing openwrt on this router, because I was so confused with the factory built interface.</p>
<p>I am planning to go to Indonesia for 10 days, so during that time, I don&#8217;t think I will be able to do much hacking, but I want to still continue studying freebsd. So I decided to install FreeBSD on our EEE PC 901. This was not difficult, but it took quite some time to setup everything.</p>
<p>Here are some of the things that i&#8217;ve done on the EEE PC: setup FreeBSD ARM cross compile, setup Linux ARM cross compilation, setup LXR for FreeBSD current sources. Unfortunately WIFI is still not supported on EEE 901, and all (I only have 2) of my USB bluetooth doesnt work.</p>
<p>Note: I haven&#8217;t made tha 64 Mb Linux Kernel Image. I was affraid that someone made a mistake flashing it to 32 Mb device, which will made it unusable. Of course serial port can still save it, but not every one can make a serial port. With the new documentation I found, I will be able to make kernel image that can autodetect the memory size.</p>
]]></content:encoded>
			<wfw:commentRss>http://tinyhack.com/2009/04/05/too-many-things-to-do/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>STAR9104: Linux Kernel 2.6.29 and Starting FreeBSD port</title>
		<link>http://tinyhack.com/2009/03/29/star9104-linux-kernel-2629-and-starting-freebsd-port/</link>
		<comments>http://tinyhack.com/2009/03/29/star9104-linux-kernel-2629-and-starting-freebsd-port/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 05:37:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[agestar]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://tinyhack.com/?p=117</guid>
		<description><![CDATA[I&#8217;ve finally updated my patch to 2.6.29, the patch can be downloaded from: http://tinyhack.com/agestar/patch-2.6.29-star.gz and the config file: http://tinyhack.com/agestar/config-2.6.29-star or if you want the image that i already compiled and test (image is compiled with 32 MB memory). This is &#8230; <a href="http://tinyhack.com/2009/03/29/star9104-linux-kernel-2629-and-starting-freebsd-port/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally updated my patch to 2.6.29, the patch can be downloaded from:<br />
<a href="http://tinyhack.com/agestar/patch-2.6.29-star.gz" target="_blank">http://tinyhack.com/agestar/patch-2.6.29-star.gz</a></p>
<p>and the config file:</p>
<p><a href="http://tinyhack.com/agestar/config-2.6.29-star" target="_blank">http://tinyhack.com/agestar/config-2.6.29-star</a></p>
<p>or if you want the image that i already compiled and test (image is compiled with 32 MB memory). This is NOT a FIRMWARE</p>
<p><a href="http://tinyhack.com/agestar/zImage-2.6.29" target="_blank">http://tinyhack.com/agestar/zImage-2.6.29</a></p>
<p>when i have the time, i will work on creating a new firmware image.</p>
<p>Some changes:</p>
<ul>
<li>The machine ID is now registered in <a href="http://www.arm.linux.org.uk/developer/machines/">http://www.arm.linux.org.uk/developer/machines/</a></li>
<li>The network problem instability has now been fixed</li>
<li>Added new configuration option to select memory size based on your board memory (16, 32, or 64 mb). Note: selecting values larger than the supported size will cause crash.</li>
</ul>
<p>The other news is that Bruce M Simpson has donated me an Emprex NSD 100 for porting FreeBSD to it. I have started my work, but the progress will be slower from the Linux at the beginning, because:</p>
<ol>
<li>I am more familiar with Linux kernel compared to FreeBSD kernel</li>
<li>Currently FreeBSD kernel itself doesn&#8217;t support many ARM devices yet, so to find an exmple of something I need to look at NetBSD, (and it helps, for example the Faraday 526 processor support is already in NetBSD).</li>
<li>I am rather busy this and coming month (planning to go to Indonesia for about 10 days)</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tinyhack.com/2009/03/29/star9104-linux-kernel-2629-and-starting-freebsd-port/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Update &#8211; Debian on Agestar Firmware</title>
		<link>http://tinyhack.com/2008/09/20/update-debian-on-agestar-firmware/</link>
		<comments>http://tinyhack.com/2008/09/20/update-debian-on-agestar-firmware/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 16:49:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[agestar]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://tinyhack.com/?p=63</guid>
		<description><![CDATA[Warning/Note: This is not an update to the existing firmware. This is for installing Debian. If you don&#8217;t know anything about Linux, this is not for you. This firmware DOES NOT contain web interface. I haven&#8217;t looked again on Debian &#8230; <a href="http://tinyhack.com/2008/09/20/update-debian-on-agestar-firmware/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><b>Warning/Note</b>: This is not an update to the existing firmware. This is for installing Debian. If you don&#8217;t know anything about Linux, this is not for you. This firmware DOES NOT contain web interface.</p>
<p>I haven&#8217;t looked again on Debian installer for Agestar, but I have built a new firmware for Debian on Agestar using the latest kernel patch (faster network). If you have installed Debian using the instruction in <a href="http://www.tinyhack.com/agestar/debian-noserialneeded.html">here</a>, you can download <a href="http://tinyhack.com/agestar/zImage-20092008">zImage-20092008</a> to Agestar, and then do:</p>
<p><code>dd if=zImage-20092008 of=/dev/mtdblock1</code></p>
<p>If you haven&#8217;t installed Debian, then when following <a href="http://www.tinyhack.com/agestar/debian-noserialneeded.html">the instruction</a>, but instead of using star.bin use <a href="http://tinyhack.com/agestar/star-20092008.bin">star-20092008.bin</a>. To make it clear, use <b>zImage-20092008</b> to update <b>existing</b> installation, and <b>star-20092008.bin</b> for <b>new installation (starting from the original Agestar firmware)</b>. If you made a mistake, then you need a serial port to unbrick your Agestar. <b>NOTE:</b> the web update method only works on agestar, other models can work by using serial port and latest patch for kernel source (2.6.29 or later).</p>
<p>If you are interested to make your own firmware, this is what you should do:</p>
<ol>
<li>Download <a href="http://tinyhack.com/agestar/armboot.bin">armboot.bin</a> and put it to a directory</li>
<li>Download <a href="http://tinyhack.com/agestar/mergefile.c">mergefile.c</a> to the same directory as armboot.bin</li>
<li>Compile mergefile.c (just do <code>cc mergefile.c -o mergefile</code>) </li>
<li>Compile your kernel according  to the instruction at <a href="http://tinyhack.com/2008/09/08/how-to-compile-kernel-for-agestar/">http://tinyhack.com/2008/09/08/how-to-compile-kernel-for-agestar/</a> to create zImage, copy/move it to the same directory as armboot.bin</li>
<li>Type <code>./mergefile</code> to merge <b>armboot.bin</b> and <b>zImage</b> to <b>star.bin</b>.
</ol>
<p>You can use star.bin to flash (replace) original firmware. If you already installed Debian, and you want to update your kernel, you only need to build zImage and do <code>dd if=newzImage of=/dev/mtdblock1</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tinyhack.com/2008/09/20/update-debian-on-agestar-firmware/feed/</wfw:commentRss>
		<slash:comments>117</slash:comments>
		</item>
		<item>
		<title>How to compile kernel for Agestar</title>
		<link>http://tinyhack.com/2008/09/08/how-to-compile-kernel-for-agestar/</link>
		<comments>http://tinyhack.com/2008/09/08/how-to-compile-kernel-for-agestar/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 01:01:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[agestar]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://tinyhack.com/?p=58</guid>
		<description><![CDATA[Here is a guide how to compile a kernel for your Agestar. In this latest patch from me, I have included the network driver with scatter/gather support. For FTP transfer, HTTP, or other transfers that uses sendfile syscall, the speed &#8230; <a href="http://tinyhack.com/2008/09/08/how-to-compile-kernel-for-agestar/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is a guide how to compile a kernel for your Agestar. In this latest patch from me, I have included the network driver with scatter/gather support. For FTP transfer, HTTP, or other transfers that uses sendfile syscall, the speed is about 50% faster than before, for ordinary transfer, it almost doesn&#8217;t change.</p>
<ol>
<li>Download vanilla kernel from kernel.org (use version <a href="http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.25.4.tar.bz2">linux-2.6.25.4</a>)</li>
<li>Extract kernel , and apply this patch file (<a href="http://tinyhack.com/agestar/patchfile-20080907.gz">patchfile-20080907.gz</a>)</li>
<li>Download <a href="http://tinyhack.com/agestar/initramfs.cpio.gz">initramfs.cpio.gz</a> put it in the kernel directory and extract it</li>
<li>Download my configuration file <a href="http://tinyhack.com/agestar/config-20080907">config-20080907</a> put it into kernel directory, rename it as .config</li>
<li>Install an arm compiler, your distribution may have them (for instance in Debian you can use aptitude with emdebian.org repository), or download from <a href="http://codesourcery.com">codesourcery.com</a>.</li>
<li>Edit Makefile, find CROSS_COMPILE and change the value to the location and prefix of your compiler. For example, of your compiler is /opt/arm/920t_le/bin/arm_920t_le-gcc, fill in /opt/arm/920t_le/bin/arm_920t_le- (without the gcc part)</li>
<li>To configure the kernel, type &#8220;make menuconfig&#8221;</li>
<li>Type make to build zImage</li>
</ol>
<p>NOTE: the zImage is NOT a FIRMWARE. You can write zImage to /dev/mtdblock1 on the agestar to update your kernel but not through the web interface. I will write another tutorial on how to make zImage into a firmware that can be flashed using the web interface.</p>
<p>If you want a newer kernel, start from the current kernel, and keep on patching with the next incremental patch until you reach the kernel number that you want. This is not always easy, because sometimes a patch will conflict with the changes that i have made.</p>
]]></content:encoded>
			<wfw:commentRss>http://tinyhack.com/2008/09/08/how-to-compile-kernel-for-agestar/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Tips For Debian on Agestar</title>
		<link>http://tinyhack.com/2008/08/25/tips-for-agestar-ncb3ast/</link>
		<comments>http://tinyhack.com/2008/08/25/tips-for-agestar-ncb3ast/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 16:09:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[agestar]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://tinyhack.com/2008/08/25/tips-for-agestar-ncb3ast/</guid>
		<description><![CDATA[Chris (Whites11) and several others have pointed that the source code for a device similar to Agestar have been released by a German company (http://www.multicase.de/en/products/76/ns348s.html). I have not looked carefully at the source code of this one, but none of &#8230; <a href="http://tinyhack.com/2008/08/25/tips-for-agestar-ncb3ast/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Chris (Whites11) and several others have pointed that the source code for a device similar to Agestar have been released by a German company (<a title="http://www.multicase.de/en/products/76/ns348s.html" href="http://www.multicase.de/en/products/76/ns348s.html">http://www.multicase.de/en/products/76/ns348s.html</a>). I have not looked carefully at the source code of this one, but none of the people on the mailing list have got it working with networking enabled.</p>
<p>Kari Ahtiala who owned several NAS devices (SLUG, NCB3AST, NCH3AHT), said that you can just move your disk from NSLU (SLUG) to Agestar just fine:</p>
<p><span id="more-57"></span></p>
<blockquote><p>after upgrading the firmware, boot the Agestar without the disk, ssh to it, plug in the disk, mount it and chroot to it, and then mount -t proc /proc proc, and everything works as if the Agestar had been booted off the hard drive. </p>
<p>This is fine if you want to just borrow the disk for testing or cloning purposes. To convert it to be used on the Agestar exclusively, I copied /etc to /etc-slug (so I can revert by &quot;mv etc etc-agestar&quot; and &quot;mv&#160; etc-slug etc&quot; and enited fstab, network/interfaces and modules and issued the command &quot;e2label /dev/sdb1 /&quot; as you instructed.</p>
</blockquote>
<p>And here are some tips from him:</p>
<blockquote><p>I pretty much cloned my SLUG so the Agestar is now a NFS and Samba server, Web server and X server. The Xfce4 applications are usable on the Agestar &#8211; Mousepad is an OK editor and Thunar is OK for a file manager (these have a habit of Segfaulting, though, but at least X works: xterm, kpat, xpat2 and spider!). Using &quot;ssh -CY&quot; instead of &quot;ssh -X&quot; doesn&#8217;t seem to make much difference.</p>
<p>Usbmount is very useful: plug in a USB drive and it is accessible on your local network if you share /media via samba. Just edit /etc/usbmount/usbmount.conf: the default filesystems are ext2 and ext3 but you can add vfat and ntfs but you need to add some options:     <br />FS_MOUNTOPTIONS=&quot;-fstype=ntfs,rw,errors=remount-ro,dmask=0000,fmask=0000 -fstype=vfat,dmask=0000,fmask=0000&quot; </p>
<p>To get read-write on an NTFS drive, you need to cheat a bit: first install ntfs-3g and then     <br />ln -s /usr/bin/ntfs-3g /sbin/mount.ntfs (this is because ntfs-3g is a program and the old ntfs is a module).</p>
</blockquote>
<p>A tip from me is that if you have a problem with your Agestar, just search google for your problem, and add &quot;NSLU&quot; &quot;debian&quot; (or NSLU2 debian). The solution for debian NSLU2 should apply to Agestar with Debian.</p>
]]></content:encoded>
			<wfw:commentRss>http://tinyhack.com/2008/08/25/tips-for-agestar-ncb3ast/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Installing Debian on Agestar without serial port</title>
		<link>http://tinyhack.com/2008/07/30/installing-debian-on-agestar-without-serial-port/</link>
		<comments>http://tinyhack.com/2008/07/30/installing-debian-on-agestar-without-serial-port/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 00:30:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[agestar]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://tinyhack.com/2008/07/30/installing-debian-on-agestar-without-serial-port/</guid>
		<description><![CDATA[I have prepared a firmware and tutorial to Install Debian here, this time without the need for serial port. I have tested this, and it seems that everything works. But of course I will not be responsible if anything happens. &#8230; <a href="http://tinyhack.com/2008/07/30/installing-debian-on-agestar-without-serial-port/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have prepared a firmware and tutorial to Install Debian <a href="http://www.tinyhack.com/agestar/debian-noserialneeded.html">here</a>, this time without the need for serial port. I have tested this, and it seems that everything works. But of course I will not be responsible if anything happens. If you think there are some missing, unclear or inaccurate steps, or if you doubt about something, then don&#8217;t install it. If you have anything to ask just email to yohanes [at] gmail.com, or just post your questions as comments.</p>
<p><b>NOTE:</b> the web update method only works on agestar ncb3ast, other models can work by using serial port and latest patch for kernel source (2.6.29 or later).</p>
]]></content:encoded>
			<wfw:commentRss>http://tinyhack.com/2008/07/30/installing-debian-on-agestar-without-serial-port/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>

