[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Problem with 2nd stage bootloader (u-boot)



Hi Leonid,

That's a good idea - we'll put that (or a dos2unix filter) in for next release.

Thanks,

John

Leonid wrote:
On Tuesday, February 27, 2007 4:53 PM John Williams wrote:

You will probably also need to run dos2unix on the auto-config.in file


to remove CR/LF characters.


We suggest the following fix in petalinux-copy-autoconfig to avoid \r
problem:

   function copy_autoconfig_file {
   	# Make a backup copy, just in case
   	mv ${KERNEL_PLATFORM_PATH}/auto-config.in
${KERNEL_PLATFORM_PATH}/auto-config.in.old 2>&1 > /dev/null
# Copy auto-config.in into kernel platform path
<  	cp ${AUTOCONFIG_FILE} ${KERNEL_PLATFORM_PATH}/auto-config.in ||
(print_stderr "ERROR: Unable to copy auto-config.in" && exit -1);
-> -> # Replace the -> characters present on the EDK Generated config file and create the
output file
-> 	cp ${AUTOCONFIG_FILE} ${KERNEL_PLATFORM_PATH}/auto-config.in
|sed -e 's/
-> //g' ${KERNEL_PLATFORM_PATH}/auto-config.in

${KERNEL_PLATFORM_PATH}/auto-config.out || (print_stderr "ERROR: Unable

to copy auto-config.in" && exit -1);
-> 	mv ${KERNEL_PLATFORM_PATH}/auto-config.out
${KERNEL_PLATFORM_PATH}/auto-config.in
   }


Leonid


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/



___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/