From: Ulf Samuelsson Date: Wed, 30 Jan 2008 10:33:46 +0100 Subject: [U-Boot-Users] [PATCH] make the machid configurable via theenvironment (Was: [PATCH] Changed load address and entrypoint for uImage to ZRELADDR + 6MB) References: <1200469629509-git-send-email-vivek.kutal@celunite.com><20080116081303.GA25437@uranus.ravnborg.org><20080116100904.GA4487@digi.com><20080116163434.GA2955@digi.com><20080116181027.GB29568@uranus.ravnborg.org><20080116205131.GA3605@digi.com> <20080130080849.GA25875@digi.com> Message-ID: <000201c8634b$546ee570$8901a8c0@atmel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Nicolas Pitre wrote: > > But does U-Boot properly provide machine information to the kernel these > > days? I have been and still being burned by U-Boot hardcoding the > > _wrong_ machine ID, and therefore custom built kernels from k.o simply > > won't boot on those boards without hacking the kernel source. > With "our" U-Boot you can override the compiled-in machid with an > environment variable. I didn't implement this patch but I think it's > not that difficult. I will check tomorrow if I can easily get a patch > out of our scm. I proposed this patch for a long time, but it was rejected by Wolfgang. I am seeing multiple companies implementing small CPU modules incorporating CPU + FPGA, and the customers will adopt the FPGA code for their own need, and then they need to create a new machine id. Having such a patch will allow people in this situation to use the U-Boot on the board without recompilation. Best Regards Ulf Samuelsson