[U-Boot-Users] [PATCH] PCMCIA card support for PXA/WEPEP250

Leon KUKOVEC leon.kukovec at ultra.si
Tue Mar 2 15:39:22 CET 2004


Hi Wolfgang,

On Sun, 22 Feb 2004, Wolfgang Denk wrote:

> > I have changed TEXT_ADDRESS to 0xA1FB0000 now.
> 
> Please check again; the situation has changed  with  the  new  memory
> layout, I think.

I have re-examined the TEXT_ADDRESS and found the following results:

If I compile all the features I need and leave the TEXT_ADDRESS at 0xa1fe0000,
the _end symbol starts at 0xa20b38a0 (bogus RAM address for wepep250).
Here's the last 10 lines out of System.map:

a2053618 B get_vfatname_block
a2063618 B get_dentfromdir_block
a2073618 B do_fat_read_block
a2083618 b set_cluster_block
a2093618 b fat_add_dentry_slot_table
a2093898 b fat_add_dentry_buffer
a20a3898 b fat_add_dentry_buffer_dirty
a20a389c b fat_add_dentry_buffer_cluster
a20a38a0 b do_fat_write_block
a20b38a0 A _end

If I change TEXT_ADDRESS to 0xA1F2C000 the _end symbol starts at 
address 0xA1FFF8A0 and the System.map says:

a1f9f618 B get_vfatname_block
a1faf618 B get_dentfromdir_block
a1fbf618 B do_fat_read_block
a1fcf618 b set_cluster_block
a1fdf618 b fat_add_dentry_slot_table
a1fdf898 b fat_add_dentry_buffer
a1fef898 b fat_add_dentry_buffer_dirty
a1fef89c b fat_add_dentry_buffer_cluster
a1fef8a0 b do_fat_write_block
a1fff8a0 A _end

Correct me if I'm wrong, but my understanding is that the image is just to
big to fit into 0x1FFFF (when TEXT_ADDRESS is at 0xA1FE0000 and end of
RAM is 0xA1FFFFFF) bytes.

I thought about this a little and the idea is this:

If we could calulate the size of the image and substract that from the END
of RAM adress, we would get the TEXT_ADDRESS dynamicaly. That would solve
all the problems with too big images. I'm not sure if that's a lot of effort
or not and if it's doable or not, but sounds like the end of the TEXT_ADDRESS
trouble with more features comming in.

--- tests ---
I have performed the following tests with TEXT_ADDRESS set to 0xA1F2C000:

WEP> loadb a0001000 (uImage file size: 1357791)
Image downloaded successfully.

WEP> ide reset
IDE device reset successfuly.

WEP> fatls ide 0:1 /
Showed a list of files on IDE device's partition 1.
--- end of tests ---

> Please try to keep the impact of your patch at a minimum, i. e. don't
> add any files that are not really needed, and - if possible  -  don't
> add empty / dummy files.

I cleaned the header files - and you were right - most of them were
unnecessary.

A patch is ready to be sent, but I'm waiting for your approoval/reject of
strswab patch.

Any issues, let me know.

-- 

Best Regards,
	Leon.





More information about the U-Boot mailing list