2009-04-07 10:25:33 Makefile mods for uImage?
Jim Carstensen (UNITED STATES)
Message: 72330
Completed a successful build of the uclinux-dist. My understanding is that I need to download the uImage file in the 'images' dir to the target.
The uImage file is 0 bytes long. The vmImage file does have something, however.
Do I need to change the Makefile so the it generates a valid uImage? If so, any hints as to how to modify the Makefile to get a uImage?
I see in the Makefile help a reference to 'make image'. Is that what is required?
First time trying to make an image to download.
thanks.
QuoteReplyEditDelete
2009-04-07 12:50:32 Re: Makefile mods for uImage?
Ashutosh natraj (UNITED KINGDOM)
Message: 72335
You need to make sure the build was successful ?
The successful build will automatically create a folder "images", under which you can find compressed version of linux full version and the uImage.
please note: while you perform the "make menuconfig" from the uClinux dist folder, you would have already set the PATH:
export PATH=$PATH:/opt/uClinux/bfin-uclinux/bin:/opt/uClinux/bfin-elf/bin:/opt/uClinux/bfin-linux-uclibc/bin
then run the make menuconfig,
1.Configure to the setup: vendor & product.
2.configure the linux kernel
3.configure the uClinux
(if required more info look into: Blue Technix build instructions)
after successful built.
perform "make dep"
later "make"
it would sort your problem.
regards
Ashutosh Natraj
QuoteReplyEditDelete
2009-04-07 13:02:33 Re: Makefile mods for uImage?
Jim Carstensen (UNITED STATES)
Message: 72336
The build WAS successful. However, the uImage file is 0 bytes long. That is the file (I believe) that needs to be downloaded to the target.
How and what do I change to result in a uImage file that has something in it?
thanks.
QuoteReplyEditDelete
2009-04-07 13:13:02 Re: Makefile mods for uImage?
Ashutosh natraj (UNITED KINGDOM)
Message: 72339
try the steps. mentioned above.
try to make clean , before you procede.
Also while the make menuconfig
check the wiki for the steps.
docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:release-notes:2007r1&s[]=make&s[]=menuconfig&s[]=configuration
hope u get it sorted.
regards
Ashu
(Ashutosh Natraj)
QuoteReplyEditDelete
2009-04-07 15:09:07 Re: Makefile mods for uImage?
Mike Frysinger (UNITED STATES)
Message: 72350
you're using svn trunk right ? run `make image >& log` and post the log file as an attachment.
QuoteReplyEditDelete
2009-04-07 16:08:18 Re: Makefile mods for uImage?
Jim Carstensen (UNITED STATES)
Message: 72356
Any other ideas? Did a make clean, make menuconfig, and a new make. Still no bytes in the uImage file.
QuoteReplyEditDelete
2009-04-07 16:09:02 Re: Makefile mods for uImage?
Jim Carstensen (UNITED STATES)
Message: 72357
OK. I run a log and send it.
thanks.
QuoteReplyEditDelete
2009-04-07 16:18:30 Re: Makefile mods for uImage?
Jim Carstensen (UNITED STATES)
Message: 72360
And should I use 'make image' instead of just 'make'?
QuoteReplyEditDelete
2009-04-07 16:31:52 Re: Makefile mods for uImage?
Jim Carstensen (UNITED STATES)
Message: 72361
Here's the log file resulting from 'make image'
errors out right away
log
QuoteReplyEditDelete
2009-04-07 16:55:04 Re: Makefile mods for uImage?
Mike Frysinger (UNITED STATES)
Message: 72364
you need to have the distribution compiled normally before using `make image`
QuoteReplyEditDelete
2009-04-08 09:14:31 Re: Makefile mods for uImage?
Jim Carstensen (UNITED STATES)
Message: 72419
OK. So is that the problem?
The procedure is:
make followed by...
make image
?
QuoteReplyEditDelete
2009-04-08 12:45:57 Re: Makefile mods for uImage?
Jim Carstensen (UNITED STATES)
Message: 72424
I did the following in the uclinux-dist directory:
make clean
make
make image
no errors reported. all looked normal.
Still - uImage shows 0 bytes
help.
QuoteReplyEditDelete
2009-04-08 13:05:07 Re: Makefile mods for uImage?
Jim Carstensen (UNITED STATES)
Message: 72426
It's a 'symlink' so it's supposed to be 0 bytes?
Points to uImage.initramfs which is 9318433 bytes ?
Is that the chunk that is going to be downloaded to the target?
a 9Meg file?
Not sure my BF537-stamp has that much memory!
QuoteReplyEditDelete
2009-04-08 16:48:38 Re: Makefile mods for uImage?
Mike Frysinger (UNITED STATES)
Message: 72433
the procedure is `make`. i told you to run one specific command that would contain all the info i would need in order to further help diagnosis the problem.
QuoteReplyEditDelete
2009-04-08 16:49:09 Re: Makefile mods for uImage?
Mike Frysinger (UNITED STATES)
Message: 72434
yes, uImage is not a file, it's a symlink
the BF537-STAMP has 64megs of memory, so i'm sure it has that much
please read the documentation:
docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:images
QuoteReplyEditDelete
2009-04-09 09:26:15 Re: Makefile mods for uImage?
Jim Carstensen (UNITED STATES)
Message: 72465
Sorry MIke. I do appreciate your help on this.
I ran another make but forgot to run a log with it. However, I did make some good progress and realized that uImage was a symlink and that everything was normal. Also did some learning about the stamp memory capacity, etc. and it appears OK, as you indicated. So I think this problem is solved.
Trying to download now, but I think my TFTP server (TFTP Turbo) is acting up. Stops 1-2 or 3% into the download and stamp freezes up.
Just starting to debug this problem now, and I'll start another thread if necessary.
Thanks again!