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

Re: [microblaze-uclinux] Error Compiling Kernel



John Williams wrote:

>Hi Welson,
>
>Welson Sun wrote:
>
>  
>
>>1. Modified the mbvanilla_net, the only big change that affects the
>>    
>>
>kernel
>  
>
>>is the memory size from 32M to 8M and uses ZBT SRAM instead of DDR.
>> 
>>2. Build the new hardware platform and download it to the board and
>>    
>>
>write a
>  
>
>>UART test program to run out of ZBT RAM.
>> 
>>3. Modified uClinux-dist/linux-2.4.x/include/asm-microblaze/mbvanilla.h
>>    
>>
>for
>  
>
>>ERAM_SIZE
>> 
>>4. make menuconfig, select the Insight->XC2V1K_Microblaze and uClibc and
>>default all settings, press ENTER for all following questions.
>>    
>>
>
>Can you please retry this but selecting the mbvanilla_net platform?
>
>  
>
>>Looks like there are more files to modify before compiling the kernel.
>>    
>>
>
>Not exactly - I made some changes last week to support a much cleaner 
>platform support approach, but didn't test it with the ancient XC2V1K 
>platform.  mbvanilla_net should work, and is more modern anyway.
>
>Cheers,
>
>John
>___________________________
>microblaze-uclinux mailing list
>microblaze-uclinux@itee.uq.edu.au
>Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
>Mailing List Archive :
>http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>  
>
OK, I just tried this again, but selected mbvanilla_net. This time the 
error is:

make[2]: Entering directory 
`/net/fpga1/users/welson/uclinux/uClinux-dist/vendors/Insight/mbvanilla_net'
dirs= ; \
for i in $dirs ; do  make -C $i || exit  ; done
make[2]: Leaving directory 
`/net/fpga1/users/welson/uclinux/uClinux-dist/vendors/Insight/mbvanilla_net'
make[1]: Leaving directory 
`/net/fpga1/users/welson/uclinux/uClinux-dist/user'
for dir in  lib user ; do [ ! -d $dir ] || make ARCH=microblaze 
CROSS_COMPILE=mb- -C $dir romfs || exit 1 ; done
make[1]: Entering directory 
`/net/fpga1/users/welson/uclinux/uClinux-dist/lib'
for i in uClibc libnet libcrypt_old 
/net/fpga1/users/welson/uclinux/uClinux-dist/prop zlib ; do \
        [ ! -d $i ] || make -C $i romfs || exit $? ; \
done
make[2]: Entering directory 
`/net/fpga1/users/welson/uclinux/uClinux-dist/uClibc'
make[2]: Leaving directory 
`/net/fpga1/users/welson/uclinux/uClinux-dist/uClibc'make[2]: Entering 
directory `/net/fpga1/users/welson/uclinux/uClinux-dist/lib/libnet'
make[2]: Nothing to be done for `romfs'.
make[2]: Leaving directory 
`/net/fpga1/users/welson/uclinux/uClinux-dist/lib/libnet'
make[2]: Entering directory 
`/net/fpga1/users/welson/uclinux/uClinux-dist/lib/libcrypt_old'
make[2]: Nothing to be done for `romfs'.
make[2]: Leaving directory 
`/net/fpga1/users/welson/uclinux/uClinux-dist/lib/libcrypt_old'
make[2]: Entering directory 
`/net/fpga1/users/welson/uclinux/uClinux-dist/lib/zlib'
make[2]: Nothing to be done for `romfs'.
make[2]: Leaving directory 
`/net/fpga1/users/welson/uclinux/uClinux-dist/lib/zlib'
mb-strip /net/fpga1/users/welson/uclinux/uClinux-dist/romfs/lib/*
mb-strip: /net/fpga1/users/welson/uclinux/uClinux-dist/romfs/lib/*: No 
such file or directory
make[1]: [romfs] Error 1 (ignored)
make[1]: Leaving directory 
`/net/fpga1/users/welson/uclinux/uClinux-dist/lib'
make[1]: Entering directory 
`/net/fpga1/users/welson/uclinux/uClinux-dist/user'
for i in 
/net/fpga1/users/welson/uclinux/uClinux-dist/vendors/Insight/mbvanilla_net/. 
boa busybox cgi_generic fileutils games hd inetd init mtd-utils ping 
portmap ramimage sash telnetd tinylogin 
/net/fpga1/users/welson/uclinux/uClinux-dist/prop ; do \
        [ ! -d $i ] || make -C $i romfs || exit $? ; \
done
make[2]: Entering directory 
`/net/fpga1/users/welson/uclinux/uClinux-dist/vendors/Insight/mbvanilla_net'
[ -d /net/fpga1/users/welson/uclinux/uClinux-dist/romfs/$i ] || mkdir -p 
/net/fpga1/users/welson/uclinux/uClinux-dist/romfs
for i in bin dev dev/flash etc etc/config etc/default home lib mnt proc 
usr var home/httpd home/httpd/cgi-bin; do \
        [ -d /net/fpga1/users/welson/uclinux/uClinux-dist/romfs/$i ] || 
