[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-arm
Subject:    Re: porting to a new app ...
From:       Holger Schurig <h.schurig () mn-logistik ! de>
Date:       2001-06-22 13:15:51
[Download RAW message or body]

> (I'm assuming you mean the 1100/1110)

You're assuming right. It's a StrongARM SA 1110 (without SA 1111).


> The other way is to use an existing bootloader, like blob.

The device has an existing bootloader, which expects an Windows CE 
binary (nk.bin). I have a working Windows CE nk.bin for the device, 
here is the beginning of it's structure:

Flash file       ../nk.bin
Flash address    0x8004e000
Flash length     0x00dcff08

file pos 0x0000000f at addr 0x8004f000 len 0x0004d78c xsum 0x01f78508
file pos 0x0004d7a7 at addr 0x8009d000 len 0x00000038 xsum 0x00001b1c
file pos 0x0004d7eb at addr 0x8009e000 len 0x00002d08 xsum 0x000acf8b
file pos 0x000504ff at addr 0x800a1000 len 0x0004cf50 xsum 0x01f23782
file pos 0x0009d45b at addr 0x800ee000 len 0x00003e00 xsum 0x0011a277
file pos 0x000a1267 at addr 0x800f2000 len 0x0001d408 xsum 0x00bbe3fb
file pos 0x000be67b at addr 0x80110000 len 0x00000200 xsum 0x00007437
file pos 0x000be887 at addr 0x80111000 len 0x00080f80 xsum 0x0338ced8
file pos 0x0013f813 at addr 0x80192000 len 0x0000c000 xsum 0x003e7d38
file pos 0x0014b81f at addr 0x8019e000 len 0x00004450 xsum 0x001953f6
file pos 0x0014fc7b at addr 0x801a3000 len 0x0000e8a8 xsum 0x005cc284
file pos 0x0015e52f at addr 0x801b2000 len 0x00001400 xsum 0x00038d10
file pos 0x0015f93b at addr 0x801b4000 len 0x000082a4 xsum 0x0036bd4f
file pos 0x00167beb at addr 0x801bd000 len 0x00001000 xsum 0x0002e292
...
and so on. :-)

So I expect that the ARM is already in 32 bit mode.

The bootloader knows how to read such a file and place it into the 
specified memory area. That makes it much easier for me, I'd say.


> After that point, linux pretty much runs out of the box on the
> SA11x0 - just copy the vmlinux (I'd get this working first, the
> zImage stuff has other

Is it really so easy?

For the first start, I even don't know how to program the flash on my 
own, the bootloader knows how to do this. Later in time I need to find 
out, otherwise I cannot tweak the MTD to be able to use JFFS2, but for 
now I don't care.

But to compile my own Linux, I certainly need some addresses, doesn't 
I?  I mean something like the address for the text segment. Or some 
stuff that Linux needs to initialize the memory management ?!?!?



I've attached my dumpnkbin.c, it's GPL and contains some comments on my 
findings of the NK.BIN format. I haven't found a doc anywhere, khexedit 
was my friend.

Greetings, Holger

-- 
MN-Logistik GmbH         http://www.mn-logistik.de
Holger Schurig           Network Administrator
Dieselstr. 18
61191 Rosbach v.d.Höhe
Tel: 06003/9141-0        Fax: 06003/9141-49

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic