Forum Discussion
Altera_Forum
Honored Contributor
21 years agoScott,
Thanks for the help so far. I have u-boot up on my custom board, but have run into a few things. I needed to add# if defined() for the SDRAM init portion in board.c, since I have none. My niosII has no cache so I have set those CFG entries to 0. I discovered that once you have built, you cannot copy the source tree to another folder and rebuild. There are some absolute paths created by the make that are not cleaned. All I have is 2MB of ram @ x800000, and I would like to keep at least the lower MB clear for application downloads. It looks like u-boot consumes about 6 sectors (64k*6=384k) in the default configuration once you add up all the link sections, so I set TEXT_BASE for the upper 2 sectors. It does load & run, but I have found thru memory testing that u-boot still keeps a few necessary objects in lower memory. Most notably, there are vectors at x800020 even though my CFG_RESET_ADDR and CFG_EXCEPTION_ADDR are both set much higher. Also more than one item in x830000 - x900000 region. I haven't yet found why these objects are there and or how to fix it. My ethernet does not work with the default driver, but it is using a 16bit interface so I expected some fixing would be needed there.