mkdir -p /net/fpga1/users/welson/uclinux/uClinux-dist/romfs/$i; \
done
for i in tty,c,5,0      console,c,5,1   mem,c,1,1     kmem,c,1,2    
null,c,1,3 ttyS0,c,4,64   ttyS1,c,4,65 zero,c,1,5     random,c,1,8    
urandom,c,1,9 ram0,b,1,0      ram1,b,1,1 leds,c,10,169 gpio,c,10,185 
ppp,c,108,0 ptyp0,c,2,0    ptyp1,c,2,1     ptyp2,c,2,2   ptyp3,c,2,3 
ptyp4,c,2,4    ptyp5,c,2,5     ptyp6,c,2,6  ptyp7,c,2,7 ptyp8,c,2,8    
ptyp9,c,2,9     ptypa,c,2,10  ptypb,c,2,11 ptypc,c,2,12   
ptypd,c,2,13    ptype,c,2,14  ptypf,c,2,15 ttyp0,c,3,0    ttyp1,c,3,1 
ttyp2,c,3,2   ttyp3,c,3,3 ttyp4,c,3,4    ttyp5,c,3,5     ttyp6,c,3,6   
ttyp7,c,3,7 ttyp8,c,3,8    ttyp9,c,3,9     ttypa,c,3,10  ttypb,c,3,11 
ttypc,c,3,12   ttypd,c,3,13    ttype,c,3,14  ttypf,c,3,15      
mtd0,c,90,0 mtdr0,c,90,1    mtdblock0,b,31,0 mtd1,c,90,2    
mtdr1,c,90,3    mtdblock1,b,31,1 mdt2,c,90,4    mtdr2,c,90,5    
mtdblock2,b,31,2 mtd3,c,90,6    mtdr3,c,90,7    mtdblock3,b,31,3 
mtd4,c,90,8    mtdr4,c,90,9    mtdblock4,b,31,4 mtd5,c,90,10   
mtdr5,c,90,11   mtdblock5,b,31,5 mtd6,c,90,12   mtdr6,c,90,13   
mtdblock6,b,31,6 mtd7,c,90,14   mtdr7,c,90,15   mtdblock7,b,31,7; do \
        touch /net/fpga1/users/welson/uclinux/uClinux-dist/romfs/dev/@$i; \
done
if [ "" = "y" ]; then \
        for i in xsysacea0,b,254,0      xsysacea1,b,254,1       
xsysacea2,b,254,2 xsysacea3,b,254,3     xsysacea4,b,254,4       
xsysacea5,b,254,5 xsysacea6,b,254,6     xsysacea7,b,254,7       
xsysacea8,b,254,8 xsysacea9,b,254,9     xsysacea10,b,254,10     
xsysacea11,b,254,11 xsysacea12,b,254,12 xsysacea12,b,254,13    
xsysacea14,b,254,14 xsysacea15,b,254,15; do \
                touch 
/net/fpga1/users/welson/uclinux/uClinux-dist/romfs/dev/@$i; \
        done; \
fi
for i in boot,c,90,0 bootarg,c,90,2 ethmac,c,90,4 config,c,90,6 
spare,c,90,8 image,c,90,10 jffs2,c,90,12 all,c,90,14; do \
        touch 
/net/fpga1/users/welson/uclinux/uClinux-dist/romfs/dev/flash/@$i; \
done
for i in ; do make -C $i romfs || exit  ; done
/bin/sh: -c: line 1: syntax error near unexpected token `;'
/bin/sh: -c: line 1: `for i in ; do make -C $i romfs || exit  ; done'
make[2]: *** [romfs] Error 2
make[2]: Leaving directory 
`/net/fpga1/users/welson/uclinux/uClinux-dist/vendors/Insight/mbvanilla_net'
make[1]: *** [romfs] Error 2
make[1]: Leaving directory 
`/net/fpga1/users/welson/uclinux/uClinux-dist/user'
make: *** [romfs] Error 1
[welson@ccl0 uClinux-dist]$

The only change is for the mbvanilla.h file:
[welson@ccl0 asm]$ diff mbvanilla.h mbvanilla.h.backup
50c50
< #define MICROBLAZE_GPIO_DIR 0x0000003F
---
 > #define MICROBLAZE_GPIO_DIR 0x0000FF00
57c57
< #define ERAM_SIZE 0x00800000
---
 > #define ERAM_SIZE 0x02000000

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