Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi LiangYi,
> But I still have some questions. > 1. When I change the TEXT_BASE in config.mk, u-boot can not be made. I don't understand what you mean by "u-boot can not be made" ... please describe what you observe. Does the make fail? Does the link fail? > Can you tell me detailed about TEXT_BASE, and how to set it? TEXT_BASE is set to the address where the .text section is located. This is the section that contains all of your code. In u-boot you would typically set this to a location at the top of your sdram (so the bottom of your sdram is available for a kernel). > make[1]:*** No rule to make target 'mtxkit1c20.c', needed by '.depend'. Stop. > But when I put the platform under altera directory, u-boot is made OK. > Why? Make is looking for mtxkit1c20.c and can't find it. Check your make target in the top level Makefile -- and always make distclean after moving stuff around ... you might have some artifacts (like old .depend files) in your source tree. Your top level target should call mkconfig with the appropriate arguments: mkconfig BOARD ARCH CPU DIR VENDOR Based on your post, you should have: mkconfig MTXKIT1C20 nios2 nios2 mtxkit1c20 microtronix > I run saveenv and re-run, but the warning still appear. Why? The saveenv command writes your environment variables to a non-volatile memory ... which is normally a parallel flash device. If you see the warning after running saveenv, the save operation failed. This is usually because you don't have your envirnonment setup properly ... or your flash implementation is broken. Please let me know the following: What type of flash are you using? (type and geometry) What is its base address? What is the value assigned to CFG_ENV_ADDR? Regards, --Scott