Specifications
Where can the image size be altered from?
Answer:
Some processors have a fixed reset vector address at 0xFFFFFFFC, so the U-Boot image has to
include that address, i. e. it covers the full range from the start address to the end of the 32 bit address
space. In such a case, the start address must be changed - check the setting of TEXT_BASE in your
board/<name>/config.mk file.
14.2.12. Erasing Flash Fails
Question:
I tried to erase the flash memory like
erase 40050000 40050100
It fails. What am I doing wrong?
Answer:
Remember that flash memory cannot be erased in arbitrary areas, but only in so called "erase regions"
or "sectors". If you have U-Boot running you can use the flinfo (Flash information, short fli)
command to print information about the flash memory on your board, for instance:
=> fli
Bank # 1: AMD AM29LV160B (16 Mbit, bottom boot sect)
Size: 4 MB in 35 Sectors
Sector Start Addresses:
40000000 (RO) 40008000 (RO) 4000C000 (RO) 40010000 (RO) 40020000 (RO)
40040000 40060000 40080000 400A0000 400C0000
400E0000 40100000 40120000 40140000 40160000
40180000 401A0000 401C0000 401E0000 40200000
40220000 40240000 40260000 40280000 402A0000
402C0000 402E0000 40300000 40320000 40340000
40360000 40380000 403A0000 403C0000 403E0000
In the example above, the area 40050000 ... 40050100 lies right in the middle of a erase unit
(40040000 ... 4005FFFF), so you cannot erase it without erasing the whole sector, i. e. you have to
type
=> erase 40040000 4005FFFF
Also note that there are some sectors marked as read-only ((RO)); you cannot erase or overwrite
these sectors without un-protecting the sectors first (see the U-Boot protect command).
14.2.13. Ethernet Does Not Work
Question:
Ethernet does not work on my board.
Answer:
Maybe you forgot to set a MAC address? Check if the "ethaddr" environment variable is defined,
and if it has a sane value. If there are more than one Ethernet interfaces on your board, you may also
have to check the MAC addresses for these, i. e. check the "eth1addr", "eth2addr", etc.
14.2.13. Ethernet Does Not Work 165