From james@XXXXXX.net Tue May 3 16:50:06 2005 +0100 Date: Tue, 3 May 2005 16:50:06 +0100 (BST) From: James Mulcahy To: cjep@NetBSD.org Subject: T1500 Kernel Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO X-IMAPbase: 1116159199 7 X-UID: 1 Content-Length: 482 X-Keywords: Chris, I write with regard to an e-mail of yours I spotted on the regional-london NetBSD list[1]. I notice you mentioned you can boot a NetBSD kernel on the device by appending a checksum 'discovered by Aymmeric and Gavan'. Could you provide some more details on this please? I'd like to get a different linux kernel running on the device but need the checksums in order to achieve this. Cheers, --James 1. http://mail-index.netbsd.org/regional-london/2004/10/12/0000.html From james@XXXXXX.net Mon May 9 09:44:11 2005 +0100 Date: Mon, 9 May 2005 09:44:11 +0100 (BST) From: James Mulcahy To: Gavan@netbsd.org Subject: Re: T1500 Kernel In-Reply-To: <20050509081423.GA93233@fawlty.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: O X-UID: 2 Content-Length: 1025 X-Keywords: On Mon, 9 May 2005, Chris Pinnock wrote: > On Tue, May 03, 2005 at 04:50:06PM +0100, James Mulcahy wrote: > > > > Chris, > > > > I write with regard to an e-mail of yours I spotted on the regional-london > > NetBSD list[1]. > > > > I notice you mentioned you can boot a NetBSD kernel on the device by > > appending a checksum 'discovered by Aymmeric and Gavan'. Could you > > provide some more details on this please? I'd like to get a different > > linux kernel running on the device but need the checksums in order to > > achieve this. > > Hi James, > > This code is on a box switched off under my desk at home unfortunately. > > Gavan@netbsd.org discovered the checksum - it is a couple of bytes on the > end of the ELF file. Give him a try. Drop me another mail if you don't > get anywhere and I will try to dig the code out that computes the > checksum. > > Regards, > Chris Gavan, Would you be able to give me a few pointers on computing the checksum for the kernel? I'd really appreciate it! Cheers, --James From cjep@fawlty.net Mon May 09 09:08:00 2005 X-Mail-Format-Warning: Bad RFC2822 header formatting in >From james Mon May 9 09:08:00 2005 Return-path: Envelope-to: james@XXXXXX.net Delivery-date: Mon, 09 May 2005 09:08:00 +0100 Received: from [216.17.101.169] (helo=fawlty.net) by pogo.XXXXXX.net with esmtp (Exim 3.36 #1 (Debian)) id 1DV3J2-0004xK-00 for ; Mon, 09 May 2005 09:08:00 +0100 Received: from fawlty.net (fawlty.net [216.17.101.169]) by fawlty.net (8.13.3/8.13.3/Fawlty Networks v1.2) with ESMTP id j498ENQZ094841 for ; Mon, 9 May 2005 08:14:23 GMT (envelope-from cjep@fawlty.net) Received: (from cjep@localhost) by fawlty.net (8.13.3/8.13.3/Submit) id j498ENXt094840 for james@XXXXXX.net; Mon, 9 May 2005 08:14:23 GMT (envelope-from cjep) Date: Mon, 9 May 2005 08:14:23 +0000 From: Chris Pinnock To: James Mulcahy Subject: Re: T1500 Kernel Message-ID: <20050509081423.GA93233@fawlty.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD/i386 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pogo.XXXXXX.net X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=4.0 tests=BAYES_00 autolearn=ham version=2.63 Content-Length: 800 Status: RO X-Status: AF X-UID: 3 X-Keywords: On Tue, May 03, 2005 at 04:50:06PM +0100, James Mulcahy wrote: > > Chris, > > I write with regard to an e-mail of yours I spotted on the regional-london > NetBSD list[1]. > > I notice you mentioned you can boot a NetBSD kernel on the device by > appending a checksum 'discovered by Aymmeric and Gavan'. Could you > provide some more details on this please? I'd like to get a different > linux kernel running on the device but need the checksums in order to > achieve this. Hi James, This code is on a box switched off under my desk at home unfortunately. Gavan@netbsd.org discovered the checksum - it is a couple of bytes on the end of the ELF file. Give him a try. Drop me another mail if you don't get anywhere and I will try to dig the code out that computes the checksum. Regards, Chris From gavan@netbsd.org Tue May 10 15:11:56 2005 X-Mail-Format-Warning: Bad RFC2822 header formatting in >From james Tue May 10 15:11:56 2005 Return-path: Envelope-to: james@XXXXXX.net Delivery-date: Tue, 10 May 2005 15:11:56 +0100 Received: from [81.168.49.201] (helo=cool.coolfactor.org) by pogo.XXXXXX.net with esmtp (Exim 3.36 #1 (Debian)) id 1DVVSm-0008AV-00 for ; Tue, 10 May 2005 15:11:56 +0100 Received: from localhost ([127.0.0.1] helo=villain.coolfactor.org) by cool.coolfactor.org with esmtp (Exim 4.44) id 1DVVpB-0001UO-8J for james@XXXXXX.net; Tue, 10 May 2005 15:35:05 +0100 Received: from frog.coolfactor.org ([213.152.49.34] helo=[192.168.10.198]) by villain.coolfactor.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.44) id 1DVVQ9-0000zT-Ts for james@XXXXXX.net; Tue, 10 May 2005 15:09:49 +0100 Message-ID: <4280C0FD.7070305@netbsd.org> Date: Tue, 10 May 2005 15:11:09 +0100 From: Gavan Fantom User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: James Mulcahy Subject: Re: T1500 Kernel References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------070304040509040907060108" X-Spam-Score: 0.0 (/) X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pogo.XXXXXX.net X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=4.0 tests=BAYES_00 autolearn=ham version=2.63 Content-Length: 1139 Status: RO X-Status: A X-UID: 4 X-Keywords: This is a multi-part message in MIME format. --------------070304040509040907060108 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit James Mulcahy wrote: > Would you be able to give me a few pointers on computing the checksum for > the kernel? I'd really appreciate it! Sure. IIRC, you need to compile this up, run it as ./tsum2 checksum and then cat kernel and checksum together. Hope this helps! --------------070304040509040907060108 Content-Type: text/plain; name="tsum2.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="tsum2.c" /* tsum.c */ #include void putword(unsigned int w) { putchar(w & 0xff); putchar((w >> 8) & 0xff); putchar((w >> 16) & 0xff); putchar((w >> 24) & 0xff); } int main(void) { unsigned int s = 0; unsigned int p = 0; unsigned int n = 0; int c; while ((c = getchar()) != EOF) { s += c; p ^= c<= 32) n = 0; } fprintf(stderr,"s = %x, p = %x\n", s, p); putword(p); putword(s); return 0; } --------------070304040509040907060108-- From gavan@netbsd.org Tue May 10 16:31:13 2005 X-Mail-Format-Warning: Bad RFC2822 header formatting in >From james Tue May 10 16:31:13 2005 Return-path: Envelope-to: james@XXXXXX.net Delivery-date: Tue, 10 May 2005 16:31:13 +0100 Received: from [81.168.49.201] (helo=cool.coolfactor.org) by pogo.XXXXXX.net with esmtp (Exim 3.36 #1 (Debian)) id 1DVWhV-0001PJ-00 for ; Tue, 10 May 2005 16:31:13 +0100 Received: from localhost ([127.0.0.1] helo=villain.coolfactor.org) by cool.coolfactor.org with esmtp (Exim 4.44) id 1DVX3v-0001hG-IN for james@XXXXXX.net; Tue, 10 May 2005 16:54:23 +0100 Received: from frog.coolfactor.org ([213.152.49.34] helo=[192.168.10.198]) by villain.coolfactor.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.44) id 1DVWfB-0001Ar-1C for james@XXXXXX.net; Tue, 10 May 2005 16:29:07 +0100 Message-ID: <4280D39E.5090207@netbsd.org> Date: Tue, 10 May 2005 16:30:38 +0100 From: Gavan Fantom User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: James Mulcahy Subject: Re: T1500 Kernel References: <4280C0FD.7070305@netbsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pogo.XXXXXX.net X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=4.0 tests=BAYES_00 autolearn=ham version=2.63 Content-Length: 457 Status: RO X-UID: 5 X-Keywords: James Mulcahy wrote: > Excellent, thanks Gavan! > > I'll give it a shot tonight and let you know how it goes! Is it OK to > re-distribute tsum.c on to some other people I know with T1500s? What > license is it under? You're welcome! Sure, feel free to redistribute. It's a short piece of code, so I haven't explicitly placed it under a license. I'd appreciate it being attributed to me, but I'm not going to enforce that. Go forth and multiply! :) From gavan@netbsd.org Tue May 10 19:54:17 2005 X-Mail-Format-Warning: Bad RFC2822 header formatting in >From james Tue May 10 19:54:17 2005 Return-path: Envelope-to: james@XXXXXX.net Delivery-date: Tue, 10 May 2005 19:54:17 +0100 Received: from [81.168.49.201] (helo=cool.coolfactor.org) by pogo.XXXXXX.net with esmtp (Exim 3.36 #1 (Debian)) id 1DVZs1-0005Ug-00 for ; Tue, 10 May 2005 19:54:17 +0100 Received: from localhost ([127.0.0.1] helo=villain.coolfactor.org) by cool.coolfactor.org with esmtp (Exim 4.44) id 1DVaET-0002Bn-4S for james@XXXXXX.net; Tue, 10 May 2005 20:17:29 +0100 Received: from frog.coolfactor.org ([213.152.49.34] helo=[192.168.10.198]) by villain.coolfactor.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.44) id 1DVZpx-0001dT-2q for james@XXXXXX.net; Tue, 10 May 2005 19:52:11 +0100 Message-ID: <4281034C.4060900@netbsd.org> Date: Tue, 10 May 2005 19:54:04 +0100 From: Gavan Fantom User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: James Mulcahy Subject: Re: T1500 Kernel References: <4280C0FD.7070305@netbsd.org> <26200c6858a744ffd6264c0b32005614@XXXXXX.net> In-Reply-To: <26200c6858a744ffd6264c0b32005614@XXXXXX.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pogo.XXXXXX.net X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=4.0 tests=BAYES_00 autolearn=ham version=2.63 Content-Length: 1337 Status: RO X-UID: 6 X-Keywords: Forwarded James Mulcahy wrote: > > OK, I'm having a few issues, but it does seem to 'work' to some extent. > > If I compile a kernel, DON'T apply the checksum and let the t1500 boot, > it complains about the checksum not matching - as expected. > > If I compile a kernel, apply the checksum and let the T1500 boot, it > complains that the file is too big to netboot - fair enough, it was a > 2.9Mb image. > > So I strip the kernel, re-calculate the checksum and apply it, then let > the t1500 boot. This time I get 'Unable to find a kernel to boot'. It > seems to have decided to not like it based on some other reasons, but > I'm not too sure what? It rings a bell, but it's been quite some time. I don't think I got past that phase myself, but IIRC Steve Woodford managed to get a NetBSD kernel booted. Steve Woodford > Can you see any flaws in my process, and idea what it might be > complaining about for real? I'm really not sure. > Additionally, I'm interested in knowing how you managed to work out the > checksum algorithm in the first place! Now, I wish I could remember. :) It has been several years now. > ps. Do you hang out on any IRC networks? Sometimes IRCnet as Underhard, but I very rarely check the window. I'm on jabber, msn messenger and yahoo messenger if that helps, though. From steve@mctavish.co.uk Wed May 11 07:48:26 2005 X-Mail-Format-Warning: Bad RFC2822 header formatting in >From james Wed May 11 07:48:26 2005 Return-path: Envelope-to: james@XXXXXX.net Delivery-date: Wed, 11 May 2005 07:48:26 +0100 Received: from [81.187.242.38] (helo=dungeon.mctavish.co.uk) by pogo.XXXXXX.net with esmtp (Exim 3.36 #1 (Debian)) id 1DVl18-00025y-00 for ; Wed, 11 May 2005 07:48:26 +0100 Received: from horace.mctavish.co.uk (horace.mctavish.co.uk [81.187.242.51]) by dungeon.mctavish.co.uk (Postfix) with ESMTP id 5229D1F48 for ; Wed, 11 May 2005 07:48:23 +0100 (BST) Received: from joe.mctavish.co.uk (joe.mctavish.co.uk [81.187.242.62]) by horace.mctavish.co.uk (Postfix) with ESMTP id 30636468B1 for ; Wed, 11 May 2005 07:48:23 +0100 (BST) From: Steve Woodford To: James Mulcahy Subject: Re: Fwd: T1500 Kernel Date: Wed, 11 May 2005 07:48:22 +0100 User-Agent: KMail/1.7.2 References: <08d2b65740f79491ecfbb16955c45b93@XXXXXX.net> In-Reply-To: <08d2b65740f79491ecfbb16955c45b93@XXXXXX.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505110748.22825.steve@mctavish.co.uk> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pogo.XXXXXX.net X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=4.0 tests=BAYES_00 autolearn=ham version=2.63 Content-Length: 691 Status: RO X-UID: 7 X-Keywords: On Tuesday 10 May 2005 19:58, you wrote: > Can you shed any light on the issue? I'm trying to get a Linux kernel > booting on the T1500 using Gavan's 'tsum' checksum generator - the > attached e-mail describes the current state of play - does the problem > I've having ring any bells? It's possible the kernel is still too big. I found the limit was around the 2MB mark. The best bet would be to write a small standalone 2nd stage network bootloader which is responsible for grabbing the kernel. I wrote one for NetBSD but I have not yet committed it (because it is something of a hack, and not up to the usual NetBSD standard). Maybe in the next couple of months... Cheers, Steve