2008-06-12 09:17:12 ADSP-BF561 Custom kernel problems
Justin Wetherell (UNITED STATES)
Message: 57128
Hello All,
I have compiled and loaded a custom kernel (uClinux-dist-2008R1-RC8) on to a BF561 but when it loads all I get is garbage. I was hoping maybe you all could point me in the right direction.
I selected 561 in the make menuconfig and everything compiles fine. I transfer over the uImage file via kermit and loadb.
Here is my proceedure on the 561.
erase 1:1-30
cp.b 0x1000000 0x20020000 <(file size+1) in HEX>
go 0x1000000
When it loads, I get the following output.
Image Name: Linux-2.6.22.18-ADI-2008R1-svn
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 3877868 Bytes = 3.7 MB
Load Address: 00001000
Entry Point: 00146000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 146000
À0 >ð>Î 0þÎð ðÎðÎ>þ>ð>0ð0 ð0 00ð0 00>0 ÀÎ0Î 000000Î0>0ð þ >0 0>þÎð þ >Î ðÎð
QuoteReplyEditDelete
2008-06-12 09:28:36 Re: ADSP-BF561 Custom kernel problems
Mike Frysinger (UNITED STATES)
Message: 57134
the two common errors which result in this are:
- improper baud rate
- improper kernel selection of processor/board/clock settings
QuoteReplyEditDelete
2008-06-12 09:48:53 Re: ADSP-BF561 Custom kernel problems
Justin Wetherell (UNITED STATES)
Message: 57137
Yea, I think you are correct.
I had Analog Devices -> 561 selected but my board is a Bluetechnix 561. I'll try that and see what happens.
QuoteReplyEditDelete
2008-06-12 09:57:25 Re: ADSP-BF561 Custom kernel problems
Justin Wetherell (UNITED STATES)
Message: 57138
My board (to the best of my knowledge) doesn't have an active ethernet port. How do I get the rootfs on to the 561 board? I assume it'll be something like loadb into 0x1000000. But then where do I cp.b it into memory?
QuoteReplyEditDelete
2008-06-12 10:41:06 Re: ADSP-BF561 Custom kernel problems
Mike Frysinger (UNITED STATES)
Message: 57144
you either use a kernel with a rootfs attached, or you put the rootfs into flash
QuoteReplyEditDelete
2008-06-12 10:49:55 Re: ADSP-BF561 Custom kernel problems
Justin Wetherell (UNITED STATES)
Message: 57147
Maybe I spoke incorrectly. How do I get all the "applications" (mplayer, vlc, etc) onto the device? I assume they aren't in the kernel image.
QuoteReplyEditDelete
2008-06-12 11:33:59 Re: ADSP-BF561 Custom kernel problems
Mike Frysinger (UNITED STATES)
Message: 57153
all files that are compiled as part of the uclinux-dist are included in the root filesystem
if you want to load files after the fact over serial, you'll have to use the zmodem utilities under linux
QuoteReplyEditDelete
2008-06-12 11:37:53 Re: ADSP-BF561 Custom kernel problems
Justin Wetherell (UNITED STATES)
Message: 57156
Great! I am just unfamilure with the process for embedded Linux.
QuoteReplyEditDelete
2008-06-12 12:16:56 Re: ADSP-BF561 Custom kernel problems
Mike Frysinger (UNITED STATES)
Message: 57159
the process tends to differ largely based on the embedded distribution / bootloader. we're using the uClinux distribution around here.
you'll probably find these documents helpful:
http://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:images
http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:jffs
QuoteReplyEditDelete
2008-06-12 12:45:56 Re: ADSP-BF561 Custom kernel problems
Justin Wetherell (UNITED STATES)
Message: 57166
Thanks!