I know this is a rather long email, but I want to give all the details. Bear with me :-).<br><br>I was under the impression that the CFI patch was already included in the f188896c... commit and that I didn't need to apply it. I had tried the git-rebase, but it gave me errors and then wouldn't build. I assumed that the git-rebase step was only required for future patches, so figured I would sort it out later. I should have mentioned that in my last email, I apologize for the miscommunication.<br>
<br>Here's the git-rebase output:<br><br>david@chiron:~/u-boot-coldfire$ git-rebase master patched<br>Already on branch "patched"<br>First, rewinding head to replay your work on top of it...<br><br>HEAD is now at 33dac03... Coding Style Cleanup; update CHANGELOG<br>
<br>Applying ColdFire: Added MCF5275 cpu support.<br><br>Wrote tree ab2c1c1174d5a83b77fb13ef256dea1ad52bfc76<br>Committed: 70fb3f277a4032eb9d94e840247a9912de4678be<br><br>Applying ColdFire: Added M5275EVB support.<br><br>
error: patch failed: MAKEALL:648<br>error: MAKEALL: patch does not apply<br>Using index info to reconstruct a base tree...<br>Falling back to patching base and 3-way merge...<br>Auto-merged MAKEALL<br>Auto-merged Makefile<br>
Wrote tree de37f7363a7d043338a21751cbedfbc1cff75ab8<br>Committed: dcba0b1aea040e60724b6fabd273f3ce42efa36f<br><br>Resulting in these build errors:<br><br>make[1]: Leaving directory `/home/david/u-boot/drivers/pcmcia'<br>
make -C drivers/spi/<br>make[1]: Entering directory `/home/david/u-boot/drivers/spi'<br>mpc8xxx_spi.c:26:29: error: asm/mpc8xxx_spi.h: No such file or directory<br>make[1]: *** No rule to make target `.depend', needed by `libspi.a'. Stop.<br>
make[1]: Leaving directory `/home/david/u-boot/drivers/spi'<br>make: *** [drivers/spi/libspi.a] Error 2<br><br>I have applied the CFI patch from the original email using git-am, that seems to work fine. U-boot compiles successfully with these warnings:<br>
<br>david@chiron:~/u-boot$ ./MAKEALL M5275EVB<br>Configuring for M5275EVB board...<br>board.c: In function 'init_baudrate':<br>board.c:179: warning: pointer targets in passing argument 2 of 'getenv_r' differ in signedness<br>
board.c:182: warning: pointer targets in passing argument 1 of 'simple_strtoul' differ in signedness<br>m68k_linux.c: In function 'do_bootm_linux':<br>m68k_linux.c:154: warning: implicit declaration of function 'do_reset'<br>
m68k-elf-ld: warning: library search path "/lib" is unsafe for cross-compilation<br>m68k-elf-ld: warning: library search path "/usr/lib" is unsafe for cross-compilation<br>m68k-elf-ld: warning: library search path "/usr/local/lib" is unsafe for cross-compilation<br>
./MAKEALL: 265: ppc_8xx-size: not found<br><br>I programmed the board (an M5275EVB Rev. B) with the srec using CF Flasher, and U-Boot boots to the prompt.<br><br>However, I've run into these problems, and I'm wondering if guys have as well, or if I'm doing something wrong.<br>
<br>1) I can't save environment variables using saveenv. I can change them just fine, and saveenv runs as usual, but on reset, I get a "*** Warning - bad CRC, using default environment "<br><br>example:<br>
<br>-> printenv <br>bootcmd=bootm ffe40000 <br>bootdelay=5 <br>
baudrate=19200 <br>ethaddr=00:06:3b:01:41:55 <br>eth1addr=00:0e:0c:bc:e5:60 <br>
stdin=serial <br>stdout=serial <br>stderr=serial <br>
ethact=FEC0 <br> <br>Environment size: 156/8188 bytes <br>
-> setenv ipaddr <a href="http://192.168.1.101">192.168.1.101</a> <br>-> printenv <br>bootcmd=bootm ffe40000 <br>
bootdelay=5 <br>baudrate=19200 <br>ethaddr=00:06:3b:01:41:55 <br>
eth1addr=00:0e:0c:bc:e5:60 <br>stdin=serial <br>stdout=serial <br>
stderr=serial <br>ethact=FEC0 <br>ipaddr=<a href="http://192.168.1.101">192.168.1.101</a> <br>
<br>Environment size: 177/8188 bytes <br>-> saveenv <br>
Saving Environment to Flash... <br>Un-Protected 1 sectors <br>Erasing Flash... <br>
. done <br>Erased 1 sectors <br>Writing to Flash... done <br>
Protected 1 sectors <br>-> <br> <br>
U-Boot 1.3.1-ge4d87286 (Jan 26 2008 - 13:23:51) <br> <br>CPU: Freescale Coldfire MCF5275 at 150 MHz <br>
Board: Freescale MCF5275 EVB <br>I2C: ready <br>DRAM: 16 MB <br>
FLASH: 2 MB <br>*** Warning - bad CRC, using default environment <br><br>etc.<br><br>2) Ethernet does not seem to work. After setting the ipaddr, serverip, and netmask variables, I run tftpboot and don't get anything but checksum errors. The TFTP transfer works fine with the exact same setup (router, ip addresses, etc.) when I use dBug. I've run Wireshark on the ethernet interface and haven't seen a single packet from the board while running the tftpboot command. I've tried pinging the board, seen the packets sent on Wireshark, and got no response.<br>
<br>-> printenv <br>bootcmd=bootm ffe40000 <br>bootdelay=5 <br>
baudrate=19200 <br>ethaddr=00:06:3b:01:41:55 <br>eth1addr=00:0e:0c:bc:e5:60 <br>
stdin=serial <br>stdout=serial <br>stderr=serial <br>
ethact=FEC0 <br>ipaddr=<a href="http://192.168.1.101">192.168.1.101</a> <br>serverip=<a href="http://192.168.1.100">192.168.1.100</a> <br>
netmask=<a href="http://255.255.255.0">255.255.255.0</a><br><br>Environment size: 222/8188 bytes<br>-> tftpboot 0x50000 image.bin <br>Using FEC0 device <br>
TFTP from server <a href="http://192.168.1.100">192.168.1.100</a>; our IP address is <a href="http://192.168.1.101">192.168.1.101</a> <br>Filename 'image.bin'. <br>
Load address: 0x50000 <br>Loading: checksum bad <br>checksum bad <br>
checksum bad <br> <br>Abort <br>
-><br><br>Anything to clear this up would help. Do either of you have ethernet and saveenv working? Thanks for your help and your patience.<br><br>-David<br><br><br>