John,

Thanks for your information.  But the system is still not working.

bootldr version: latest CVS source with your new patch, bank 0 setting 
changed for phase 5
        ramdisk_addr set to 0xC0800000
        linuxargs set to root=/dev/ram ramdisk_size=8192
        copy_ramdisk set to 0x00000001

kernel version: 2.4.2-rmk1-np1
        disabled Angelboot
        change the kernel parameter to "root=/dev/ram ramdisk_size=8192"
        change the SA1100 default bautrate to 115200

And here is the result I got:

booting flash...
boot_magic=5A5ABEEF
kernel_image_first_word=E1A00000
Linux ELF flash_imgstart=5008000C size=000A6800 dest=C0000000 
offset=00008000
MMU Control=C19F4071
copying Linux kernel ... done
linuxEntryPoint: C0008000
kernel_image_dest:    C0000000
kernel_image_offset:    00008000
C0008000: E1A00000
C0008004: E1A00000
C0008008: E1A00000
C000800C: E1A00000
C0008010: E1A00000
C0008014: E1A00000
C0008018: E1A00000
C000801C: E1A00000
C0008020: EA000002
C0008024: 016F2818
Copying compressed ramdisk from 00100004 to C0800000...Done
root_filesystem_name=ramdisk
argc=00000002
args=root=/dev/ram ramdisk_size=8192
setting boot parameters
get_param: could not find parameter system_rev
first_word_of_ramdisk=00300000
Setting up Linux parameters at address=C0000100
using_ramdisk=00000001
initrd_start=C0800000
dram_size=02000000
nr_pages=00002000
command line is: root=/dev/ram ramdisk_size=8192
linuxEntryPoint=C0008000
Booting Linux image
Uncompressing Linux.....................................

invalid compressed format (err=1)

   -- System halted

Any ideas?  I used make zImage to generate the kernel.

Regards,
Leonard Ye

John G Dorsey wrote:

> Leonard Ye wrote:
> 
> 
>> 1) bootldr + ramdisk.  The ramdisk will be unpacked into DRAM at boot
>> time. Such method wastes a lot of DRAM and makes writing back to
>> flash diffcult.
> 
> 
> I tend to use this one most often if I'm doing kernel development,
> because until I figure out some trick to speed up JFFS replays,
> unpacking a 3MB ramdisk is actually faster than replaying a 30MB log
> during boot. If you want to use an ext2 ramdisk, I would direct you to
> the patch I announced on this list a few days ago, as the Compaq code
> does not copy ext2 ramdisks to the expected location by default. (The
> patch introduces a bootldr param which allows you to specify the correct
> location, which is 0xc0800000.)
> 
> 
> 
>> 2) bootldr + standard filesystem on flash block device (e.g. M-System
>> FTL).  So far, nobody had discussed this method in this list.  So I
>> guess it is not applicable or not feasible.
> 
> 
> It's mostly not desirable. Standard filesystems are somewhat
> indiscriminate in their use of the storage media, whereas with flash
> it's important to minimize the number of block erase actions performed.
> 
> 
> 
>> 4) bootldr + MTD + JFFS.  This is the best combination.  No DRAM is
>> wasted and the filesystem can be updated on-the-fly.
> 
> 
> I'm quite fond of this one, although I should say that version 1 JFFS is
> not especially conservative in its use of storage space (no
> compression). As Jamey mentioned, there is already a binary image of a
> bootldr on my Assabet page which will do this for you. Since you're
> using Neponset, and presumably want to use your SA-1111, I'll caution
> you that the binary (and the 26-November patch) has a bug involving the
> static memory timings which has been fixed in the latest snapshot patch.
> (But since I've temporarily turned off JFFS support for Assabet in the
> latest patch, this is of limited value to you. If you proceed down this
> path and find that you've hit the SA-1111 limitation, I can walk you
> through the correction.)
> 
> 
> 
>> args= noinitrd root=/dev/mtdblock4 init=/linuxrc console=ttySA0
> 
> 
> Unless this has changed recently, I don't think the Assabet kernel
> configuration even picks up kernel params passed by the bootloader. You
> can change this in linux/arch/arm/mach-sa1100/arch.c, if you desire.
> 
> 
> 
>> linuxEntryPoint=C0008000
>> Booting Linux image
> 
> 
> I didn't see any message in there about copying the ramdisk from flash
> to SDRAM. Check the value of the bootldr param "copy_ramdisk" (should be
> 1). Of course, after you set that flag, you'll see that the ramdisk is
> copied to the wrong place; see my above note about the recent snapshot
> patch.
> 
> Also, the default serial console configuration for Assabet is to run at
> 9600bps, whereas bootldr is built to run at 115200. This may be why you
> don't see anything; check the value of CONFIG_SA1100_DEFAULT_BAUDRATE.
> 
> 
> 
>> I am also wondering which version of bootldr I should use. John
>> Dorsey has a patch against Nov-26-2000 CVS bootldr.  However, someone
>> in this list claimed that it only works with NetBSD.  Then Robert
>> released a patch about two weeks to make bootldr working with Linux.
>> This patch has been merged into the CVS tree.  Now, John Dorsey
>> released a newest patch for BIG_KERNEL support (isn't it supported
>> already?) and solving static memory configuration problem.  So what
>> kind of combination should I use now?  Really confused.
> 
> 
> I've never tried it with BSD, but I'm reasonably hopeful that it will
> work with Linux.
> 
> Also note that I haven't done anything with BIG_KERNEL, and don't use it
> myself; it's just an adjustment of the partition maps to allow a larger
> kernel to be flashed.
> 
> Basically, if you think you can live with a ramdisk for the time being,
> I'd recommend the newest patch to the current CVS tree. (This way you
> get all the Compaq goodies like command line history, as well as working
> SA-1111 support.) If you have a phase 5 Assabet, see my note from
> yesterday about the bank zero timings.
> 
> If getting up and running with JFFS (version 1) is more important, then
> use the 26-November patch/binary, but note that the SA-1111 will be
> flaky.
> 
> This should all be resolved within a week or so, when I finally get time
> to work on bootldr instead of hardware bringup.
> 
> Good luck!
> -jd


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

Reply via email to