Hi All,
Funnily enough I just found a box of uCsimms that I used for training classes a few years back.

It would be nice to get these working with a later kernel.
I don't have time to work on it at the moment but would be most interested in any results.

Jari
The system should work you have to watch that systerm memory does still not start at edata since this is now the init_data area.

Regards
  Phil Wilshire

Jari Korva wrote:
Hi,

I wiped the dust out of my good-old uCsimm device and tried to
update it with a recent kernel. I built the toolchain (gcc 4.1.2,
binutils 2.16), downloaded the uClinux-dist-20070130 and upgraded
it with 2.6.22-uc0-big sources which seemed to be the most
promising ones (it compiled with some minor configuration tuning
and some patches).

First I needed a modification to uCsimm Makefile in order
avoid >200 MB images:

--- uClinux-dist.orig/vendors/Arcturus/uCsimm/Makefile  2006-06-28
+++ uClinux-dist/vendors/Arcturus/uCsimm/Makefile       2007-11-22
@@ -80,13 +80,11 @@
 image:
        [ -d $(IMAGEDIR) ] || mkdir -p $(IMAGEDIR)
        genromfs -v -V "ROMdisk" -f $(ROMFSIMG) -d $(ROMFSDIR)
-       $(CROSS_COMPILE)objcopy -O binary --remove-section=.romvec \
-                       --remove-section=.text --remove-section=.ramvec \
-                       --remove-section=.bss --remove-section=.eram \
+       $(CROSS_COMPILE)objcopy -O binary \
+                       -j .data -j .init \
                        $(ROOTDIR)/$(LINUXDIR)/linux
$(IMAGEDIR)/linux.data
-       $(CROSS_COMPILE)objcopy -O binary --remove-section=.ramvec \
-                       --remove-section=.bss --remove-section=.data \
-                       --remove-section=.eram \
+       $(CROSS_COMPILE)objcopy -O binary \
+                       -j .romvec -j .text \


Then a small modification to head-rom.S so that also the .init section
gets copied to RAM:

--- uClinux-dist.orig/linux-2.6.x/arch/m68knommu/platform/68328/head-rom.S
2007-07-09 02:32:17.000000000 +0300
+++ uClinux-dist/linux-2.6.x/arch/m68knommu/platform/68328/head-rom.S
2007-11-22 14:44:16.000000000 +0200
@@ -57,7 +57,7 @@
        /* Copy data segment from ROM to RAM */
        moveal  #_etext, %a0
        moveal  #_sdata, %a1
-       moveal  #_edata, %a2
+       moveal  #__init_end, %a2

        /* Copy %a0 to %a1 until %a1 == %a2 */
 1:     movel   [EMAIL PROTECTED], [EMAIL PROTECTED]


After this I got a nice little kernel which starts booting, but fails
(303ae is in init_idle):

access fault
PC[000303ae] SSP[0002dfa6] USP[f9ffeffd]     BootstrapSP[0001ffb6]

    D0       D1       D2       D3       D4       D5       D6       D7
0098963a 269b4800 0000000a 007fffec 00000000 0000001b ffffefea 7f9bffff
    A0       A1       A2       A3       A4       A5       A6
0097ff68 00039ea0 42b90002 00039a28 00000002 000008ee 0002dfb8

Before I dig into this problem, does anyone have an idea, how big task
would it be to bring 68EZ328 back into life? And/or which was the latest
kernel that worked?

The .config, patches and the compiled kernel image can be downloaded from:

http://www.willab.fi/~jko/ucsimm-kernel-2.6.22-uc0.tar.bz2

Cheers,
  Jari
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to